Fence Calculator

Work out how many fence panels, posts and rails a straight fence needs, with gates taken out of the run.

Length of fencePanel widthGate width
Key One more post than panels. Gates count towards the length.
Units
m
Typical panel. Pre-made panels vary by maker. The 2.4 m starting figure suits a fence built from rails and palings between posts, so use the spacing for your own fence. Editorial rule of thumb.
m
Typical gate. A single garden gate is often about 0.9 to 1 m wide. Editorial rule of thumb.
m
Panels8 panels
Posts9
Rails24 × 2.4 m

Run 18 m = 18 m; ÷ 2.4 m panels = 7.5, rounded up to 8. Posts: 8 panels + 1 = 9.

Corners, slopes and heavier gate posts are not included.

Fig. 1 Panels and posts for your fence.

Work out the concrete for 9 posts

Every formula is tested against worked examples. How we check

Panel widthPanelsPosts
1.5 m1213
1.8 m1011
2.4 m89

Fig. 2 The same fence with different panel widths.

Last checked 10/11/2026. Sources: Before You Dig Australia.

Guide

How the amount is worked out

Panels = (fence run − gate widths) ÷ panel width, rounded up. A straight run needs one more post than it has sections, and each gate adds a section: posts = panels + gates + 1. Rails = panels × rails per panel, for fences built from rails and palings.

Example. 12 m of fence with 1.8 m panels is 6.67, so 7 panels and 8 posts.

Concrete for the posts

Each post sits in a hole, and the hole’s volume sets the concrete you need. Use the concrete calculator with the post hole shape, or follow the button below the result to carry the post count across.

Common mistakes

  • Counting panels but not posts. A run of 7 panels has 8 posts.
  • Forgetting that gates need stronger posts and hardware.
  • Ignoring corners and slopes. Corners add posts, and a sloping run needs stepped or racked panels, which this tool does not model.

Safety and rules

Before you dig, request plans of underground services from Before You Dig Australia, and check council rules and any approvals that apply to your property. Dividing fences are shared with your neighbour and carry their own rules on cost sharing, notice and height, which differ by state, so check before you build. This is not building or structural advice.


Common questions

How many fence panels for 12 metres?

With 1.8 m panels, 6.67 rounds up to 7 panels and 8 posts.

How far apart should fence posts be?

Panel or rail length sets the spacing, commonly about 1.8 to 2.4 m. Check the manufacturer’s guide and local rules.

How deep should the holes be?

A common rule of thumb is about a third of the post’s total length in the ground. Check the manufacturer’s guidance.

Do I need approval?

Often not for a low fence, but height limits and rules about dividing fences vary by state and council. Check before you build.

Planning a related job?

Worked examples

More calculators

Paying for the project?