Fence calculator
Count the posts, rails and pickets for a straight wood fence run, and get its face area for stain or paint.
How to use this calculator
- Measure one straight run of fence, leaving out gate openings.
- Enter the fence height, post spacing and number of rails per section.
- Measure the actual width of a picket and the gap you want between pickets.
- Read the posts, rails and pickets, then repeat for each other straight run.
Count posts, rails and pickets for one run
A straight run with posts 8 ft apart is divided into sections. The number of sections is the length divided by the spacing, rounded up, and a run needs one more post than sections. Rails are the sections times the rails in each section.
Pickets fill the length of the run. Each picket takes up its own width plus the gap beside it, so the calculator divides the length by that total and rounds up. A board-on-board or shadowbox design overlaps pickets, so count those from your fence plan instead.
Where two runs meet at a corner, they share a post. Add the runs together and take one post off for each shared corner. The face area helps you estimate stain or paint for one side of the fence.
How the estimate works
Sections = fence length ÷ post spacing, rounded up. Posts = sections + 1. Rails = sections × rails per section. Pickets = fence length ÷ (picket width + gap), plus your allowance, rounded up.
Worked example
A 100 ft fence with posts 8 ft apart has 13 sections, so it needs 14 posts and 39 rails with 3 rails per section. Pickets 5.5 in wide with no gap need 219 pickets before any allowance.
Before you order
- Calculate each straight run separately. Runs that meet at a corner share a post, so take one post off the total for each shared corner.
- Gates change the count. Leave the gate width out of the fence length and add the gate hardware and posts separately.
- A nominal 1 × 6 picket is usually about 5.5 inches wide. Measure the pickets you plan to buy.
Common questions
How far apart should fence posts be?
Wood fences commonly use 6 to 8 ft between posts. Check local rules, the panel or rail length you are using and the wind load for your site.
How many rails does a fence need?
Many fences up to about 4 ft use two rails, and taller privacy fences often use three. Follow your fence plans or supplier advice.
How many pickets do I need for 100 feet of fence?
With 5.5 in pickets set edge to edge, 100 ft takes 219 pickets, or 230 with 5% extra. With a 2.5 in gap between pickets, each one takes up 8 in, so 100 ft needs 150, or 158 with 5% extra.