ReplaceCost Tools

Home › Fence

Fence cost

Fence cost calculator

Estimate the cost to install or replace a fence by linear foot: material and height, gates, removal and permits, with a check on what insurance would pay if a storm or tree brought it down.

Reviewed November 20, 2026 · Written by Mantu Kumar

See the illustrated guide

Written and maintained byMantu Kumar
Evidence reviewOctober 8, 2026
Calculation rulesRead the methodology Quality standardEditorial policy

Key facts at a glance

  • A typical fence costs $2,000–$4,500; the national average is about $3,300.
  • 6 ft wood privacy: $13–$45 per foot; vinyl $30–$55; chain link $5–$15.
  • Basic gates cost about $400–$2,000; driveway gates more.
  • Fence permits usually cost $30–$200.
  • Call 811 before digging post holes; locating is free.
  • Fences are insured as Other Structures, often 10% of the dwelling limit.

Sources: Inch Calculator, NerdWallet and the Insurance Information Institute, listed at the end of this page.

Wood privacy fence anatomy: concrete-set posts below the frost line, rails, pickets, a walk gate with hinges and a latch, and the 811 call before digging Side view of a six-foot wood privacy fence along a lawn, cut away below ground. Posts every eight feet sit in concrete footings below a dashed frost line, with gravel at the bottom for drainage. Three horizontal rails carry vertical pickets and a cap board. A walk gate with heavy hinges, a latch and a diagonal brace sits near the house. A buried utility line is marked with flags to show why 811 is called before digging. FROST LINE CALL 811 · LOCATES ARE FREE 8 FT POST SPACING 6 FT 1 2 3 4 5 6 7 8 9 2026 PLANNING RANGES1Posts in concrete below the frost line2Rails · 3 for a 6 ft privacy run3Wood privacy · $22–$45 per ft4Walk gate · $400–$2,0005Permit · $30–$200 in most towns6Locate lines before any hole7Driveway gates8Old fence removal9Slope, rock or roots 200 FT, INSTALLEDChain link $1,800–$4,400Wood privacy $4,400–$9,000Vinyl $6,000–$11,000 Cutaway, not to scale. Planning ranges are national 2026 installed figures.

2026 planning ranges

  1. 1Posts in concrete below the frost line
  2. 2Rails · 3 for a 6 ft privacy run
  3. 3Wood privacy · $22–$45 per ft
  4. 4Walk gate · $400–$2,000
  5. 5Permit · $30–$200 in most towns
  6. 6Locate lines before any hole
  7. 7Driveway gates
  8. 8Old fence removal
  9. 9Slope, rock or roots

200 ft, installed: Chain link $1,800–$4,400 Wood privacy $4,400–$9,000 Vinyl $6,000–$11,000

Fence anatomy: post spacing and footings, rails, pickets and the cap, plus each gate as its own line. Price per linear foot changes most with material and height.Check the fence scope here before comparing quotes. This sketch has no engineering specifications.

Fence installation cost estimate

No email · nothing sent

Diagram, part by part

Fence: every numbered part explained

The fence drawing above has 9 numbered parts, from Posts in concrete below the frost line to Slopes, rock and roots. Follow the fence cards for rails and wood privacy. Run the fence estimate for each included amount.

  1. 1 Posts in concrete below the frost line

    Part of the per-foot price

    Posts set in concrete below the frost line keep the fence from heaving in winter and leaning in wind. Corner, end and gate posts carry the most load and are often larger or set deeper.

    What moves it: Post spacing, depth, soil and fence height.

    On the quote: Ask for post size, depth and whether gate posts are set deeper.

  2. 2 Rails

    Part of the per-foot price

    Horizontal rails connect the posts and carry the boards. A 6-foot privacy fence usually needs three rails to keep boards from bowing.

    What moves it: Fence height and style.

    On the quote: Ask how many rails per section and how they attach to the posts.

  3. 3 Wood privacy

    $22–$45 per ft

    The pickets or panels, priced per linear foot by material and height. Wood privacy is common; vinyl and aluminum cost more but need little upkeep.

    What moves it: Length, material and height.

    On the quote: Ask for the board or panel grade and the fastener type.

  4. 4 Walk gate

    $400–$2,000

    A walk gate needs heavier posts, strong hinges and a latch. Each gate is priced on its own, and pool areas need self-closing, self-latching gates.

    What moves it: Gate width, material and hardware.

    On the quote: Ask for the hinge and latch type and whether the gate is self-closing.

  5. 5 Permit

    $30–$200 in most towns

    Many towns require a permit and set height limits, setbacks and which side faces the neighbor.

    What moves it: Your town and the fence height.

    On the quote: Ask who pulls the permit and how the property line will be confirmed.

  6. 6 Locate lines before any hole

    Free 811 call

    Underground lines must be marked before any hole is dug. Calling 811 a few days ahead is free and required in every state.

    What moves it: How many utilities run through the yard.

    On the quote: Ask the contractor to confirm the locate ticket number before digging.

  7. 7 Driveway gates

    $1,500–$4,500 each

    A driveway gate spans 10 to 16 feet, so it needs heavy posts, a rigid frame and sometimes a wheel or cantilever track. Automatic openers add electrical work and cost.

    What moves it: Gate width, material and whether it is automated.

    On the quote: Ask for post size, hinge type and whether an opener is included.

  8. 8 Old fence removal

    $375–$750

    Taking down an old fence means pulling posts and their concrete, then hauling everything away. Concrete footings left in the ground can block new post holes.

    What moves it: Old fence length and how posts were set.

    On the quote: Ask whether old post concrete is removed or new posts go beside it.

  9. 9 Slopes, rock and roots

    Raises digging and panel cost

    On a slope, panels are stepped or racked to follow the grade, which takes more cutting. Rocky soil or tree roots slow post-hole digging and may need special equipment.

    What moves it: Grade change along the run and soil conditions.

    On the quote: Ask how the fence will follow the slope and whether rock is an extra charge.

Along the fence line

Measure the run, the gate and where the fence meets the house

A fence is priced by the foot, plus each gate. The photograph shows a wood run, the posts, a walk gate and the house it starts beside.

Wood privacy fence along a house, with vertical boards, posts and a gate.
Linear feet of fence, posts and one gate. The calculator prices the run by the foot and adds each gate on its own line.AI-generated image for the fence walkthrough. Not a site inspection, measurement or eligibility record.

Three close-ups from the photo above, and what each one means for a fence quote. Use them with the checks underneath.

Close view of vertical wood fence boards and horizontal rails.The fence run

Measure linear feet, not the yard

Run a tape along each side you plan to fence. The estimate uses that length, the height and the material. Check the survey before you build on the line.

Wood fence gate slightly open beside a concrete path.The gate

Count every opening

A walk gate and a wider gate for a mower are separate lines. Each needs a post pair, hinges and a latch. Pool gates also need to be self-closing.

Fence post and boards starting beside house siding.Where the fence meets the house

Mark the start and the end

The run usually starts at a corner of the house and ends at a post. Height is easiest to judge against the siding. Leave room for the hose bib, the meter and any gate swing.

Before you sign a fence quote, confirm these

Line and survey
Where the property line is and how far inside it the fence sits
Posts
Post spacing, depth, concrete and the post material
Extras
Gates and hardware, removal and haul-away, permit and HOA approval
Check whether a fence claim is worth filing

Measuring the fence line

Walk the line you want fenced and measure each side, including the short runs back to the house. Leave out the width of any gates; they are priced separately. Posts usually go every 6 to 8 feet, so a 150 ft line needs roughly 20 to 25 posts, each set in concrete below the frost line in cold climates.

Fence cost per linear foot by material

Fence typePer linear foot, 5 to 6 ftFor 200 feetTypical life
Chain link$9 – $22$1,800 – $4,40015 to 25 years
Wood split rail$14 – $32$2,800 – $6,40012 to 20 years
Wood picket$18 – $38$3,600 – $7,60012 to 20 years
Wood privacy$22 – $45$4,400 – $9,00012 to 20 years
Vinyl (PVC)$30 – $55$6,000 – $11,00020 to 30 years
Aluminum ornamental$28 – $60$5,600 – $12,00025 to 40 years
Composite$35 – $65$7,000 – $13,00020 to 30 years
Wrought iron$32 – $65$6,400 – $13,00030 years or more
ReplaceCost planning rates at a 5–6 ft baseline, installed, before gates, removal and permits, checked against published ranges. Shorter fences cost about 20% less per foot; 8 ft fences about a third more.

Factors that raise the price

Height, gates and ground

Height changes the amount of material in every section. Gates are the most expensive part of a fence per foot: a walk gate with hinges and a latch often costs $350 to $1,000, and a driveway gate several thousand. Slopes need stepped or racked panels, and rock or tree roots slow the digging of every post hole.

Permits, property lines and HOA rules

Fence repair costs

RepairTypical cost
Fix a hole or crack$125 – $500
Straighten a leaning sectionabout $500
Restain or reseal a wood fence$750 – $4,250
Source: NerdWallet fence cost guide. When several posts have rotted at the base, replacing the run usually costs less over time than repeated repairs.

What insurance covers

Fences fall under Other Structures, usually 10% of the dwelling limit. Storm and falling-tree damage is usually covered; rot and age are not. Many fence repairs cost little more than the deductible, so run should I file a claim before you report a small one.

Worked example: 200 feet of wood privacy fence

From the per-foot table on this page. Posts are not a second price: they are inside the per-foot rate. Gates, removal and the permit are not.

5–6 ft wood privacy, before the gate

Worked example
200 ft × $22$4,400
200 ft × $45$9,000
Posts implied at 8 ft spacingabout 25 posts
Chain link, same 200 ft, for contrast$1,800 – $4,400
Vinyl, same 200 ft$6,000 – $11,000
Wood privacy, installed, no gate yet$4,400 – $9,000

In a cold climate the posts have to go below the frost line, which is labor inside the same per-foot band, not a separate city tariff. An 8 ft fence runs about a third more per foot. Add each gate on its own line before you compare a quote to this range.

Fence cost by region

The calculator's default fence job, run in each of the six regions. Its national planning range is $3,775 – $8,000; South / Lower Midwest is the lowest at $3,294 – $7,006, and West Coast metro is the highest at $4,885 – $10,295, a gap of about $2,440 at the midpoint.

RegionPlanning rangeMidpoint
National average$3,775 – $8,000$5,888
South / Lower Midwest$3,294 – $7,006$5,150
Mountain / Plains$3,590 – $7,618$5,604
Mid-Atlantic / Upper Midwest$4,219 – $8,918$6,568
Northeast metro$4,737 – $9,989$7,363
West Coast metro$4,885 – $10,295$7,590

What “Fence type” does to the price

Leave the fence inputs alone except for “Fence type”. The cheapest choice, Chain link, comes to $1,675 – $4,150; the most expensive, Composite, comes to $5,825 – $11,300.

ChoicePlanning rangeMidpoint vs default
Chain link$1,675 – $4,150−$2,975
Wood split rail$2,475 – $5,850−$1,725
Wood picket$3,125 – $6,850−$900
Wood privacy (board or dog-ear) (default)$3,775 – $8,000—
Vinyl (PVC)$5,025 – $9,600+$1,425
Aluminum ornamental$4,775 – $10,550+$1,775
Composite$5,825 – $11,300+$2,675
Wrought iron$5,475 – $11,600+$2,650

What “Height” does to the price

Leave the fence inputs alone except for “Height”. The cheapest choice, 3–4 ft, comes to $3,049 – $6,515; the most expensive, 8 ft, comes to $4,831 – $10,160.

ChoicePlanning rangeMidpoint vs default
3–4 ft$3,049 – $6,515−$1,106
5–6 ft (default)$3,775 – $8,000—
8 ft$4,831 – $10,160+$1,608

How age changes the fence claim payout

For the default fence scope, assume a 15-year expected life and a $1,500 deductible. For this fence example, the item is 10 years old and about $3,925 is withheld for depreciation. Replacement cost coverage may repay it after completion. Actual cash value keeps the deduction.

AgeWearFirst checkHeld back
2 years13%$3,603$785
5 years33%$2,425$1,962
10 years67%$463$3,925
15 years80%$0$4,710
20 years80%$0$4,710
30 years80%$0$4,710

Quote checklist: 7 items to verify

Fence quotes are easiest to compare by the foot with the same height and material.

  1. Length and height. Linear feet and height by section.
  2. Material and style. Board, panel or picket grade and fasteners.
  3. Posts. Size, spacing, depth and concrete.
  4. Gates. Width, hardware and self-closing where needed.
  5. Property line. How the line is confirmed.
  6. Old fence removal. Posts and concrete removed.
  7. Permit and locate. Permit and 811 locate.

How long the job takes

StageTypical timeWhat happens
Measuring and survey1 – 2 hoursLine confirmed.
Permit and locate3 days – 3 weeksVaries by town.
Removal and posts1 – 2 daysConcrete cures before panels go up.
Panels and gates1 – 2 daysTypical backyard.
Final inspectionIf requiredPool fences are often inspected.

Tell neighbors before work begins; access to their side may be needed to set posts and panels.

Ways to keep the cost down

Fence costs depend on material and length.

Signs a fence needs replacing

Repairs work until posts fail.

Questions

How much does a fence cost per linear foot?

Installed prices commonly run from about $9 to $22 per foot for chain link, $22 to $45 for a 6 ft wood privacy fence and $30 to $55 for vinyl, before gates and removal. Height, ground and region move the figure.

How much does a 150 ft privacy fence cost?

For a 6 ft wood privacy fence with one walk gate on flat ground, this calculator returns about $3,800 to $8,000 at the national average, including a permit allowance.

What is the cheapest fence to install?

Chain link and wood split rail are usually the least expensive per foot. Wood picket and privacy fences cost more, and vinyl, aluminum, composite and iron more again, but last longer.

Do I need a permit to build a fence?

Often, especially for fences over 6 ft or in front yards. Rules vary by town, and HOAs may add their own. Call 811 before digging, whatever the permit rules.

Does homeowners insurance cover a fence?

Usually under Other Structures, Coverage B, for covered causes such as wind, a falling tree, fire or a vehicle. Rot, insects and wear are not covered.

How long does a wood fence last?

Typically 12 to 20 years, depending on the wood, the climate and whether it is stained or sealed. Posts in wet soil often fail first.

How much does fence repair cost?

Small repairs such as a hole or crack commonly cost $125 to $500, straightening a leaning section about $500, and restaining a whole wood fence $750 to $4,250. Rotten posts across a run usually point to replacement.

Who pays for a fence between neighbors?

It depends on state and local law and on agreement between neighbors. Some states have fence statutes that share the cost of a boundary fence; get any agreement in writing.

How deep should fence posts be?

A common rule is about a third of the post length in the ground, and below the frost line in cold climates so posts do not heave. Gate and corner posts are often set deeper.

Should the good side face out?

Many towns and HOAs require the finished side to face neighbors or the street. Even where not required, it is a common courtesy and avoids disputes.

Vinyl or wood fence?

Vinyl costs more up front but needs little maintenance and does not rot. Wood costs less and looks natural but needs staining or sealing every few years.

How long does vinyl fence last?

Quality vinyl fencing often lasts 20 years or more with little maintenance, though it can crack from impacts in cold weather.

Do wood fences need staining?

Sealing or staining every few years slows weathering and rot and keeps boards from splitting.

Can a fence be built on a slope?

Yes. Panels can be stepped down the slope or racked to follow it, which takes more cutting and labor.

Related

How to use this result This is a planning range from published per-foot prices and ReplaceCost’s assumptions, not a quote. Ground conditions, local codes, HOA rules and the exact layout change the real price. Get two or three itemized quotes.
Evidence trail

Sources used to check this tool

Per-foot prices come from published fence cost guides; insurance terms from consumer guidance.

Reviewed October 8, 2026

These organizations do not endorse ReplaceCost. The written policy, program rules, contractor scope and applicable law control the real result. See the full methodology for the source hierarchy and update process.

Fence planning

Price the fence line, the gates and the ground

Material and height set the per-foot rate; gates and site conditions add the rest.

Per linear foot Material and height set the base rate.
Gates Walk and driveway gates are priced separately.
Permits and lines Survey, 811 and height limits come first.
Coverage B Storm and tree damage to a fence is usually covered.
Every estimator, one method

Related cost tools

Each tool itemizes the work, shows a planning range, and explains how age, depreciation and your deductible can change the insurance check.

See all 116 calculators

Planning summary: Start with the physical replacement estimator, then run the Claim gap tool with the replacement figure, item age, expected life and deductible from your declarations page. The result is a planning estimate — not a contractor quote or coverage decision.