Fence Calculator

Enter fence length, post spacing and picket size to see how many posts, rails and pickets you need for a wood picket or privacy fence.

How to calculate it

Divide the fence length by the post spacing and round up to get the number of sections. You need one more post than sections. Rails = sections × rails per section. For pickets, divide the fence length in inches by the picket width plus the gap.

Formulas: posts = ⌈length ÷ spacing⌉ + 1 · pickets = length × 12 ÷ (picket width + gap)

This assumes one straight run. Add one extra post for each corner, end and gate.

Example

A 100 ft privacy fence, posts every 8 ft, 3 rails, 5.5 inch pickets with no gap:

Tips before you buy

Frequently asked questions

How far apart should fence posts be?

6 to 8 feet is standard for wood fences. 8 ft matches common rail lengths. Use closer spacing in windy areas or for heavy privacy fences.

How many pickets do I need for 100 feet of fence?

With 5.5 inch pickets and no gap, about 219 pickets. With 3.5 inch pickets and a 0.5 inch gap, 300 pickets.

How many rails does a fence need?

Two rails is typical for fences up to about 4 ft. Three rails for 5–6 ft privacy fences.