Fence Calculator
Work out the posts, rails, pickets and post-hole concrete for a wood fence from its length, height, post spacing and picket size, with gates left out.
How to Use
- Enter the total length of the fence and its height.
- Set the post spacing, usually 6 to 8 ft for wood fences.
- Enter the picket width and the gap between pickets: 0 for a privacy fence, about 2 in for a classic picket fence.
- Add any gates and their width; the opening gets no pickets but an extra post.
- Read the posts, rails, pickets and bags of concrete for the post holes.
Worked Example
A 6 ft privacy fence 100 ft long, posts every 8 ft, 5½ in pickets set tight. Sections: 100 ÷ 8 = 12.5, rounded up to 13 sections, so 14 posts. Each post goes 2 ft into the ground (a third of 6 ft), so buy 8 ft posts. Rails: three per section for a 6 ft fence, 39 rails. Pickets: 100 ft = 1,200 in, ÷ 5.5 = 218.2, so 219 pickets.
Concrete: a 10 in hole 2 ft deep holds π × 5² × 24 = 1,885 in³; less the 4×4 post (3.5 × 3.5 × 24 = 294 in³) that is 1,591 in³, 0.92 ft³. At 0.6 ft³ per 80 lb bag, about 1.5 bags a post: 14 posts take 22 bags of 80 lb (or 35 bags of 50 lb fast-setting mix at 0.375 ft³).
The common mistake: counting posts as length ÷ spacing. 100 ÷ 8 = 12.5 suggests 13 posts, but 13 sections need 14 posts, one more than the sections.
Show Work
Formulas
Building a Wood Fence
Set the end and corner posts first, run a string line between them, and set the line posts to it; measure post spacing centre to centre so the rails reach. Use ground-contact rated pressure-treated posts, and slope the concrete away from each post at the top so water runs off instead of pooling against the wood, which is where posts rot first.
Check property lines and local rules before you dig: many places limit fence height (often 4 ft in front yards and 6 ft at the back), and in the US you should call 811 a few days ahead so buried utility lines are marked.
About This Calculator
This calculator works out a wood fence from its length, height and post spacing: posts and their length, rails for the height, pickets for your picket width and gap with gates left out, and concrete for the post holes, with a drawing of two sections. It works in feet and inches or metres and millimetres.
Everything runs in your browser; nothing is sent anywhere.
Related calculators: Concrete Calculator, Lumber Calculator, and Map Measuring Tool.
Frequently Asked Questions
How many fence posts do I need?
Divide the fence length by the post spacing, round up to whole sections, and add one post for the end. 100 ft at 8 ft spacing is 12.5, so 13 sections and 14 posts. Each gate adds a post, and corners need a post of their own even when they fall between the normal spacing.
How deep should fence posts be?
A common rule is a third of the post’s height above ground, but at least 2 ft, and below the frost line in cold climates. A 6 ft fence needs posts set 2 ft deep, so 8 ft posts. Holes are usually about three times the post width: 10 to 12 in for a 4×4.
How many pickets do I need?
Divide the length to be covered, in inches, by the picket width plus the gap. 100 ft with 5½ in pickets set tight is 1,200 ÷ 5.5 = 218.2, so 219 pickets; with a 2 in gap, 160. Take gate openings off first.
How many rails does a fence need?
Two rails per section for fences up to about 4 ft, three for 5 to 6 ft, and four for 8 ft fences or where pickets need extra support. They are usually 2×4s cut to span from post to post.
How much concrete per fence post?
A 10 in hole 2 ft deep, less the 4×4 post, holds about 0.9 ft³: about one and a half 80 lb bags of regular concrete (0.6 ft³ each), or two and a half 50 lb bags of fast-setting mix (0.375 ft³ each). Put 3 to 4 in of gravel in the bottom of each hole for drainage.
How do I use the Fence Calculator?
Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.
Is it free? Does it work without internet?
Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.
Where does my data go?
Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.
Common Use Cases
Privacy fence
100 ft, 6 ft high, posts every 8 ft: 14 posts of 8 ft, 39 rails, 219 pickets of 5½ in.
Picket fence
60 ft, 4 ft high, 3½ in pickets with 2 in gaps: 9 posts, 16 rails, 131 pickets.
With a gate
100 ft privacy fence with one 4 ft gate: an extra post and 9 fewer pickets.
Tall fence
50 ft of 8 ft fence at 6 ft spacing: 10 posts set 2 ft 8 in deep, so 12 ft posts, and 36 rails.
Last updated: