How much does it cost to install a fence?

Fence cost is best measured per linear foot, and it runs anywhere from about $10 to $70 per foot installed depending on the material. For a typical yard of 150–200 linear feet, most homeowners spend $2,000–$8,000. Material is the biggest lever, with chain link and wood at the budget end and vinyl, aluminum, and composite at the top.

Cost by fence material

Installed cost per linear foot (materials plus labor), for a standard residential height:

MaterialInstalled / linear ftNotes
Chain link$10–$25Cheapest, durable, no privacy
Wood (pressure-treated)$15–$35Popular privacy option; needs sealing
Cedar$20–$45Better looks and rot resistance
Vinyl (PVC)$25–$60No painting; higher upfront
Aluminum / ornamental steel$25–$60Decorative, low-maintenance
Composite$30–$70Privacy + low upkeep, priciest

Cost by fence length

The other big driver is how much perimeter you're enclosing. Using a typical $15–$60 / linear foot range for a privacy-grade fence:

Fence lengthInstalled cost
100 linear ft$1,500–$6,000
150 linear ft$2,250–$9,000
200 linear ft$3,000–$12,000
300 linear ft$4,500–$18,000

To measure your perimeter and count posts, rails, and pickets, see our fence posts guide and the calculator below.

Get your material take-off first

The fence calculator turns your total length into posts, panels or pickets, and concrete per post — with an editable price so you can compare materials.

Open the Fence Calculator

What changes the price

  • Height. A 6-ft fence uses more material and bigger posts than a 4-ft one, so per-foot cost rises with height.
  • Gates. Each walk gate adds $150–$600, and wide driveway gates far more — they need heavier posts and hardware.
  • Terrain. Slopes, rocky or clay soil, and tree roots slow down digging and post-setting.
  • Old fence removal. Tear-out and disposal of an existing fence is an extra line item.
  • Layout. Lots of corners and ends use more posts and bracing than a long straight run.
  • Region & permits. Labor rates and permit fees vary, and corner lots often have stricter height rules.

DIY vs. hiring a pro

Since labor is roughly half the cost, building it yourself can save thousands. Chain link and wood fences are realistic DIY projects for a fit weekend worker — the real skill is digging post holes and setting every post plumb, straight, and at consistent spacing in concrete, because crooked posts show on the whole run. Rent a powered auger for the holes. Before you start, confirm your exact property line (get a survey if there's any doubt), call 811 to locate buried utilities, and check permit and HOA rules. For long runs, heavy gates, or tricky terrain, a pro crew is faster and gets the lines dead straight.

Frequently asked questions

How much to fence a yard?
About $2,000–$8,000 for a typical 150–200 linear-foot yard, depending on material and height. Chain link and wood are cheapest; vinyl, aluminum, and composite cost more.
What's the cheapest fence?
Chain link, at roughly $10–$25/linear foot installed, then pressure-treated wood. Chain link is durable but offers no privacy.
What does a 6-ft privacy fence cost per foot?
About $15–$35/linear foot for wood and $25–$60 for vinyl, installed. Taller fences cost more per foot.
Is DIY cheaper?
Yes — labor is about half the cost. Chain link and wood are DIY-friendly; the tricky part is setting posts straight and plumb in concrete.
Do I need a permit?
Often yes, especially above a certain height or on corner lots. Confirm your property line and check local and HOA rules first.
How much are gates?
About $150–$600 for a walk gate and $400–$1,500+ for a wide driveway gate, since gates need sturdier posts and hardware.

Related guides