How it’s calculated
- Sections: each side is divided into equal sections no longer than your maximum post spacing: sections = side length ÷ spacing, rounded up. The actual spacing is shown, and it’s usually a little under the maximum.
- Posts = sections + 1 for a straight line. Corners share a post, so several sides need Σ sections + 1 posts, or just Σ sections if the fence closes on itself.
- Gates: the gate width is taken out of the longest side, and each gate is its own opening with one extra post. The calculator assumes the gate sits at an end or a corner.
- Boards: rails = sections × rails per section; pickets = fence length ÷ (picket width + gap), rounded up, plus a few extra. Panels: each bay is one panel plus one post; the last panel on a side is cut to fit. Wire mesh: rolls = fence length ÷ roll length, rounded up.
Worked example: wood privacy fence
A 100 ft (30.5 m) straight fence with posts at most 8 ft (2.4 m) apart, 3 rails per section and 5½ in (14 cm) pickets with no gap:
- Sections: 100 ÷ 8 = 12.5 → 13 sections of 7 ft 8 5/16 in
- Posts: 13 + 1 = 14 posts
- Rails: 13 × 3 = 39 rails (8 ft boards work, since sections are under 8 ft)
- Pickets: 1,200 in ÷ 5.5 in = 218.2 → 219, plus 5% → 230 pickets
With a 4 ft gate, 96 ft is fence: 12 sections, 12 + 1 + 1 = 14 posts, 36 rails and 221 pickets. If the gate is in the middle, the fence splits into two stretches that are each rounded up: 48 + 48 ft still needs 14 posts, but 50 + 46 ft needs 15.
Example: panels (metric)
A 20 m run of 1.83 m (6 ft) panels with 10 cm posts. Each bay takes 1.83 + 0.10 = 1.93 m: (20 − 0.1) ÷ 1.93 = 10.3 → 11 panels, the last cut to about 0.5 m, and 12 posts.
Example: chain link
100 ft of chain link with line posts every 10 ft and 50 ft rolls: 10 sections, 11 posts (2 of them end posts) and 2 rolls.
Typical sizes
- Wood fences (US): posts at most 8 ft on center, so rails can be 8 ft boards; 3 rails per section for a 6 ft fence (Lowe’s). A “1×6” picket is actually 5½ in wide.
- Panels: US ready-made wood panels are often 8 ft wide; UK panels are 1.83 m (6 ft), and some European panels 1.8 m. Measure yours: 3 cm per bay adds up.
- Australia: Colorbond steel panels use 2.35 m rails, with posts at the rail length plus 10 mm (about 2.36 m centres), so enter 2.35 m panels and a 1 cm post. Timber paling fences: posts at most 2.4 m apart and 3 rails for fences 1.2–1.8 m high.
- Chain link: line posts no more than 10 ft apart (ASTM F567, the US installation standard); fabric comes in 50 ft rolls in several heights.
Tips
- Check before you dig: call 811 in the US (or your local utility locating service), and check permits, HOA rules and where your property line is.
- Corner, end and gate posts carry the most load. On chain link they are heavier terminal posts with bracing; on wood fences gate posts are often set deeper.
- Setting posts in concrete? Use the fence post concrete calculator with the post count from here.
Limitations
The calculator doesn’t count gate leaves, hinges and latches, post caps, gravel boards, tension wire, braces or fasteners, and it treats each side as straight and level: on a slope, stepped panels and racked sections need more care. Post size, depth and spacing for wind and soil are up to the fence maker’s instructions and local rules.