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
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:
- Rear and side yards: Fences up to 6 feet (7 feet in some areas) are exempt from permits in most jurisdictions. This covers the standard 6-foot privacy fence, which is why most backyard fences go up without paperwork.
- Front yards: Commonly capped at 3–4 feet, and often restricted to open styles (picket, split rail) rather than solid privacy panels. The logic is visibility and neighborhood character.
- Corner lots: Expect a "sight triangle" rule near the intersection — typically no fence over about 3 feet within a set distance of the corner, so drivers can see cross traffic. This applies even when no permit is otherwise required.
When Permits ARE Required
- Over-height fences: Anything above the local exemption (usually 6–7 ft) needs a permit, and many areas require a variance — not just a permit — to exceed the maximum at all.
- Fence-plus-retaining-wall combos: A fence on top of a retaining wall is often measured from the bottom of the wall, which can push a "6-foot fence" well over the limit. See our retaining wall permit guide for the wall side of that equation.
- Pool enclosure fences: Pool barrier codes are strict and non-negotiable — typically a minimum height (usually 4 feet, often more), self-closing and self-latching gates, and limits on gaps and climbability. These are life-safety rules; expect a permit and an inspection, and expect zero flexibility.
- Historic districts: Homes in designated historic districts often need design review for any visible fence, regardless of height or material.
Property Lines & Neighbors
More fence disputes come from property lines than from permits. Three things to know:
- Survey before you build. The old fence line, the mow line, and the actual property line are frequently three different lines. A few hundred dollars for a survey (or locating your existing pins) is far cheaper than moving a fence — or losing a strip of yard to adverse possession arguments.
- "Good side" customs: Many jurisdictions and HOAs require the finished side of the fence to face outward, toward the neighbor or street. Even where it's not codified, it's the near-universal custom.
- Shared-fence cost rules: Some states (California is the best-known example) presume neighbors share responsibility for a boundary fence and have procedures for splitting costs. In most places, though, a fence entirely on your side of the line is entirely yours — cost, maintenance, and all.
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.