How to use the fence calculator
- Measure the total length of fence line. For several runs, add them together.
- Choose post spacing, rails per section and picket width (enter a gap for spaced picket fences, 0 for privacy).
- Set the post hole size and concrete bag type to get the bag count. Add one post per gate and per corner.
Fence material formulas
sections = ⌈length ÷ post spacing⌉ · posts = sections + 1
rails = sections × rails per section
pickets = length (in) ÷ (picket width + gap) × 1.05
concrete per hole = (π × (hole ⌀ ÷ 2)² − post area) × (depth − 6") ÷ 1,728
Worked example
A 100 ft, 6 ft tall privacy fence: 8 ft spacing, 3 rails, 5-1/2" boards, 4×4 posts in 10" × 30" holes:
- Sections: 100 ÷ 8 = 12.5 → 13 · Posts: 14 · Rails: 13 × 3 = 39
- Boards: 1,200" ÷ 5.5" × 1.05 = 230 boards
- Concrete: 0.92 cu ft per hole × 14 posts ÷ 0.375 = 35 bags of 50 lb fast-setting mix
Fence materials by length
| Fence length | Posts | Rails | Boards | 50 lb bags | 80 lb bags |
|---|---|---|---|---|---|
| 50 ft | 8 | 21 | 115 | 20 | 13 |
| 75 ft | 11 | 30 | 172 | 28 | 17 |
| 100 ft | 14 | 39 | 230 | 35 | 22 |
| 150 ft | 20 | 57 | 344 | 50 | 31 |
| 200 ft | 26 | 75 | 459 | 64 | 40 |
| 300 ft | 39 | 114 | 688 | 96 | 60 |
Fence post depth
A common rule is to bury one-third of the post's above-ground height, plus about 6 inches of gravel at the bottom for drainage. In cold climates the hole must also reach below the frost line, which can be 36–48 inches or more; your local building department can tell you the required depth.
| Fence height | Post length | Hole depth | Hole diameter (4×4) | 50 lb bags per post |
|---|---|---|---|---|
| 3 ft | 4 ft | 18" | 10" | 1.2 |
| 4 ft | 6 ft | 22" | 10" | 1.6 |
| 5 ft | 8 ft | 26" | 10" | 2 |
| 6 ft | 8 ft | 30" | 10" | 2.5 |
| 8 ft | 12 ft | 38" | 10" | 3.3 |
Picket fence vs. privacy fence
For a picket fence, enter the gap between pickets (often 2–3 inches); the calculator divides the fence length by picket width plus gap. For a privacy fence, leave the gap at 0 so the boards butt together. Shadowbox (board-on-board) fences need roughly 1.5–2× the boards of a privacy fence because the boards overlap on alternating sides.
Estimating fence cost
Add the local price of a post, a rail, a picket and a bag of concrete and the calculator totals the material cost and cost per linear foot. Add gates, hardware, fasteners and post caps separately. For an installed price including labor, use thefence cost calculator.
Tips
- Call 811 before you dig. It's free in the US and marks buried utility lines.
- Check property lines and HOA rules for height limits, setbacks and which side must face out.
- Set corner and end posts first, run a string line between them, then set line posts to the string.
- Crown the concrete at the top so water runs away from the post instead of pooling against it.