Fence Cost Calculator
Estimate the cost of a new fence based on material, length, height, and number of gates. Compare wood, vinyl, chain-link, aluminum, and composite fencing with labor and material breakdowns, choose professional or DIY installation, and see how many posts you need.
The three prices are illustrative starting values from a published cost guide (the low end of its range for a 4 ft fence, the midpoint for 6 ft, the high end for 8 ft), not a quote. Replace them with prices from your supplier or contractor.
A fence cost calculator estimates what a new fence will cost from its length, material, height, number of gates and who installs it. It multiplies the fence length by a material price and a labor price per linear foot, adds the gates, and counts the posts needed at your chosen spacing.
How Fence Cost Calculator Works
Enter the fence length in linear feet, then pick a material, height, number of gates, professional or DIY installation and post spacing. Total cost = length × material price per foot + length × labor price per foot + gates × price per gate. DIY sets labor to zero. Posts needed = length ÷ spacing, rounded up, plus one end post. Everything runs in your browser and no data is sent to any server.
The price fields are filled with illustrative starting values taken from the published ranges below: the low end of the range for a 4-foot fence, the midpoint for 6 feet and the high end for 8 feet. That height rule is this calculator's own simplification, because the guide does not publish prices by height. Overwrite the prices with a real quote whenever you have one.
How Much Does a Fence Cost?
Fixr.com's fence cost guide (updated January 31, 2025) puts the national average at $4,500, with a typical range of $3,000 to $7,000, for 200 linear feet of 4-foot cedar picket fence with a gate. Its per-foot ranges for the materials in this calculator are:
| Material | Materials only, per linear foot | Labor, per linear foot |
|---|---|---|
| Chain link | $2.25 – $20 | $6.75 – $15 |
| Wood (privacy styles) | $5 – $15 | $10 – $20 |
| Wood picket | $5 – $13 | $10 – $20 |
| Vinyl / PVC | $10 – $30 | $5 – $10 |
| Aluminum | $10 – $30 | $5 – $10 |
| Composite | $9 – $25 | $13 – $15 |
| Wrought iron | $13 – $30 | $9 – $10 |
Published averages differ a lot between guides. For chain link alone, the installed price is quoted at $5 to $15 per foot by Inch Calculator, $9 to $25 by Fixr.com and $15 to $30 by Bob Vila. Treat every figure here as a planning range and get at least one local quote.
Worked Example: 200 Feet of 6-Foot Wood Privacy Fence
| Line | Working | Result |
|---|---|---|
| Materials | 200 ft × $10.00 | $2,000 |
| Labor (professional) | 200 ft × $15.00 | $3,000 |
| Gates | 1 × $225 | $225 |
| Total | $2,000 + $3,000 + $225 | $5,225 ($26.13 per foot) |
| Posts at 8-foot spacing | 200 ÷ 8 = 25 sections, + 1 | 26 posts |
The $10 and $15 are the midpoints of the wood ranges above and $225 is the midpoint of the installed gate range, so this is an illustration, not a price for your yard. Switching to DIY removes the $3,000 of labor and uses a $120 gate, giving $2,120.
Fence Material Comparison
Chain link and wood are the least expensive materials to start with, and wood remains the usual choice for privacy. Vinyl materials cost more than wood ($10 to $30 against $5 to $15 per foot) but vinyl is cheaper to put up ($5 to $10 of labor against $10 to $20), so installed prices overlap. Aluminum gives an ornamental look and resists rust, though it can dent. Composite and wrought iron have the highest starting installed prices, and wrought iron needs a rust-inhibiting coating from time to time. Fixr.com rates chain link, aluminum, composite and wrought iron as good for durability and wood and vinyl as moderate to poor.
Factors Affecting Fence Cost
Length drives the total, so measure the run carefully. Taller fences need more material and structure: fences over 6 feet cost significantly more and more often need a permit. A walk gate set in the fence line costs about $50 to $400 installed, while a driveway gate runs $1,000 to $6,000. Slopes, rocky soil, tree roots and awkward access raise labor. Removing an old fence adds about $3 to $5 per linear foot, or $600 to $800 for a typical 100 to 200-foot fence. A land survey to confirm the boundary costs $400 to $1,000. Permit rules and fees vary by city, so check with your building department and HOA before you order materials. Before digging post holes, contact 811, the free national before-you-dig service, a few business days ahead so buried utility lines can be marked.
Sources: Fixr.com, Fence Installation Cost (updated January 31, 2025; per-foot material and labor ranges, gates, removal, survey, resale); Bob Vila, Fence Installation Cost (updated April 2024; post spacing, labor share, lifespans, removal per foot); Inch Calculator, Fence Calculator (post-count formula) and Cost to Install a Fence (height and permits); 811 Before You Dig. Last updated: October 2026
Frequently Asked Questions
How much does a wood fence cost?
Wood fencing costs about $5 to $15 per linear foot for materials and $15 to $35 per linear foot installed, according to the Fixr.com fence cost guide updated in January 2025. At those rates a 200-foot wood fence runs roughly $3,000 to $7,000 installed. Wood species, style and height move the price within that range.
What is the cheapest fence material?
Chain link has the lowest starting price of the materials in this calculator, from about $2.25 per linear foot for materials, and wood is usually the cheapest choice for a privacy fence at $5 to $15 per linear foot for materials. Composite and wrought iron have the highest starting installed price, about $22 per linear foot (Fixr.com, January 2025).
How far apart should fence posts be?
Fence posts are typically set 4, 6 or 8 feet apart, and 8 feet is the usual spacing for a wood fence. To count posts for a straight run, divide the fence length by the spacing, round up, and add one for the end post. A 200-foot fence at 8-foot spacing needs 26 posts. Posts are normally set in concrete, and local building codes can set the depth.
How long do fences last?
It depends on the material and upkeep. One published guide (Bob Vila, 2024) gives 15 to 30 years for cedar, about 20 years for treated pine, only 5 to 12 years for untreated pine, and 20 years or more for vinyl and galvanized chain link. Regular maintenance extends the life of a wood fence.
Do I need a permit for a fence?
It depends on where you live. Some cities and counties require a building permit and others do not, taller fences are more likely to need one, and homeowner associations often have their own rules on height and materials. Check with your local building department and your HOA before you build.
Should I hire a pro or DIY a fence?
Labor is roughly half the cost of a professionally installed fence, about $5 to $20 per linear foot for most materials, so doing it yourself removes that part of the bill. Chain link is the easiest fence to install yourself, while wrought iron and other metal fences are best left to a professional. A crew can build up to 200 linear feet in under 4 days and a first-timer may need twice as long.
Does a fence increase home value?
It can. Fixr.com puts the average return on investment at 50% to 70% of the cost for most fences, depending on the material.