By Tim King · Updated
Fence Calculator
Timber Posts, Rails and Pickets From Run Length, Plus Concrete Bags and Waste
OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.
How the Fence Calculator works
This fence calculator gives posts, rails and pickets for a run. Type the length of the fence run, how far apart the posts will go, how many rails each bay has, and the picket width and the gap between pickets. The page counts posts, rails and pickets as you type, adds a 5% waste allowance unless you change it, and estimates the bags of concrete for the post holes at two per post.
Fence calculator: bays first, then everything hangs off them
A fence is a series of bays between posts. The number of bays is the fence length divided by the post spacing, rounded up so the last bay is shorter rather than longer than the rest. Posts are bays plus one, because a run needs a post at both ends. Rails are the bays multiplied by the rails per bay — two for a fence up to about 1.2 m, three for a 1.8 m paling fence — and the page also gives the lineal length of rail so a timber yard can quote it. Pickets, or palings, are the fence length divided by the picket width plus the gap. For a lapped paling fence with no gap, enter the gap as 0 and the page counts one paling per width; then add the lapping course separately, which is usually about one extra paling per three.
A fence with a corner or a gate is two or more runs. Enter each run on its own and add the results; corners share a post, so subtract one post per corner, and a gate needs its own heavier posts and usually a bag or two more concrete each.
The assumed waste allowance is 5%
Fencing generates less waste than flooring or decking because most pieces are used whole. Posts are not wasted at all, so the allowance is applied to rails and pickets only, where it covers the odd split or bowed length and the cuts at the end of each run. Five per cent is enough for straight runs of treated pine; raise it to 10% for hardwood, which is more often rejected for defects, or for a fence with steps, angles or many short runs.
Post spacing and concrete
Post spacing is normally the rail length divided into equal bays. Rails come in 2.4, 3.0, 3.6 and 4.8 m lengths, so 2.4 m centres let rails span one bay each and 3.6 m rails span a bay and a half, joining on a post. Timber posts are usually set 600mm into the ground for a 1.8 m fence, in a hole about 300mm across, which takes roughly two 20 kg bags of rapid-set concrete. Sandy or soft ground, taller fences and gate posts want a wider or deeper hole and three or four bags. Steel posts and post-hole foam have their own requirements.
What is not included
Fixings, caps, plinth boards, gates and hinges are separate. Paling fences on a boundary are often built with a plinth along the bottom, one per bay, and a capping along the top, which is the same lineal length as one rail. Add those from the rails row if the design calls for them.
Fence materials by length
Posts at 2.4 m, two rails a bay, 100 mm pickets with a 10 mm gap and 5% waste.
Posts, rails and pickets by fence length
| Fence length | Posts | Rails | Pickets |
|---|---|---|---|
| 5 m | 4 (3 bays) | 7 | 48 |
| 10 m | 6 (5 bays) | 11 | 96 |
| 15 m | 8 (7 bays) | 15 | 144 |
| 20 m | 10 (9 bays) | 19 | 191 |
| 25 m | 12 (11 bays) | 24 | 239 |
| 30 m | 14 (13 bays) | 28 | 287 |
| 35 m | 16 (15 bays) | 32 | 335 |
| 40 m | 18 (17 bays) | 36 | 382 |
| 45 m | 20 (19 bays) | 40 | 430 |
| 50 m | 22 (21 bays) | 45 | 478 |
| 55 m | 24 (23 bays) | 49 | 525 |
| 60 m | 26 (25 bays) | 53 | 573 |
| 65 m | 29 (28 bays) | 59 | 621 |
| 70 m | 31 (30 bays) | 63 | 669 |
| 75 m | 33 (32 bays) | 68 | 716 |
| 80 m | 35 (34 bays) | 72 | 764 |
| 85 m | 37 (36 bays) | 76 | 812 |
| 90 m | 39 (38 bays) | 80 | 860 |
| 95 m | 41 (40 bays) | 84 | 907 |
| 100 m | 43 (42 bays) | 89 | 955 |
Fence formula and worked examples
The formula: bays = fence length ÷ post spacing, rounded up; posts = bays + 1; rails = bays × rails per bay × (1 + waste %); pickets = fence length ÷ (picket width + gap) × (1 + waste %); concrete = 2 bags per post.
First example. A 20 m fence with posts at 2.4 m needs 9 bays and 10 posts. With 2 rails per bay and 5% waste that is 19 rails (45.4 m), 234 pickets at 70 mm with a 20 mm gap, and 20 bags of concrete.
Second example. A 100 ft fence with posts every 8 ft needs 13 bays and 14 posts, 41 rails (327.6 ft) at 3 rails per bay, 281 pickets at 3.5 in with a 1 in gap, and 28 bags of concrete.
How many fence posts do I need? One more than the number of bays, because each run starts and ends on a post. Corners and gates add a post each.
FAQ
How many posts do I need for a 20 metre fence?
At 2.4 m spacing, 20 m is nine bays, so ten posts. The last bay is a little short, at 0.8 m, which is normal; you can also space the posts evenly at 2.22 m so every bay is the same. Each corner in the run shares a post, so subtract one post per corner if you enter runs separately.
How many pickets does a fence need?
The fence length divided by the picket width plus the gap. A 20 m run of 70mm pickets with a 20mm gap needs 223 pickets before waste, or 234 with the default 5%. For a lapped paling fence with no gap, enter 0 for the gap and add roughly one extra paling per three for the lapping course.
What waste allowance does this calculator use?
Five per cent by default, applied to rails and pickets but not posts, which are counted exactly. Raise it to around 10% for hardwood, which has more rejects for splits and bowing, or for a fence with many short runs, steps down a slope, or angles where more pieces have to be cut.
How many bags of concrete do I need per fence post?
About two 20 kg bags of rapid-set concrete for a 300mm hole 600mm deep, which is what this page uses. Gate posts, posts in soft or sandy soil and fences taller than 1.8 m want a larger hole and three or four bags. Steel posts and expanding foam have their own manufacturer guidance.
How far apart should fence posts be?
Between 2.4 and 3 m for a timber paling or picket fence, which matches standard rail lengths so that rails join on a post. Closer spacing makes a stiffer fence and is worth it in windy spots or for a tall fence. Never exceed the span the rails are rated for, or the fence will sag between posts.
Can I enter the fence in feet and inches?
Yes. Switch to imperial and enter the fence length and post spacing in feet, including feet and inches such as 6'6", and the picket width and gap in inches. Posts, rails, pickets and concrete bags are worked out the same way, and the rail length is shown in lineal feet.
See also: all Home & DIY tools, Everyday Maths, Loans & Savings, Dates & Time, Health, Unit Converters, Education, Science, Creative, Garden & Farm, Gaming & PC, Work & Business, Fun, Maps & GPS, DIY & Building, Cost Estimators, Sport & Clubs.
Related tools
Decking Calculator
Decking boards, lineal metres, joists and screws for a deck, with waste.
Concrete Calculator
Concrete volume for slabs, footings and post holes, plus bags.
Gravel & Sand Calculator
Gravel, sand and road base by volume and tonnage, with waste.
Length Converter
Convert between metric and imperial lengths.
Concrete Post Hole Calculator
Concrete volume and bags per fence post hole, metric or feet and inches.