Do You Need a Permit to Build a Fence?

Typical height limits, when permits kick in, property line pitfalls, and how HOA rules fit alongside city codes.

Last updated: July 2026

Quick Answer: Fences under 6 feet in back and side yards usually don't need a permit in most U.S. jurisdictions. Front-yard fences are commonly capped at 3–4 feet, and corner lots face additional sight-line restrictions near intersections. Go taller than the local limit — or build a pool enclosure — and permits (and stricter rules) apply.

Before you dig a single post hole: fence rules are set by local jurisdictions — cities, counties, and townships — and they vary widely. The heights and thresholds on this page are the most common U.S. figures, not a guarantee for your lot. Confirm the exact rules with your city or county building department (and your HOA, if you have one) before starting.

Typical Height Rules

Fence permitting is almost entirely about height and location on the lot:

When Permits ARE Required

Property Lines & Neighbors

More fence disputes come from property lines than from permits. Three things to know:

HOA vs City: Both Can Apply

HOA approval and a building permit are two separate hurdles, and clearing one does nothing for the other. Your HOA can restrict height, material, and color far beyond what the city cares about — a city might allow a 6-foot chain link fence where the HOA mandates 4-foot white vinyl. Conversely, HOA approval does not equal a permit: if your fence needs a city permit, the HOA's sign-off won't protect you from code enforcement. When both apply, get HOA approval first (it's usually the pickier gate), then pull the permit. Comparing materials to satisfy both? Our vinyl vs wood fencing comparison covers the trade-offs.

Once you're cleared to build, estimate posts, rails, and pickets with the fence calculator, budget the project with our fence cost guide, and follow the fence installation guide step by step.

Ready to Plan Your Fence?

Get post counts, rail and picket quantities, and concrete estimates for your exact fence line.

Fence Calculator →

Reminder: permit rules are set by your local jurisdiction and vary widely. The heights above are the most common U.S. figures — confirm with your city or county building department before starting.

Frequently Asked Questions

In most U.S. jurisdictions, rear- and side-yard fences up to 6 feet (7 feet in some areas) don't require a permit. Front-yard fences are typically limited to 3–4 feet, and corner lots have sight-line rules capping fence height near intersections regardless of permits. Building on top of a retaining wall can change how height is measured — often from the bottom of the wall — so a combo can need a permit even if the fence alone wouldn't. Confirm exact limits with your local building department, since rules vary by city and county.

No — if the fence sits entirely on your property, you generally don't need your neighbor's permission. But get a survey first: fences built even a few inches over the line can be forced to move, and old fence lines are unreliable guides to where the boundary actually is. If you want to build directly on the boundary line as a shared fence, that does require agreement, and some states have specific shared-fence cost rules. Even when permission isn't required, a heads-up conversation prevents most fence disputes before they start.

Yes, almost universally. Pool barrier fences are governed by strict life-safety codes — typically a minimum height of at least 4 feet, self-closing and self-latching gates, maximum gap sizes, and anti-climb requirements — and they're inspected as part of the pool permit or as a standalone permit. Unlike ordinary fence rules, pool barrier codes are non-negotiable, because they exist to prevent child drownings. If you're fencing a pool, involve your building department from the start and don't improvise on the specs.