How Much Does It Cost to Build a Fence?
$2,000 to $12,000 is the average cost to build a fence, with most homeowners spending $3,000 to $6,000 for a standard 150-linear-foot privacy fence. Per linear foot, fence installation runs $15 to $50 depending on the material, height, and your local labor market. A basic 4-foot chain link fence around a small backyard might cost as little as $1,500, while a 6-foot cedar privacy fence around a large lot can easily exceed $8,000.
Fence costs break down roughly 40% materials and 60% labor. The material you choose has the biggest impact on price. Pressure-treated pine is the most popular budget option, while vinyl and composite fencing cost more upfront but require almost no maintenance over their 20- to 30-year lifespan. If you are planning a broader outdoor renovation, fence installation pairs well with deck construction ($4,000 to $12,000) or driveway paving ($2,500 to $7,000) to create a finished look.
Fence Cost by Material
$10 to $60 per linear foot is the range for fence materials, with chain link at the low end and aluminum or composite at the top. Material choice drives the bulk of your fence budget. Here is what each option costs per linear foot for a standard 6-foot privacy or security fence, including labor and materials.
| Material | Cost per Linear Foot (6 ft) | 150 ft Total |
|---|---|---|
| Wood (pressure treated) | $17 - $30 | $2,500 - $4,500 |
| Wood (cedar) | $23 - $40 | $3,500 - $6,000 |
| Vinyl / PVC | $28 - $50 | $4,200 - $7,500 |
| Chain link | $10 - $20 | $1,500 - $3,000 |
| Aluminum / steel | $33 - $60 | $5,000 - $9,000 |
| Composite | $33 - $53 | $5,000 - $8,000 |
Fence Cost by Height
$12 to $40 per linear foot covers the range from a 4-foot fence to an 8-foot fence in pressure-treated wood. Taller fences use more material and require deeper post holes, which increases both material and labor costs. A 4-foot fence costs roughly 30% less than a 6-foot fence, while an 8-foot fence costs about 35% more.
| Height | Cost per Linear Foot (PT Wood) | Typical Use |
|---|---|---|
| 4 feet | $12 - $21 | Front yards, decorative boundaries, pool enclosures |
| 6 feet | $17 - $30 | Standard privacy fence, backyards, pet containment |
| 8 feet | $23 - $40 | Maximum privacy, noise reduction, commercial properties |
Factors That Affect Fence Installation Cost
$2,000 to $12,000 is the typical range, and several key factors determine where your project falls within it.
Fence Length
A typical 150-linear-foot perimeter fence costs $2,550 to $9,000 depending on material, while a 200-foot fence runs $3,400 to $12,000. Total linear footage is the primary cost driver. The average residential fence runs 100 to 200 linear feet. Longer runs bring the per-foot cost down slightly because setup and mobilization costs are spread over more footage. Always measure your property line carefully or have the contractor verify with a survey before ordering materials.
Material and Style
Within each material category, style variations affect price. A basic stockade fence (flat-topped, board-on-board) is cheaper than a shadowbox or dog-ear pattern. For vinyl, a solid privacy panel costs more than a semi-private lattice-top design. Ornamental aluminum with decorative finials runs at the top of the price range.
Gates
Gates are priced separately from fence panels and add $150 to $800 to the project total. A single walk gate (3 to 4 feet wide) runs $150 to $400, while a double drive gate (10 to 12 feet wide, for vehicle access) costs $300 to $800. Most fence projects include at least one walk gate.
Terrain and Soil Conditions
Flat, clear ground is easiest to work with. Slopes require stepped or racked panels, which add labor. Rocky soil makes post-hole digging significantly harder and may require auger upgrades or even jackhammering. Heavy clay or waterlogged soil can also slow installation. Expect a 10% to 25% cost increase for challenging terrain.
Old Fence Removal
Removing an existing fence adds $3 to $5 per linear foot to the project, or roughly $450 to $750 for a 150-foot fence. Costs are higher for concrete-set posts that need to be dug out. Some contractors include removal in their quote if you are hiring them for the new installation.
Permits and Property Lines
Most municipalities require a building permit for new fences, typically costing $20 to $400. Your contractor should pull the permit, but verify this is included in the quote. Building a fence on or over a property line can create legal disputes, so a property survey ($300 to $800) may be worth the investment if boundary lines are unclear.
Fence Material Comparison
$10 to $60 per linear foot is the installed cost range across fence materials, and each one comes with different trade-offs for durability, maintenance, and appearance.
Pressure-Treated Wood
Pressure-treated pine is the most popular fencing material in the U.S., accounting for roughly half of all residential fence installations. It costs $17 to $30 per linear foot installed for a 6-foot fence. It is affordable, widely available, and easy to repair. The downside is maintenance: it needs staining or sealing every 2 to 3 years and typically lasts 15 to 20 years before boards start warping or rotting.
Cedar Wood
Cedar costs $23 to $40 per linear foot installed and offers natural resistance to rot, insects, and moisture without chemical treatment. It weathers to an attractive silver-gray if left untreated, or you can stain it to maintain the warm reddish-brown tone. Cedar fences last 15 to 25 years with minimal maintenance.
Vinyl / PVC
Vinyl fencing costs $28 to $50 per linear foot installed. It never needs painting or staining, will not rot or splinter, and comes in a variety of styles from privacy panels to picket. Vinyl lasts 20 to 30 years with just occasional washing. The higher upfront cost is offset by zero maintenance expense over the fence's life.
Chain Link
Chain link is the budget champion at $10 to $20 per linear foot installed. It is durable, low maintenance, and lasts 15 to 25 years. Chain link works well for pet containment, security, and property delineation. For added privacy, you can install slats or privacy mesh for an extra $3 to $5 per foot. Our chain link fence cost calculator ($10 to $25 per linear foot) breaks down pricing by height, gauge, and coating options. If you are fencing a large area and need to clear brush or trees first, check our land clearing cost calculator for those estimates.
Aluminum and Steel
Metal fencing costs $33 to $60 per linear foot installed. Aluminum is lightweight, rust-resistant, and popular for ornamental and pool fencing. Steel (wrought iron style) is heavier and stronger but needs rust protection. Both last 20 to 30+ years. Metal fences provide security without blocking sight lines, which makes them a good choice for front yards and pool enclosures.
Composite
Composite fencing costs $33 to $53 per linear foot installed. Made from a blend of wood fibers and plastic, it offers the look of wood with the low maintenance of vinyl. Composite resists fading, cracking, and insect damage. It is heavier than vinyl, which gives it a more substantial feel but also makes installation slightly more labor-intensive.
How to Save Money on Fence Installation
$300 to $3,000 in potential savings is achievable with the right approach. These tips can help reduce your total cost.
- Get at least 3 quotes. Fence contractor pricing varies widely by region and season. Three written estimates help you benchmark a fair price.
- Build in the off-season. Late fall and winter (outside of frozen-ground climates) are slower months for fence companies, and you may get 10% to 15% better pricing.
- Choose pressure-treated wood. If budget is tight, PT pine is the lowest-cost option that still provides full privacy. You can always stain it to look like cedar.
- Share fence costs with a neighbor. If the fence sits on a shared property line, splitting the cost is common and can cut your expense in half.
- Skip unnecessary upgrades. Decorative post caps, lattice toppers, and custom gate hardware look nice but add 10% to 20% to the total. Add them later when the budget allows.
- Remove the old fence yourself. If you are replacing an existing fence, pulling down old panels and posts yourself saves $450 to $750 in labor.
Building the fence yourself? Pre-assembled fence panels, post brackets, and hardware are available online and can cut material costs by 20-30% compared to lumberyard pricing.
Shop Fencing Materials on AmazonFrequently Asked Questions
How much does it cost to build a fence?
The average cost to build a fence is $2,000 to $12,000, depending on material, length, and height. Most homeowners spend $3,000 to $6,000 for a standard 150-foot wood privacy fence at 6 feet tall. Chain link is the cheapest option at $10 to $20 per linear foot, while aluminum and composite fencing can run $33 to $60 per linear foot installed.
What is the cheapest fence to install?
Chain link fencing is the cheapest option at $10 to $20 per linear foot installed for a 6-foot fence. For a 150-foot perimeter, that works out to $1,500 to $3,000. Pressure-treated wood is the next most affordable option at $17 to $30 per linear foot.
How much does a 200-foot fence cost?
A 200-foot fence costs $2,000 to $12,000 depending on the material. A pressure-treated wood fence runs $3,400 to $6,000, vinyl costs $5,600 to $10,000, chain link costs $2,000 to $4,000, and aluminum or composite runs $6,600 to $12,000. Adding gates, removing old fencing, and height upgrades increase the total.
Does a fence increase home value?
A fence can increase home value by 1% to 5%, depending on the material and condition. Privacy fences offer the strongest return, especially in neighborhoods with families and pets. Wood and vinyl privacy fences tend to add the most value. Chain link adds less perceived value but is still practical.
How long does fence installation take?
Most residential fence installations take 1 to 3 days for a standard 100 to 200 linear foot perimeter. Simple chain link fences can be installed in a single day. Wood and vinyl privacy fences typically take 2 to 3 days. Posts usually need 24 to 48 hours to set in concrete before rails and panels go on.