Fence calculator
Fence posts equal the run length divided by the spacing, rounded up, plus one post so both ends are closed. Pickets equal the length in inches divided by the picket width plus the gap. Rail boards assume 8-foot stock: the number of 8-foot bays, rounded up, times the number of rails. A 6-foot privacy picket and a 3-rail ranch fence both use this count; only the inputs change.
With the measurements already in the form, pickets is 160.
Result
160
Pickets
- Posts
- 11
- 8-ft rail boards
- 30
Worked example
An 80-foot run at 8-foot spacing needs 11 posts. Pickets 5.5 inches wide with a half-inch gap need 160 pickets. Three rails on 8-foot stock need 30 boards.
| Pickets | 160 |
|---|---|
| Posts | 11 |
| 8-ft rail boards | 30 |
Formula
Posts = ceiling(length ÷ spacing) + 1. Pickets = ceiling(length × 12 ÷ (picket + gap)). Rail boards = ceiling(length ÷ 8) × rails.
How to use it
- Measure the run along the ground where the fence will stand.
- Set spacing to the post layout, commonly 6 to 8 feet.
- Add a post for every corner that this straight-run count missed.
Assumptions
- The run is straight. Each corner is an extra post you should add once per corner beyond this count.
- Gates are not subtracted. A gate still needs posts, and it needs fewer pickets.
- Rail stock is 8 feet. If you buy 12-foot or 16-foot rails, divide the linear rail feet yourself.
Sources
- The post formula is end-post geometry. A 5.5-inch picket is the actual width of a nominal 1×6 board.
Questions
How many posts are in 100 feet of fence?
At 8-foot spacing, ceiling of 100 ÷ 8 is 13, plus one end post, so 14 posts, if the run is straight and you include both ends.
Should pickets touch?
Privacy fences often leave a small gap or none. A half-inch gap is the default so you can see how sensitive the count is. Set the gap to 0 if the boards touch.
Does this include concrete for the posts?
No. A typical post hole is a separate small volume. Use the concrete bag calculator with the hole size if you set posts in concrete.