Home & DIY · Cost
Fence Cost Calculator
Estimate what a new fence should cost — by length, material, height, gates, and region. You get a low-to-high price range with the fence run, gates, and cost per linear foot broken out.
Inputs
Result
Adjust the inputs to see your result.
Recommended gear
Recommended for this job
As an Amazon Associate, we earn from qualifying purchases. Prices and availability are set by the vendor.
- View on Amazon (opens in a new tab)
Fast-setting fence post concrete
Pour-in-the-hole fast-setting concrete sets posts in minutes without mixing — the single biggest time-saver on a fence job.
- View on Amazon (opens in a new tab)
Fence post level
A two- or three-sided post level straps to the post and keeps every one plumb — the difference between a straight fence and a wavy one.
- View on Amazon (opens in a new tab)
Gate hardware kit
Heavy-duty hinges, a latch, and a drop rod sized for your gate — cheap insurance against a sagging gate that won't close.
How the estimate works
Fence contractors price by the linear foot of fence run — a single per-foot number that already blends posts, panels, rails, hardware, and labor. The calculator takes your total length (typed directly, or worked out from your yard's length and width), multiplies it by a national per-foot range for your material, then scales for height (a 3- or 4-foot fence is lighter and cheaper to set than an 8-foot privacy wall) and for the ground it sits on.
Each material has its own installed range — from about $10–$25 per foot for chain-link up to $35–$70 for composite and $30–$100 for wrought iron. Gates are added separately (roughly $150–$600 each) because they need hinges, a latch, and a wider, reinforced opening. If you're replacing a fence, removal is added at about $3–$10 per foot. Finally your region scales the whole job up or down. The result is an honest low-to-high range, because real fence bids vary that much by terrain and crew.
The formula
Under the hood the estimate is straightforward, and you can sanity-check any bid against it:
Fence run = length × per-foot rate × height factor × terrain factor
Total = (fence run + gates + removal) × region factor
Height factor runs from 0.75 (a 3-foot fence) to 1.25 (8-foot). Terrain factor is 1.0 on flat ground, 1.15 on a slope, and 1.35 on rocky or root-filled sites. Region factor is 0.85 in lower-cost rural areas, 1.0 at the national average, and 1.25 in high-cost metros. Gates and removal are priced per unit and per foot respectively, then scaled by region but not by height or terrain.
Worked example
Say you're fencing a back yard: 150 linear feet of 6-foot wood privacy fence, 1 gate, on flat ground, at the national average, keeping your old fence. Wood privacy runs $20–$45 per foot:
- Fence run, low: 150 ft × $20 × 1.0 (height) × 1.0 (terrain) = $3,000
- Fence run, high: 150 ft × $45 × 1.0 × 1.0 = $6,750
- One gate: $150 (low) to $600 (high)
- Total range: $3,150 – $7,350, midpoint ≈ $5,250
Now make it harder: same fence on a rocky slope (×1.35) in a high-cost metro (×1.25), and tear out the old fence ($3–$10/ft). The low end becomes (150 × $20 × 1.35 + $150 + 150 × $3) × 1.25 ≈ $5,800, and the high end climbs past $13,000 — the same length of fence, nearly double the price. That spread is exactly why we show a range and why terrain and region belong in the math, not just the fine print.
Material comparison
| Material | Installed $/linear ft | Lifespan | Upkeep | Privacy |
|---|---|---|---|---|
| Chain-link | $10–$25 | 20+ yrs | Very low | None |
| Wood — picket | $15–$35 | 15–20 yrs | High (stain/seal) | Low |
| Wood — privacy | $20–$45 | 15–20 yrs | High (stain/seal) | Full |
| Vinyl / PVC | $25–$55 | 25–40 yrs | Very low (rinse) | Full |
| Aluminum / ornamental | $30–$60 | 40–60 yrs | None | None |
| Composite | $35–$70 | 25–40 yrs | Very low | Full |
| Wrought iron | $30–$100 | 50+ yrs | Medium (rust/paint) | None |
Read the table by job, not by sticker price. For a dog run or a back boundary, chain-link gives you the most enclosed yard per dollar. For a private back yard you want vinyl or a wood privacy fence. For curb appeal on a front yard, ornamental aluminum or wrought iron — open, elegant, and effectively maintenance-free in the case of aluminum.
What drives the price
- Material is the biggest lever — composite or ornamental aluminum can cost 3× a chain-link fence of the same length.
- Height adds material and labor: an 8-foot fence needs deeper posts and more panel per foot than a 4-foot one.
- Gates are pricey per unit — a single drive gate can cost as much as 30–50 feet of fence.
- Terrain and region swing labor sharply: sloped, rocky, or root-filled ground and high-cost metros push you toward the top of the range.
Common mistakes
- Not calling 811 first. The free utility locate is mandatory; hitting a gas or power line is dangerous and, in some states, a felony.
- Skipping the survey. Building inches over the property line is the #1 neighbor lawsuit — and you may have to tear it out.
- Forgetting the permit. Most cities require one over 6 feet or in the front yard; an HOA may also dictate style and color.
- Taking one bid. Fence bids for the same run routinely vary 30–40%. Always get three.
DIY vs. hiring a pro
Roughly half of a fence bid is labor, so doing it yourself can cut the price 40–50% — a $5,000 contractor job can land near $2,500–$3,000 in materials. But a fence is more physical and more exacting than it looks: every post must be plumb, set below the frost line, and on a consistent line, or the whole run looks wavy and gates won't hang square. Chain-link and pre-built wood or vinyl panels are the most DIY-friendly. Leave these to a pro: long runs on a slope, anything needing rock drilling, automated driveway gates, and custom welded steel. Whoever does the work, calling 811 for a utility locate is mandatory and free — and on rocky or sloped ground, the labor premium often makes a pro the better value anyway.
When this calculator is the wrong tool
Use a pro quote for: retaining-wall or grade work, automated/electric driveway gates, custom welded steel, or commercial security fencing. This tool estimates a standard residential fence; for tough sites, set the terrain to sloped or rocky and still confirm with an on-site bid.
Sources & how we keep this current
The per-linear-foot ranges, gate pricing, and removal costs here are national averages compiled from public 2024–2026 home-improvement cost guides — primarily Angi and HomeAdvisor, cross-checked against Forbes Home and Fixr. Lifespan and maintenance figures draw on manufacturer guidance and trade sources such as the American Fence Association. We re-check the ranges a few times a year and update the underlying data file (last verified June 2026) when published averages move. These are planning numbers, not a quote: regional labor rates, soil and terrain, material availability, and your specific layout all swing the real bid, so always get two or three written estimates from licensed local fence contractors before you commit.
Related guide
Read the reasoning behind the numbers
FAQ