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.

Units
Fence Layout
Pickets

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:

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

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.