How Many Fence Posts, Rails and Pickets Do I Need?
Divide the fence length by the post spacing, then add one. A 40 ft fence with posts 8 ft apart needs 6 posts. For 3.5 inch pickets with a half inch gap, plan 3 pickets per foot, or 120 for 40 ft.
Posts
Posts go at the end of each section, so the number of posts is the number of sections plus one. Divide the length by the spacing and round up. Many wood fence panels and rail sections are about 6 to 8 feet between posts, so check the rail length you will buy.
Example: a 40 ft straight run with 8 ft spacing is 5 sections, so 6 posts. Corners, gate posts and ends can need extra or heavier posts, so count them on a sketch.
Rails
Rails run between posts. A shorter fence often uses 2 rails per section and a taller fence 3. In the example, 5 sections with 2 rails is 10 rails, and with 3 rails is 15.
Pickets
Each picket takes its own width plus the gap beside it. With a 3.5 inch picket and a 0.5 inch gap, each uses 4 inches, so you need 12 ÷ 4 = 3 pickets per foot. For a 40 ft run, that is 120 pickets. Add 5 to 10 percent for splits and cuts. A fence with no gaps uses 12 ÷ 3.5 = 3.43 per foot, so 138 pickets for 40 ft.
Concrete for the post holes
If you set posts in concrete, each hole needs its own volume. A hole 10 inches across and 24 inches deep holds about 1.1 cubic feet, minus the post itself. Bag yield differs by brand, so use the number printed on the bag, and see the concrete guide for bag yields. Hole size and depth depend on the post, soil and local frost depth, so check local rules.
Gates and slopes
Subtract the gate width from the fence length, and add the gate posts and hardware separately. On a slope, measure along the ground and ask your supplier how the fence should step or follow the slope.
Work out your fence
The fence calculator turns your length, spacing and picket size into counts. Prices vary by supplier, so confirm quantities with them before you order.
Estimates only. Confirm quantities and prices with your supplier before you order. See our terms and disclaimer.