Fence Calculator
Divide the fence length by the post spacing and round up for the panels, then add 1 for the posts. A gate splits the fence into sections with their own end posts, so count them separately. 100 ft with a 4 ft gate after 50 ft is 50 and 46 ft: at 8 ft spacing, 13 panels and 15 posts.
Last updated by Ultra Calculator
Fence
How to calculate it
Panels = Σ (Lᵢ ÷ S, rounded up); Posts = Σ (Lᵢ ÷ S, rounded up, + 1)
- Lᵢ
- length of each fence section, from an end or a gate to the next end or gate
- S
- post spacing, centre to centre, in the same unit
Each section is counted on its own and the results are added, so every gate has a post on both sides. For wood fences, pickets = each section's length in feet × 2, rounded up (6 in centres, about 6.6 per metre), and rails = panels × 2 for a fence up to 4 ft high (1.22 m in metric) or panels × 3 above that. Concrete = one 60 lb (27 kg) bag per post.
Worked example
Garden privacy fence, 100 ft
100 ft of 6 ft wood fence with posts every 8 ft and a 4 ft gate after 50 ft, so sections of 50 and 46 ft: 15 posts, 13 panels, 96 ft of fencing, 192 pickets, 39 rails and 15 bags of concrete.
| Units | Feet |
|---|---|
| Fence Sections | 50, 46 |
| Fence Height | 6 |
| Fence Type | Wood (Close-Board or Privacy) |
| Post Spacing (feet) | 8 |
| Fence Posts | 15 |
|---|---|
| Panels or Sections | 13 |
| Length of Fencing (Excluding Gates) | 96 linear feet |
| Pickets | 192 |
| Rails | 39 |
| Concrete Bags (60 lb, 27 kg) | 15 |
How to use this calculator
- Choose feet or metres under Units.
- Measure each stretch of fence along its line. A gate splits the fence, so measure from each end or gate to the next and enter the lengths as the Fence Sections.
- Enter the Fence Height and choose the Fence Type.
- Set the Post Spacing, centre to centre, from your panel width or your supplier's guidance.
- Read the posts, panels and concrete. Wood fences also show pickets and rails.
Frequently asked questions
How many fence posts do I need?
Divide the fence length by the post spacing, round up and add 1 for the end post. 100 ft at 8 ft spacing is 12.5, which rounds to 13, plus 1 makes 14 posts. That is for a run with two ends; a fence that closes into a full loop needs one fewer.
How far apart should fence posts be?
For a panel fence the post centres are one panel width plus one post width apart. With 1.83 m (6 ft) panels and 100 mm posts that is 1.93 m. For other fences, follow the supplier's guidance for your fence height and how exposed the site is.
How many fence panels do I need?
Divide each section between ends and gates by the post spacing and round up, then add the results. 100 ft of fence with a 4 ft gate after 50 ft and posts 8 ft apart is 50 ÷ 8 = 6.25, so 7 panels, plus 46 ÷ 8 = 5.75, so 6 panels: 13 in all. Dividing the 96 ft of fencing in one go gives 12, one too few, because each section ends with a part panel.
How much concrete do I need per fence post?
The calculator allows one 60 lb (27 kg) bag per post. Larger posts, deeper holes or soft ground take more, so compare the bag's coverage with the size of your holes before buying.
How many pickets or boards does a wood fence need?
The calculator assumes pickets at 6 in centres, which is 2 per foot of fence or about 6.6 per metre. 96 ft of fence gives 192 pickets. If your boards are wider or spaced apart, divide the fence length by your own board spacing instead.
Can I use metres for fencing?
Yes. Choose Metres and enter the sections, height and post spacing in metres; the post spacing box takes 0.5 to 4 m. Pickets are counted the same way in both units, and the rail rule uses 1.22 m in metric.
Learn more
Posts, panels and gates
A straight run always has one more post than it has gaps between posts. A gate breaks the fence into separate sections, and each section needs a post at both ends, so the gate is hung between the end posts of the sections either side of it. Counting each section on its own gets both the posts and the part panels right.
Rails depend on height
On a wood fence the horizontal rails hold the pickets. The calculator uses 2 rails per panel for fences up to 4 ft (1.22 m) high and 3 rails above that.
A run with ends or a closed loop
Posts = gaps + 1 is right for a fence that starts and stops. If the fence goes all the way round and meets itself, the first and last posts are the same post, so subtract one.
- Counting posts and panels for a replacement garden fence
- Pricing a new boundary fence before getting quotes
- Working out pickets and rails for a wooden privacy fence
- Estimating post concrete for a paddock or chain-link run
- Checking how a gate changes the posts and panels you need
Taking the gate off the total length
Subtracting the gate width and dividing what is left as one run misses a post for each gate, and often a panel too, because the sections either side each have their own end post and can each end with a part panel. Enter the sections separately. If your gate needs heavier hanging posts, swap them for standard ones rather than adding more.
Using the panel width as the post spacing
Posts sit between the panels, so their centres are one panel plus one post width apart. For 50 m of 1.83 m panels with 100 mm posts, a spacing of 1.83 m gives 29 posts and 28 panels, against 27 posts and 26 panels at the correct 1.93 m.
Counting a closed loop as a straight run
For a fence that goes all the way round, the calculator's post count is one too high. Subtract one post and one bag of concrete.
Measuring along the ground on a slope
Panels are level, so on sloping ground measure the horizontal distance. Stepped panels can also need taller posts at each step.
- Set the corner and end posts first, run a string line between them, then fill in the posts between.
- Buy posts long enough to bury a good part of their length; your supplier can advise on depth for your fence height.
- Check where buried cables and pipes run before digging any post holes.
- Keep a spare panel or a few pickets for repairs, since matching them later can be hard.
Methodology and sources
Lengths are counted in the unit you choose. Each section between ends and gates is counted on its own: panels = section length ÷ spacing, rounded up, and posts = panels + 1, which suits a section with two ends. The results for all sections are added. Wood fences add pickets at 2 per foot of fencing in each section, rounded up (6 in centres, about 6.6 per metre), and rails at 2 per panel up to 4 ft high (1.22 m in metric) or 3 per panel above. Concrete is one 60 lb (27 kg) bag per post. Fence type only switches pickets and rails on or off. It does not allow for corners, slopes, heavier gate posts, gravel boards or waste.