Residential fence height limits usually run 3 to 4 feet in the front yard and up to 6 feet in the side and rear yards, with some jurisdictions allowing 8 feet in the back. Those numbers are the pattern, not the rule. The actual cap that applies to your property comes from your city or county zoning code, and it can be tightened further by a homeowners association, a deed restriction, or an easement crossing your lot. Before you buy a single post, confirm the number with your local planning department.
Height Limits by Yard Location
Fence codes divide your property into zones and cap each one separately. The pattern is consistent across most of the country even though the exact figures vary.
Front yards are the most restricted, typically limited to 3 to 4 feet. The goal is to keep the streetscape open and preserve sight lines for drivers pulling out of driveways. Some cities measure from the property line and allow gradual height increases as the fence moves farther back from the street.
Side yards depend on what they face. A side yard along a street often follows front-yard rules. A side yard bordering another home usually allows up to 6 feet.
Rear yards get the most height. Most jurisdictions allow 6 feet, and some permit up to 8 feet, particularly where there’s a grade difference between neighboring properties. Backyards are where privacy matters most, and the codes reflect that.
These limits apply to the fence itself. Adding lattice, a trellis, or another extension on top of an otherwise compliant fence can push you over the cap, so include those in your total height before building.
Corner Lots and Sight Triangles
Corner lots come with stricter rules near the intersection. Most municipalities define a sight triangle formed by the two street curb lines and a diagonal connecting points typically 25 to 45 feet from the corner. Anything inside that triangle that blocks a driver’s view is regulated, and fences are often capped at 2.5 to 3 feet within it. Some jurisdictions ban solid fences in the triangle entirely.
The same concept applies where driveways and alleys meet sidewalks or streets, though the triangle is smaller. If your fence blocks a driver’s view of pedestrians or oncoming traffic, code enforcement will act on it whether or not you measured the triangle correctly.
How Fence Height Is Measured
Height runs from the finished grade, the natural ground level directly beneath the fence, to the highest point of the fence, including post tops. You can’t dig a trench, drop the fence into it, and measure only the exposed portion. You also can’t mound dirt against the fence and measure from the top of the mound. Inspectors measure from the undisturbed ground surface.
Decorative post caps and finials are handled inconsistently. Some codes exclude minor ornamental elements from the measurement; others count everything. Check before assuming a detail won’t count against you.
Measuring on Sloped Ground
Slopes complicate the measurement because height differs depending on which side of the fence you stand on. Two installation methods are common. A stepped fence keeps panels level and stair-steps down the slope, leaving gaps at the bottom, and each panel is measured individually from grade. A racked or contoured fence follows the slope angle and stays close to the ground throughout. Some codes measure from the high side of each panel, others from the low side, and a few use an average. On a steep lot, the difference between high-side and low-side measurement can exceed a foot, enough to push a fence over the limit. Ask your planning department which method applies before you commit to a design.
When You Need a Permit
Some jurisdictions require a permit for any new fence. Others only require one once the fence exceeds a threshold, commonly 6 feet. Fences in flood hazard zones, historic districts, or near public rights-of-way almost always need permits regardless of height.
A typical application asks for a site plan showing the fence location relative to property lines and existing structures, the height and materials, and contact information for the owner and any contractor. Some jurisdictions also require a recent property survey, especially if the fence will run along a boundary. Permit fees for a standard residential fence generally run $25 to $150, though a boundary survey, if required, costs significantly more.
Don’t skip the permit because the project feels minor. Even a straightforward 6-foot backyard privacy fence may need one, and building without a required permit creates problems that outlast the fence.
HOAs, Deeds, and Easements
Meeting the city code is necessary but not always sufficient. Three other layers can tighten what you’re allowed to build.
Homeowners Association Rules
If an HOA governs your property, its covenants, conditions, and restrictions can impose tighter limits than the city code. Common HOA caps are 4 feet in front and 6 feet in back, and HOAs also regulate materials, colors, and styles. A code-compliant chain-link fence might still violate an HOA requirement for wood or vinyl. Some associations require architectural review board approval before construction. Violating CC&Rs can result in fines and forced removal at your expense, so read your governing documents before finalizing plans.
Deed Restrictions
Your deed may contain restrictive covenants placed by a prior owner or developer that limit fence height, materials, or placement. These run with the land, meaning they bind you regardless of whether you knew about them at purchase. A title search or a call to a real estate attorney can surface any deed restrictions before you start.
Utility and Access Easements
An easement gives another party, usually a utility company, the right to access part of your property. Fencing across an easement is allowed in some jurisdictions with written permission from the easement holder and prohibited outright in others. Even where it’s permitted, a utility that needs to reach buried lines can remove your fence to do the work, and the cost of removing and replacing it falls on you. Check your property survey for easement locations and keep your fence clear of them.
Asking for a Variance
If you need a fence taller than your code allows, you can apply for a variance through your local zoning board of adjustment or planning commission. A variance is an official exception to the zoning rules for a specific property, and it’s not easy to get.
Most jurisdictions require you to show unnecessary hardship, meaning strict application of the height limit creates a burden specific to your property that doesn’t apply to your neighbors. The hardship has to stem from physical conditions like unusual topography, proximity to a highway, or an adjacent commercial use that generates noise or light. Wanting more privacy, disliking your neighbors, or hoping to boost property value won’t qualify. You also can’t create your own hardship, such as installing a pool you now want to screen with a taller fence.
The application typically requires a detailed site plan, a written explanation of the hardship, and sometimes evidence of neighbor support. The zoning board holds a hearing, approval isn’t guaranteed, and the board can impose conditions like specific materials or limits on which parts of the property the variance covers. Expect several weeks to a few months.
What Happens If You Build Over the Limit
A fence that violates the height cap, lacks a required permit, or ignores another code requirement triggers a sequence of consequences that gets expensive quickly.
- Code enforcement issues a written notice of violation, typically giving you around 30 days to comply. Compliance might mean cutting the fence to the legal height, applying for a retroactive permit, or removing the fence entirely.
- Daily fines begin if you ignore the notice. Amounts vary by jurisdiction and can reach several hundred dollars per day, with each day counted as a separate offense.
- Persistent violations can lead to forced removal, with the municipality tearing the fence out and billing you for the cost. A fence in a public right-of-way or on an easement is especially likely to be removed quickly.
- In some jurisdictions, zoning violations are classified as misdemeanors, carrying potential fines and, in theory, jail time for repeat or willful offenders.
The trouble doesn’t stop with code enforcement. An unpermitted or non-compliant fence complicates a home sale. Most states require sellers to disclose known unpermitted work to buyers. An undisclosed violation discovered after closing can lead to price renegotiation, repair demands, or a lawsuit. Lenders may also flag unpermitted structures during mortgage approval, shrinking your pool of buyers. The few hundred dollars saved by skipping a permit can cost thousands at the closing table.
Finding the Rules That Apply to Your Property
Because fence regulations are set at the municipal or county level, no single national source covers every jurisdiction. Search your city or county name along with “fence regulations” or “zoning code fences.” Most planning departments publish their rules online, and many have handouts or FAQ pages specifically for residential fencing. If the online material is unclear, call the planning or zoning office. Staff can tell you the height limit for your specific zoning district, whether you need a permit, and whether any easements or overlays affect your parcel. That call before you buy materials is worth far more than a variance application after the fence is already up.