Fence Calculator

Estimate how many posts, rails, and pickets you need for a fence based on its total length and post spacing.

ft
ft

Most wood fences space posts 6–8 ft apart.

rails

2 rails for short fences, 3 for standard privacy fences, 4+ for taller fences.

Covers cutting waste and damaged rail pieces. 5% works for most standard runs.

How this is calculated

The fence run is divided into equal sections based on your post spacing, rounded up to the nearest whole section, which means the built fence may run slightly longer than the exact input length. Posts equal the number of sections plus one (for both end posts). Rails are the number of sections multiplied by rails per section. We add your selected waste percentage to the rail count to cover cutting waste and damaged pieces; pickets are not estimated since spacing and width vary widely by style.

Example calculation

A 150 ft fence with posts every 8 ft needs 19 sections, 20 posts, and 57 rails (3 per section). With 5% waste, order 60 rails.

Related calculators

Frequently asked questions

Wood fence posts are typically spaced 6–8 ft apart. Vinyl and chain-link fences often use manufacturer-specified spacing, commonly 8 ft, based on panel or rail length.