Most fence-buying mistakes come down to one post. A straight run of ten panels needs eleven posts, a closed yard of the same length needs ten, and every gate adds one more. This fence calculator gets that arithmetic right and then goes on to the other materials: panels, or rails and pickets for a built-on-site fence, and the concrete to set every post.
Enter a straight length, or the two sides of a rectangular yard, with the number and width of the gates. Choose the post spacing — which is also the panel width — and the infill. For the post holes, give the hole diameter and depth and the post size: the calculator subtracts the volume of the post itself, so the concrete figure is what you actually pour.
The rules of thumb used here are the ones fence builders share: holes about three times as wide as the post, buried at least one third of the height above ground, and always below the frost line. Carry the total volume to the concrete calculator to turn it into bags of premix, and use the lumber calculator to price posts and rails in board feet.
How to use this calculator
- Choose Straight run or Rectangle, then enter the length or the two sides. For a rectangle, gates are placed on side A.
- Enter the number of gates and the width of each opening.
- Set the post spacing: 2.5 m for standard welded mesh panels, 6–8 ft for wood fences.
- Choose Panels, or Rails + pickets with the number of rails, picket width and gap.
- Enter the fence height, the post size and the hole diameter and depth.
- Optionally add a price per post and per panel or picket to get the material cost.
The formula
The fenced length is the total length minus the gate openings, (for a rectangle ). With a post spacing :
In a rectangle each side is divided separately, so every corner gets its own post. Pickets of width with a gap : . Rails: one per section and per row.
Concrete per hole is a cylinder minus the embedded part of a square post of side :
Worked example
Garden fence, 30 m straight, one 1 m gate, 2.5 m mesh panels, 10 × 10 cm posts in holes 30 cm wide and 60 cm deep, fence height 1.8 m:
- Fenced length: 30 − 1 = 29 m → ⌈29 ÷ 2.5⌉ = 12 panels
- Posts: 12 + 1 + 1 = 14
- Concrete per hole: π/4 × 0.3² × 0.6 − 0.1² × 0.6 = 36.4 L
- Total concrete: 0.51 m³; depth 0.6 m is exactly one third of 1.8 m
Yard of 60 ft × 40 ft, one 4 ft gate, 8 ft sections, three rails, 3.5 in pickets with 1.5 in gaps, 4×4 posts in 10 in × 24 in holes: 196 ft fenced, 25 sections, 26 posts, 471 pickets, 75 rails, 0.92 cu ft of concrete per hole and 23.9 cu ft in total.
Planning a fence (clôture): spacing, depth and gates
| Fence type | Typical post spacing | Post set |
|---|---|---|
| Welded mesh panels | 2.5 m (panel width) | Concrete, 50–60 cm deep |
| Wood privacy panels | 1.8 m / 6 ft | Concrete, ⅓ of height |
| Picket fence on rails | 6–8 ft (1.8–2.4 m) | Concrete or compacted gravel |
| Wire or chain link | 2.5–3 m (8–10 ft) | Concrete for end, corner and gate posts |
Gate posts carry a swinging load, so set them deeper or in a larger hole, and leave a few centimetres beside the gate leaf for the hinges and latch. Taller fences catch more wind: shorten the spacing in exposed spots. Check local rules before you dig — many towns limit front-yard fences to about 1 m and rear fences to about 2 m, and utility lines may run where you plan a post.
Setting posts in concrete
Put a few centimetres of gravel in the bottom of each hole for drainage, stand the post on it, brace it plumb on two faces and fill with concrete, sloping the top away from the wood so water runs off. Pressure-treated posts rated for ground contact last far longer than untreated ones, as the USDA Forest Products Laboratory’s Wood Handbook explains. The concrete per hole is small, but it adds up quickly on a long fence — a 60 lb bag of premix yields about 0.45 cu ft (13 L) and an 80 lb bag about 0.6 cu ft (17 L).
Frequently asked questions
How many fence posts do I need?
Divide the fenced length by the post spacing and round up to get the sections. A straight run needs one more post than sections; a closed loop needs as many posts as sections. Add one post for every gate.
How far apart should fence posts be?
2.5 m for standard welded mesh panels, which fixes the spacing. For wood fences, 6 to 8 ft (1.8 to 2.4 m) is usual; go closer for tall fences or windy sites.
How much concrete do I need per fence post?
Work out the volume of the hole and subtract the part of the post inside it. A 10 cm post in a 30 cm × 60 cm hole needs about 36.4 litres; a 4×4 in a 10 in × 24 in hole about 0.92 cu ft.
How deep should fence post holes be?
At least one third of the fence height above ground, so 60 cm (2 ft) for a 1.8 m (6 ft) fence, and always below the local frost depth so the ground does not heave the posts.
How many pickets per section?
Divide the section length by the picket width plus the gap. An 8 ft section with 3.5 in pickets and 1.5 in gaps takes 96 ÷ 5 = 19.2, so 20 pickets.
Sources
- USDA Forest Products Laboratory — Wood Handbook: Wood as an Engineering Material (FPL-GTR-282, 2021)
- American Wood Council — DCA 6, footing depth and frost line guidance
- NIST Handbook 44, Appendix C — General tables of units of measurement
Last updated: