Fence Calculator
Work out how many fence panels, posts and rails a straight fence needs, with gates taken out of the run.
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?
- Building a deck as well? Work out the boards, joists and screws. Decking Calculator
Worked examples
More calculators
Paying for the project?
- Work out the repayment on a loan with the calcfig personal loan calculator.