Fence cost guide · 2026

How much does a fence cost?

Installed prices per foot by material and height, straight from the price table our free fence estimator uses. No email wall, no sales calls.

Quick answer

A new fence costs about $16–$53 per foot installed. A typical 150 ft, 6 ft backyard fence with two gates runs about $4,200 in wood or $5,300 in vinyl.

Updated November 2026 · Prices are installed ballparks from our free estimator, not a contractor bid.

Fence cost per foot

Installed fence, per linear foot, by material and height. Taller fences need longer posts and more boards or panels.

Installed fence cost per linear foot by material and height
Material4 ft tall6 ft tall8 ft tallLifespan
Wood$24/ft$26/ft$28/ftAbout 15–20 years for pressure-treated pine, 20+ for cedar or redwood with upkeep
Vinyl$30/ft$33/ft$35/ftAbout 20–30+ years
Aluminum$34/ft$36/ft$39/ftAbout 30+ years
Wrought Iron$46/ft$49/ft$53/ft50+ years with regular painting
Chain Link$16/ft$17/ft$18/ftAbout 20–30 years for galvanized

Fence cost by length

Fence only, before gates, at each material's most common height.

Fence cost by length and material
Fence lengthWood (6 ft)Vinyl (6 ft)Aluminum (4 ft)Wrought Iron (5 ft)Chain Link (4 ft)
100 ft$2,600$3,300$3,400$4,800$1,600
150 ft$3,900$4,950$5,100$7,200$2,400
200 ft$5,200$6,600$6,800$9,600$3,200
300 ft$7,800$9,900$10,200$14,400$4,800

Gates and old fence removal

Fence gate and removal costs
ItemPrice
Walk gate (single)$100
Drive gate (double)$200
Tear out and haul away old fence$20/ft

Example: fencing a typical backyard

A 150 ft fence along the back and sides of a suburban lot, with a walk gate and a double drive gate.

6 ft wood privacy fence

150 ft of 6 ft fence
$3,900
Walk gate
$100
Double drive gate
$200
Estimated total
$4,200

Prices from our fence estimator's ballpark table. Local quotes vary.

The same backyard in each material
Same yard in…HeightEstimated total
Wood6 ft$4,200
Vinyl6 ft$5,250
Aluminum4 ft$5,400
Wrought Iron5 ft$7,500
Chain Link4 ft$2,700

Compare fence materials

What affects the cost of a fence

Length

Fences are priced by the linear foot, so the length of your fence line drives most of the cost. Our estimator measures it from the aerial view as you draw.

Material

A 6 ft vinyl fence costs about $7 more per foot than wood but never needs staining; chain link costs the least.

Height

Taller fences need longer, deeper-set posts and more material. Many cities cap back-yard fences at 6 ft and front-yard fences at 3–4 ft without a variance.

Gates

Every gate adds hardware and a reinforced post. Drive gates for cars, boats or RVs cost the most.

Ground and access

Slopes, rocky soil, tree roots and tight side yards slow installation. Removing an old fence adds to the bill too.

Location

Labor rates, permit fees and local codes (wind, frost depth, pool barriers) vary by city; our city guides show local prices.

Fence costs in your city

Local fence prices, the fences common in each city and why, and permit notes for 100 cities.

Fence cost FAQ

How much does a fence cost per foot?

Our installed ballparks for a 6 ft fence run from about $17 per foot for chain link and $26 for wood to $33 for vinyl and about $49 for wrought iron. Taller fences cost more per foot; gates and removing an old fence are extra.

How much does it cost to fence a backyard?

A typical backyard needs about 150 ft of fence. At 6 ft tall that's roughly $3,900 in wood or $4,950 in vinyl, plus gates. Draw your own fence line on our estimator for a number based on your yard.

What is the cheapest type of fence?

Chain link is the cheapest per foot. For privacy, a pressure-treated wood board fence is usually the most affordable option.

Do I need a permit to build a fence?

Often. Many cities require a permit for fences over a certain height (commonly 6 ft in back yards and 3–4 ft in front yards), and nearly all limit front-yard fence height and require fences near corners to stay low for visibility. HOAs often have their own rules on style and color. Check with your city and HOA before you build.

How do I know where my property line is?

Your plat or survey shows it. Property line markers (metal pins) are often buried at the corners. If you're not sure, hire a surveyor before you build; many fences are set a few inches inside the line to avoid disputes with neighbors.

Does a pool need a fence?

In most places, yes. Pool barrier codes based on the International Residential Code generally require at least a 4 ft barrier around a pool with self-closing, self-latching gates and limited gaps. Local rules vary, so check yours.

See what your fence would cost

Draw it on your own property and get an itemized price in about two minutes. Free.