ReplaceCost

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 8 October 2026

See the illustrated guide

Written and maintained byMantu Kumar
Evidence review8 October 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.

Fence installation cost estimate

No email · nothing sent

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 illustration for explanation. Not a site inspection, measurement or eligibility record.

The three detail views below enlarge parts of the same photograph. 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
Advertisement

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.

Advertisement

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.

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 8 October 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.
Related searches

Popular fence cost searches

Common wording people use when comparing costs, estimates and next steps.

More related searches 9 more

By material and size

aluminum fence cost per foot composite fence cost wrought iron fence cost 6 ft privacy fence cost per foot cost of 150 feet of fence

Gates, permits and insurance

fence gate installation cost do i need a permit for a fence does homeowners insurance cover fence damage old fence removal cost
Every estimator, one method

All replacement cost tools

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

Roof$6,800–$32,000Squares, pitch, material and the ACV/RCV payout split. Solar$15,000–$40,000System size, installed cost, savings and payback period. HVAC$4,000–$19,000Furnace, AC and heat pump costs sized by tonnage. Windows$650–$1,900 eachInsert or full-frame replacement, per window and whole house. Water heater$1,300–$7,500Tank and tankless systems by capacity, fuel and access. Siding$8,700–$32,000Wall-area estimate for vinyl, fiber cement and wood. Gutters$1,900–$5,500Linear-foot estimate for sectional, seamless and guards. Flooring$3–$22 / sq ftMaterial, removal, subfloor repair and water-claim matching. Claim gapACV vs RCVSee the first check, depreciation holdback and your final share. Rebuild cost$200–$305 / sq ftWhole-home rebuild range and a Coverage A shortfall check. Roof areaSquares and bundlesPitch-corrected roof area, waste and shingle bundles to order. Roof taxDeduction & basisDeductible, depreciated or added to basis: a roof by how the home is used. Roof grantsFree screeningCheck which roof repair programs fit your income, age and location. File a claim?File or pay yourselfPayout after deductible against the premium increase a claim can bring. Water damage$1,300–$25,000Drying, flood cuts, flooring and mold by water category and delay. Repair or replace$5,000 & 50% rulesAC, furnace, water heater or roof: test the repair against new. AC size (BTU)BTU and tonsRoom or whole-home cooling load, unit size and tonnage. Fence$10–$65 / ftLinear-foot fence cost by material and height, with gates. Deck$15–$60 / sq ftDeck boards, framing, railing and stairs by material.

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.