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
| Style | Post spacing | Rails |
|---|---|---|
| 6 ft privacy | 8 ft | 3 |
| 4 ft picket | 8 ft | 2 |
| Split rail | 8 ft | 2 |
| Chain link | 10 ft | 1 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
- Choose a fence style, or set your own spacing and rails.
- Enter the total run length.
- Adjust the post spacing and rails per section if needed.
- For a picket fence, enter the picket width and gap.
- 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.