A typical residential fence costs $15 to $45 per linear foot installed in 2026, which puts a fenced quarter-acre backyard somewhere in the $3,500 to $12,000 range depending on material and height. Fencing is priced by the running foot rather than by area, and that one detail trips up almost everyone the first time they try to budget for it.
The reason a fence quote varies so wildly isn't mystery markup — it's material and height, with gates and terrain as the wildcards. Once you know the price per foot for the style you want and you've measured your perimeter honestly, you can land within a few hundred dollars of the real number before a single contractor visits.
Fence cost per linear foot by material
| Fence type | Installed cost/ft | Typical lifespan | Privacy |
|---|---|---|---|
| Chain-link (galvanized) | $12–$25 | 15–20 yrs | None |
| Wood (pressure-treated picket) | $15–$30 | 15–20 yrs | Low–medium |
| Wood (cedar privacy) | $22–$40 | 20–25 yrs | High |
| Vinyl / PVC | $25–$45 | 25–30 yrs | High |
| Aluminum / ornamental | $28–$55 | 30+ yrs | None |
Height matters as much as material: jumping from a 4-foot to a 6-foot privacy fence adds roughly 30–50% more material per foot, because you're buying taller pickets and often a third horizontal rail. A 6-foot cedar privacy fence is the most-requested residential style, and it sits near the top of the wood range above.
Why fences are priced by the foot, not the square foot
A fence is essentially a long line, so its cost scales with perimeter length, not enclosed area. This has a counterintuitive consequence worth understanding before you budget: doubling your yard's area does not double the fence cost.
Here's why. A square 50 × 50 ft yard has a 200 ft perimeter. Quadruple the area to 100 × 100 ft, and the perimeter only doubles to 400 ft. Area grew 4× but fencing grew 2×. The math rewards compact, square layouts — a long skinny lot of the same area needs noticeably more fence than a square one.
What the per-foot price actually includes
When a calculator or contractor quotes you a price per foot, it bundles several components. Knowing them helps you sanity-check a quote and spot what's driving the cost:
| Component | Role | Share of cost |
|---|---|---|
| Posts | Set in concrete every 6–8 ft; the structural backbone. | ~20% |
| Pickets / panels | The visible fence face. | ~30% |
| Rails | Horizontal supports connecting posts. | ~12% |
| Concrete & hardware | Post footings, screws, brackets. | ~8% |
| Labor | Layout, digging, setting, assembly. | ~30% |
Posts are the part DIYers most often under-count. You need one at every corner, one at each gate, and intermediate posts spaced no more than 6–8 feet apart — plus a bag or two of concrete for each. The fence calculator handles this count automatically, including the awkward last section that's never a clean multiple of your spacing.
Before you price a fence
- Measure the actual run, not the lot line — subtract the house, gates, and any sides you're not fencing.
- Decide height first; it changes the per-foot price more than people expect.
- Locate property lines and call 811 to mark buried utilities before digging.
- Check your locale's height limits and any HOA rules — front-yard fences are often capped lower than back.
Gates, slopes, and the other cost surprises
The per-foot averages assume a straightforward, mostly flat run. A few things push beyond them:
- Gates — Each gate is a small project of its own: $150–$400 for a standard walk gate, more for a wide double gate that fits a mower or vehicle.
- Sloped ground — Fencing a hillside means either stepping panels down or racking them to follow the grade, both of which add labor.
- Rocky or clay soil — If post holes can't be dug easily, the labor line climbs fast.
- Old fence removal — Tearing out and hauling away the existing fence is usually a separate charge of a few dollars per foot.
A worked example
You want a 6-foot cedar privacy fence around three sides of a backyard. The two side runs are 60 ft each and the back is 75 ft, with one 4-ft walk gate.
- Total run: 60 + 60 + 75 = 195 linear feet
- Cedar privacy @ ~$32/ft installed: 195 × $32 = ~$6,240
- Add one walk gate: ~$300
- Planning total: ~$6,500, before any slope or soil adjustments.
Feed your real measurements into the fence calculator to convert that run into an exact post count, panel count, rail count, and concrete-bag estimate — the numbers you actually hand to the supply yard.
Which material is right for you?
Price is only half the decision. The other half is what you actually want the fence to do, and that's where the materials separate from one another. Here's the honest version of each, beyond the per-foot number.
Pressure-treated wood is the default for a reason: it's cheap, every lumberyard stocks it, and a handy homeowner can build it with ordinary tools. The catch is maintenance. Left bare, treated pine grays and can warp or cup within a few seasons. Plan on cleaning and re-sealing it every two to three years if you want it to stay looking sharp. If you're willing to do that work, it's the best value on the list.
Cedar costs more but earns it in two ways: the natural oils resist rot and insects without chemical treatment, and the wood stays straighter than pine as it ages. It still grays over time if you don't seal it, but many people like the weathered silver look and simply let it go. For a privacy fence you'll look at every day, the upgrade from pine to cedar is usually money well spent.
Vinyl flips the equation. You pay a lot up front, then essentially nothing afterward — an occasional hose-down is the entire maintenance program. It won't rot, won't need paint, and won't splinter. The downsides are the sticker shock and the fact that a hard impact can crack a panel in cold weather, and a cracked vinyl panel is replaced, not repaired. Over a 25-year horizon, though, vinyl often costs less than wood once you add up all the staining you skipped.
Aluminum and chain-link serve the security-and-containment end. Chain-link is the cheapest way to enclose a yard for kids or dogs, full stop, though nobody buys it for looks. Ornamental aluminum gives you the elegant wrought-iron appearance without the rust, and it's a common choice around pools because it meets most barrier codes while staying see-through.
Permits, property lines, and good-neighbor etiquette
The cheapest fencing mistake to avoid is the legal one. Many municipalities require a permit for fences above a certain height — often anything over 6 or 7 feet, and sometimes lower for front yards. A permit is usually inexpensive, but building without one can mean a fine and an order to tear the whole thing down, which is the most expensive outcome of all.
Property lines matter just as much. Putting a fence even a few inches over your neighbor's line can trigger a dispute that ends with the fence coming out. If you're not certain where the line runs, it's worth paying for a survey before you dig — far cheaper than relocating a finished fence. As a courtesy, the "good side" of a wood fence (the smooth face without exposed rails) traditionally faces outward toward the neighbor and the street; some local rules actually require it.
Finally, talk to your neighbor before you build along a shared boundary. They may be willing to split the cost of a fence that benefits you both, which can cut your bill in half on that run. Even if they don't chip in, a heads-up conversation prevents the kind of friction that makes a backyard project memorable for the wrong reasons.
Common questions about fence cost
What's the cheapest fence that still looks decent?
For pure budget, chain-link is hard to beat at $10–$20 per foot, and a black vinyl-coated version looks far better than bare galvanized while practically disappearing into a landscape. If you want a wood look on a budget, a treated-pine privacy fence runs less than cedar and, once it weathers gray or gets stained, holds up fine. The trap is going too cheap on posts — a fence is only as solid as what's set in the ground.
Who owns the fence between two properties?
If a fence sits directly on the property line, both neighbors typically share ownership and, in many places, the cost of upkeep. The polite and legally safer move is to talk to your neighbor before building, agree in writing on placement and cost-sharing, and have your line surveyed if there's any doubt. A fence built a few inches inside your own line avoids the whole question, at the cost of a sliver of yard.
How long does a fence last?
It varies widely by material: chain-link and vinyl can last 20–30 years or more, cedar 15–25, and treated pine 10–20 depending on climate and ground contact. Posts almost always fail before panels do, which is why setting them in concrete below the frost line is the single best thing you can do for longevity. Budget for the occasional post or panel repair rather than expecting a fence to be truly maintenance-free.
The bottom line
Plan on $15–$45 per linear foot for most residential fences in 2026, with chain-link at the low end and vinyl or ornamental aluminum at the top. Price by the running foot, measure your real perimeter, decide on height early, and add for gates and difficult terrain. Do that math up front and the contractor quotes will hold no surprises — you'll already know what the job should cost.