Free calculator — no sign-up
Fence Cost Calculator
Fences are priced by the linear foot, but the material makes a big difference — and so do gates and posts. Enter your fence length and this calculator gives you the total, the cost per foot and the post count.

Your numbers
Your result
Estimated total cost$2,750.00fence + gates, installed
- Fence onlybefore gates
- $2,500.00
- Cost per linear footat this height
- $25.00
- Posts neededone post every 8 ft, plus one end post
- 14
Results update as you type. They are estimates for planning — see the disclaimer below.
How it works
Fence cost = length (ft) × rate per linear foot × (height ÷ 6), because rates are quoted for a standard 6 ft fence. Gates add about $250 each. Posts = ceil(length ÷ 8) + 1, the standard 6–8 ft post spacing. Rates are installed ranges from HomeAdvisor / RSMeans: chain-link about $18/ft, wood about $25/ft, metal about $35/ft, vinyl about $40/ft.
How to use it
- Measure the total fence length in feet — walk the line, do not guess from the lot size.
- Pick the fence height: 6 ft is standard for privacy, 4 ft for a front yard.
- Choose the material and count the gates.
- Read the total, the per-foot cost and the post count.
Worked example
A 100 ft wood fence, 6 ft high, with 1 gate.
Step 1 — height factor: 6 ÷ 6 = 1.00, so the rate stays $25 per foot. Step 2 — fence cost: 100 × $25 × 1.00 = $2,500. Step 3 — gate: 1 × $250 = $250. Step 4 — total: $2,500 + $250 = $2,750. Step 5 — posts: 100 ÷ 8 = 12.5, rounded up to 13, plus 1 end post = 14 posts.
Result: About $2,750 total — $25 per foot, 14 posts.
Try it yourself: enter the example numbers above and check you get the same answer.
What your result means
At $2,750, this is a mid-range wood privacy fence — chain-link would have been about $2,050 and vinyl about $4,250 for the same run. Wood is the cheapest privacy option but needs staining or sealing every few years; vinyl costs more up front and almost nothing after. Before you order, check the property line, local height rules and whether a permit is needed — a fence in the wrong place is far more expensive than a fence quoted wrong.
Frequently asked questions
How much does a fence cost per foot?
Installed, roughly $18 per linear foot for chain-link, $25 for wood, $35 for metal and $40 for vinyl, at 6 ft high. Taller fences cost proportionally more, and gates add about $250 each. A 100 ft wood fence at 6 ft with one gate runs about $2,750.
How many fence posts do I need?
One every 6–8 feet, plus one end post. For 100 ft at 8 ft spacing: 100 ÷ 8 = 12.5, rounded up to 13, plus 1 = 14 posts. Closer spacing (6 ft) is stronger in wind and for heavier panels, but uses more posts and concrete.
Do I need a permit for a fence?
It depends on your area — many places require a permit for fences over 6 ft, or for any fence on a corner lot, and some homeowners' associations have their own rules on height, material and colour. Check with your local planning office and your HOA before buying materials.
Wood vs vinyl fence — which is cheaper?
Wood is cheaper up front (about $25/ft installed vs $40/ft for vinyl) but needs staining or sealing every 2–3 years and lasts 15–20 years. Vinyl costs more to install but needs almost no maintenance and lasts 25–30 years, so it can be cheaper over its whole life.
How do I measure fence length?
Walk the fence line with a tape or a measuring wheel, following every turn — do not estimate from the lot dimensions, since the fence rarely follows the boundary in a straight rectangle. Add the lengths of all runs together, and measure gate openings separately so they are not double-counted.
Guides
Related calculators
Home & DIYRoof Cost CalculatorRoof squares and replacement cost, by material.Calculate now
ConstructionConcrete CalculatorCubic yards, cubic feet, bags, weight and cost — for slabs, patios and footings.Calculate now
Home & DIYGravel CalculatorCubic yards and tons of gravel, by stone type.Calculate now
Home & DIYAsphalt Driveway CalculatorTons of asphalt and cost for a driveway.Calculate now
Home & DIYGrass Seed CalculatorPounds of seed for a new lawn or overseed.Calculate nowMore in Home & DIY calculators or all calculators.
