Fence Calculator

Calculate Fence

m
m
m

Panels

17

Posts

19

Rails

51

3 per panel

Concrete Bags

19

1 per post hole

How This Calculation Works

The fence calculator subtracts gate openings from the total fence length, then divides the remaining length by the panel width to find how many panels you need. Posts are calculated as panels + 1 (one post between each panel, plus one at each end), with extra posts for gate openings.

Rails โ€” the horizontal members that support panels โ€” are estimated at 2 per panel for fences under 1.5 m (5 ft) and 3 per panel for taller fences, which need the extra rigidity.

Each post hole requires concrete for setting. The calculator estimates one bag per post, which is sufficient for most residential post holes (typically 25 cm / 10 in diameter, 60 cm / 2 ft deep).

Common Mistakes to Avoid

  • Not checking property lines. Fences built even a few centimetres over the property line can result in costly disputes. Get a survey or confirm boundaries with your neighbor before you build.
  • Ignoring slope. On sloped ground, you need to decide between stepping the fence (each panel at a different height) or racking it (tilting panels to follow the slope). Both approaches affect post spacing.
  • Shallow post holes. Posts should be buried to at least one-third of the total fence height, plus an additional 15 cm (6 in) for gravel drainage. A 1.8 m fence needs holes about 75 cm (30 in) deep.
  • Forgetting gate hardware. Hinges, latches, and gate frames are not included in the panel count. Budget for gate hardware separately and plan your gate width before ordering panels.

Worked Example

Scenario: A 30 m fence, 1.8 m high, with 1.8 m wide panels and 1 gate.

Step 1 โ€” Gate allowance: 30 โˆ’ 1 m (gate opening) = 29 m of fencing.

Step 2 โ€” Panels: 29 รท 1.8 = 17 panels (rounded up from 16.1).

Step 3 โ€” Posts: 17 + 1 + 1 (extra for gate) = 19 posts.

Step 4 โ€” Rails: 17 ร— 3 (tall fence) = 51 rails.

Step 5 โ€” Concrete: 19 bags (one per post hole).

Frequently Asked Questions

How far apart should fence posts be?
The standard spacing is 1.8โ€“2.4 m (6โ€“8 ft) on centre, matching the panel width. Closer spacing adds strength in high-wind areas. The panel width you enter into the calculator doubles as the post spacing.
How deep should I set fence posts?
Bury posts to at least one-third of the total post length. For a 1.8 m (6 ft) fence, posts should be about 75 cm (2.5 ft) in the ground. In frost-prone areas, set posts below the frost line to prevent heaving.
Should I use concrete for every post?
Concrete is recommended for corner posts, gate posts, and end posts, which bear the most stress. Line posts in well-drained soil can be set with tamped gravel, which allows better drainage and easier future removal.
What type of wood is best for fencing?
Pressure-treated pine is the most common and affordable option. Cedar is naturally rot-resistant and looks better but costs more. For maximum longevity, choose posts rated for ground contact (UC4 or UC4A treatment level).