How the fence calculator works
Enter the total fence run and your target post spacing. The calculator rounds the number of fence sections up to the next whole section and adds one end post.
Formula
Sections = ceiling(fence length ÷ post spacing)
Posts = sections + 1
Example
For 100 ft of fence at 8 ft spacing: 100 ÷ 8 = 12.5, so you need 13 sections and 14 posts.
Assumptions and material notes
This estimate assumes a straight fence run with evenly spaced posts and no special corner, gate, terminal, or end-post requirements. Add posts for gates and changes in direction as needed.
How to use the fence calculator
- Measure each straight side of the fence and add the lengths together for a total, or calculate each side separately for a more accurate post count.
- Enter the post spacing you plan to use. Many wood fences use 8 ft or less; chain link and vinyl systems often follow the manufacturer's panel or rail length.
- Select Calculate to see the number of sections and posts.
More examples
A 150 ft fence at 8 ft spacing needs 150 ÷ 8 = 18.75, so 19 sections and 20 posts. The same fence at 6 ft spacing needs 25 sections and 26 posts. Closer spacing makes a stiffer fence but adds posts, holes, and concrete.
Adding posts for corners and gates
The calculator counts one straight run. For a fence with several sides, each side has its own end posts, so calculate the sides separately and add the results, counting each shared corner post only once. Gates usually need their own heavier posts on each side of the opening. A three-sided backyard fence with one gate can easily need several more posts than a single straight run of the same length.
Next steps
Once you know the posts and sections, estimate the rest of the fence with the Fence Rail Calculator, Fence Picket Calculator, and Fence Post Concrete Calculator, or get everything at once with the Privacy Fence Materials Calculator.
Frequently asked questions
Does the calculator include gate posts?
No. Add posts required by your gate hardware and layout separately.
Why does the calculator round sections up?
You cannot install a fraction of a fence bay, so the run is divided into whole sections.
Can I use decimal measurements?
Yes. Decimal feet are accepted.
Should I allow for waste?
Yes. Posts, rails, boards, fasteners, and other materials may require extra quantity for cuts, damage, gates, and layout changes.
What about gates or unusual sections?
Measure gate openings and special sections separately and confirm the post layout before ordering materials.
Can I enter metric sizes?
Yes. Switch the fence length and post spacing to meters.
Related calculators and guide
How to Calculate Fence Materials · How to Calculate Fence Posts and Post Spacing · Fence Post Spacing Calculator · Fence Post Concrete Calculator · All Fence Calculators
Disclaimer: Estimates are for planning purposes only. Actual material requirements may vary based on site conditions, material specifications, installation methods, waste, and local requirements. Always verify quantities with your supplier or qualified professional before purchasing materials.