How much does it cost to install a fence in 2026?
Priced by this calculator on a 150-foot run with one walk-through gate, residential fences run from about $15 per linear foot installed (4 ft chain-link) up to about $96 (5 ft wrought iron or 6 ft composite) in 2026, and a typical 6 ft pressure-treated privacy fence costs $28-$52 per foot. Per linear foot, material is the biggest swing: 4 ft chain-link at $15-$37/lf is the cheap end, 5 ft wrought iron at $59-$96/lf the high end. How much fence you run still moves the total more than the material does — see what drives project costs. Those per-foot figures already include the posts and their concrete, the one gate, crew labor, equipment, the permit, the trip charge and contractor markup for that 150-foot run, so do not add those again. The table below prices separate jobs from the calculator’s presets, each at its own listed length and material.
What drives fence cost
- Material — 4 ft chain-link $15-$37/lf vs 5 ft wrought iron $59-$96/lf installed, on a 150-ft run with one gate.
- Height — 6 ft is the residential privacy standard. On the default job (150 ft of pressure-treated wood with one walk gate), a 4 ft fence comes out about 22% less than a 6 ft one, and an 8 ft fence about 33% more than a 6 ft one, because height moves both the material and the install labor.
- Posts and labor — one post every 8 ft + 4 corner/end posts, $9-$15 of concrete each. Setting them is part of the install labor: about 13-16 crew-hours per 100 ft for wood, vinyl or composite, 6-10 for chain-link.
- Gates — walk-through $150-$400 each, double-drive $400-$1,200, automatic $3,500-$6,000+ installed.
- Site conditions — sloped terrain adds $6-$10/lf; brush clearing $4-$6/lf; old-fence removal $5-$8/lf, each before markup.
- Region — California and New York labor 30-35% above national average.
Choosing the right fence material
Pressure-treated wood pine
$28-$52/lf installed at 6 ft. Cheapest wood option. Lasts 15-20 years with regular sealing or staining (typically every 1-3 years, depending on sun, weather and product). Boards may warp or split over time. Standard 6 ft dog-ear privacy panels are widely available.
Cedar
$34-$64/lf installed at 6 ft. Naturally rot-resistant and insect-repellent. Ages to silver-gray; stain to keep warm tone. 20-30 year lifespan. Common in board-on-board, shadowbox, and split-rail styles.
Vinyl / PVC
$47-$74/lf installed at 6 ft. Zero maintenance — no painting, sealing, or staining ever. 25-30+ year lifespan. White is most common; tan and gray available. Brittle in extreme cold; can crack.
Aluminum
$34-$67/lf installed at 5 ft. Powder-coated aluminum tubes; ornamental look. Mostly decorative (not great privacy). Long lifespan, no maintenance.
Chain-link
$15-$37/lf installed at 4 ft. Cheapest residential option. Galvanized steel mesh on metal posts. 4-6 ft heights typical. Vinyl-coated black or green available. Functional, not pretty.
Wrought iron
$59-$96/lf installed at 5 ft. Heavy steel ornamental fencing; security plus aesthetic. 50+ year lifespan with rust touch-ups. Common around pools and estates.
Composite
$53-$96/lf installed at 6 ft. Mix of recycled wood and plastic. Looks like wood but doesn't rot. 20-30 year lifespan.
Frequently asked questions
How much does it cost to install a fence in 2026?
Priced by this calculator on a 150-foot run with one walk-through gate, most residential fences run from about $15 per linear foot installed (4 ft chain-link) up to about $96 (5 ft wrought iron or 6 ft composite). Chain-link (4 ft) is cheapest at $15-$37/lf. Pressure-treated wood privacy (6 ft) runs $28-$52/lf, cedar $34-$64/lf, vinyl $47-$74/lf, aluminum (5 ft) $34-$67/lf and wrought iron (5 ft) $59-$96/lf.
Do I need a permit to build a fence?
Most municipalities require fence permits. Permit fees range from $25 to $150. Front-yard fences are typically limited to 3-4 ft, side and back yards 6-8 ft. Always check with your local building department before digging post holes.
What's the cheapest fence material?
Chain-link at $15-$37 per linear foot installed (4 ft, on a 150-ft run with one gate) is the cheapest residential option. Pressure-treated wood at $28-$52/lf is next. Aluminum (5 ft) runs $34-$67/lf, vinyl $47-$74/lf and composite $53-$96/lf.
How long does a fence last?
Pressure-treated wood: 15-20 years. Cedar: 20-30. Vinyl: 25-30+. Aluminum: 30-50. Chain-link: 20-30. Wrought iron: 50+ with maintenance.
How deep should fence posts be set?
2.5 ft deep for 6 ft fences in stable soil; 3 ft for 8 ft+ fences or in frost-line regions (must extend below frost depth). Set in concrete with a 4-6 in gravel base for drainage.
Can I put a fence on my property line?
Many owners set a fence a few inches to a foot inside the line, and some towns and HOAs require a setback; the rules vary, so check yours before you dig. A fresh boundary survey is wise if you're not sure where your line is; HomeGuide (January 2026) lists $300-$900 for one on up to half an acre. Disputes with neighbors over fence placement are common and expensive.
How much does a gate add to the cost?
In this calculator a walk-through (pedestrian) gate is $150-$400 installed. A double drive gate (vehicles) is $400-$1,200. An automatic gate with opener is $3,500-$6,000+. Material matches your fence.
Should I DIY a fence?
For chain-link or simple PT wood under 100 lf on flat ground — yes. In DIY mode, this calculator's default 150 ft pressure-treated job comes to about 53-58% less than the installed estimate; switch the form to DIY to see which lines it keeps. For longer runs, slopes, or harder materials (vinyl, aluminum, wrought iron), the labor savings often aren't worth the time and tool rental.
Why does the calculator show a price range?
Fence prices vary by region, season, contractor, and material brand. The calculator adds up the low and high ends separately, from each line item’s low and high rate, so the range carries that spread instead of a single guess.