HowMuchFence

Fence cost calculator 2026

How Much Does a Fence Cost?

Price your fence in seconds: pick a material, set the height and length, and see materials, labor and gates broken out. Free, no sign-up.

  • 8 materials
  • 50 state price guides
  • Materials + labor split
  • No email required

Fence Cost Calculator

Material
Height
Terrain
linear ft
20 ft500 ft
Gates
Gate type

Estimated total

-

Range - to -

Materials
-
Labor
-
Gates
-
Cost per linear foot
-

Installed price from contractors, including posts, concrete and hardware. Get 2-3 local quotes before you commit.

Same fence in every material

MaterialAverage

$10-$75

per linear foot, installed

From 4 ft split rail at the low end to 6 ft wrought iron at the high end.

50-67%

of the bill is labor

Digging post holes and setting posts in concrete is the expensive part. Slopes and rock raise the whole bill by 15-35%.

0.85x-1.5x

depending on your state

The same fence costs noticeably more in Hawaii or California than in Arkansas. See your state.

By material

Explore fence types

Average fence cost by type (2026)

Fence typeCost installed
Chain Link$15 - $40 / ft150 ft: $2,250 - $6,000
Wood (Pine)$17 - $45 / ft150 ft: $2,550 - $6,750
Wood (Cedar)$20 - $55 / ft150 ft: $3,000 - $8,250
Vinyl$25 - $60 / ft150 ft: $3,750 - $9,000
Aluminum$25 - $55 / ft150 ft: $3,750 - $8,250
Wrought Iron$30 - $75 / ft150 ft: $4,500 - $11,250
Composite$25 - $65 / ft150 ft: $3,750 - $9,750
Split Rail$10 - $26 / ft150 ft: $1,500 - $3,900

Prices are for a 6 ft fence, except split rail (built 3-5 ft tall), priced at 4 ft. For other heights (3, 4, 5 and 8 ft) and materials-only prices, see fence cost per foot by material and height.

Fencing pasture or livestock? Barbed wire, woven wire and electric fence cost $1.50-$6 per foot installed: see farm fence cost per foot and per acre.

How the estimate works

  1. 1

    Material and labor per foot

    Each material carries a low and high price for panels, posts and the crew's time.

  2. 2

    Scaled by height

    A 6 ft fence is the baseline. 4 ft costs about 15% less, 8 ft about 30% more.

  3. 3

    Adjusted for ground

    Slopes add around 15%, rocky soil around 35%, for stepped panels and harder digging.

  4. 4

    Plus gates

    $150-$400 for a walk gate, up to $1,500 for a sliding driveway gate.

By location

Fence cost by state

Frequently asked questions

How much does it cost to build a fence?
A 150 ft fence costs $1,500-$11,250 installed, from 4 ft split rail to 6 ft wrought iron. Split rail is the cheapest at $10-$26 per linear foot for a 4 ft fence, chain link costs $15-$40 per foot at 6 ft, and wrought iron is the most expensive at $30-$75 per foot. Labor is usually 50-67% of the installed price.
How much does a new fence cost?
A new fence for a typical 150 ft backyard costs $1,500-$11,250 installed, or $10-$75 per linear foot: split rail and chain link at the low end, pine, vinyl and composite in the middle, wrought iron at the top. Each walk gate adds $150-$400, and replacing an old fence adds $3-$8 per foot for tearing it out.
What is the cheapest fence to install?
Split rail is the cheapest fence to install, at $10-$26 per linear foot for a 4 ft fence, but it gives no privacy and won't keep a dog in unless you add wire mesh. The cheapest fence that keeps a dog in without add-ons is chain link, at $13-$34 per foot for a 4 ft fence and $15-$40 per foot at 6 ft. For privacy on a budget, a 6 ft pine fence costs $17-$45 per foot.
How much does a 6-foot privacy fence cost per foot?
A 6-foot privacy fence costs $17-$55 per linear foot for wood (pine or cedar) and $25-$60 per foot for vinyl. For a typical 150-foot fence, expect to pay $2,550-$9,000 total including materials and labor.
How much does it cost to fence a yard?
Most backyards need 150-200 linear feet of fence. At $17-$45 per foot for a 6-foot pine privacy fence that comes to $2,550-$9,000. Chain link runs $2,250-$8,000 for the same yard and vinyl $3,750-$12,000. Measure only the sides you need: the house or an existing neighbor's fence often closes one of them.
Does terrain affect fence installation cost?
Yes. Sloped terrain adds about 15% to the installation cost due to extra labor for stepped or racked panels. Rocky soil can add 35% or more because of the difficulty in digging post holes - sometimes requiring specialized equipment.
How long does a fence last?
Fence lifespan varies by material: chain link lasts 15-20 years, pine wood 10-15 years, cedar wood 15-25 years, vinyl 20-30 years, aluminum 20-30 years, wrought iron 50+ years, and composite 25-30 years. Proper maintenance can extend the lifespan significantly.
Do I need a permit to build a fence?
Most municipalities require a permit for fences over 6 feet tall. Some areas require permits for all fences. HOA communities may have additional restrictions on height, material, and style. Always check with your local building department before starting. Permit costs typically range from $20 to $400.