Clicky

The complete fence cost guide

I wrote this because the first time I priced a fence I got three contractor quotes ranging from $4,800 to $14,200 for the same 180 linear feet of 6ft cedar. Same length. Same material. Same yard. Nearly triple the spread. One guy refused to itemize and another sent a line-by-line PDF that showed me exactly what I was paying for. Guess who got the job.

This is the guide I wish I'd had when I was staring at those quotes. If you just want a number right now, the FenceCalc home page will get you there in about 30 seconds. This page is the reasoning behind that number, plus the specifics that let you read a contractor bid without getting hosed.

What actually drives fence cost

Two things. Materials and labor. Roughly 45/55 split for a standard wood or vinyl job, though it swings. For a chain-link install labor climbs closer to 60 percent because the material is so cheap. For an aluminum or composite job materials can hit 55+ percent of the total. Know which side of the split you're paying for and the whole quote-reading thing gets a lot easier.

Within materials, a 150ft wood fence breaks down roughly like this: pickets $450-$700, posts $280-$400, rails $180-$260, concrete $90-$150 (twelve 50lb bags of Quikrete from Home Depot), fasteners $60-$100 (Simpson Strong-Tie stainless deck screws or hot-dip galvanized nails), gate hardware $45-$90, tax and delivery. Call it $1,100 to $1,700 in materials before you've set a single post. That's before you ever pay a contractor.

Labor is where the quote swing happens. A crew in the Texas Hill Country might install a 150ft wood fence for $1,800. A crew in San Jose might quote $4,400 for the same work. Same job. Different zip code. This is why the calculator gives you a range instead of a single number. A 15 percent cushion is the minimum you should plan for.

Material comparison

Five materials cover 95 percent of residential fence work. Here's how they actually stack up, from someone who's priced or built with all of them.

Pressure-treated pine. Cheapest wood option. Usually Southern yellow pine green-tinted from ACQ treatment. Around $17 to $20 per linear foot installed at 6ft height. Pros: cheap, available at every Home Depot and Lowe's, easy to work with. Cons: warps if you don't stain it within the first year, the green tint looks terrible until you paint or stain, twists as it dries. Typical use case: rental properties, starter homes, anywhere you care more about "fence exists" than "fence looks nice."

Western Red Cedar. The upgrade most people want but don't always need. Around $26 to $34 per foot installed. Pros: naturally rot-resistant, beautiful reddish tone, ages gracefully to silver-gray, doesn't twist as much as PT pine. Cons: double the price, softer wood means easier to dent, and if you don't seal it, Pacific Northwest rain will still rot the pickets from the inside in 8 to 10 years. Typical use case: anyone who looks at the fence every day and doesn't want to stare at green-tinted PT.

Vinyl (PVC). Popular because it's the "set it and forget it" fence. Around $28 to $38 per foot installed. Brands I see most: CertainTeed, WamBam, Freedom Fence, Barrette Outdoor Living. Pros: no staining ever, no rot, looks clean for 20+ years. Cons: cracks in deep cold (my neighbor in Billings had a vinyl gate split in half during the January 2024 freeze), yellows slightly over a decade, and if you hit it with a riding mower you're replacing a whole panel not a picket.

Chain-link. The budget champion. Around $10 to $14 per foot installed at 4ft height. Pros: cheapest fence money can buy, quick install, kids and dogs can't knock it down. Cons: no privacy unless you weave in privacy slats (more on that below), rusts at the base in humid climates, looks exactly like what it is. Typical use case: dog runs, back-of-property boundaries, rentals where the landlord doesn't care how it looks.

Aluminum ornamental. The "wrought iron but not wrought iron" option. Around $32 to $42 per foot installed. Pros: looks like iron, weighs nothing, never rusts, takes minimal maintenance, great for pool enclosures because code often requires it anyway. Cons: zero privacy (it's a picket-style open fence), pricier than vinyl, and installers who really know aluminum are harder to find outside suburban markets.

Composite (recycled wood/plastic blend). Trex Fencing and similar. Around $35 to $45 per foot installed. Pros: looks like wood, doesn't rot, doesn't warp, 25-year warranties are standard. Cons: expensive, limited color selection, and the panels are heavy which slows install. Typical use case: new-construction backyards where the homeowner is already paying for a nicer build and wants to match a Trex deck.

Height matters, and it matters a lot

Going from 4ft to 6ft is a 35 percent cost bump. 4ft to 8ft nearly doubles it. Here's why.

Taller fences need longer posts. 6ft fence post = 8ft post, 2ft buried. 8ft fence post = 10ft post, 2-3ft buried. Longer posts cost more. They also need more concrete to anchor, so you're burning through more Quikrete or Sakrete per hole. Pickets are more expensive per foot of height, not because of the wood itself but because the pickets you buy are usually precut to match a common fence height.

The real multiplier: permits. Most cities let a 6ft back-yard fence through without asking questions. Front-yard, side-yard, or anything over 6ft usually triggers a permit review. Some HOAs cap fences at 5ft. Check before you spec.

Privacy-wise, 6ft blocks sightlines from neighbors in most yards. 8ft blocks sightlines from a second-story window. Unless you have a specific second-story neighbor problem, 6ft is the sweet spot for privacy and cost.

Gate planning

Every fence needs at least one gate. Budget realistically.

A wood walk gate (3ft wide, matches the fence) is around $275 to $400 installed. Vinyl walk gate runs $400 to $800 because vinyl gates warp without steel inserts. Chain-link walk gate is $150 to $250. Aluminum $500 to $1,200. Double-wide drive gates, the kind you need for a mower or trailer, are $1,000 to $3,000 depending on material and whether you want a motorized opener.

Two tips I learned the hard way. First, oversize your gate frame. A 3ft opening needs at least a 36.5 inch actual gate so it swings freely. Second, spend the extra $40 on real gate hardware. The $12 gate hinge set at Lowe's will sag within a year. Get the heavy-duty Simpson Strong-Tie Z-Max hinges or the black-finish kits from Tractor Supply. Much longer life.

Terrain and prep

Slope and rocky soil each add to cost. Here's the math the calculator uses: flat 1.00x, slope 1.15x, rocky 1.25x. You can stack them; the research shows some contractors apply both on the same project.

Slope means the contractor either "racks" the panels (lets them pivot with the grade) or "steps" them (each panel starts where the last ended, creating a staircase effect). Racking looks cleaner but takes longer. Stepping leaves gaps at the bottom that deer and small dogs love.

Rocky soil is the bigger cost driver. A Wolverine post hole digger on flat sandy loam in Austin is a different experience than the same tool in Colorado Front Range decomposed granite. Rent a two-man gas auger from Home Depot or Sunbelt Rentals if you're DIY; budget the contractor's extra time if you're not. Tree roots on a boundary line are the worst. Sometimes you have to move a post six inches rather than cut a root that feeds a neighbor's 40-year oak.

DIY vs contractor, the real gap

DIY saves roughly 55 to 65 percent. The calculator uses 0.35x for DIY, meaning your total drops to about 35 percent of the contractor price, because you're buying materials and renting tools but not paying labor.

What you're trading. Two full weekends for 150 feet of fence with two people. A day for layout and string-lining. A day for setting posts (Quikrete sets in 40 minutes but your back won't recover as fast). A day for rails and pickets. A half day for gates and cleanup. Call it 30 to 40 labor hours for a 150ft run.

When DIY makes sense: flat ground, clear property line, straightforward rectangle, under 300 linear feet, you own or are willing to rent a DeWalt impact and a Bosch driver, and you have a friend who'll lift posts with you. When it doesn't: rocky ground, disputed property lines, slope over 10 percent, over 300 feet, or you can't commit two consecutive weekends. The project tends to stretch into a full summer if you only work on it Saturday mornings.

Permits and HOA reality

Permits are non-negotiable if your city requires them. Most cities require a permit for fences over 6ft. Some require one for fences in the front setback regardless of height. A few (Austin, Houston, parts of Florida) require one for any fence. Cost is usually $50 to $200. Process is a single online form and a 1-3 week wait.

HOAs are the sneakier gatekeeper. Even if the city green-lights an 8ft composite fence, your HOA can reject it because it doesn't match the "approved materials list." Always check the HOA CC&R document before you spec anything. Get written approval, not a verbal "yeah that's fine from Bob on the architectural committee." Bob moves away, the new committee doesn't know about your conversation, and suddenly you have a violation notice.

The fence you don't permit is the fence your neighbor complains about. The fence you don't HOA-approve is the fence you tear out in year three.

The formula behind this calculator

No hidden logic. Here's exactly what it's doing:

  • Base per-foot price by material: wood $17.50, vinyl $30, chain-link $11, aluminum $35, composite $37.
  • Height multiplier: 4ft = 1.00, 6ft = 1.35, 8ft = 1.75.
  • Terrain multiplier: flat = 1.00, slope = 1.15, rocky = 1.25.
  • Install multiplier: contractor = 1.00, DIY = 0.35 (materials + tool rental only, no labor).
  • Gate costs: matched to material, $250 (chain-link) up to $850 (composite).
  • Permit: flat $100 if toggled on.
  • Removal: $3 per linear foot if replacing an existing fence.
  • Display range: total × 0.85 to total × 1.15, a 15 percent cushion each direction.

That's the whole thing. The numbers are reverse-engineered from Homewyse's published line-item breakdowns, Fixr's 2025 material price table, Bob Vila's national averages, and cross-checked against HomeAdvisor, Angi, and Thumbtack. Real quotes will still vary; the calculator is built to tell you whether your real quote is fair, padded, or suspiciously cheap.

Common overspends

Decorative post caps. A $14 copper cap on every post adds $400 to a 30-post fence. They look nice. You notice them for a month. Then you don't.

Pre-stained pickets. The factory stain fades unevenly, and you still have to restain in two years anyway. Buy raw pickets, let them dry a full month after install, then stain with a quality deck stain.

Too many gates. Plan your actual traffic patterns. One walk gate, one drive gate if you need trailer access. More than that is usually ego.

Wrong hardware. Cheap hinges sag. Cheap screws rust. Cheap gate latches fail in a winter. The $200 you save on hardware turns into a $600 rebuild in year three.

Go get quotes

Run your numbers through the FenceCalc home page, write the range down, then get three real contractor quotes. Walk the property with each estimator. Ask for an itemized bid that separates materials, labor, gates, and prep work. The one who refuses to itemize is the one you're not hiring. Questions this guide didn't answer? The FAQ covers 15 more, and the blog goes deep on specific scenarios.