Do You Need a Permit to Build a Fence? (2026)
Fence permit requirements vary wildly by location. Here's exactly when you need one, when you don't, and what happens if you skip it.

Residential backyard with wooden fence, shed, and lawns on a sunny day
Whether you need a permit to build a fence depends on where you live, how tall it is, and where on your property it sits. Backyard fences under 6 feet usually don't need one. Front yard fences, anything over 6 feet, and fences close to property lines often do. The rules are weirdly specific and they vary by city, not just by state — which is how people get caught.
Quick Answer: Backyard fences 6 feet or under usually don't need a permit in most cities. Fences over 6 feet, fences in the front yard, and fences in historic districts or HOA communities almost always do. Always call your local building department before you start — rules vary by city, not just by state.
This guide pulls permit requirements from hundreds of jurisdictions. Here is what to know before you start digging post holes.

The General Rule (With Important Exceptions)
Most cities follow a similar pattern:
Fence TypePermit Usually Required? Backyard fence, 6 ft or underNo Backyard fence, over 6 ftYes Front yard fence, any heightUsually yes (height limits apply) Side yard fenceDepends on setback rules Pool fence/enclosureYes (safety codes apply) Fence on property lineCheck survey requirements Temporary/construction fenceUsually no
The catch: those are generalizations. Every city writes its own rules. A fence that is fine in Houston might need a permit in Dallas, and they are both in Texas.

States With Notable Fence Rules
Stricter states
More relaxed states

Common Fence Permit Costs
When a permit IS required, here's what to expect:
City ExamplePermit CostProcessing Time Los Angeles, CA$100-$2002-4 weeks Houston, TX$50-$1001-2 weeks Chicago, IL$75-$1502-3 weeks Phoenix, AZ$50-$1001-2 weeks Average nationwide$50-$1501-3 weeks
Permit cost is a small line on a fence project. An average install runs $1,500-$8,000 depending on material and length, so a $50-$150 permit is noise. For more on permits generally, see the complete building permit guide.
Browse fencing costs by state to compare pricing in your area.
What Happens If You Build Without a Permit
Skipping a required permit looks like a shortcut. It usually is not:
Before You Build: The Pre-Fence Checklist
1. Know your property lines
This is the #1 source of fence disputes. Build on your neighbor's property — even by 6 inches — and they can legally make you take it down. Get a property survey ($300-$800) if there is any doubt about your lines. Way cheaper than tearing down and rebuilding.2. Check your HOA rules
HOA rules are often tighter than city code. Common HOA fence rules:Check HOA rules before you check city permits. Your city may allow an 8-foot fence, but your HOA may cap you at 4.
3. Call 811 before you dig
Legally required in all 50 states. Call 811 or submit online at call811.com at least 2-3 business days before you dig. Utility companies mark underground gas, electric, water, and cable lines for free. Hitting a gas line can be deadly, and you are on the hook for repair costs if you damage a utility.4. Talk to your neighbors
Not legally required in most places, but telling your neighbors what you are planning heads off most disputes. A lot of jurisdictions also require the "good side" (finished side) of the fence to face outward toward the neighbor.Some neighbors will even split the cost of a shared fence if you ask.
How to Get a Fence Permit (When You Need One)
Frequently Asked Questions
Can I build a fence right on the property line?
Usually yes, but the fence has to be entirely on your side. Even a few inches over creates legal problems. When in doubt, set your fence 2-4 inches inside your property line.How high can I build a fence without a permit?
The common thresholds are 6 feet for backyard fences and 3-4 feet for front yard fences. Some cities allow 8-foot backyard fences with no permit; others require one for anything over 4 feet. Check your state's permit requirements.Does replacing an existing fence need a permit?
Usually not, if the replacement is in the same location at the same height. If you change the height, material, or location, call the building department to confirm.Who is responsible for a shared fence?
Depends on the state. In California, neighbors are generally required to share the cost of maintaining a boundary fence equally (CA Civil Code 841). In most other states it depends on who built the fence and local ordinances.Do I need a permit for a chain link fence?
The height rules are the same regardless of material. A 6-foot chain link fence in the backyard typically doesn't need a permit, same as a wood fence of the same height.---
*Not sure if your project needs a permit? Try the Do I Need a Permit? quiz or ask the AI assistant for guidance specific to your location. Use the fence cost calculator to estimate your project cost.*