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.
Updated June 2026 · Free · No sign-up
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
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
Material and labor prices vary by region. See a localized estimate for a fence: