Fence Calculator
Work out how many posts, rails, and pickets to buy — set your fence length and layout, and we do the math, so you don't have to.
How this fence calculator works
The posts are spaced evenly along the fence length, with one extra post to close the end: the number of posts is the length divided by the post spacing, rounded up, plus one. The gaps between posts are the fence sections, and each section gets one rail for every rail row. Pickets are counted along the whole length from the picket width plus the gap between them, rounded up, and your waste allowance is added on top.
Posts = length ÷ spacing (rounded up) + 1. Rails = sections × rail rows. Pickets = length ÷ (picket width + gap) × (1 + waste).
Worked example
A 100 ft fence with posts 8 ft apart, 2 rail rows, 5.5 in pickets with 1/4 in gaps and a 10% waste allowance:
- Posts: 100 ÷ 8 = 12.5, rounded up to 13, plus 1 makes 14 posts
- Sections: 14 − 1 = 13, so 13 × 2 = 26 rails
- Pickets: each takes 5.75 in, so 1,200 in ÷ 5.75 = 208.7, rounded up to 209
- With 10% waste: 229.9, rounded up to 230 pickets
Choosing post spacing and rail rows
Post spacing is often 6 to 8 ft, depending on the length of the rails and how heavy the fence is. A standard picket fence uses two rail rows, a taller privacy fence often uses three. Check the requirements of the rails and panels you plan to buy.
Tips for planning a fence
- Measure along the ground, following the line of the fence, rather than from a plan view. On a slope the real run is longer.
- Gates need their own posts and hardware. If your fence has a gate, check the post count against your plan and take the gate opening out of the picket run.
- A common rule of thumb is to bury about a third of the post's length. Check local frost depth and any building or boundary rules.
- Post caps, gate hardware, fasteners, stain or paint are not included.
FAQ
What about concrete for the post holes? Use the Concrete Calculator with the "Round post" shape, post count from here as the quantity, and your hole diameter and depth.
Why is there one more post than sections? Each section sits between two posts, so a fence of 13 sections needs 14 posts.
Does it work for a fence with corners? Yes, if you enter the total length. A corner post replaces one of the regular posts, so the count stays close. Check the result against your layout if you have many corners.
This calculator provides an estimate only. Actual materials needed varies with terrain, gate openings, and local building code. Always confirm quantities with your supplier and check local code before building.