Fence Calculator

Calculate posts, panels, rails and concrete for a fence run.

Please note: Material estimates for planning only. Always confirm quantities against your drawings, local building codes and supplier specifications before ordering. Structural work requires a qualified engineer.

What the Fence Calculator does

Fence posts follow the sections-plus-one rule: a run divided into sections needs a post at each end of every section, sharing posts between neighbours. Post length must include the buried depth, which is usually a third of the visible height.

Formula

  • Sections = ⌈Fence length ÷ Post spacing⌉
  • Posts = Sections + 1
  • Post length = Fence height + Hole depth
  • Concrete per post = π × (Hole radius)² × Depth − Post volume

Inputs explained

InputUnitRequiredNotes
Fence lengthnumberYesAccepts more than 0.
Fence length unitone of 6 optionsYes
Post spacingnumberYesAccepts more than 0.
Post spacing unitone of 6 optionsYes
Fence heightnumberYesAccepts more than 0.
Fence height unitone of 6 optionsYes
Fence styleone of 2 optionsYes
Rails per sectionnumberIn some modesAccepts 1 or more. Shown Fence style is Rails and boards.
Board widthmmIn some modesAccepts 10 or more. Shown Fence style is Rails and boards.
Gap between boardsmmIn some modesAccepts 0 or more. Shown Fence style is Rails and boards.
Post hole depthnumberYesAccepts more than 0.
Post hole depth unitone of 5 optionsYes
Post hole diametermmYesAccepts 50 or more.
Price per postselected currencyOptionalAccepts 0 or more.
Price per panelselected currencyOptionalAccepts 0 or more.
Currencyone of 10 optionsOptional

How to use it

  1. Choose Fence length unit and Post spacing unit.
  2. Enter Fence length, Post spacing, Fence height and Post hole depth and 1 more.
  3. Fill in the remaining inputs the form shows for your choice.
  4. Optionally add Price per post and Price per panel.
  5. Select Calculate.

Worked example

A 30 m fence, 2.4 m post spacing, 1.8 m high, 600 mm holes at 300 mm diameter.

Length
30 m
Spacing
2.4 m
Height
1.8 m
Depth
600 mm

13 sections, 14 posts, each 2.4 m long. Concrete 0.0364 m³ per hole = 0.51 m³ total.

Frequently asked questions

How deep should fence posts go?

At least a quarter of the total post length, and a third for exposed or tall fences. A 1.8 m fence usually needs 600 mm buried.

Related calculators