Fence calculator: posts, rails, pickets and concrete

Calculate fence posts, rails, pickets and concrete bags for a wood privacy or picket fence.

Quick sizes:
ft
ft
in
in
$
Optional. Shows the total cost.

The numbers start with a worked example. Change any box and the result updates instantly. Your last entries are remembered on this device.

Fence posts

14

posts

Sections13
Rails39
Pickets219
Concrete (80 lb bags)28
Estimated cost$1,235

Estimate only. Check product labels and local codes. Updated December 2026.

How to use the fence calculator

A wood fence is posts, rails and pickets. Enter the total length and spacing and this fence calculator counts every piece plus the concrete for the post holes.

Enter your measurements in the boxes above. Every result updates as you type, and you can add a price to see the total cost. Use Copy result to save the numbers to your phone before you go to the store.

Formula

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

Worked example

With fence length 100 ft, post spacing 8 ft, picket width 5.5 in, gap between pickets 0 in, rails per section 3, concrete bags per post 2, you need 14 posts (sections: 13; rails: 39). With a price per section (materials) of $95.00, the estimated cost is $1,235.

Quick reference chart

Common sizes worked out with the same formula and the default settings above.

Fence length (8 ft spacing)PostsPickets
50 ft8110
100 ft14219
150 ft20328
200 ft26437
250 ft33546
300 ft39655

Tips before you buy

  • Add one extra post for every corner and two for each gate.
  • Post spacing of 6 to 8 ft is standard. Use 6 ft in windy areas.
  • Call 811 before digging to mark underground lines. It is free in the US.

Frequently asked questions

How many posts for a 100 ft fence?

With 8 ft spacing you need 13 sections and 14 posts, plus extras for corners and gates.

How many pickets per 8 ft section?

About 18 pickets 5.5 inches wide with no gap, or 16 with a 1/2 inch gap.

How deep should fence posts be?

At least one third of the post length, usually 2 to 3 ft, and below the frost line in cold climates.

Add this calculator to your website

Run a blog, a store or a contractor website? Paste this code to give your visitors this free fence calculator.

Fence Calculator by HatCalc – more free calculators →