A fence is four separate takeoffs, not one
People price a fence per foot and are then surprised by the bill, because a fence is four independent counts and only one of them scales cleanly with length.
Pickets scale with the run divided by the picket module — the picket width plus whatever gap you hold. Narrow pickets cost far more per foot of fence than wide ones for the same coverage, and they multiply the fastener count at the same time.
Posts scale with the run divided by the post spacing, plus one. That plus-one catches people: a 100 ft run at 8 ft spacing has 12.5 bays, which rounds up to 13 sections, which needs 14 posts — not 13, and certainly not 12. Add one more post for every corner, every change of direction, and each side of a gate that does not land on a line post.
Rails scale with the run times the number of rails, so a three-rail 100 ft fence takes 300 lineal feet of rail. That is often more lumber than the pickets by volume, and it is the line most often left off a quick estimate.
Concrete scales with the number of post holes and the volume of each. It is priced by the bag, and it is the item most likely to run short mid-afternoon, because a 10 in hole 30 in deep needs two 80 lb bags and most people budget one.
The four formulas, and the two places they go wrong
Pickets. N = ceil((R + g) ÷ (w + g)), with R the run in inches. The extra gap in the numerator exists because N pickets have only N − 1 gaps between them — there is no gap past the last one. Skip that correction and you under-count by a picket whenever the run lands just over a whole module. For a solid privacy fence the gap is zero and the formula collapses to run ÷ picket width.
Posts. sections = ceil(R ÷ s), posts = sections + 1 + extras. Rounding the section count up matters: it means the real post spacing comes out at or below the maximum you set, which is what you want structurally. A 100 ft run at 8 ft maximum gives 13 sections at 7.69 ft on centre, not 12 bays at 8.33 ft.
Rails. lineal feet = run × rails per section. Rails come in 8 ft lengths precisely because 8 ft is the traditional post bay, so a mismatch between your post spacing and the rail stock creates waste in every single bay. That is the strongest argument for sticking to 8 ft or 6 ft spacing.
Concrete. V = (πd²/4 − p²) × h ÷ 1728. The hole is a cylinder; the post inside it is a square prism; the concrete fills what is left. On a 4x4 (3.5 in actual, 12.25 in² of section) in a 10 in hole (78.54 in²), the post occupies 16% of the hole — about 0.21 ft³ over a 30 in depth, or a third of an 80 lb bag per post. Across 16 posts that is five bags you would otherwise have bought and not needed. Bags round up per hole, never across the job, because once mixed a part bag will not keep.
The two errors that dominate are forgetting the plus-one on the posts, and treating the hole as if the post were not in it. Both push in the same direction — one short on posts, one long on concrete.
Worked example: 100 ft of 6 ft privacy fence
You are running 100 ft of 6 ft cedar privacy fence in 1×6 boards (5.5 in actual), laid tight with no gap, on 4x4 posts at 8 ft on centre, with three rails per section, two corners, and 10 in holes 30 in deep.
- Picket module. 5.5 + 0 = 5.5 in.
- Run in inches. 100 × 12 = 1,200 in.
- Pickets. 1,200 ÷ 5.5 = 218.18, rounded up to 219 pickets. Those 219 boards span 219 × 5.5 = 1,204.5 in, so the last one is ripped by 4.5 in — or you open a 1/50 in gap at every joint and lose the rip entirely.
- Sections. 100 ÷ 8 = 12.5, rounded up to 13 sections, which sets the real spacing at 100 ÷ 13 = 7.69 ft on centre.
- Posts. 13 + 1 + 2 corners = 16 posts.
- Rails. 100 × 3 = 300 lineal ft, which is 38 rails at 8 ft.
- Fasteners. 219 pickets × 3 rails × 2 screws = 1,314 screws.
- Hole area. π × 10² ÷ 4 = 78.54 in². Post section: 3.5² = 12.25 in². Net: 66.29 in².
- Concrete per hole. 66.29 × 30 ÷ 1,728 = 1.151 ft³.
- Bags. 1.151 ÷ 0.60 = 1.92, rounded up to 2 bags per hole, so 16 × 2 = 32 bags of 80 lb.
- Picket and post cost at $3.50 and $14.00: 219 × 3.50 + 16 × 14.00 = 766.50 + 224.00 = $990.50, before rails, concrete and hardware.
Check the concrete a second way: 32 bags at 0.60 ft³ is 19.2 ft³, or 0.71 cubic yards. If you were ordering ready-mix instead of bags you would be at the minimum load charge, which is exactly why fences get built out of bags.
Reading the result: spacing, depth and the last picket
Check the real post spacing, not the one you typed. Rounding the section count up always tightens the spacing, so a 100 ft run at an 8 ft maximum lands at 7.69 ft. That is fine. What is not fine is the reverse mistake — dividing 100 by 8, getting 12.5 and building twelve bays at 8 ft 4 in with a short bay at the end. A short bay looks like a repair. If you want even bays, set the spacing so the run divides cleanly: 100 ft splits evenly into thirteen 7.69 ft bays, or twenty 5 ft bays, or ten 10 ft bays if the fence is light enough for it.
Hole depth is the number that decides whether the fence is still standing in ten years. Two rules of thumb govern it, and you take whichever is deeper: bury about one third of the post's total length, and get below the local frost depth. A 6 ft fence on an 8 ft post means 24 to 32 in in the ground. Frost depth is a local figure — a few inches in the Gulf states, 42 in or more across the northern plains and much of Canada — and your building department publishes it. A post set above the frost line will heave, and heaving is what pulls a fence out of line one winter at a time.
Decide how the last picket lands before you start. A run rarely divides into a whole number of pickets. Rip the last one, spread the difference across every gap, or start from the most visible end and let the rip land at the least visible corner. Spreading works well on a spaced picket fence — a 4.5 in surplus over 218 joints is only 0.02 in each and is invisible — and less well on a tight privacy fence where the gap is meant to be zero.
Do not read the cost as the whole job. The figure here covers pickets and posts. Rails, concrete, gate hardware, post caps, fasteners and finish are all real money, and on a typical privacy fence the pickets are only about half of the material bill.
Concrete per post hole for a 4x4 post
| Hole depth | 8 in hole | 10 in hole | 12 in hole |
|---|---|---|---|
| 24 in | 0.528 ft³ — 1 bag | 0.921 ft³ — 2 bags | 1.401 ft³ — 3 bags |
| 30 in | 0.660 ft³ — 2 bags | 1.151 ft³ — 2 bags | 1.751 ft³ — 3 bags |
| 36 in | 0.792 ft³ — 2 bags | 1.381 ft³ — 3 bags | 2.101 ft³ — 4 bags |
| 42 in | 0.924 ft³ — 2 bags | 1.611 ft³ — 3 bags | 2.451 ft³ — 5 bags |
A 6x6 post displaces 30.25 in² instead of 12.25 in², which removes roughly 0.31 ft³ from a 30 in hole. Use the calculator above rather than this table if you are setting 6x6 posts.
Permits, property lines and height
The International Residential Code exempts fences not over 7 ft high from a building permit in Section R105.2. That is a model-code exemption, not a blanket one: many municipalities amend it, and almost all of them regulate fence height, setback and appearance separately through zoning rather than through the building code — commonly 4 ft in a front yard and 6 ft at the rear.
Two things worth doing before you dig. Locate the property line from a survey rather than from the neighbour's shrubs, because a fence built over the line is a legal problem that concrete makes expensive. And call the national utility-locate service (811 in the United States) before any post hole; it is free, it is required in most jurisdictions, and a post auger through a gas service is a very bad afternoon.
Mistakes that leave you short
- Forgetting the plus-one post. Thirteen sections need fourteen posts. Then add one per corner and per gate side.
- Using nominal picket width. A 1x6 is 5.5 in, not 6 in. Using 6 in under-counts a 100 ft fence by 19 pickets.
- Ignoring the post inside the hole. The post displaces 12 to 30 in² of the hole's cross-section. Over 16 holes that is several bags of concrete.
- Setting posts above the frost line. Frost heave lifts posts a little each winter and never puts them back.
- Buying rails to match a spacing you did not use. Rails come in 8 ft lengths; a 7 ft bay wastes a foot of every rail unless you can splice over a post.
- Leaving no allowance for defects. Fence-grade pickets are the lowest grade a yard stocks. Buy 5% extra and cull as you go.
- Assuming a gate fits a standard bay. Gates need their own posts, and a gate opening is the finished opening, not the post spacing — subtract the hinge and latch gaps.
Related takeoffs and where the numbers overlap
Fence posts and deck posts are set the same way but sized differently. A deck post carries a real gravity load and its footing is designed from the tributary area and the soil's bearing capacity — that is the deck footing size calculator, and a fence post footing is not a substitute for it. A fence post carries almost no vertical load; its footing resists overturning from wind, which is why depth matters far more than diameter for a fence and the reverse is true for a deck.
If you are buying concrete by the bag for anything else on the same job, the concrete bag calculator converts a volume into bags at any bag size, and the sonotube column calculator handles formed cylindrical piers where the form, not the excavation, sets the diameter. For lumber priced by volume rather than by the piece, the board foot calculator converts a cut list into board feet.
Two neighbouring jobs use nearly identical arithmetic. A deck surface is pickets laid flat: same module, same round-up, same gap correction — see the deck board calculator. A guard rail is pickets stood up with a code limit on the gap rather than a stylistic one; the baluster spacing calculator divides a rail so that no 4 in sphere can pass. And if you want to reason about the surplus you carry across an entire job rather than item by item, the construction waste factor calculator does that.
Key terms
- Picket
- A vertical board fixed to the rails. Also called a fence board or pale. Estimated by the module — its width plus the gap.
- Line post
- A post in a straight run, as opposed to a corner, end, gate or terminal post. Only line posts are set by the spacing calculation.
- Rail (stringer)
- The horizontal member spanning between posts that the pickets fasten to. Normally two to four per section.
- Bay or section
- One span of fence between two adjacent posts.
- Frost depth
- The depth to which the ground freezes locally. Footings and fence posts set above it will be lifted by frost heave.
