A fence quote arrives as one number per foot, which makes it look like a simple purchase. It isn't. By the time a contractor writes that number, five decisions have already been made, some of them by you and some by default. Get those right and the per-foot price becomes easy to compare. Get them wrong and you can pay twice, once for the fence and again to move it.

For a sense of scale, HomeAdvisor reports that most homeowners pay about $23 per linear foot for materials and professional installation.[1] Here is what sits behind that figure.

Key takeaways

  • Confirm the property line before anything else; a survey is cheaper than moving a fence.
  • Contact 811 before digging post holes. It is free, and state law requires notice, typically 48 to 72 hours ahead.
  • A pool changes the rules: CPSC guidelines call for barriers at least 48 inches high with self-closing, self-latching gates.
  • Length, height, gates and ground conditions move the price more than the brand of fence.

1. Where exactly is the line?

Corner pins and old fences are not proof of where your property ends. If you don't have a recent survey, get one before choosing a layout, and keep a copy for the contractor. Then check two local rules: how far back from the line a fence must sit, if at all, and the maximum height for front and back yards. HOAs often add their own limits on material and color.

Talk to the neighbor too. Not because you need permission on your own land, but because a fence that arrives without warning starts a relationship on the wrong foot, and sometimes the neighbor will share the cost of a shared section.

2. What is it for?

Most fences do one main job, and that job should pick the material. A dog that digs needs something different from a garden that needs shade, and a privacy screen next to a busy road is a different fence again.

  • For keeping pets or kids in, height and the gap at the bottom matter more than looks.
  • For privacy, solid boards or panels, and a height your town allows.
  • For marking a boundary on a large lot, a simple post-and-rail or wire fence covers distance cheaply.
  • For low upkeep over many years, materials that don't need staining will cost more on day one.

3. Is there a pool, now or later?

If a pool is in your plans, design the fence for it now. The US Consumer Product Safety Commission's barrier guidelines say the top of a pool barrier should be at least 48 inches above grade, measured on the outside, and note that some states and counties require 60 inches.[2] Gaps between vertical members should not exceed 4 inches, and gates should open out from the pool and be self-closing and self-latching.[2]

CPSC is clear that these are guidelines rather than a federal standard, but many local codes adopt them, and a barrier never replaces supervision.[2]

4. What is under the post holes?

Every fence post is a hole in the ground, and new subdivisions are full of shallow cable, gas and water lines. The federal Pipeline and Hazardous Materials Safety Administration says every digging project requires a call to your state's one-call center, even small ones such as planting a shrub, and that state laws require the call 48 to 72 hours before you dig. There is no charge.[3] If a contractor is building the fence, ask who is placing the request and wait for the marks before any digging starts.

5. The details that change the per-foot price

Once the layout is set, the quote moves with a handful of details. Each corner and gate adds hardware and labor. Slopes need stepped or racked panels. Rocky or root-filled ground slows every post hole. Taller fences use more material and bigger posts; HomeAdvisor says going to 8 feet adds 25% to 35% to the cost.[1] Removing an old fence is extra, and so is staining a wood one.

Get quotes you can compare

Send every contractor the same survey, the same layout with gate positions marked, and the same height and style. Ask them to separate removal, gates, staining and permit fees from the per-foot price.

6. Which material fits how much upkeep you want?

Every fence material trades money now against work later. None of them is the right answer for every yard, so match the material to the job from step two and to how much maintenance you will honestly do.

  • Wood is the familiar choice and easy to repair one board at a time. It needs stain or sealer every few years to keep its color and slow weathering, and boards can twist as they dry.
  • Vinyl doesn’t need paint and wipes clean. It costs more up front, comes in a limited range of colors, and a hard knock in freezing weather can crack a panel.
  • Aluminum or steel ornamental fencing lasts well and suits pools and front yards, but it gives no privacy.
  • Chain link is usually the cheapest way to contain a dog or mark a line, and privacy slats can be added later.

7. The posts decide how long it lasts

Boards and panels are easy to replace. Posts are not, and they are what fails first in most wood fences. When you look at a quote, ask three questions about them.

How deep are they set? In places where the ground freezes, posts that don’t go deep enough get pushed up over a few winters, and the fence starts to lean. Ask the contractor how deep they dig in your area and why.

What are they made of? Wood posts should be treated lumber labeled for ground contact, not the above-ground grade used for boards. The tag stapled to the end tells you which one you are getting.

What holds the gates? Gate posts carry far more strain than line posts. A heavier post, a solid latch and an anti-sag brace or cable on wide gates cost little at installation and save a sagging gate later.

8. Which side faces out?

Many towns and HOAs require the finished side of a fence to face the neighbors or the street, and even where nobody requires it, it is the polite choice. It also affects maintenance: if the fence sits right on the line with the posts on your side, you may need your neighbor’s permission to stain or repair the outside face.

Some homeowners set the fence a foot or two inside the line to keep access to both sides. You give up a strip of yard, but you never need to ask anyone before painting.

Before the crew arrives

Mark gate swings with stakes, move anything stored along the line, check that the 811 marks are still visible, and keep pets inside on install day. Walk the line with the lead installer at the start so the layout matches what you agreed.

Run your own numbers

Plug your house size, land price and quotes into the free calculator. It uses the same NAHB 2024 averages as this guide.

Open the calculator

Frequently asked questions

How much does a fence cost per foot?

HomeAdvisor reports that most homeowners pay about $23 per linear foot installed, though material, height and ground conditions can move that a long way.

Do I need to call 811 before putting up a fence?

Yes. PHMSA says every digging project needs a call to the state one-call center, typically 48 to 72 hours before digging, and the service is free.

How tall does a pool fence have to be?

CPSC guidelines recommend at least 48 inches above grade, measured on the outside. Some states and localities require 60 inches, so check your local code.

Which side of the fence should face the neighbor?

Usually the finished side. Many towns and HOAs require it, and it is the common courtesy where they do not. Check your local rules before the posts go in.

Why do fences start leaning?

Usually because of the posts: holes that are too shallow for the local frost depth, wood not rated for ground contact, or gate posts too light for the gate they carry.

Sources

  1. HomeAdvisor, "Fence Installation Cost," updated June 20, 2026 Verified
  2. US Consumer Product Safety Commission, "Safety Barrier Guidelines for Residential Pools" (Publication 362) Verified
  3. Pipeline and Hazardous Materials Safety Administration, "Call Before You Dig!" Verified

Figures last checked October 19, 2026. National averages are a planning guide, not a quote. See our editorial policy and data sources.