Estimate only. Gate hardware, concrete, nails and local building rules are not included.
How to use this calculator
Enter the total fence length, post spacing, fence height and the picket size. Add the number of gates and press Calculate to see the posts, rails and pickets you need.
The formula
Sections = length ÷ post spacing (rounded up)
Posts = sections + 1 + one extra post for each gate
Rails = sections × 3 (2 for fences under 5 ft)
Pickets = length × 12 ÷ (picket width + gap)
Example: A 100 ft fence, 6 ft high, with posts 8 ft apart and one gate has 13 sections, 15 posts, 39 rails and 200 pickets.
Planning your fence materials and budget
The calculator gives you the posts, rails and pickets for a standard wood picket or privacy fence. Use the counts as your material list, then add the hardware, concrete and gates that the estimate leaves out.
A second worked example
Say you need a 150 ft fence that is 4 ft high, with posts 6 ft apart and two gates. That gives 25 sections. You need 28 posts: 25 plus 1, plus 1 for each gate. Since the fence is under 5 ft, it uses 2 rails per section, for 50 rails. With 3.5 inch pickets and a 2 inch gap, you need 150 ร 12 รท 5.5, or about 328 pickets.
What changes your material list
- Post spacing: 8 ft spacing uses fewer posts. 6 ft spacing is stronger in wind and for heavy gates.
- Height: Taller fences need a third rail and longer, deeper posts.
- Picket gap: A privacy fence with no gap needs more pickets than a spaced picket fence.
- Corners and slopes: Each corner and change in direction needs its own post. Slopes may need stepped or racked sections.
Before you dig
- Confirm your property line. A survey or the plat map can prevent disputes with neighbors.
- Call 811 a few days before digging so utility lines can be marked for free.
- Check local height limits, setback rules and HOA rules, and get a permit if one is required.
- Talk with neighbors about the fence line and which side faces them.
Common mistakes
- Forgetting extra posts for gates and corners.
- Setting posts too shallow, which leads to leaning sections.
- Using untreated wood for posts in the ground.
- Buying exactly the counted pickets, with no spares for split or warped boards.
Budgeting the full job
If you enter a price per linear foot, the estimate multiplies it by the length. At $30 per foot, for example, a 100 ft fence comes to about $3,000. Get that price from a local quote or by adding up material prices. Then add gate kits, hinges and latches, concrete or gravel for posts, screws or nails, and stain or sealer. Buy about 5 to 10 percent extra pickets and a spare rail or two.
If you hire a contractor, ask whether the quote includes old fence removal, hauling, permits and gates. Get at least three written quotes before you decide.

