How to use this calculator
- Measure the total fence length, including gate openings, and choose the height.
- Set the post spacing, measured center to center. 8 ft is standard; use 6 ft for tall fences or windy sites.
- Enter the number of gates, their width and the number of corners.
- Check rails per section. It fills in automatically for the height, but you can change it.
- Pick the picket width and the gap between pickets (0 for privacy).
- Optionally, add prices to see the total cost. Results update as you type.
- Use How much concrete for these posts? to carry your post count to the concrete calculator.
Worked example
A 100 ft, 6 ft tall privacy fence with posts 8 ft apart, one 4 ft gate, 2 corners and 1×6 pickets (5.5 in) with no gap, plus 10% extra pickets:
- Sections: 100 ÷ 8 = 12.5, rounded up to 13
- Posts: 13 + 1 = 14, plus 1 for the gate and 2 for the corners = 17 posts
- Rails: 13 sections × 3 rails = 39 rails
- Pickets: (100 − 4) × 12 = 1,152 in ÷ 5.5 = 209.5, rounded up to 210; plus 10% = 231 pickets
- Screws: 231 pickets × 3 rails × 2 = 1,386 screws
At $15 per post, $8 per rail and $3.50 per picket, that comes to $255 + $312 + $808.50 = $1,375.50 before tax.
Frequently asked questions
How far apart should fence posts be?
Most wood fences use posts 8 feet apart, measured center to center, which matches common 8 and 16 ft rail lengths. Use 6 feet for fences taller than 6 ft, heavy boards, soft soil or windy sites. Check your local building code before you build.
How many rails does a 6 ft fence need?
Three per section: top, middle and bottom. The middle rail keeps tall boards from bowing and warping. Fences 4 ft and shorter usually need only two rails, and some builders add a fourth rail on 8 ft fences.
Should I build a privacy fence or leave gaps between pickets?
A privacy fence butts the pickets together with no gap, so enter 0. Wood shrinks as it dries, so small gaps can open over time. A spaced picket fence leaves a gap, often 1 to 3 inches, which uses fewer pickets and lets wind and light through.
How many extra posts do I need for gates?
Every gate needs a solid post on each side. This calculator adds one extra post per gate, because the post on the other side usually lands on a line post you already counted. It also adds one per corner. Gate posts carry more load, so many builders use 6x6 posts or set them deeper.
How many screws do I need per fence picket?
Two fasteners at every rail is standard: 4 per picket on a 2-rail fence and 6 per picket on a 3-rail fence. Use exterior-rated screws or ring-shank nails about 1-1/4 to 2 inches long. In high-wind areas, local codes may call for three per rail.