Fence Calculator — Posts, Rails, Boards & Concrete

Enter your run length, spacing and board pitch: get the full material list including gate posts and the concrete to set every post.

Quick answer

A 100 ft privacy fence with one 4-ft gate, posts every 8 ft needs 16 posts, 24 rails, 210 boards and 32 bags of concrete.

Fence calculator

Posts, rails, boards and the concrete to set them — gate width is deducted from the board run.

Units
Fence run
ft
Boards
Gates & post holes
ft
ft
Prices (optional)
16
posts (incl. gate posts)
210
boards (rounded up)
32
concrete bags
Rail sections × rails
Board run (after gates)
Concrete per post

Concrete assumes one hole per post at your diameter and depth, filled with 80 lb bags (0.6 cu ft each). Gravel at the hole bottom is not counted.

How the fence calculator works

A fence is four shopping lists in one: posts, rails, boards and concrete. The calculator builds each list from your run length, post spacing, board pitch (board width plus gap) and hole size — and deducts gate openings from the board run while adding the two extra posts every gate needs.

The math, step by step

posts = (length ÷ spacing, rounded up) + 1 + 2 per gate
boards = board run in inches ÷ (board width + gap), rounded up
concrete = posts × hole volume ÷ 0.6 cu ft per 80 lb bag, rounded up per post
  • Board run: total length minus gate widths — gates are frames, not boards.
  • Rails: sections × rails per section, computed on the gated run.
  • Hole volume: π × (hole diameter ÷ 24)² × depth in ft (diameter in inches).
  • A 10 in hole, 2 ft deep holds about 1.09 cu ft — two 80 lb bags per post.
posts every 8 ft board run 100 ft ÷ 8 ft + closing post + 2 gate posts → 16 posts; 1,152 in ÷ 5.5 in pitch → 210 boards
Posts set the rhythm; boards fill it at their own pitch.

A six-inch layer of gravel in the hole bottom drains water away from the post. Set posts one-third of their exposed height into the ground — a 6 ft fence wants 2 ft holes — and below your local frost line where the ground freezes, or frost will heave posts out over a few winters. Six inches of gravel in the hole bottom drains water away from the post; the concrete volume above it is what this calculator counts.

Worked example: a 150 ft backyard privacy fence

  1. Posts. 150 ÷ 8 = 18.75 → 19 spans → 19 + 1 = 20 line posts, plus 2 gate posts = 22 posts.
  2. Rails. Board run 150 − 4 ft gate = 146 ft → 146 ÷ 8 = 18.25 → 19 sections × 2 rails = 38 rails (2×4×8 treated).
  3. Boards. 146 ft = 1,752 in ÷ 5.5 in pitch (5.5 in boards, no gap) = 318.5 → buy 319 boards of 1×6×6.
  4. Concrete. 10 in holes at 2 ft: 1.09 cu ft → 2 bags per post × 22 = 44 bags of 80 lb mix.
  5. Cost. At $5.50 per board, $16 per post, $8 per rail, $6 per bag: 292 × 5.50 = $1,606 + 22 × 16 = $352 + 38 × 8 = $304 + 44 × 6 = $264 ≈ $2,526 in materials. Installed quotes for the same fence often run $6,000–$9,000.

Quick reference tables

BoardsBoards per 100 ft of fence

Board count per 100 ft run by width and gap
BoardGapPitchBoards / 100 ft
1×6 (5.5 in)None5.5 in219
1×6 (5.5 in)1/2 in6.0 in200
1×8 (7.25 in)None7.25 in166
1×4 (3.5 in)1 in4.5 in267
Concrete per post by hole size (2 ft deep, 80 lb bags)
Hole diameterVolume80 lb bags
8 in0.70 cu ft2
10 in1.09 cu ft2
12 in1.57 cu ft3
Post spacing guidance
SituationSpacingNotes
Standard privacy fence8 ftWorks for 4–6 ft height in sheltered yards
High-wind or long open runs6 ftMore posts, less sail area per panel
Heavy gates nearby6 ftGate posts take real load; closer posts stiffen the line
Steel post systemsper systemFollow the manufacturer's spacing

Setting the line before the first hole

Every fence problem traces back to the string line. Mark the exact run with stakes and mason's line — not "roughly where the old fence was" — and confirm property corners from your survey or plat before digging, not after. Mark each post position on the line with paint or flags, measuring spacing from post center to post center, and shift a gate position so it lands clear of the line rather than mid-span. Call 811 before any digging: utility strikes are expensive, dangerous and entirely avoidable. Then set corner posts first, run a string between them at the finished height, and hang every intermediate post line off that string — a fence set one post at a time wanders like a snake. Concrete sets fast enough to ruin alignment; brace each post plumb in two directions before the mix stiffens, and check the line's top edge from three feet away, eye-level, after every fifth post.

What a fence costs

DIY materials for a 6 ft treated-wood privacy fence run roughly $14–$28 per linear foot: 1×6 pickets $4–$8 each, 4×4 posts $12–$25, 2×4 rails $6–$12, and 80 lb concrete $5–$7 a bag. Vinyl panels run higher per foot; chain-link lower. Hired installation typically lands at $35–$70 per linear foot for wood privacy — the labor is in the holes, not the wood.

Check property lines and call 811 before digging — utilities marked free, strikes not. Prices checked November 2026; lumber especially moves with the season. And check local rules: many towns cap fence height at 6 ft (4 ft in front yards) and some require permits or neighbor sign-off.

What the cost line assumes

Every quantity in the cost row is already a whole number: posts, rails, boards and concrete bags are counted in pieces you can actually buy, so no extra rounding hides in the money figure. The concrete line assumes a two-bag hole for a standard 4×4 post at your chosen depth. Lumber is the wildcard — treated prices swing by region and season — so treat the material cost as a floor for the conversation with your supplier, not a quote.

Frequently asked questions

How many fence posts do I need for 100 feet?

At 8-foot spacing: 100 ÷ 8 = 12.5, rounded up to 13 spans, plus one closing post and two gate posts for one gate = 16 posts. Rails then count the panel sections after the gate is subtracted.

How deep should fence posts be?

One-third of the exposed height: a 6 ft fence wants posts buried 2 ft. Below the local frost line wherever ground freezes, or frost will jack posts out of level within a few winters.

Should a 6 ft fence have 2 or 3 rails?

Two rails is the standard for 6 ft privacy fences. Add the third mid-rail if boards are thin (1×4), the span exceeds 8 ft, or pets push against the bottom rail.

How many boards for a 100 ft privacy fence?

210 boards of 1×6 (5.5 in) with no gap across the 96-ft panel run, or 192 with a 1/2-inch gap (6-in pitch). The calculator uses the board-plus-gap pitch either way.

How much concrete per fence post?

Two 80 lb bags for a 10-inch, 2-foot-deep hole (about 1.09 cu ft). A 12-inch hole takes 3 bags; an 8-inch hole still takes 2. Drop 6 inches of gravel in the bottom first.

How far apart should fence posts be?

8 feet is standard for wood privacy fencing. Tighten to 6 feet on exposed, windy runs, for tall fences, or where gates will slam daily. Closer spacing costs posts but kills sag.

Do gate openings need extra posts?

Yes — every gate needs its own hinge and latch post, two per gate. The calculator adds them and subtracts the gate width from the board run.

How much does a 100 ft privacy fence cost?

DIY materials: roughly $1,400–$2,800 (posts, rails, 200+ boards, concrete). Installed: $3,500–$7,000 depending on region and terrain. Materials are the small half — the holes are the work.

Assumptions and limitations

  • Post count adds 1 post per fence line (the last corner post) plus 2 per gate.
  • Concrete assumes holes filled to grade with 80 lb bags; gravel base and post volume inside the hole are not deducted.
  • Gates themselves (frames, hinges, latches, lumber) are not included — deduct the gate width, add the posts.
  • Boards assume full-length runs without stepping for grade; sloped yards need more boards.
  • Prices are planning ranges checked November 2026, not quotes.

Sources

  • Quikrete® product data — 80 lb bag yield (0.60 cu ft).
  • American Wood Council / fence industry guides — post depth and spacing practice.
  • Big-box retailer listings — lumber and concrete pricing, checked November 2026.

Last reviewed: November 20, 2026, by the YardMath Editorial Team.