Skip to content
LokalMatch

Fences

Fences near you

A fence does several jobs at once in an American yard. It marks the property line, keeps dogs and small children in, screens a neighbor's driveway or a busy street, and, around a pool, it stops being landscaping and becomes a life-safety device that a building official will inspect. It is also the most locally regulated small project most homeowners ever take on: how tall the fence may be, how far it must sit back from the sidewalk, which side the finished face points toward and whether a permit is needed are decided by your city or county, not by any nationwide standard. Two towns in the same state routinely answer those questions differently.

Tell us about your fence project and we’ll help you find local fence contractors who serve your area.

Free for homeowners · No obligation to hire

On this page

Two things matter more than the material you pick. The first is where the line actually runs, which is a question for a survey or a plat, not for the row of shrubs everyone has treated as the boundary. The second is what is buried in the yard, because a fence is a long line of holes dug to depth. After that the decisions are ordinary ones about wood, vinyl, chain link, aluminum or composite, and about posts: the difference between a fence that stands straight for decades and one that leans within a few seasons is almost always what happened below grade.

Fence height, setbacks and permits are set by your city, not by one national rule

There is no federal fence code and, in most states, no statewide height limit either. The limit comes from a municipal zoning ordinance, and it usually differs between the front yard and the back, because the front rule exists to protect sight lines at driveways and corners rather than your privacy. Homeowner association rules can be stricter still, and they are enforced separately from the city's.

Seattle shows how specific this gets. The city says no construction permit is required if the fence is 8 feet or less in total height and has no masonry or concrete elements over 6 feet, unless it is in a flood-prone area. Its neighborhood residential and multifamily zones cap the fence at 6 feet, with an additional 2 feet of architectural features such as arbors or trellises, but limit it to 4 feet when it sits in a front or street-side setback. Where a retaining wall raises the grade, Seattle caps the combined height of wall plus fence at nine feet six inches. Those are Seattle's numbers and only Seattle's: the point is the shape of the rules, not the figures.

So the first call is to your own building or planning department, and the question to ask is specific: what is the maximum height in my zone, in the front yard and the rear, is a permit required, and does anything change because of a corner lot, an easement, a critical area or a pool. A contractor who works in your city every week will usually know, but the department's answer is the one that governs.

Call 811 before you dig a single post hole

A fence line is dozens of holes dug two feet or more into ground that may carry gas, electric, water, sewer, cable and fiber. The national 811 service exists for exactly this. It is free, it is for anyone who plans to dig including homeowners, and fence installation is one of the projects it names directly. You contact 811 a few business days before you begin, the utilities respond, and they mark the approximate location of their buried lines with paint or flags so that you do not unintentionally dig into one.

Two points get missed. Depth is not an excuse: the service is blunt that shallow digging is still digging and that every digging project, regardless of depth, requires contacting 811. And the marks cover utility-owned lines, not the ones a previous owner ran themselves, so a private irrigation main, a line out to a shed, a septic field or a buried invisible-fence wire will not be flagged. Tell your fence contractor about anything you know of, and walk the line with them before the auger starts.

Good crews handle the 811 request as a matter of routine and schedule the dig around the response. Ask when you book the job whether they will place the request and how the marks will be protected until the holes are dug.

Pool barrier fencing: what CPSC recommends and what your state may require

A fence around a pool is a different product from a fence around a yard, and it is the one fence where the details are the whole point. The Consumer Product Safety Commission publishes Safety Barrier Guidelines for Residential Pools, and it is careful to say these are guidelines rather than a CPSC standard or a mandatory requirement, while noting that some states and localities have written them into their building codes. CPSC cites CDC data that drowning is the leading cause of unintentional death for children aged 1 to 4, and reports that each year nearly 300 children under age 5 drown in swimming pools.

State law can go further than the guidelines and is not uniform. California's Health and Safety Code requires a pool enclosure with a minimum height of 60 inches, a maximum vertical clearance from the ground of two inches, gaps that will not pass a sphere four inches in diameter, and gates that open away from the pool and are self-closing with a self-latching device placed no lower than 60 inches above the ground. Florida's Residential Swimming Pool Safety Act requires a barrier at least 4 feet high on the outside with gates that open outward, are self-closing and self-latching with the release on the pool side, and it also allows an owner to satisfy the act with one of several alternatives instead, including an approved safety pool cover meeting ASTM F1346-91 or an exit alarm rated at a minimum 85 dB A at 10 feet. Check your own state and city before you buy a gate.

  • CPSC recommends fences of at least 4 feet, and says fences 5 feet or higher are preferable, with the barrier placed so children cannot use nearby structures or equipment to climb it.
  • A barrier that completely surrounds the pool is better, CPSC says, than a fence on three sides with the house as the fourth.
  • The maximum clearance at the bottom should be 4 inches, reduced to 2 inches over a non-solid surface such as grass or pebbles and 1 inch for removable mesh fencing.
  • No opening in the barrier should allow a 4-inch diameter sphere to pass through, and solid walls should have no indentations or protrusions a child can climb.
  • Where the distance between the bottom and top horizontal members is less than 45 inches, those horizontals belong on the inside of the fence so they are not a ladder.
  • If a wall of the house forms part of the barrier, CPSC recommends door alarms meeting UL 2017 Section 77, or a power safety cover complying with ASTM F1346-91.

Fence materials for American yards: wood, vinyl, chain link, aluminum and composite

Material decides how the fence looks and how you will spend your weekends, but it rarely decides how long the fence stands. Posts, footings and hardware do that. Choose the material for the look and the upkeep you want, then spend the argument with your contractor on what goes in the ground.

  • Pressure-treated pine and fir: the default across much of the country, easy to repair a board at a time, and it will move and check as it dries, so expect to stain or seal it on a cycle.
  • Cedar and redwood: naturally more resistant to decay and insects than untreated softwood, dimensionally calmer, and they weather to gray unless you keep a finish on them.
  • Vinyl: no painting and no rot, sold as panels between posts, and damage means swapping a section rather than a board, so keep a spare panel if the profile may be discontinued.
  • Chain link: the least expensive way to enclose a large yard securely, available with vinyl coating and with privacy slats, and the fabric can be reused when only the posts fail.
  • Ornamental aluminum and steel: powder-coated pickets that suit sloping ground because panels rack, and aluminum will not rust the way an older wrought-iron fence does.
  • Composite: boards of wood fiber and plastic that hold color and resist rot, heavier than wood, and the panels and posts are a system that has to be installed the manufacturer's way to keep the warranty.

Frost depth and post footings in cold states

In cold parts of the country the ground freezes to a depth that varies enormously between states and even within one state, and water in freezing soil lifts anything it grips. A post set above that depth is jacked up a little each winter and never fully settles back, which is why gates that closed fine in October bind in March and why fence lines go wavy after a few years.

How deep is a local answer, and the state building code is where it is written down. Minnesota's rules set a minimum footing depth due to freezing of five feet in Zone I, the northern counties, and three and a half feet in Zone II to the south. A number like that is specific to Minnesota and to the structures the rule covers, and it shows the scale of the problem in the north; a city on the Gulf Coast or in the desert Southwest works to a far shallower requirement. Ask your building department what depth applies where you live, and ask the fence contractor what depth they actually dig to.

Timing matters too. Frozen ground is slow and expensive to auger, so cold-state installers book heavily from spring through fall, and a fence quoted in November may be scheduled for April. In much of the South and West the season is year round, and the constraint is heat and soil moisture rather than frost.

Property lines, shared fences and neighbor disputes

Most fence arguments are really boundary arguments, and they are cheaper to settle before the posts go in. A current survey or the recorded plat tells you where the line is; long use, a hedge or the old fence does not. Building slightly inside your own line keeps the whole structure on your property and keeps maintenance access simple, at the cost of giving up a few inches.

Who pays is a question of state law, and states differ. California's Civil Code section 841, the Good Neighbor Fence Act, presumes that adjoining landowners benefit equally from a dividing fence and are equally responsible for its reasonable costs, and it requires a landowner to give 30 days' prior written notice to each affected adjoining landowner before incurring those costs, describing the problem, the proposed work, the estimated cost and how it would be shared. That is California's statute; another state may have no equivalent, or a different one. Whatever your state says, telling the neighbor what you plan and putting it in writing is the step that prevents the dispute.

Keeping a fence standing: the yearly checks that prevent post failure

  • Push on each post in spring: movement at the base is the first sign of rot, a failed footing or frost heave, and one post replaced now saves a section later.
  • Keep soil, mulch and firewood piled away from wood pickets and rails so they can dry after rain.
  • Trim vines and shrubs off the fence; climbing growth traps moisture against the boards and adds wind load.
  • Check hardware every season, since hinges, latches and post caps loosen long before the framing gives up.
  • Re-seal or re-stain wood on the schedule the finish calls for, not when the fence already looks gray, and wash vinyl and coated metal to keep mildew and grime from etching the surface.
  • Watch where sprinklers land: a head spraying a wood post daily will rot it years ahead of the rest of the fence.
  • Around a pool, test the gate every month by letting it swing from a few inches open and confirming it latches by itself.

Repair a few sections or replace the whole fence?

Repair is the right call when the posts are sound and the damage is above ground: a truck backed into two panels, a storm took a run of boards, or the pickets are tired while the framing is not. Matching new lumber to a weathered fence never looks perfect, but the fence keeps doing its job for a fraction of the disruption.

Replacement starts to make sense once posts are failing across the line rather than in one spot, because each repair means digging beside a footing that is already in the way. It is also the moment to fix what the fence never did well: the height allowed in your zone today, a gate wide enough for a mower or a wheelbarrow, or a pool barrier that meets current state requirements rather than the ones in force when the pool was dug.

Ask for the quote to be broken into removal and disposal, posts and footings, panels or boards, gates and hardware. That way you can see whether you are paying for a new fence or for a fence with old problems buried underneath it.

Fences: frequently asked questions

Do I need a permit to replace a fence that is already there?

Sometimes, and it depends entirely on your city. Some jurisdictions exempt a replacement fence below a set height and some treat it exactly like a new one, especially if the height, the location or the materials change. Seattle, for example, publishes a threshold of 8 feet or less in total height with no masonry or concrete over 6 feet, and still requires a permit in flood-prone areas. Call your own building department before you order materials.

How tall can my fence be?

Whatever your zoning ordinance says, which is usually lower in the front yard than the back. In Seattle's neighborhood residential and multifamily zones the limit is 6 feet plus up to 2 feet of architectural features, dropping to 4 feet in a front or street-side setback. Your city's numbers will be its own, and a homeowner association can impose a stricter limit on top of them.

Do I really have to call 811 for fence post holes?

Yes. 811 is the free national before-you-dig service, it applies to homeowners as well as contractors, and it names installing fences as a project that requires a call. Contact it a few business days before digging and the utilities will mark their buried lines with paint or flags. Shallow digging still counts, and privately installed lines are not marked, so point those out yourself.

Does a pool fence have to be different from a regular yard fence?

Almost always. CPSC's guidelines call for a barrier of at least 4 feet with 5 feet or more preferable, no more than 4 inches of clearance underneath, no opening that passes a 4-inch sphere, and gates that open away from the pool and are self-closing and self-latching. Your state may require more: California's code sets a 60-inch minimum enclosure height and Florida's act sets a 4-foot barrier with several alternatives. The local building department enforces whichever applies.

Which side of the fence should face my neighbor?

Many cities have an ordinance requiring the finished side to face outward, toward the street or the adjoining property, and many do not. Since it is a local rule, ask the planning department, and mention it when you get quotes so the framing is oriented the same way in every bid you compare.

How does LokalMatch help me find a fence contractor?

You describe the job once, including the length of fence, the material and anything local like a pool or a corner lot, and fence contractors who cover your ZIP code get in touch with you directly. The pros pay for the requests they receive. LokalMatch does not build fences, does not set or quote prices, and does not vet, rank or recommend any company, so checking licensing, insurance and references is still yours to do.

Sources

  1. 811: the free national call-before-you-dig service
  2. U.S. Consumer Product Safety Commission: Safety Barrier Guidelines for Home Pools
  3. CPSC Publication 362: Safety Barrier Guidelines for Residential Pools
  4. Seattle Department of Construction and Inspections: Fences
  5. California Civil Code section 841 (Good Neighbor Fence Act)
  6. California Health and Safety Code section 115923: pool enclosure requirements
  7. Florida Statutes Chapter 515: Residential Swimming Pool Safety Act
  8. Minnesota Rules 1303.1600: Footing depth for frost protection

Written by the LokalMatch editorial team. Last reviewed September 14, 2026. How we write and check our guides

Find fence contractors by city

Alaska

Show 1 cities

California

Show 186 cities

Delaware

Show 1 cities

Florida

Show 82 cities

Maine

Show 1 cities

What affects the cost of fence

Prices depend on the details of your project. We only publish price ranges when they’re backed by real LokalMatch quote data or reliable sources. Until then, here’s what usually changes the price:

  • Size and complexity of the piece or structure
  • Wood species or material
  • Custom design compared with standard sizes
  • Hardware, railings and finishing
  • Removal of what's there now
  • Permits and drawings, where needed

How to compare fence contractors before you hire

  • Choose a carpenter whose past work matches your project, whether that's framing, trim, built-ins, stairs or a deck.
  • Ask for drawings or a clear description of what will be built, including materials and finishes.
  • For decks, stairs and railings, ask whether a permit is needed, since these are safety items.
  • Get a written quote that says who supplies materials and whether finishing, such as painting or staining, is included.
  • Ask how they'll handle surprises like rot or uneven walls and floors.

Questions to ask fence contractors before you hire

  • Can you show me photos of similar work you've done?
  • What materials will you use, and why?
  • Does this project need a permit, and will you get it?
  • Is finishing, such as sanding, painting or staining, included?
  • How will you attach the work to the existing structure?
  • What warranty do you offer on your workmanship?

Fence permits and local rules

Some fence work needs a permit or has to meet local bylaws. Rules vary by municipality, so ask your pro whether a permit is needed and who will apply for it — and check with your city or town if you’re unsure.

Permits and licensing

Free project calculators

Ready to get fence quotes?

Tell us about your fence project.

Do you offer fence services?

Join LokalMatch to get matched with homeowners in the areas you serve.