Fence Calculator
Plan your fence materials. Enter the total run, your post spacing, and the number of gates to get the posts and panels required, plus an estimated cost based on price per foot.
Your project
Estimate
Estimated installed cost
- Posts needed
- 21posts
- Panels / sections
- 19sections
Estimates are guidance only and exclude tax, labor, and site conditions unless stated. Confirm with a local pro.
How it's calculated
No black boxes — here is the exact math behind your estimate, so you can check it or adapt it for your own quote.
- 1
Sections = ⌈ length ÷ post spacing ⌉ - 2
Posts = sections + 1 + gates - 3
Cost = length × price per foot
Worked example
A 150 ft fence with 8 ft post spacing and 1 gate.
Inputs
- Fence length
- 150 ft
- Post spacing
- 8 ft
- Gates
- 1
- Price per foot
- 25 $/ft
Result
- Estimated installed cost
- $3,750.00
- Posts needed
- 21 posts
- Panels / sections
- 19 sections
Tools & materials for this project
As an Amazon Associate we may earn from qualifying purchases, at no extra cost to you.
- Post hole digger Dig clean, deep holes for fence posts.
- Fast-setting post concrete Set fence posts quickly without pre-mixing.
Compare local pros for a fence
An estimate gets you a budget. A few competing quotes get you the real price. Tell us about the job and we'll help you find vetted contractors nearby.
Fence cost by state
The calculator does the quantity math exactly. What it can't know is what a fair unit price looks like where you live — a fence runs 61% more in the priciest US market than the cheapest.
Fence cost in all 50 states + DC US average $25 per linear foot installed · regional averages, full ranked table, and typical project totals.