Fence Calculator: Posts, Rails and Boards
Enter the length, post spacing and gates. Get the posts, sections, rails and boards to order, with the counting rules shown so you can match them to your layout.
Quick answer
Divide the fence length, less any gate openings, by the post spacing and round up to get sections. An open run needs one more post than sections, and each gate adds two posts. A 100 foot run with one 4 foot gate at 8 foot spacing is 12 sections and 15 posts.
Posts to order
15
- Fence run (gates taken out)
- 96 ft
- Sections
- 12
- Line posts
- 13
- Gate posts
- 2
- Rails
- 36
- Boards
- 210
Open runs need one more post than sections; closed loops need as many posts as sections; each gate adds two posts. Where a gate post doubles as a section end post the true count is lower, by up to two per gate, so treat this as an ordering count. Corners that fall between spacing marks can add a post, so count each straight run separately on layouts with many corners.
Opens the free invoice maker with this as the first line. Add your rate and download the PDF.
How the post count works
- Sections are the fence length, less gates, divided by the post spacing, rounded up
- An open run has a post at each end, so posts are sections plus one
- A closed loop returns to its first post, so posts equal sections
- Every gate adds two gate posts, one on each side of the opening
Why the count can run high, and how to check it
Installers lay out fences differently. If a gate post also serves as the end post of a section, the true count is lower, by up to two posts per gate. Corners that fall between spacing marks can add a post. This calculator uses one clear convention so the count is on the safe side for ordering. On a layout with many corners and gates, count each straight run separately and add the results.
A worked example
A 100 foot open run with one 4 foot gate has 96 feet of fence. At 8 foot spacing that is 12 sections, so 13 line posts, plus 2 gate posts, for 15 posts. With 3 rails per section that is 36 rails. For a privacy fence with 5.5 inch boards and no gap, 96 feet is 1,152 inches, which is 209.5 boards, so you order 210.
What this does not include
- Concrete or gravel for the post holes, which depends on the soil and the post size
- Hardware, gate latches and hinges
- Post caps, trim and stain or sealer
- Permits, property line surveys and site prep such as clearing or grading
Fence Calculator questions
01How do I calculate how many fence posts I need?
Divide the fence length, less any gates, by the post spacing and round up to get sections. An open run needs one more post than sections, a closed loop needs as many posts as sections, and each gate adds two posts.
02How many fence posts do I need for 100 feet?
At 8 foot spacing with no gates, an open run of 100 feet is 13 sections and 14 posts. At 6 foot spacing it is 17 sections and 18 posts.
03What is the right spacing for fence posts?
Six to eight feet is common. Eight feet is typical for wood privacy fences, and closer spacing is stronger. Follow the fence manufacturer's guidance and local requirements.
04How many boards do I need for a privacy fence?
Divide the run in inches by the board width plus any gap and round up. A 100 foot run with 5.5 inch boards and no gap needs about 219 boards.
05How many posts does a gate need?
Each gate needs two posts, one on the hinge side and one on the latch side. This calculator adds two per gate and notes the count can run slightly high where a gate post also ends a section.
06How do corners affect the post count?
A corner post replaces a line post when the corner falls on a spacing mark. When it does not, the section ends short and an extra post may be needed, so on layouts with many corners count each straight run on its own.
07How many rails does a fence section need?
Many wood privacy fences use two or three horizontal rails per section, and taller fences often use three. It depends on the design, so check your plans.
08Can I put the result on an invoice?
Yes. Use Add to an invoice to open the free invoice maker with the posts, the installed length and the boards as lines. Enter your rates and download the PDF.
09How many pickets do I need for a picket fence?
Divide the fence run in inches by the picket width plus the gap between pickets and round up. For 96 feet with 3.5 inch pickets and a 2 inch gap, that is 1,152 divided by 5.5, or 210 pickets. Enter your own widths in the calculator.
Ready when you are
From posts to a signed estimate
Send the fence estimate for online approval, then invoice with a deposit credited and a payment link. Free for 14 days.