Free · posts, rails & pickets · any run length

Fence calculator

Work out the posts, sections, rails and pickets for a straight run from your fence length and style. It counts the parts — add posts for corners and gates, and size the footings for your local code.

Units
Total length of fence for one straight run.
centre to centre — measured from the middle of one post to the middle of the next, not the gap between them. It keeps spacing even however thick the posts are.. 8 ft is common.
2 for a low fence, 3 for a 6 ft privacy fence.
Set for a picket count. Leave blank for rail or privacy fencing.
0 for a solid privacy fence.
For trimming. 10% is typical.
This counts the posts, rails and pickets for one straight run — not gates, corners, bracing or footings. Corners and gate posts, end treatments and concrete depth depend on your layout and local code. Add posts for each corner and gate.

Result

Enter the fence length and post spacing. Results update as you type.

How this fence calculator works

A fence comes down to sections along the run, then posts, rails and pickets:

sections = round up (length ÷ spacing); posts = sections + 1
rails = sections × rails each; pickets = round up (length × (1 + waste) ÷ (picket width + gap))

Common spacing and rails

StylePost spacingRails
6 ft privacy8 ft3
4 ft picket8 ft2
Split rail8 ft2
Chain link10 ft1 top rail

What this does not do

It counts the parts for one straight run. It does not add posts for corners and gates, size the concrete footings, plan the gate hardware, or adjust for slopes and stepped panels. Add a post at each corner and either side of every gate, and set the footing depth and post size for your fence height, soil and local code.

How to estimate a fence

  1. Choose a fence style, or set your own spacing and rails.
  2. Enter the total run length.
  3. Adjust the post spacing and rails per section if needed.
  4. For a picket fence, enter the picket width and gap.
  5. Read the posts, sections, rails and pickets — then add posts for corners and gates.

Frequently asked questions

How many fence posts do I need?

Divide the run length by the post spacing and round up for the number of sections, then add one for the end post. A 100 ft run at 8 ft spacing is 13 sections, so 14 posts for one straight run — plus an extra post at each corner and gate. Enter your length above.

How far apart should fence posts be?

8 ft on centre is the most common spacing for wood fences; 6 ft gives a stiffer fence in wind or on slopes; chain link often goes up to 10 ft. Closer spacing means more posts. Set the spacing to your design.

How many rails per section?

Two rails suit a fence up to about 4 ft; three rails are usual for a 6 ft privacy fence so the boards do not cup. The calculator multiplies rails per section by the number of sections.

How many pickets do I need?

Divide the run length by the picket width plus the gap between pickets, add a waste allowance, and round up. Set the picket width and gap to get a picket count; leave the width blank for a rail or privacy fence sold by the panel.

Does this include corners, gates and footings?

No. It counts the parts for one straight run. Add a post at each corner and on each side of every gate, and size the concrete footings for your post depth and local code — a post calculator or the concrete calculator can help with the footings.

Related tools