Fence Cost Calculator

Estimate what a new fence will cost to install. Enter the fence length, pick a material and add gates to get a typical price with a low-to-high range, or use your own quote per foot.

  • Free, no sign-up
  • Feet, inches or metric
  • Formula shown
  • Reviewed Nov 26, 2026

1Your measurements

Fence material
Add up every run, including gate openings
Replaces the national range

Your resultsUpdates as you type

How to use the fence cost calculator

  1. Choose the fence material and enter the total length of the fence line.
  2. Add gates and, if you have quotes, the price per gate and per foot for removing an old fence.
  3. Enter a contractor's price per foot to see your own total, or use the national range to set a budget.

Fence cost per linear foot

Installed price per linear foot (materials and labor, about 6 ft tall)
MaterialLowTypicalHigh150 ft fence
Wood privacy$15$28$45$2,250 – $6,750
Vinyl$20$35$60$3,000 – $9,000
Chain link$10$18$30$1,500 – $4,500
Aluminum$25$40$65$3,750 – $9,750

Fence cost formula

cost = fence length (ft) × installed price per ft + gates + removal

Worked example

150 ft of 6 ft wood privacy fence around a backyard:

  1. Typical cost: 150 × $28 = $4,200
  2. Likely range: 150 × $15 to 150 × $45 = $2,250–$6,750
  3. Add your gate quotes. To check the material list (posts, rails, pickets and concrete), use the fence calculator.

Fence cost by length

Typical installed cost, no gates
LengthWood privacyVinylChain linkAluminum
50 ft$1,400$1,750$900$2,000
100 ft$2,800$3,500$1,800$4,000
150 ft$4,200$5,250$2,700$6,000
200 ft$5,600$7,000$3,600$8,000
250 ft$7,000$8,750$4,500$10,000
300 ft$8,400$10,500$5,400$12,000

What changes the price of a fence

  • Height. Prices above assume about 6 ft. A 4 ft fence uses shorter posts and fewer boards and usually costs noticeably less per foot.
  • Terrain and soil. Slopes need stepped or racked panels, and rocky or root-filled ground slows post digging.
  • Gates and hardware. Each gate needs heavier posts, hinges and a latch; double drive gates cost far more than walk gates.
  • Permits and surveys. Many towns require a fence permit, and HOAs often limit height, style and color.

Where these prices come from

The ranges are national averages compiled from 2026 cost guides, includingNerdWallet,HomeGuide andRemodelAI. Published figures vary widely by region and fence height, so get several written quotes before you commit.

Frequently asked questions

How much does a fence cost per foot?

Installed fences typically cost about $10–$30 per linear foot for chain link, $15–$45 for a wood privacy fence, $20–$60 for vinyl and $25–$65 for aluminum, including materials and labor.

How much does it cost to fence a backyard?

It depends on the length and material. A typical backyard needs 150–200 ft of fence. 150 ft of 6 ft wood privacy fence usually costs $2,250–$6,750, about $4,200 at a typical price, plus gates.

What is the cheapest type of fence?

Chain link is usually the cheapest fence to install, at roughly $10–$30 per foot. Wood is next, while vinyl and aluminum cost more up front but need less maintenance.

How much does a chain link fence cost?

Chain link typically costs $10–$30 per linear foot installed. Taller fences, heavier gauge wire, vinyl coating and privacy slats push it toward the high end.

Is vinyl fence more expensive than wood?

Usually, yes: vinyl runs about $20–$60 per foot versus $15–$45 for wood. Vinyl doesn't need staining or painting and resists rot, so over 15–20 years the total cost of ownership can be similar.

How do I measure for a fence?

Walk the fence line with a measuring wheel or long tape and add up every run, including the sections where gates will go. Confirm your property line first; a survey is the safest way to avoid disputes.

Estimates are for planning and ordering. Material densities, product sizes and site conditions vary, so confirm quantities with your supplier and follow local building codes. See how we calculate.