Skip to main content
CalcRafter
Decking & Fencing

Fence Calculator

How many posts, rails, and pickets a fence takes, at your post spacing and picket width, with an extra post counted for every gate opening in the line.

Enter your measurements
ft
ft
in
Results

Posts

21posts

Sections

19sections

Rails

57rails

Pickets

314pickets

Picket count assumes a 1/4 in gap, which gives a semi-privacy look. For full privacy, close that gap by nudging the picket width up slightly and the count will rise with it.

How the fence calculator works

A fence is three separate counts. Posts go in at regular intervals, rails span horizontally between them, and pickets are the vertical boards fixed to the rails. Each one is worked out on its own below.

Formula: sections = fence length ÷ post spacing, rounded up. Posts = sections + 1 + gates. Rails = sections × rails per section. Pickets = (fence length in inches) ÷ (picket width + gap), rounded up.

Setting posts in concrete instead of tamped gravel? Use the Concrete Calculator to work out how many bags each post hole needs.

Frequently asked questions

6 to 8 feet on center for residential wood fencing. Go to 6 for a tall privacy fence or anywhere the wind gets up, because a solid fence is a sail and the posts are what hold it. 8 feet is fine for open picket or rail, where the wind goes through.

2 per section up to about 4 feet tall, 3 per section on a 6-foot privacy fence. The third rail is not about strength so much as keeping long pickets from bowing out in the middle, which is what makes an old fence look wavy from down the street.

Only the posts. Each gate opening adds one extra post to the count, since a gate needs a post on both sides. Hinges, latches, and the gate frame itself are separate, and heavy gates want heavier hardware than the budget sets, so price those off your actual gate width.

Fence length in inches, divided by what one picket occupies, which is its width plus the gap beside it. The default assumes a 1/4 in gap. For a full privacy fence with no sightlines, nudge the picket width up slightly to close that gap and the count will rise to match.

More calculators

Browse all calculators