How to measure
- Walk the fence line with a long tape or measuring wheel and total every straight stretch, including gate openings.
- Count the straight runs: each stretch between corners or ends. A fence along three sides of a yard is three runs.
- Decide on gates and their width. 3–4 ft for people, 10–12 ft (or a double gate) for vehicles.
- Choose post spacing: 8 ft suits most wood panels and 8 ft rails; 6 ft is stiffer in wind and common for vinyl.
How the fence calculation works
Sections = ceil(fence length ÷ post spacing) Posts = sections + runs + gates Infill = fence length − gate widths Panels = ceil(infill ÷ post spacing) Pickets = ceil(infill ÷ (picket width + gap)) Rails = ceil(infill ÷ post spacing) × rails per section Hole = ⌀ 3 × post width, depth ⅓ of fence height (min 24 in) Bags = posts × (hole volume − post volume) ÷ bag yield
A straight run of n sections has n + 1 posts. Each extra run starts a new line of posts, and each gate needs its own post on the far side so the hinge and latch posts aren't shared with a fence section.
Panels, pickets and rails cover the fence line minus the gate openings. Short end sections are cut from full panels or rails.
Post holes are about three times the post width — 10½ in for a 4×4 — and deep enough to bury a third of the height above ground, never less than 24 in. Concrete fills the hole around the post; bag counts use published yields of 0.375 cu ft for a 50 lb fast-setting bag and 0.6 cu ft for 80 lb.
Worked example
100 ft of 6 ft privacy fence in one run, 8 ft post spacing, one 4 ft gate, 3½ in pickets laid tight on 3 rails, 4×4 posts.
- Sections: 100 ÷ 8 = 12.5 → 13; posts: 13 + 1 + 1 gate = 15
- Infill: 100 − 4 = 96 ft = 1,152 in ÷ 3.5 = 329.1 → 330 pickets
- Rails: 96 ÷ 8 = 12 sections × 3 = 36 rails
- Holes: 10½ in × 24 in; concrete π × 5.25² × 24 − 3.5² × 24 = 1,784 cu in = 1.03 cu ft each
- Concrete: 15 × 1.03 = 15.5 cu ft ÷ 0.375 = 41.3 → 42 bags of 50 lb fast-setting
Buy 15 posts 8 ft long, 330 pickets, 36 rails, one gate and 42 bags of 50 lb fast-setting concrete.
Reading your result
The headline gives posts and infill — the two big items. Rails and gates are listed below, and concrete has its own table.
If the post count looks high, check the number of runs: each separate stretch adds an end post.
In cold climates the hole should reach below the frost line, which can be deeper than the rule of thumb. Enter that depth under Advanced options.
Assumptions
- Posts are set in concrete. Gravel under each post for drainage is not included.
- Post length = fence height + hole depth, rounded up to a stock length.
- Picket counts have no waste; buy about 5% extra for splits and knots.
- Hardware, fasteners, post caps and gate kits are not included.
Unit conversions use exact definitions (1 in = 25.4 mm, 1 US gal = 3.785 L). See the calculation methodology for rounding rules.
When to call a professional
- Fence height limits, setbacks, pool-barrier rules and permits vary by town and HOA. Check before you buy.
- Call 811 (or your local utility locator) before digging any post holes. Have the property line surveyed if you're building close to it.
Frequently asked questions
How many fence posts do I need for 100 feet?
At 8 ft spacing, 100 ÷ 8 = 12.5 → 13 sections, so 14 posts for one straight run, plus one per gate.
How deep should fence posts be?
About a third of the height above ground and at least 24 in — 2 ft for a 6 ft fence. Go below the frost line where the ground freezes.
How many bags of concrete per fence post?
For a 4×4 in a 10½ in hole 24 in deep, about 1 cu ft: roughly 3 bags of 50 lb fast-setting or 2 bags of 80 lb.
How many pickets do I need per 8 ft section?
With 3½ in pickets laid tight, 96 ÷ 3.5 = 27.4 → 28 pickets. With a 1½ in gap, 96 ÷ 5 = 19.2 → 20.