Skip to content
Complete 50-State Guide

Do I Need a Permit to Build a Fence?

Height limits, setback rules, permit costs, HOA restrictions, and what happens if you build without one. Rules for all 50 states, updated for 2026.

Quick Answer: Most cities do not require a permit for backyard fences 6 feet or shorter. You likely do need a permit if your fence is in the front yard, over 6 feet tall, on a corner lot, or near utilities or easements. A typical fence permit costs $20–$200 and takes 1–5 days to approve.

When You Do (and Don't) Need a Fence Permit

Permit Usually Required

  • Fence over 6 feet tall (backyard) or over 4 feet (front yard)
  • Fence in the front yard or side yard facing a street
  • Corner lot fences (visibility triangle requirements)
  • Masonry, brick, or concrete block walls
  • Fence near public right-of-way, sidewalks, or utilities
  • Pool fences (safety barrier requirements)
  • Fence in a historic district or flood zone
  • Electric or barbed wire fences in residential areas

Often Permit-Free

  • Backyard wood or vinyl fence, 6 feet or shorter
  • Replacing an existing fence (same height and location)
  • Temporary construction or event fencing
  • Garden or decorative fencing under 3 feet
  • Agricultural fencing in rural/unincorporated areas

"Often permit-free" does not mean "always." Some cities require permits for ALL fences regardless of height. Always verify with your local building department.

How Much Does a Fence Permit Cost?

$0–$50

Rural areas / small towns

$50–$100

Most suburban cities

$100–$200

Major metro areas

$200–$400+

NYC, LA, SF, NJ

Fence permits are among the cheapest building permits you can get. Compare that to the average fence installation cost of $1,500–$4,000 — the permit is a tiny fraction of your project budget and protects you from much larger liabilities.

Fence Height Rules: Front Yard vs. Backyard

Nearly every US city distinguishes between front yard and backyard fences. The universal pattern:

LocationTypical Max HeightPermit Needed?
Front yard3.5–4 feetUsually yes
Side yard (street-facing)4–6 feetOften yes
Side yard (interior)6 feetUsually no (under 6 ft)
Backyard6–8 feetUsually no (under 6 ft)
Pool enclosure4 feet minimumAlmost always yes

Corner Lot Visibility Triangle

Corner lot owners: this is the #1 fence violation

If you live on a corner, your city almost certainly has a "visibility triangle"or "sight triangle" rule. This is a triangular area at the intersection where fences must be short enough (usually 30–36 inches max) so drivers can see pedestrians and oncoming traffic. The triangle typically extends 20–35 feet from the corner in each direction. Building a tall fence in this zone will result in an immediate violation and required removal.

HOA Fence Rules

If you live in a Homeowners Association, your HOA rules likely add restrictions on top of city code — they cannot override city code, but they can be stricter. Common HOA fence restrictions:

  • Material restrictions: Only wood, vinyl, or wrought iron — no chain link
  • Color requirements: Must match home exterior or approved color palette
  • Height limits: Often 4 ft maximum, stricter than city code
  • Placement: May not allow front yard fences at all
  • Approval process: Architectural Review Board must approve before building
  • No fences allowed: Some HOAs prohibit fences entirely

Always check your CC&Rs first. Building a fence that violates HOA rules — even if the city allows it — can result in daily fines and forced removal.

How to Get a Fence Permit: Step by Step

1

Check if you need a permit

Call or visit your city's building department website. Give them your fence height, location (front/back/side), and material. They'll tell you if a permit is required. Also check your HOA rules.

2

Get a property survey

Know exactly where your property lines are before building. A professional survey costs $200–$800 but prevents the much more expensive mistake of building on your neighbor's property. Some cities require a survey with the permit application.

3

Call 811 before you dig

Federal law requires you to call 811 (or submit online) at least 48 hours before digging fence post holes. Utility companies will mark underground gas, electric, water, and telecom lines for free. Hitting a gas line can be fatal.

4

Notify your neighbors

While not always legally required, notifying adjacent neighbors is a good practice and is required by some cities. Some states have "good neighbor" fence laws requiring the finished side to face outward.

5

Submit your permit application

Provide a site plan showing fence location, height, materials, and distances from property lines and structures. Include the fence length and any gates. Most applications are reviewed within 1–5 business days.

6

Build to code and get inspected

Build your fence according to the approved plans. Most fence permits require a single final inspection. The inspector checks height, setback from property lines, and compliance with visibility triangle rules on corner lots.

What Happens If You Build Without a Permit?

Fines: $100–$1,000+

Most cities double or triple the permit fee as a penalty. Daily fines accumulate until you comply.

Forced removal

If the fence violates height limits, setback rules, or is in a visibility triangle, the city can order you to remove it at your own expense.

Neighbor disputes escalate

An unpermitted fence on or near the property line gives your neighbor legal grounds to demand removal.

Home sale complications

Unpermitted structures must be disclosed when selling. Buyers' inspectors will flag it, and lenders may require resolution before closing.

Insurance issues

If someone is injured by an unpermitted fence (e.g., a child climbs a pool fence that doesn't meet code), your liability exposure increases significantly.

Fence Rules by State

Front/back yard height limits, typical permit fees, and setback rules for all 50 states. Click your state for detailed permit and licensing information.

StateFront Yard MaxBackyard MaxPermit FeeSetbackNotes
Alabama4 ft6 ft$20–$1000–2 ft from property lineBirmingham and Huntsville enforce fence permits; many rural areas do not.
Alaska3.5–4 ft6 ft$25–$1000–5 ft from property lineAnchorage requires permits for fences over 6 ft. Wind load requirements in coastal areas.
Arizona3 ft6 ft$25–$1500 ft (on property line)Phoenix allows fences on the property line. Masonry/block walls over 6 ft need engineering.
Arkansas4 ft6 ft$20–$750–2 ft from property lineLittle Rock requires permits for fences over 6 ft. Rural areas generally do not enforce.
California3.5 ft6 ft$50–$400Varies by cityNo permit needed for fences 6 ft or under in most cities. LA and SF have specific design requirements in historic districts.
Colorado4 ft6 ft$25–$1500–5 ft from property lineDenver requires permits for fences over 6 ft. HOA restrictions are very common in Colorado.
Connecticut4 ft6 ft$25–$150Varies by townEach of 169 towns has own rules. "Spite fence" laws limit fences built solely to annoy neighbors.
Delaware4 ft6.5 ft$25–$1000–1 ft from property lineNew Castle County requires permits for fences. Coastal areas may have height restrictions for wind.
Florida4 ft6 ft$25–$2000–2 ft from property lineMost counties require permits. Pool fences must be 4 ft minimum with self-closing gates per Florida Building Code.
Georgia4 ft6–8 ft$25–$1000–2 ft from property lineAtlanta allows up to 8 ft in rear yards. Permits generally required within city limits.
Hawaii3.5 ft6 ft$50–$2001–3 ft from property lineHonolulu requires permits for fences over 6 ft. Lava rock walls may have different rules.
Idaho4 ft6 ft$20–$750 ft (on property line)Boise requires permits for fences over 6 ft. Many rural areas have no fence regulations.
Illinois4 ft6 ft$25–$1500–2 ft from property lineChicago requires permits for all fences. Suburbs vary — always check with your village building department.
Indiana4 ft6 ft$20–$1000–2 ft from property lineIndianapolis requires permits for fences over 6 ft. "Good neighbor" fence laws may apply.
Iowa3–4 ft6 ft$20–$750–2 ft from property lineDes Moines requires permits for fences. Iowa has "spite fence" statutes limiting vindictive construction.
Kansas4 ft6 ft$20–$750–2 ft from property lineWichita and Overland Park require permits; rural areas typically do not.
Kentucky4 ft6 ft$20–$1000–2 ft from property lineLouisville Metro requires permits for fences. Kentucky has "fence law" statutes regarding shared boundary fences.
Louisiana4 ft6 ft$25–$1000 ft (on property line)New Orleans requires permits for most fences. Louisiana follows Civil Code for boundary fences — neighbors may share costs.
Maine4 ft6 ft$20–$750–1 ft from property linePortland requires permits for fences over 6 ft. Shoreland zoning may restrict fence placement near water.
Maryland4 ft6 ft$25–$1500–2 ft from property lineMontgomery and Howard counties require permits. Baltimore City has specific fence material restrictions in some zones.
Massachusetts3.5–4 ft6 ft$25–$2000–1 ft from property lineMost cities require permits. Massachusetts has strong "spite fence" laws — fences over 6 ft built maliciously can be ordered removed.
Michigan3–4 ft6 ft$25–$1000–2 ft from property lineDetroit and Grand Rapids require permits. Pool fences must meet Michigan Residential Code requirements.
Minnesota4 ft6 ft$25–$1000–2 ft from property lineMinneapolis and St. Paul require permits for most fences. "Good neighbor" fence orientation rules common.
Mississippi4 ft6 ft$20–$750–2 ft from property lineJackson requires permits; many rural areas do not have fence regulations.
Missouri4 ft6 ft$20–$1000–2 ft from property lineKansas City and St. Louis require permits. Missouri has boundary fence cost-sharing laws.
Montana4 ft6 ft$20–$500 ft (on property line)Very few municipalities require fence permits. Montana has "open range" laws affecting rural fencing obligations.
Nebraska4 ft6 ft$20–$750–2 ft from property lineOmaha and Lincoln require permits for fences. Nebraska has boundary fence cost-sharing statutes.
Nevada3 ft6 ft$25–$1500 ft (on property line)Clark County (Las Vegas) requires permits for walls/fences over 6 ft. Masonry walls common in desert areas have stricter requirements.
New Hampshire4 ft6 ft$20–$750–1 ft from property lineFew towns require fence permits unless over 6 ft. NH has "spite fence" statutes (RSA 476:1-2).
New Jersey4 ft6 ft$25–$2000–6 inches from property lineMost municipalities require permits. NJ has strong "good neighbor" fence laws — finished side must face outward.
New Mexico3–4 ft6 ft$25–$1000 ft (on property line)Albuquerque and Santa Fe require permits. Adobe/coyote fences have specific height allowances in some areas.
New York4 ft6 ft$25–$300Varies by municipalityNYC requires permits. Long Island and Westchester towns have strict fence codes. NYS has "spite fence" laws.
North Carolina3.5–4 ft6–8 ft$25–$1000–2 ft from property lineCharlotte and Raleigh require permits for fences over 6 ft. Pool fences must meet NC Building Code.
North Dakota4 ft6 ft$20–$500–2 ft from property lineFew cities require fence permits. North Dakota has "herd district" laws affecting agricultural fencing.
Ohio4 ft6 ft$25–$1000–1 ft from property lineColumbus and Cleveland require permits for most fences. Ohio Revised Code has partition fence statutes for shared boundaries.
Oklahoma4 ft6 ft$20–$750–2 ft from property lineOklahoma City and Tulsa require permits. Oklahoma has "open range" and "fence law" statutes affecting rural areas.
Oregon3.5 ft6 ft$25–$1500–1 ft from property linePortland requires permits for fences over 6 ft. Oregon has "spite fence" statutes (ORS 96.010).
Pennsylvania4 ft6 ft$25–$1500–2 ft from property linePhiladelphia and Pittsburgh require permits. PA has "line fence" laws for shared boundary fences between properties.
Rhode Island4 ft6 ft$25–$1000–1 ft from property lineMost cities require permits. Rhode Island has strong "spite fence" statutes.
South Carolina4 ft6 ft$25–$1000–2 ft from property lineCharleston and Columbia require permits. Coastal areas have wind resistance requirements for fences.
South Dakota4 ft6 ft$20–$500–2 ft from property lineSioux Falls requires permits; most rural areas do not. South Dakota has partition fence laws.
Tennessee4 ft6 ft$20–$1000–2 ft from property lineNashville and Memphis require permits for most fences. Tennessee has boundary fence cost-sharing statutes.
Texas4 ft6–8 ft$0–$2000–2 ft from property lineNo statewide code — each city sets its own rules. Houston has no zoning. Most Texas cities allow 8 ft in rear yards. Many do not require fence permits under 8 ft.
Utah3–4 ft6 ft$25–$1000–2 ft from property lineSalt Lake City requires permits for fences over 6 ft. Utah has boundary fence cost-sharing statutes.
Vermont4 ft6 ft$20–$750–1 ft from property lineFew towns require fence permits unless over 6 ft. Vermont has "line fence" arbitration laws for boundary disputes.
Virginia4 ft6–7 ft$25–$1500–2 ft from property lineFairfax County and Virginia Beach require permits. Virginia has "spite fence" statutes and shared boundary fence laws.
Washington4 ft6 ft$25–$1500–1 ft from property lineSeattle requires permits for fences over 6 ft. Washington has "spite fence" statutes (RCW 7.40.030).
West Virginia4 ft6 ft$20–$500–2 ft from property lineCharleston requires permits; many rural areas do not have fence regulations. WV has "lawful fence" statutes.
Wisconsin4 ft6 ft$25–$1000–2 ft from property lineMilwaukee and Madison require permits. Wisconsin has "line fence" statutes (Wis. Stat. § 90) with cost-sharing provisions.
Wyoming4 ft6 ft$20–$500–2 ft from property lineVery few cities require fence permits. Wyoming has strong "open range" and "fence out" laws for livestock.

Planning a Fence Project?

Get an instant cost estimate, check other permit requirements, or browse our guides.

Frequently Asked Questions About Fence Permits

Do I need a permit to build a fence?

It depends on your city and the fence height. Most cities do NOT require permits for residential fences 6 feet or shorter in the backyard. However, front yard fences, fences over 6 feet, corner lot fences, and fences near utilities typically do require permits. Always check with your local building department — rules vary even between neighboring cities.

How tall can I build a fence without a permit?

In most US cities, you can build a backyard fence up to 6 feet without a permit, and a front yard fence up to 3.5–4 feet. Fences exceeding these heights almost always require a permit. Some cities (like those in Texas) allow 8-foot backyard fences without permits. Always verify your local limits.

How much does a fence permit cost?

Fence permits typically cost $20–$200 depending on your city. The national average is $50–$100. Some cities charge flat fees; others base the cost on fence length or property frontage. A few cities (mainly in Texas) don't charge for fence permits at all.

Can I build a fence on the property line?

In most states, yes — you can build a fence directly on the property line, but this makes it a "boundary fence" with shared responsibility. Many cities require a 2–6 inch setback from the property line to keep the fence entirely on your property. You should get a survey to confirm where your property line is before building.

What happens if I build a fence without a permit?

If you build without a required permit, you could face fines ($100–$1,000+), be ordered to remove the fence, or have trouble selling your home. Unpermitted structures must be disclosed in most states. The permit fee ($20–$200) is always cheaper than the consequences.

Do I need a permit to replace an existing fence?

Generally no — replacing an existing fence in the same location with the same height and materials usually doesn't require a permit. However, if you're changing the height, location, or material type, or if the fence is on a property line, you may need one. Some strict jurisdictions require permits for all fence work.

Does my neighbor have to pay for half the fence?

It depends on your state. California, Utah, and several other states have "good neighbor" fence laws that require neighbors to share costs for boundary fences. In most states, however, fence cost-sharing is not legally required unless the neighbor agrees or there's an existing fence they benefit from.

Do HOA rules override city fence codes?

HOAs can impose stricter rules than city code, but they cannot allow you to violate city code. For example, if your city allows 6-foot fences but your HOA limits fences to 4 feet, you're limited to 4 feet. If your HOA allows 8-foot fences but your city caps at 6 feet, you're limited to 6 feet. You must comply with both.

Do I need a permit for a pool fence?

Pool fences are almost always required by code (not just recommended), and many jurisdictions require a permit specifically for pool barriers. The typical requirement is a minimum 4-foot fence with self-closing, self-latching gates and no more than 4 inches between pickets. Some states require inspections even if no permit is needed for the fence itself.

Can my city force me to remove a fence?

Yes. If a fence violates building codes, exceeds height limits, encroaches on public right-of-way, or was built without a required permit, the city can issue a violation notice and ultimately order removal. You'll typically get a chance to bring it into compliance before removal is enforced.

Fence regulations vary by city, county, and state. Height limits, setback requirements, and permit fees listed here are general guidelines based on typical municipal codes. Your city may have different rules. Always verify current requirements with your local building department before starting construction. This is not legal advice.