Fence Calculator

Enter your fence length, post spacing and picket size to get the number of posts, rails, pickets and concrete bags for a wood picket or privacy fence.

Runs in your browser; nothing you type is sent anywhere. · Updated

How to use the fence calculator

  1. Enter the total length in feet, minus any gate openings.
  2. Choose post spacing: 8 ft is standard for wood; 6 ft is stiffer and suits heavy or tall fences.
  3. Set rails per section: 2 for a 4 ft fence, 3 for a 6 ft privacy fence.
  4. Enter picket width and gap. A 1×6 picket is actually 5½″ wide. Use 0 gap for privacy.
  5. Add extra posts for corners, ends and gates.

The fence formulas

  • Sections = length ÷ post spacing, rounded up
  • Posts = sections + 1 (+ extra for corners and gates)
  • Rails = sections × rails per section
  • Pickets = length × 12 ÷ (picket width + gap)

Example: 150 ft at 8 ft spacing with 3 rails and 5½″ pickets, no gap: 19 sections, 20 posts, 57 rails and 328 pickets.

Post depth and concrete

A common rule is to set posts about one-third of their height in the ground, and below your local frost line. Many installers use roughly two 50 lb bags of fast-setting concrete per post. Your hole size and soil change that.

Call 811 before you dig. It's the free US number that marks buried utility lines.

Before you build

  • Check property lines, HOA rules and local permits; many towns limit fence height and require a setback.
  • Pressure-treated posts rated for ground contact last much longer.
  • Consider the finished side facing your neighbors; some codes require it.

Frequently asked questions

How many fence posts do I need for 100 feet?

At 8 ft spacing, 13 sections and 14 posts for a straight run, plus extra posts for corners and gates.

How many pickets for an 8 ft section?

With 5½″ pickets and no gap, 18 pickets (96 ÷ 5.5 = 17.5, rounded up).

How far apart should fence posts be?

6–8 ft for wood fences. Closer spacing makes a sturdier fence.