Highlights
The national average cost to install a fence is $1,572–$5,318 for the whole project, according to Thumbtack data.
Length is the biggest cost driver, so measure your property line before you request quotes.
Wood and chain-link projects typically cost slightly less than aluminum and vinyl projects.
Slopes, trees, rocks, gates, and old fence removal can all raise the total.
Check local permit rules and property lines before work starts.
Your total depends on how much fence you need, the material you choose, and extras like gates.
This guide breaks down fence installation cost by length and material. It also covers what drives price, ways to save, and what a useful quote should include.
Fence installation cost
The national average range below reflects typical fence projects. Smaller jobs, like a short run or a single gate, can come in near the low end. Long runs, premium materials, and difficult sites can push costs toward the high end.
| National average cost range | $1,572–$5,318 |
|---|
| Low-end cost | $614 |
| High-end cost | $11,769 |
How much does it cost to replace a fence?
The national average cost to replace a fence is $1,228–$4,461, compared with $1,572–$5,318 for a new fence.
| National average cost range | $1,228–$4,461 |
|---|
| Low-end cost | $471 |
| High-end cost | $10,193 |
Replacement might cost a bit less than a new fence install because pros may be able to reuse existing posts or work from the current layout. Check whether the quoted total includes removal and disposal, and ask pros to list that work separately.
Cost factors
What affects the cost of fence installation or replacement?
Two fences of the same length can have very different prices. Fence length, material, gates, and site conditions affect your quote.
Fence length. Pros price fences by length, so each extra foot adds material and labor. Totals typically rise from $922–$2,405 for runs under 50 ft. to $3,495–$9,018 for runs over 250 ft.
Material. Material affects both the upfront cost and long-term upkeep. Among wood options, cedar typically costs more than pressure-treated pine, and specialty woods like redwood cost more than both. Wood needs regular staining or painting, so factor that upkeep into your budget.
Height. Fences are typically 3–8 ft. tall, and local building codes may limit how tall yours can be. Taller fences use more material per section, so you'll likely pay more for a higher fence. Check your local height limits before you settle on a design.
Gates. Pros can install walk-through gates or larger rolling gates that let vehicles enter your property. Gate-only projects typically cost $533–$1,463, so gates can add meaningfully to your total. Decide how many gates you need and where before you request quotes.
Slope, terrain, and obstacles. Fences are harder to install on sloped or uneven land, so labor costs may increase. According to Thumbtack data, projects with trees, slopes, or rocks have a reported range of $1,725–$5,469, compared with $1,435–$4,985 for projects without those obstacles. If your yard needs land clearing or grading, plan for that work before the fence goes in. Old fence removal. Tearing out and hauling away an old fence adds labor and disposal work. Some pros include removal in a replacement quote, while others price it separately.
Permits and HOA rules. Your city may require a building permit. Some pros pull the permit and include the fee in their quote, while others leave it to you, so ask. Contact your city, and your homeowners association if you have one, before work starts.
Property lines and surveys. You can usually find your property lines in your deed or in land surveys from your home purchase. Staying within those lines can help you avoid legal disputes with neighbors. If your lines are unclear, a survey may add to your upfront costs.
Style and finish details. Features like double-sided panels, lattice tops, decorative caps, and custom detailing take more material and time. Painted, stained, or powder-coated finishes may also add to the price. Choose the details that matter most to you and skip the rest.
Property type. Residential fence installation and replacement projects typically cost $1,431–$4,979. Commercial projects typically run a bit higher, at $1,550–$5,823.
Cost by fence length
Fences are priced by length. The ranges below are whole-project totals for each length, not per-foot prices.
| Fence length | Average installation and replacement cost |
|---|
| Less than 50 ft. | $922–$2,405 |
| 50–100 ft. | $1,789–$4,631 |
| 101–150 ft. | $2,130–$5,463 |
| 151–200 ft. | $2,553–$6,585 |
| 201–250 ft. | $2,812–$7,262 |
| More than 250 ft. | $3,495–$9,018 |
| Gates only (no new fence line) | $533–$1,463 |
Use the range that matches your measured length as a starting budget. Material, site conditions, and gates can move your total up or down.
Cost by fence material
Material changes both the upfront price and how much upkeep your fence may need. These typical ranges are whole-project totals, so length and site conditions still play a big role.
| Fence material | Average installation and replacement cost |
|---|
| Iron | $944–$3,724 |
| Electric wire | $911–$4,072 |
| Steel | $1,067–$4,246 |
| Wood | $1,429–$4,925 |
| Chain-link | $1,428–$5,019 |
| Aluminum | $1,554–$5,416 |
| Vinyl | $1,588–$5,295 |
| Barbed wire | $2,116–$6,719 |
Here's what to know about common materials:
Wood: Pressure-treated pine and cedar resist bugs and rot and cost less than specialty woods like redwood. Learn more about wood fence installation costs. Vinyl: Vinyl can mimic the look of wood, comes in many colors, and doesn't need staining. Compare vinyl fencing costs by style. Aluminum: Aluminum's typical range sits close to vinyl's in the table above. Review aluminum fence costs before you choose. Electric and barbed wire: These are often used for rural property or livestock rather than backyard enclosures. Ask a pro whether local rules limit their use.
How to save money
A few planning steps can help you control fence installation cost without cutting corners.
Measure before you request quotes: Confirm your property lines in your deed or survey, then measure the fence line. Clear measurements help pros quote accurately.
Compare materials side by side: Ask pros to price two or three materials for the same length. Weigh upfront cost against upkeep like staining or painting.
Keep the design simple: Plain panels and standard heights often cost less than custom detailing. Add decorative features only where you'll notice them.
Limit gates to what you need: Each gate adds cost. Plan gate locations around how you actually use your yard.
Ask about site prep: Clearing brush or small obstacles yourself may lower labor costs. Confirm with your pro first, since some prefer to handle it.
Get several quotes: Comparing at least three quotes can help you spot a fair price and a clear scope.
DIY vs. hiring a pro
A short, straight run of a simple material on flat ground may be a reasonable DIY project if you're comfortable with tools. You'll typically need to set posts in the ground, keep lines level, and haul heavy materials. Before you dig, contact 811 so underground utility lines can be marked. Hiring a pro often makes sense for long runs, sloped yards, rocky soil, or gates that need to swing and latch correctly. Pros typically have post-hole equipment and know how local codes affect height and placement. They may also help with permits and property line questions, which can reduce the risk of costly rework.
What to look for in your quote
A useful quote spells out exactly what you're paying for. Look for these details so you can compare pros fairly:
Total length: The quote should list the measured fence length and where the fence will run.
Material and grade: Look for the specific material, such as cedar or pressure-treated pine, and its quality.
Height and style: The quote should note fence height, panel style, and any decorative details.
Posts and installation method: Ask how posts will be set and how deep they'll go.
Gates: Check the number, size, and type of gates, plus hardware.
Site prep and obstacles: The quote should explain how the pro will handle slopes, trees, or rocks.
Old fence removal: Confirm whether removal and disposal are included.
Permits: Ask who will pull any required permit and whether its cost is included.
Timeline and payment terms: Look for a start date, an estimated finish date, and a payment schedule.
Workmanship warranty: Ask whether the pro offers a warranty and what it covers.
FAQs
What is the cheapest fence to install?
Iron, electric wire, and steel projects have the lowest typical ranges in the material table above. Wood and chain-link projects typically land in the middle, at $1,429–$4,925 and $1,428–$5,019. Because these are whole-project totals, the length of your fence often matters as much as the material you pick.
Is vinyl or wood cheaper?
Wood projects typically cost a little less upfront, at $1,429–$4,925 compared with $1,588–$5,295 for vinyl projects. These are whole-project totals, not prices for identical fences, so a quote for both materials on your fence is the best comparison. Vinyl doesn't need staining, so if you want lower upkeep, its higher upfront cost may be worth it to you.
How much does it cost to install 100 ft. or 200 ft. of fence?
A fence of about 100 ft. typically falls in the 50–100 ft. range of $1,789–$4,631. For about 200 ft., expect the 151–200 ft. range of $2,553–$6,585, or $2,812–$7,262 if your run is slightly longer. Material, site conditions, and gates can put your quote above or below these national ranges.
How much does a privacy fence cost?
The national average cost to install a privacy fence is $1,418–$5,459. Privacy fences act like thin walls, so they use more material than open styles and may cost more. Do pool fences cost more?
Not necessarily. The national average cost range for pool fence projects is $1,001–$3,929, according to Thumbtack data. Keep in mind that pool fences must meet local safety codes on height and the gaps between bars to help keep young children out. Meeting those requirements can affect which materials and designs work for your project — which can impact total costs.
What affects how long a fence lasts?
Ask how each material holds up in your local climate and what maintenance its finish requires before comparing expected lifespans. For wood, ask how often the finish needs to be reapplied in your climate.
How do I get an accurate fence quote?
Start by confirming your property lines and measuring your fence line. Then decide on material, height, and gates, and note any slopes, trees, or rocks. Share those details with several pros to compare quotes on the same scope, and find a local fence pro near you when you're ready. A note about project costs featured in this article: Figures represent national average cost estimates using data provided by Thumbtack pros and additional research. These figures are provided for educational purposes only and are subject to change at any time due to various factors. Details about your specific project and local rates can impact costs. For a personalized cost estimate, request a quote from a professional.