Fence Cost Calculator

Enter the length of fence you need and the material. You get an installed price range adjusted to your state, plus the number of 8-foot sections and posts.

Your project

Measure along the line where the fence will go. Leave out gate openings.
Adjusts the estimate to your state's price level.

Last updated October 2026 · Reviewed by the CostWise Lab team

How much does a fence cost in 2026?

Most residential fences cost between $10 and $60 per linear foot installed, depending mainly on the material. For a typical backyard of 150 feet, that means roughly $1,500 for basic chain link up to $9,000 or more for cedar, aluminum or composite.

MaterialInstalled cost per foot150 ft fence
Chain link$10 – $30$1,500 – $4,500
Pressure-treated wood privacy$18 – $40$2,700 – $6,000
Vinyl$28 – $55$4,200 – $8,250
Cedar privacy$30 – $60$4,500 – $9,000
Aluminum / ornamental steel$30 – $60$4,500 – $9,000
Composite$31 – $59$4,650 – $8,850

What changes the price

How to measure your fence line

Walk the line where the fence will go and measure each straight run, then add them together. A long tape or a measuring wheel works best; you can also measure on an online map and confirm on site. Call 811 before digging so underground utilities are marked for free.

Methodology

The calculator multiplies your fence length by a national installed price range for the chosen material, then adjusts it to your state.

cost = length × price per foot (low–high) × state price index ÷ 100
sections = ⌈length ÷ 8⌉ · posts = sections + 1

The price ranges are national 2026 installed costs (materials and labor) compiled from the cost guides listed below. The state adjustment uses the U.S. Bureau of Economic Analysis Regional Price Parities, which compare each state's overall price level to the national average (100). Building costs follow it only loosely, so treat the result as a planning range, not a quote.

Sources

Frequently asked questions

What is the cheapest type of fence?

Chain link is usually the cheapest to install, at roughly $10 to $30 per foot. Pressure-treated wood is the cheapest privacy option.

How much does a 100-foot wood fence cost?

At $18 to $40 per foot installed, a 100-foot pressure-treated privacy fence typically costs $1,800 to $4,000 before gates, permits or removal of an old fence.

Does the estimate include gates?

No. Gates are priced separately because the hardware and labor vary a lot. Ask contractors to list each gate as its own line item.

Why does my state change the price?

Labor and materials cost more in high-cost states. We scale the national range by your state's price level from the U.S. Bureau of Economic Analysis.

More calculators

Deck Cost Calculator

Installed cost for pressure-treated, cedar, composite or PVC decks.

Roof Replacement Cost Calculator

Roof area from your home's footprint and pitch, plus installed cost by material.

Flooring Cost Calculator

Square footage, material to buy with waste, and installed cost by floor type.

Concrete Calculator

Cubic yards and 40, 60 or 80 lb bags for slabs, patios and post holes.

Paint Calculator

Gallons of paint for walls and ceiling, minus doors and windows.