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:
| Location | Typical Max Height | Permit Needed? |
|---|---|---|
| Front yard | 3.5–4 feet | Usually yes |
| Side yard (street-facing) | 4–6 feet | Often yes |
| Side yard (interior) | 6 feet | Usually no (under 6 ft) |
| Backyard | 6–8 feet | Usually no (under 6 ft) |
| Pool enclosure | 4 feet minimum | Almost 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
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.
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.
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.
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.
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.
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.
| State | Front Yard Max | Backyard Max | Permit Fee | Setback | Notes |
|---|---|---|---|---|---|
| Alabama | 4 ft | 6 ft | $20–$100 | 0–2 ft from property line | Birmingham and Huntsville enforce fence permits; many rural areas do not. |
| Alaska | 3.5–4 ft | 6 ft | $25–$100 | 0–5 ft from property line | Anchorage requires permits for fences over 6 ft. Wind load requirements in coastal areas. |
| Arizona | 3 ft | 6 ft | $25–$150 | 0 ft (on property line) | Phoenix allows fences on the property line. Masonry/block walls over 6 ft need engineering. |
| Arkansas | 4 ft | 6 ft | $20–$75 | 0–2 ft from property line | Little Rock requires permits for fences over 6 ft. Rural areas generally do not enforce. |
| California | 3.5 ft | 6 ft | $50–$400 | Varies by city | No permit needed for fences 6 ft or under in most cities. LA and SF have specific design requirements in historic districts. |
| Colorado | 4 ft | 6 ft | $25–$150 | 0–5 ft from property line | Denver requires permits for fences over 6 ft. HOA restrictions are very common in Colorado. |
| Connecticut | 4 ft | 6 ft | $25–$150 | Varies by town | Each of 169 towns has own rules. "Spite fence" laws limit fences built solely to annoy neighbors. |
| Delaware | 4 ft | 6.5 ft | $25–$100 | 0–1 ft from property line | New Castle County requires permits for fences. Coastal areas may have height restrictions for wind. |
| Florida | 4 ft | 6 ft | $25–$200 | 0–2 ft from property line | Most counties require permits. Pool fences must be 4 ft minimum with self-closing gates per Florida Building Code. |
| Georgia | 4 ft | 6–8 ft | $25–$100 | 0–2 ft from property line | Atlanta allows up to 8 ft in rear yards. Permits generally required within city limits. |
| Hawaii | 3.5 ft | 6 ft | $50–$200 | 1–3 ft from property line | Honolulu requires permits for fences over 6 ft. Lava rock walls may have different rules. |
| Idaho | 4 ft | 6 ft | $20–$75 | 0 ft (on property line) | Boise requires permits for fences over 6 ft. Many rural areas have no fence regulations. |
| Illinois | 4 ft | 6 ft | $25–$150 | 0–2 ft from property line | Chicago requires permits for all fences. Suburbs vary — always check with your village building department. |
| Indiana | 4 ft | 6 ft | $20–$100 | 0–2 ft from property line | Indianapolis requires permits for fences over 6 ft. "Good neighbor" fence laws may apply. |
| Iowa | 3–4 ft | 6 ft | $20–$75 | 0–2 ft from property line | Des Moines requires permits for fences. Iowa has "spite fence" statutes limiting vindictive construction. |
| Kansas | 4 ft | 6 ft | $20–$75 | 0–2 ft from property line | Wichita and Overland Park require permits; rural areas typically do not. |
| Kentucky | 4 ft | 6 ft | $20–$100 | 0–2 ft from property line | Louisville Metro requires permits for fences. Kentucky has "fence law" statutes regarding shared boundary fences. |
| Louisiana | 4 ft | 6 ft | $25–$100 | 0 ft (on property line) | New Orleans requires permits for most fences. Louisiana follows Civil Code for boundary fences — neighbors may share costs. |
| Maine | 4 ft | 6 ft | $20–$75 | 0–1 ft from property line | Portland requires permits for fences over 6 ft. Shoreland zoning may restrict fence placement near water. |
| Maryland | 4 ft | 6 ft | $25–$150 | 0–2 ft from property line | Montgomery and Howard counties require permits. Baltimore City has specific fence material restrictions in some zones. |
| Massachusetts | 3.5–4 ft | 6 ft | $25–$200 | 0–1 ft from property line | Most cities require permits. Massachusetts has strong "spite fence" laws — fences over 6 ft built maliciously can be ordered removed. |
| Michigan | 3–4 ft | 6 ft | $25–$100 | 0–2 ft from property line | Detroit and Grand Rapids require permits. Pool fences must meet Michigan Residential Code requirements. |
| Minnesota | 4 ft | 6 ft | $25–$100 | 0–2 ft from property line | Minneapolis and St. Paul require permits for most fences. "Good neighbor" fence orientation rules common. |
| Mississippi | 4 ft | 6 ft | $20–$75 | 0–2 ft from property line | Jackson requires permits; many rural areas do not have fence regulations. |
| Missouri | 4 ft | 6 ft | $20–$100 | 0–2 ft from property line | Kansas City and St. Louis require permits. Missouri has boundary fence cost-sharing laws. |
| Montana | 4 ft | 6 ft | $20–$50 | 0 ft (on property line) | Very few municipalities require fence permits. Montana has "open range" laws affecting rural fencing obligations. |
| Nebraska | 4 ft | 6 ft | $20–$75 | 0–2 ft from property line | Omaha and Lincoln require permits for fences. Nebraska has boundary fence cost-sharing statutes. |
| Nevada | 3 ft | 6 ft | $25–$150 | 0 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 Hampshire | 4 ft | 6 ft | $20–$75 | 0–1 ft from property line | Few towns require fence permits unless over 6 ft. NH has "spite fence" statutes (RSA 476:1-2). |
| New Jersey | 4 ft | 6 ft | $25–$200 | 0–6 inches from property line | Most municipalities require permits. NJ has strong "good neighbor" fence laws — finished side must face outward. |
| New Mexico | 3–4 ft | 6 ft | $25–$100 | 0 ft (on property line) | Albuquerque and Santa Fe require permits. Adobe/coyote fences have specific height allowances in some areas. |
| New York | 4 ft | 6 ft | $25–$300 | Varies by municipality | NYC requires permits. Long Island and Westchester towns have strict fence codes. NYS has "spite fence" laws. |
| North Carolina | 3.5–4 ft | 6–8 ft | $25–$100 | 0–2 ft from property line | Charlotte and Raleigh require permits for fences over 6 ft. Pool fences must meet NC Building Code. |
| North Dakota | 4 ft | 6 ft | $20–$50 | 0–2 ft from property line | Few cities require fence permits. North Dakota has "herd district" laws affecting agricultural fencing. |
| Ohio | 4 ft | 6 ft | $25–$100 | 0–1 ft from property line | Columbus and Cleveland require permits for most fences. Ohio Revised Code has partition fence statutes for shared boundaries. |
| Oklahoma | 4 ft | 6 ft | $20–$75 | 0–2 ft from property line | Oklahoma City and Tulsa require permits. Oklahoma has "open range" and "fence law" statutes affecting rural areas. |
| Oregon | 3.5 ft | 6 ft | $25–$150 | 0–1 ft from property line | Portland requires permits for fences over 6 ft. Oregon has "spite fence" statutes (ORS 96.010). |
| Pennsylvania | 4 ft | 6 ft | $25–$150 | 0–2 ft from property line | Philadelphia and Pittsburgh require permits. PA has "line fence" laws for shared boundary fences between properties. |
| Rhode Island | 4 ft | 6 ft | $25–$100 | 0–1 ft from property line | Most cities require permits. Rhode Island has strong "spite fence" statutes. |
| South Carolina | 4 ft | 6 ft | $25–$100 | 0–2 ft from property line | Charleston and Columbia require permits. Coastal areas have wind resistance requirements for fences. |
| South Dakota | 4 ft | 6 ft | $20–$50 | 0–2 ft from property line | Sioux Falls requires permits; most rural areas do not. South Dakota has partition fence laws. |
| Tennessee | 4 ft | 6 ft | $20–$100 | 0–2 ft from property line | Nashville and Memphis require permits for most fences. Tennessee has boundary fence cost-sharing statutes. |
| Texas | 4 ft | 6–8 ft | $0–$200 | 0–2 ft from property line | No 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. |
| Utah | 3–4 ft | 6 ft | $25–$100 | 0–2 ft from property line | Salt Lake City requires permits for fences over 6 ft. Utah has boundary fence cost-sharing statutes. |
| Vermont | 4 ft | 6 ft | $20–$75 | 0–1 ft from property line | Few towns require fence permits unless over 6 ft. Vermont has "line fence" arbitration laws for boundary disputes. |
| Virginia | 4 ft | 6–7 ft | $25–$150 | 0–2 ft from property line | Fairfax County and Virginia Beach require permits. Virginia has "spite fence" statutes and shared boundary fence laws. |
| Washington | 4 ft | 6 ft | $25–$150 | 0–1 ft from property line | Seattle requires permits for fences over 6 ft. Washington has "spite fence" statutes (RCW 7.40.030). |
| West Virginia | 4 ft | 6 ft | $20–$50 | 0–2 ft from property line | Charleston requires permits; many rural areas do not have fence regulations. WV has "lawful fence" statutes. |
| Wisconsin | 4 ft | 6 ft | $25–$100 | 0–2 ft from property line | Milwaukee and Madison require permits. Wisconsin has "line fence" statutes (Wis. Stat. § 90) with cost-sharing provisions. |
| Wyoming | 4 ft | 6 ft | $20–$50 | 0–2 ft from property line | Very 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.