How to calculate it
Divide the fence length by the post spacing and round up to get the number of sections. You need one more post than sections. Rails = sections × rails per section. For pickets, divide the fence length in inches by the picket width plus the gap.
Formulas: posts = ⌈length ÷ spacing⌉ + 1 · pickets = length × 12 ÷ (picket width + gap)
This assumes one straight run. Add one extra post for each corner, end and gate.
Example
A 100 ft privacy fence, posts every 8 ft, 3 rails, 5.5 inch pickets with no gap:
- 100 ÷ 8 = 12.5, so 13 sections and 14 posts
- 13 × 3 = 39 rails
- 1,200 inches ÷ 5.5 = 218.2, so 219 pickets
Tips before you buy
- A "1×6" picket actually measures about 5.5 inches wide. Enter the real width.
- Gates need sturdier posts. Plan an extra post on each side of every gate.
- Dig post holes about one-third as deep as the post height above ground, and below the frost line in cold climates.
- Call 811 (in the US) before digging so buried utility lines get marked for free.
Frequently asked questions
How far apart should fence posts be?
6 to 8 feet is standard for wood fences. 8 ft matches common rail lengths. Use closer spacing in windy areas or for heavy privacy fences.
How many pickets do I need for 100 feet of fence?
With 5.5 inch pickets and no gap, about 219 pickets. With 3.5 inch pickets and a 0.5 inch gap, 300 pickets.
How many rails does a fence need?
Two rails is typical for fences up to about 4 ft. Three rails for 5–6 ft privacy fences.