Fence Cost Calculator

How we build and test

Enter the length of your fence and choose a material and height to estimate what it will cost in 2026, installed by a contractor or built yourself. Add gates and removal of an old fence for a complete budget.

Installation
Remove old fence

Fence cost

Enter the length of the fence line.

What this calculator does

  • Fence cost by material, height and length
  • Gates and old fence removal
  • Price per foot, installed or DIY

How to use the fence cost calculator

  1. Measure the fence line in feet, including the gate openings. For a backyard, that is usually the two sides plus the back, minus the width of the house.
  2. Pick the material and height.
  3. Enter the number of walk gates (3 to 4 ft wide) and drive gates (10 to 16 ft double gates).
  4. Choose Contractor for an installed price, or DIY to see roughly what the materials cost.
  5. Add removal if there is an old fence to tear out and haul away.

How the estimate is built

Fence = length × installed price per foot × height factor
Height factor = 1 + 0.15 × (height − usual height for that material)
Gates: walk $250–$600 each, drive $700–$1,800 each
Removal: $3–$7 per foot
DIY ≈ 50% of the installed price (materials only)
Material Usual height Installed, per linear ft Lifespan
Chain link 4 ft $10 – $30 15–20 years
Split rail 4 ft $10 – $25 10–20 years
Wood picket 4 ft $15 – $35 10–15 years
Wood privacy (pine) 6 ft $20 – $45 10–15 years
Cedar privacy 6 ft $25 – $55 15–20 years
Aluminum 4 ft $25 – $60 30+ years
Wrought iron 4 ft $25 – $55 40+ years
Vinyl 6 ft $30 – $60 20–30 years
Composite 6 ft $30 – $60 25+ years

The ranges are typical 2026 US installed prices drawn from published contractor cost guides. Prices run higher in the Northeast and on the West Coast, and lower in much of the South and Midwest.

Worked example: a 150 ft wood privacy fence

  1. Fence: 150 ft × $20 to $45 = $3,000 to $6,750 for a 6 ft pine privacy fence, installed.
  2. One walk gate adds $250 to $600.
  3. Total: $3,250 to $7,350, with $5,300 as a typical mid-range price.
  4. The line needs about 20 posts at 8 ft spacing.

A 200 ft, 4 ft chain-link fence built DIY with one walk gate and one drive gate, replacing an old fence, comes to about $2,170 to $5,840 for materials, gates and disposal.

What drives fence cost

  • Material is the largest factor. Vinyl and aluminum cost more up front but need no paint or stain.
  • Height: an 8 ft privacy fence costs about 30% more per foot than a 6 ft one, and many towns require a permit or variance above 6 ft.
  • Terrain: slopes, rock and roots add labor. Stepped or racked panels on a hill cost more.
  • Short runs cost more per foot because the contractor’s setup is spread over fewer feet.
  • Permits and surveys: a permit usually runs $20 to $400. A boundary survey ($400 to $1,000) settles where the property line is before posts go in.

Questions

How much does a 6 ft privacy fence cost per foot?

About $20 to $45 per linear foot installed for pressure-treated pine, $25 to $55 for cedar and $30 to $60 for vinyl.

How much does it cost to fence 1 acre?

A square acre has a perimeter of about 835 ft. At $10 to $25 per foot for split rail or farm fencing, that is roughly $8,400 to $21,000. Privacy fencing for the same perimeter would cost $17,000 to $38,000 or more.

Is it cheaper to build a fence yourself?

Materials are usually about half the installed price, so DIY can save 40% to 50%. You will need a post-hole digger or auger, concrete, a string line and a level, and you should call 811 before you dig.

Use these figures as a budget guide and get at least three written quotes. Local labor rates and material prices vary a lot.

Related calculators