Enter the fence length, pick the material and height, add gates, and see an installed 2026 price and the cost per linear foot.
Covers chain link, wood, vinyl, aluminum, composite and ornamental steel. Free and private.

How the Fence Cost Calculator works
Fence line = length × price per foot for the material at 6 ft (chain link $28, wood $38, vinyl $48, aluminum $52, composite $62, ornamental $70) × height factor × ground factor. Total = (fence line + $500 per walk gate + $1,600 per driveway gate + $4 per foot to remove an old fence) × local adjustment.
Worked example
This is what the calculator shows with its starting numbers. Change any value above to see your own result.
| Input | Value |
|---|---|
| Fence length | 150 linear ft |
| Material | Wood privacy (pine or cedar) |
| Height | 6 ft |
| Walk gates | 1 gates |
| Driveway gates | 0 gates |
| Remove an old fence | No |
| Ground conditions | Flat, easy digging |
| Local price adjustment | 0 % |
Estimated installed cost: $6,200
| Result | Value |
|---|---|
| Typical quote range | $5,270 to $7,440 |
| Fence line | $5,700 |
| Gates | $500 |
| Old fence removal | Not needed |
| Cost per linear foot | $41.33 |
Example: how Erin used this calculator
An illustrative example with a made-up name. The numbers are exactly what the calculator above shows with its starting values.
Erin needed 150 feet of 6 ft wood privacy fence with one walk gate around a flat backyard for her dog. The calculator showed $6,200, or $41.33 per foot, with typical quotes from $5,270 to $7,440.
What Erin did next: Before calling fence companies, Erin checked her HOA’s height rule and found her property pins using the survey from her closing papers. She called 811 to have utility lines marked, and asked each installer whether posts would be set in concrete.
What each input means
- Fence length: measure along the line where the fence will go, in feet. A typical backyard needs 100 to 200 linear feet.
- Material: chain link is cheapest; wood is the most common privacy fence; vinyl and aluminum cost more but need little upkeep; composite and ornamental metal are at the top of the range.
- Height: prices are set for 6 ft. A 4 ft fence is about 15% cheaper per foot; 8 ft fences need longer posts and deeper holes, about 30% more.
- Gates: a walk gate is about $500 installed here, and a wide driveway gate about $1,600. Ornamental and automatic gates cost much more.
- Remove an old fence: tearing out and hauling away an old fence adds about $4 per foot.
- Ground conditions: slopes, roots and rock slow down post digging. The calculator adds 10% or 20%.
How to use the Fence Cost Calculator step by step
- Fence length: set it to match your home or your quote.
- Material: set it to match your home or your quote.
- Height: set it to match your home or your quote.
- Read the headline estimate first, then the lines under it to see which part of the job costs the most.
- Change one input at a time, then take the range to contractors and ask each one to explain where their quote differs.
What a fence costs in 2026
| Material (6 ft unless noted) | Typical installed range per foot |
|---|---|
| Chain link | about $15 to $40 |
| Wood privacy | about $25 to $60 |
| Vinyl privacy | about $30 to $65 |
| Aluminum | about $30 to $80 |
| Ornamental iron or steel | about $40 to $100 |
These ranges reflect 2026 guides from NerdWallet and others. Ergeon, a fence installer that published prices from more than 1,400 of its own jobs, reports typical installed prices around $44 per foot for chain link, $52 for wood and $60 for vinyl, which sit at the higher end because many of its projects are in expensive markets. That is why the local adjustment matters.
Three more examples: a big job, a small job and a pricey market
Illustrative examples. The numbers are exactly what the calculator shows with its inputs listed.
A large vinyl fence on uneven ground. A family wants 200 feet of 6 ft vinyl privacy fence with two walk gates and one driveway gate, on ground with slopes and roots. The calculator shows $13,160, or $65.80 per foot, with a typical quote range of $11,186 to $15,792. Gates are $2,600 of that, and the fence line is $10,560.
A short chain link fence with removal. An owner needs 120 feet of 4 ft galvanized chain link on flat ground, with one walk gate, and wants the old fence removed. The estimate is $3,836 ($31.97 per foot), including $480 for removal and $500 for the gate.
A small aluminum fence in a higher-cost market. A homeowner wants 80 feet of 5 ft aluminum fence with a walk gate and enters a 10% local price adjustment. The estimate is $4,806, or $60.07 per foot, with a quote range of $4,085 to $5,767.
Same fence, six materials
For 150 feet of 6 ft fence with one walk gate on flat ground and no removal, here is what changes when only the material changes.
| Material | Estimated installed cost | Typical quote range | Cost per linear foot |
|---|---|---|---|
| Galvanized chain link | $4,700 | $3,995 to $5,640 | $31.33 |
| Wood privacy | $6,200 | $5,270 to $7,440 | $41.33 |
| Vinyl privacy | $7,700 | $6,545 to $9,240 | $51.33 |
| Aluminum | $8,300 | $7,055 to $9,960 | $55.33 |
| Composite | $9,800 | $8,330 to $11,760 | $65.33 |
| Ornamental steel | $11,000 | $9,350 to $13,200 | $73.33 |
Chain link is the lowest and ornamental steel the highest. Remember that wood costs less up front but needs staining or sealing, so compare the cost per year of life, as described above.
How height changes the price
For the same 150 feet of wood privacy fence with one walk gate:
| Height | Estimated installed cost | Cost per linear foot |
|---|---|---|
| 4 ft | $5,345 | $35.63 |
| 5 ft | $5,801 | $38.67 |
| 6 ft | $6,200 | $41.33 |
| 8 ft | $7,910 | $52.73 |
Taller fences need longer posts and deeper holes, so the price rises faster than the height. Check whether your city or HOA limits the height before you choose.
What affects the price
- Post spacing and setting: posts every 6 to 8 feet, set in concrete, are the backbone of the fence and a big share of the labor.
- Gates: each gate needs heavier posts, hinges and a latch. Two gates can add more than 100 feet of fence would.
- Terrain: slopes need stepped or racked panels; rock may need special drilling.
- Permits and rules: many cities limit front-yard fences to about 3 or 4 feet and backyards to 6 feet. HOAs often control materials and colors.
Before anyone digs
- Confirm the property line with your survey or by locating the property pins. A fence on the neighbor’s land can be ordered removed.
- Check city height limits, permit rules and HOA covenants.
- Call 811 a few days before digging so utility lines are marked for free.
- Talk to neighbors. Shared fences sometimes split the cost.
How long each fence lasts
Pressure-treated pine typically lasts 10 to 15 years and needs staining every few years; cedar often lasts 15 to 20. Vinyl and aluminum commonly last 20 to 30 years with little more than washing, and galvanized chain link can last 20 years or more. When you compare quotes, divide the price by the expected life to get a cost per year, and add the cost of staining for wood. A fence that costs more up front can be the cheaper fence over 20 years.
Reading a fence quote
A complete quote lists the post size and spacing, how posts are set, the panel or picket style, gate hardware, removal of the old fence, and who pulls the permit. Ask whether the quote includes cleaning up dirt from post holes and who is responsible if a sprinkler line is hit.
How to measure for a fence
- Walk the fence line and mark every corner and gate location with stakes or flags.
- Measure each straight run with a tape or measuring wheel and add them for the total length.
- Note slopes, trees, roots, rocks, utility boxes and any change in ground level.
- Draw a simple sketch with the distances and the gates, and photograph the route.
- Add a little for waste and for corners, since installers may price by the foot on the line plus the corners.
A pre-contract checklist
- Confirm the property line with a survey or the pins before any work starts.
- Check the city’s height limits, setback rules and permit requirements.
- Read the HOA rules on material, height and color, and get approval in writing if it is needed.
- Call 811 so that utility lines are marked before anyone digs.
- Get at least three written quotes with the same specifications.
- Ask which side of the fence faces out, and who owns and maintains it.
What the calculator does not include
- Permit fees and survey costs.
- Staining, sealing or painting for wood fences.
- Automatic gate openers and electrical work.
- Landscaping, tree removal or grading that must be done before the fence goes in.
- Special engineering for very steep slopes or retaining walls.
Common mistakes
- Building on the wrong line. A fence on a neighbor’s land can be ordered removed.
- Skipping the permit. Rules vary, and fines or a removal order cost more than the permit.
- Comparing quotes without the same details. Post size, post depth and board thickness can differ.
- Forgetting gates in the budget. Gates need stronger posts and hardware, and a driveway gate can cost more than a long run of fence.
- Choosing the cheapest bid without a warranty. Ask what is covered and for how long.
Questions to ask a fence installer
- What size are the posts, how deep, and are they set in concrete?
- Which side of the fence will face the neighbor?
- What is the warranty on materials and labor?
- Who pulls the permit and who calls 811?
- How will you handle slopes, and will the fence step or follow the grade?
- What happens if you hit a sprinkler line or an unmarked pipe?
A short glossary
- Linear foot: one foot of fence along the line, regardless of its height.
- Walk gate: a single gate for people, as opposed to a wide gate for vehicles.
- Driveway gate: a wide gate, single or double, for vehicles.
- Rack: to angle the panels so a fence follows a slope.
- Property pins: metal markers that show the corners of a lot.
Frequently asked questions
How much does a 150 ft wood fence cost?
What is the cheapest fence to install?
Is vinyl fencing worth the extra cost?
Do I need a permit for a fence?
Who pays for a fence between neighbors?
Do I have to call 811 before installing a fence?
Is it cheaper to build a fence myself?
Which side of the fence faces the neighbor?
Sources
- NerdWallet: How much does it cost to install a fence in 2026
- Ergeon: Chain link fence cost 2026
- Call 811: Know what's below
- FTC: How To Avoid a Home Improvement Scam
Related calculators
- Roof Replacement Cost Calculator: A new roof is priced by the square: 100 square feet of roof surface.
- Interior Painting Cost Calculator: Enter the floor area of the rooms you want painted, pick what gets painted and the ceiling height, and compare a professional price with doing it yourself.
- Kitchen Remodel Cost Calculator: Enter your kitchen size and pick the scope, from a cosmetic refresh to an upscale full remodel.
- Solar Panel Payback Calculator: Enter your electric bill and rate, the system size and price, and see how long solar panels take to pay for themselves in 2026, without the old federal tax credit.
