An independent guide to local permits & inspections

Project permit guide

Do I Need a Permit for a Fence?

Reviewed · 12 cited sources

Short answer

It depends on height, location, and your city. The model International Residential Code exempts fences up to 7 feet tall from a building permit, but many cities require a fence or zoning permit at any height, and fences that serve as pool barriers almost always need one.

On this page 14 sections

Fences are one of the most common projects where the answer really depends on the city. The model building code treats most residential fences as low-risk and exempts them from a building permit, but local zoning ordinances regulate fences heavily: how tall they can be, where they can go, and sometimes what they can be made of. As a result, many cities require a fence permit or zoning approval even when no building permit is needed.

Before you order materials, find out which rules apply at your address. If you’re not sure which office handles your property, you can find your local building department, which can also tell you whether fences go through the building or zoning division.

What the model code exempts

Section R105.2 of the 2021 International Residential Code (IRC), Building item 2, exempts “fences not over 7 feet high” from a building permit. The 2021 International Building Code uses the same 7-foot figure (Section 105.2). Local codes often set a different number: Phoenix’s exemption stops at 3 feet, while Seattle’s goes up to 8 feet (see the examples below).

The same section (Building item 3) exempts retaining walls 4 feet tall or less, measured from the bottom of the footing to the top of the wall, as long as they don’t support a surcharge (additional load such as a sloped yard, driveway, or structure above). A fence on top of a retaining wall can push the combined structure into permit territory, so plan those together.

The model code also says an exemption from a permit does not authorize work that violates the code or other laws. In practice, that means zoning limits still apply to an exempt fence.

When you usually need a permit

Expect to need a building permit, a fence permit, or zoning approval in situations like these:

  • Your city requires a permit for all new fences, regardless of height. This is common.
  • The fence is taller than the local exemption, 7 feet under the current model code, or a lower figure set locally.
  • The fence is a required barrier around a swimming pool, spa, or hot tub.
  • The fence is masonry, concrete, or another heavy wall that needs a designed footing.
  • It’s combined with a retaining wall, or built on top of one.
  • The property is in a historic district, a floodplain, or a planned community with design review.
  • The fence includes a powered gate, which may need an electrical permit.

Work that is often exempt

Depending on local rules, these frequently need no permit:

  • Repairing or replacing a few boards, pickets, or posts in kind.
  • Painting or staining an existing fence.
  • Short garden fencing and temporary construction fencing.
  • Fences under the local height threshold where the city does not require fence permits.

Even when no permit is required, you are still responsible for meeting zoning height and placement rules.

Zoning rules are usually what matters most

For most homeowners, zoning is where fence projects run into trouble. Common local rules include:

  • Height limits by location. Many cities allow taller fences in rear and side yards than in front yards. Front-yard limits are often much lower than the building code’s 7-foot exemption.
  • Corner lot visibility. Cities often restrict fence height in a triangle near street intersections and driveways so drivers can see traffic and pedestrians.
  • How height is measured, for example from the lower side of a grade change, or including or excluding post caps and lattice.
  • Materials. Some cities restrict barbed wire, razor wire, or electrified fencing in residential areas, and some limit chain link in front yards.
  • Finished side. Some ordinances require the finished or “good” side of the fence to face neighbors or the street.
  • Easements. Utility and drainage easements may prohibit fences, or allow them only with the understanding that the utility can remove them.

HOA rules are separate again. Covenants frequently control fence style, color, height, and placement, and many require written approval before construction. An HOA approval does not replace a city permit, and a city permit does not override HOA covenants.

Pool barrier fences are different

If a fence encloses a pool or spa, it is a safety barrier, not just a fence. The 2021 IRC sends pool and spa construction to the International Swimming Pool and Spa Code (R327.1). That code requires the top of the barrier to be at least 48 inches above grade on the side facing away from the pool (ISPSC 305.2.1), limits gaps under and through the barrier so a small child can’t get through, and requires pedestrian gates to open outward away from the pool and be self-closing and self-latching (ISPSC 305.3). Local rules vary and may be stricter.

Inspectors usually check the barrier before the pool can be filled or used. See our guide on swimming pool permits for more detail, and the Consumer Product Safety Commission’s Pool Safely program for general barrier guidance.

How the rules differ by city

Fence rules vary more from city to city than almost any other residential project. A few examples from official sources:

  • Phoenix exempts only fences 3 feet tall or less, according to its technical guideline on fence and retaining wall permits; taller residential fences need a building permit that checks zoning and site drainage. Fence and retaining wall combinations require structural calculations at any height. The city’s fee schedule effective January 20, 2026 sets a $98 minimum permit fee for residential fences valued up to $1,000.
  • Seattle needs no permit for a fence 8 feet or less with no masonry or concrete elements over 6 feet, unless it is in a flood-prone area. In neighborhood residential and multifamily zones, zoning still caps fences at 6 feet (plus 2 feet of arbors or trellises) and 4 feet in front or street-side setbacks. A fence on a retaining wall that raises the grade is limited to 9 feet 6 inches combined.
  • Denver requires a zoning permit for any fence over 4 feet. Post-hole fences need a building permit only above 8 feet, but other fence and wall types need one above 4 feet. Fences are limited to 4 feet in front of the house’s primary street-facing facade and 6 feet behind it, and must sit at least 6 inches back from a public sidewalk.
  • Austin requires a fence permit when the fence is in a floodplain, more than 7 feet high at any point, or more than 6 feet high along a public right-of-way other than an alley. A solid fence on a corner lot needs approval from Austin Transportation and Public Works so it doesn’t block drivers’ sight lines.
  • Fairfax County, Virginia doesn’t require a county permit for residential fences except those used as a swimming pool barrier, and also exempts concrete or masonry walls up to 6 feet. Zoning setbacks may still apply.

What the inspection covers

Many fence permits involve little or no inspection. When inspections happen, they usually cover:

  • Location and setback. Confirming the fence is where the approved site plan shows it.
  • Post holes and footings, for tall fences, masonry walls, or fences in high-wind areas.
  • Final inspection. Height, gates, and, for pool barriers, latch height and self-closing hardware.

What to have ready when you apply

A typical fence application asks for:

  • Site plan showing property lines, the house, the fence location, gate locations, and distances to streets and sidewalks.
  • Fence height and material, often with a simple elevation sketch or a product brochure.
  • Survey, if your city requires one or if you’re unsure of the property line.
  • HOA approval if your city asks for it (some do).
  • Construction details for masonry walls, tall fences, or retaining walls.
  • Contractor information if you’re hiring a fence company.

Before you submit, a quick checklist:

  • Confirm your property lines with a survey or your plat.
  • Look up front, side, rear, and corner-lot height limits in your zoning code.
  • Check easements, and get utility consent if the fence will cross one.
  • Get HOA approval in writing if you have an HOA.
  • Decide whether the fence will also serve as a pool barrier.
  • Call 811 a few business days before digging post holes.

Before you dig

Fence posts are one of the most common ways homeowners hit buried utility lines. Contact 811 a few business days before digging so utilities can mark their lines. The service is free and required before excavation in many states. Also check for private lines such as sprinkler pipes, landscape lighting, or a buried propane line, which 811 may not mark.

Questions to ask your building department

  • Does the city require a permit for every fence, or only above a certain height?
  • What are the maximum heights in front, side, and rear yards?
  • How is fence height measured on a slope or on top of a retaining wall?
  • Can the fence be built right on the property line, or does it need a setback?
  • Are there corner visibility rules for my lot?
  • Do pool barrier fences need a separate permit or inspection?

Talking with your neighbor before you build is also worth the time. Agreeing on the line and the fence style up front can prevent disputes, and some cities have rules about shared boundary fences. For the application process in general, see how to apply for a building permit.

Frequently asked questions

How tall can a fence be without a permit?

Under the model IRC, fences not over 7 feet high are exempt from a building permit. Zoning codes set separate maximum heights, and they are often lower, especially in front yards. Some cities require a fence permit for any new fence, regardless of height.

Do I need a permit to replace an existing fence?

Often, yes, if your city requires fence permits at all. Many treat a full replacement like a new fence, while repairing a few boards or a damaged section is usually allowed without one. If the existing fence does not meet current height or setback rules, replacing it may require bringing it into compliance.

Do I need a survey to put up a fence?

Not every city requires one, but it is the most reliable way to know where your property line is. Some departments require a survey or a site plan showing the fence location before issuing a permit. Building on a neighbor's land, even by a few inches, can lead to disputes and removal.

Does a fence around a pool need a permit?

Almost always. A fence that serves as a pool barrier has to meet specific height, gate, and opening requirements, and inspectors usually check it before the pool can be filled or used. That applies even where ordinary fences are exempt.

Is a retaining wall the same as a fence for permit purposes?

No. The model IRC exempts retaining walls 4 feet tall or less, measured from the bottom of the footing to the top of the wall, unless they support a surcharge such as a driveway, slope, or building. A fence built on top of a retaining wall may be measured differently for zoning height limits.

Sources

  1. 2021 International Residential Code, Chapter 1 Scoping and Administration (Section R105.2), UpCodes copy (up.codes)
  2. 2021 International Residential Code, Chapter 3 Building Planning (Section R327 Pools), UpCodes copy (up.codes)
  3. 2021 International Building Code, Chapter 1 (Section 105.2), UpCodes copy (up.codes)
  4. 2021 International Swimming Pool and Spa Code, Chapter 3 (Section 305 Barriers), UpCodes copy (Washington) (up.codes)
  5. U.S. Consumer Product Safety Commission, Pool Safely (poolsafely.gov)
  6. Call 811 - Know what's below before you dig (call811.com)
  7. City of Phoenix, Required Permits for Fences and Retaining Walls (TRT/DOC/00181) (phoenix.gov)
  8. City of Phoenix Planning & Development Department, PDD Fee Schedule (effective January 20, 2026) (phoenix.gov)
  9. Seattle SDCI, Fences (seattle.gov)
  10. City and County of Denver, Fences and Walls (denvergov.org)
  11. City of Austin, Fencing Regulations (austintexas.gov)
  12. Fairfax County Land Development Services, Does My Project Require a Permit? (fairfaxcounty.gov)

This guide is general information, not legal or code advice. How we research · Suggest a correction