How to Use the Fence Calculator
- Enter the length of each side of the fence. Click + Add side for more sides.
- Enter the fence height, post spacing, number of gates and gate width.
- Enter your picket width and the gap between pickets. Use a gap of 0 for a solid privacy fence.
- Check the post hole size and add prices to see the total material cost.
Fence Material Formulas
Example: 150 ft Wood Privacy Fence
Fence: 150 ft, 6 ft high, posts every 8 ft, one 4 ft gate
Length minus gate: 146 ft, so 146 ÷ 8 = 18.25, rounded up to 19 sections
Posts: 19 + 1 + 1 gate = 21 posts; Rails: 19 × 3 = 57 rails
Pickets: 146 × 12 ÷ 6 = 292, plus 5% = 307 pickets
Concrete: 21 holes, 10 in wide × 24 in deep, about 52 bags of 50 lb fast-setting concrete
Fence Post Spacing and Depth Guide
| Fence height | Typical post spacing | Rails per section |
|---|---|---|
| 3–4 ft | 6–8 ft | 2 |
| 5–6 ft | 6–8 ft | 3 |
| 8 ft | 6 ft (often closer) | 3–4 |
A common rule is to set posts about one third of their length in the ground, and at least below the frost line in cold climates. Holes are often about three times the post width, so roughly 10–12 inches for a 4×4 post. Check local building codes, HOA rules and your property line before you dig, and call 811 to locate buried utilities.
Tips Before You Build a Fence
- Buy a few extra pickets and one or two spare posts. Wood often has defects you will want to skip.
- Gate posts carry more load, so many builders use larger posts (such as 6×6) and deeper holes at gates.
- Pouring more concrete? Use the concrete calculator or the concrete bag calculator.
- Building a deck too? Try the deck calculator and board foot calculator.
Fence Calculator FAQs
How many fence posts do I need?
Divide the fence length (minus gate openings) by the post spacing and round up to get the number of sections. Add 1 post to close the run and 1 extra post for each gate. A 150 ft fence with posts every 8 ft and one 4 ft gate needs about 21 posts.
How far apart should fence posts be?
Most wood fences have posts 6–8 feet apart, measured center to center. Taller fences, windy areas and heavy materials usually need closer spacing.
How many pickets do I need per foot of fence?
Divide 12 inches by the picket width plus the gap. With 5.5 inch pickets and a 0.5 inch gap, each picket covers 6 inches, so you need 2 pickets per foot of fence.
How much concrete do I need per fence post?
It depends on the hole size. A 10 inch wide, 24 inch deep hole with a 4×4 post needs about 0.92 cubic feet of concrete, or roughly 2.5 bags of 50 lb fast-setting concrete. Check the yield printed on the bag you buy.
How deep should fence posts be?
A common rule is to bury about one third of the post length, for example about 2–3 feet for a 6 ft fence. In cold climates, posts should go below the frost line. Always follow local building codes.