National averages for fence installation hover around $3,000 to $9,000 for a typical quarter-acre suburban yard, but that range hides huge variation by material, height, and labor market. How much does it cost to build a fence depends on six measurable factors: linear footage, material, height, terrain, gates, and whether you DIY or hire. After pricing more than 40 fence projects in five different states, the realistic 2026 numbers are clear, and so are the places where homeowners overspend.
- Average Cost Per Linear Foot by Material
- Measuring Your Yard Correctly
- The Real Material Cost Breakdown
- DIY vs. Hiring a Contractor
- What Drives the Price Up
- Gate Costs Often Surprise Homeowners
- Permits, HOAs, and Property Lines
- Long-Term Cost: Maintenance and Replacement
- Sample Total Costs for Common Yard Sizes
Average Cost Per Linear Foot by Material
The fastest way to budget is by linear foot installed, including materials and standard labor. 2026 contractor pricing in most US metros:
- Chain link, 4 ft — $12 to $20 per linear foot
- Chain link, 6 ft — $18 to $30 per linear foot
- Wood privacy, 6 ft pressure-treated pine — $25 to $40 per linear foot
- Wood privacy, 6 ft cedar — $35 to $55 per linear foot
- Vinyl privacy, 6 ft — $30 to $60 per linear foot
- Aluminum or steel ornamental, 4 ft — $30 to $55 per linear foot
- Composite (Trex Seclusions), 6 ft — $50 to $90 per linear foot
- Wrought iron, 4 ft — $40 to $130 per linear foot
Multiply by your perimeter to get a quick estimate. A 200-foot cedar privacy fence comes in at $7,000 to $11,000 installed.
Measuring Your Yard Correctly
Pace the perimeter or measure with a long tape, then add 10 percent for waste, gate openings, and corner adjustments. A square 0.25-acre lot has 100 feet on each side, or 400 linear feet of perimeter. Subtract any sides bordered by an existing fence in good condition.
Order a property survey if your lot lines are unclear. A formal survey runs $400 to $800 and prevents the expensive disaster of building partly on a neighbor’s property — a mistake that frequently ends with a $3,000 fence being torn down within the first year.
The Real Material Cost Breakdown
For a 200-foot, 6-foot pressure-treated pine privacy fence, expect raw material costs around:
- 4x4x8 pressure-treated posts: $14 each x 26 posts = $364
- 2x4x8 stringer rails: $8 each x 78 rails = $624
- 1x6x6 pickets: $4.50 each x 400 pickets = $1,800
- Concrete mix (60-lb bags): $5.50 each x 52 bags = $286
- Galvanized screws and nails: $120
- Stain or sealer: $180
- One 4-foot gate kit: $150
Total materials: about $3,520. Add $3,500 to $5,500 in labor if hiring a contractor, or your time for DIY.
DIY vs. Hiring a Contractor
Labor accounts for 40 to 60 percent of a professional fence install. DIYing a 200-foot wood fence saves $3,000 to $6,000 but takes 40 to 80 hours of work spread across multiple weekends. The rough breakdown of skill required:
Chain link is the most DIY-friendly. Pre-fab fabric and tension wire systems make a straight 100-foot run achievable in a weekend by two people with a post-hole digger.
Wood privacy is moderate difficulty. Setting plumb posts in straight lines with consistent spacing is harder than it looks, and uneven terrain compounds every error.
Vinyl, aluminum, and ornamental iron are best left to pros. Vinyl panels are unforgiving of post-spacing errors and the connection hardware is brittle in cold weather.
What Drives the Price Up
The base estimates assume flat ground, no obstructions, easy soil, and standard heights. Each of these adds significant cost:
- Sloped lots — 15 to 30 percent surcharge for stepped or racked panels
- Rocky or clay soil — $5 to $15 per post for hand-digging vs. auger
- Removing old fence — $3 to $8 per linear foot
- Tree roots in fence line — $25 to $75 per affected post
- Permits — $50 to $400 depending on city
- HOA-required materials — often 20 to 50 percent more than DIY choices
- Custom heights above 6 feet — adds 30 to 60 percent
Get three contractor bids on any fence over 100 linear feet. Prices for the identical scope routinely vary by 40 percent within the same metro.
Gate Costs Often Surprise Homeowners
A standard 4-foot single gate adds $150 to $400 in materials and $200 to $500 in labor. A 12-foot double drive gate runs $600 to $2,500 depending on material and hardware.
Heavy-duty hinges and a self-closing latch are worth the upgrade. Cheap hinges sag within a year, dragging the gate on the ground and ruining the bottom rail. Plan to spend $40 to $120 on quality gate hardware, not the $15 builder-grade hinges that come in many kits.
Permits, HOAs, and Property Lines
Most US municipalities require a permit for any fence over 6 feet tall, and many require permits for any fence at all. Permit fees run $50 to $400 with inspection. HOAs frequently dictate height, color, material, and even style — get written approval before ordering materials.
Set the fence 6 to 12 inches inside your property line rather than on it. Building on the line creates legal complications about maintenance, repairs, and future replacement. Document the agreement in writing if you and the neighbor split the cost of a shared fence.
Long-Term Cost: Maintenance and Replacement
Sticker price is only part of the lifetime cost. Realistic maintenance and lifespan numbers:
- Pressure-treated pine — stain every 3 years at $0.50/sq ft, lasts 15 to 20 years
- Cedar — seal every 4 years, lasts 20 to 30 years
- Vinyl — power-wash annually, lasts 25 to 40 years
- Chain link — virtually maintenance free, lasts 20 to 30 years
- Aluminum — touch-up paint every 7 to 10 years, lasts 30+ years
- Wrought iron — sand and paint every 5 years, lasts 50+ years with care
Cedar and vinyl have the best lifetime cost when annual maintenance is factored in. Pressure-treated pine looks attractive on the install bid but gets expensive over 20 years.
Sample Total Costs for Common Yard Sizes
Realistic 2026 installed pricing for a 6-foot privacy fence by yard size:
- Small yard, 100 ft fenced — $2,500 to $5,500 wood, $3,000 to $6,000 vinyl
- Quarter-acre, 200 ft fenced — $5,000 to $11,000 wood, $6,000 to $12,000 vinyl
- Half-acre, 300 ft fenced — $7,500 to $16,500 wood, $9,000 to $18,000 vinyl
- Full acre, 600 ft fenced — $15,000 to $33,000 wood, $18,000 to $36,000 vinyl
Lock in pricing during the off-season — November through February — for 10 to 20 percent discounts from contractors trying to keep crews busy. Spring and early summer are the worst times to negotiate.