Mon, Nov 30, 2026 · US edition
HomeCostEdge
Latest
Home/Free tools/Fence Cost Calculator (2026)

Fence Cost Calculator (2026)

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.

New wooden privacy fence installed along a backyard

Embed this calculator on your website (free)

Run a blog, a real estate or insurance site, or a local business page? Paste this code into any HTML block. The calculator stays free, has no ads and updates itself when we update it.

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.

InputValue
Fence length150 linear ft
MaterialWood privacy (pine or cedar)
Height6 ft
Walk gates1 gates
Driveway gates0 gates
Remove an old fenceNo
Ground conditionsFlat, easy digging
Local price adjustment0 %

Estimated installed cost: $6,200

ResultValue
Typical quote range$5,270 to $7,440
Fence line$5,700
Gates$500
Old fence removalNot 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

  1. Fence length: set it to match your home or your quote.
  2. Material: set it to match your home or your quote.
  3. Height: set it to match your home or your quote.
  4. Read the headline estimate first, then the lines under it to see which part of the job costs the most.
  5. 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 linkabout $15 to $40
Wood privacyabout $25 to $60
Vinyl privacyabout $30 to $65
Aluminumabout $30 to $80
Ornamental iron or steelabout $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.

MaterialEstimated installed costTypical quote rangeCost 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:

HeightEstimated installed costCost 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

  1. Confirm the property line with your survey or by locating the property pins. A fence on the neighbor’s land can be ordered removed.
  2. Check city height limits, permit rules and HOA covenants.
  3. Call 811 a few days before digging so utility lines are marked for free.
  4. 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

  1. Walk the fence line and mark every corner and gate location with stakes or flags.
  2. Measure each straight run with a tape or measuring wheel and add them for the total length.
  3. Note slopes, trees, roots, rocks, utility boxes and any change in ground level.
  4. Draw a simple sketch with the distances and the gates, and photograph the route.
  5. 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?
For a 6 ft wood privacy fence with one walk gate on flat ground, the calculator estimates $6,200, about $41.33 per foot.
What is the cheapest fence to install?
Galvanized chain link is usually the cheapest per foot. Wood privacy fences are the most affordable option that blocks the view.
Is vinyl fencing worth the extra cost?
Vinyl costs more up front but needs no staining or painting and often lasts 20 to 30 years, so the lifetime cost can be similar to wood.
Do I need a permit for a fence?
Many cities require one, especially for fences over a certain height or in front yards. Check with your local building or zoning office.
Who pays for a fence between neighbors?
It depends on state and local rules and on agreement. In many places, neighbors who share a boundary fence share the cost, but rules vary widely.
Do I have to call 811 before installing a fence?
Calling 811 is free, and most states require it before digging, so underground utility lines are marked first.
Is it cheaper to build a fence myself?
It can be for a simple run, but posts, gates and slopes are harder than they look, and mistakes are costly. Compare the cost of tools, materials and your time with a written quote.
Which side of the fence faces the neighbor?
Customs and local rules vary, and some HOAs require the finished side to face out. Decide this before you sign, and put it in the contract.

Sources

Prices checked November 2026. Local prices vary widely; always get written quotes.

Related calculators

Please note: This tool gives estimates for planning only. It is not a quote and not contractor, engineering, legal, tax or financial advice. Your actual prices will differ.

← All free calculators

Cata, author and researcher at HomeCostEdge
Built and checked by Cata · Finance and Banking graduate (European university)
Every calculator on HomeCostEdge uses published sources and shows a worked example, and is reviewed again when prices or rules change. This is general educational information, not advice. For decisions about your own situation, talk to a licensed professional. About Cata · How I research · Report an error

More on this topic

Keep HomeCostEdge one tap away

Planning a repair or a remodel? Bookmark the calculators, add HomeCostEdge to your home screen, or send a cost guide to the friend who is about to get a quote.

Independent. We publish cost guides, not leads. No contractor, installer or manufacturer pays to be listed, ranked or recommended here.
Sourced. Prices come from published 2026 cost guides, government data and manufacturer specs, each with the date we checked it. See our editorial policy.
Private tools. Estimates are worked out in your browser. We never see your square footage, your ZIP code or your budget.
Transparent ads. Ads keep the guides free. They are labeled, kept apart from our picks, and never change a price we quote. How we make money.