In most U.S. cities, a backyard fence can be up to six feet tall, and some codes allow up to eight feet with a permit or special approval. The exact limit for your property comes from your local zoning ordinance and, if you have one, your homeowners association — whichever is stricter controls. Front yards, corner lots, and pool enclosures follow different rules, and how the height gets measured can turn a “six-foot” fence into a violation before you’ve added an inch.
The Standard Backyard Limit
Six feet is the number you’ll see most often for backyard fences and for side-yard fences behind the front building line. Some jurisdictions permit privacy fences up to eight feet in the backyard, though going above six feet commonly triggers a permit requirement or special approval even where the code technically allows the extra height.
Front yards are treated more strictly, usually three to four feet. Taller fences near the street block sightlines for drivers. Many communities ban solid front-yard fences outright or cap them at 30 inches while allowing open styles like pickets or wrought iron up to four feet. If you’re only interested in the backyard, this still matters: the front-yard rule generally governs everything forward of your house’s front building line, not just the strip facing the street.
Corner Lots Have a Sight Triangle
If your lot sits at an intersection, an additional restriction called a sight triangle (or visibility triangle) applies. The city extends the two curb lines a set distance from the corner — often 25 to 45 feet — and connects them into a triangle. Inside that area, fence height drops to about three feet or less, even if the space is technically part of your backyard. Sight-triangle violations get reported quickly because neighbors and city workers spot them immediately.
How the Height Actually Gets Measured
The measurement method matters as much as the number. On flat ground, height runs from the natural grade at the base of the fence to its highest point, including decorative caps, lattice extensions, and post finials. Add a two-foot lattice topper to a six-foot fence and the code sees an eight-foot fence, not a decorated six-foot one.
Sloped lots complicate things. Some codes measure from the higher side of the grade, some from the lower side, and some average both sides at intervals along the run. A six-foot panel installed across a two-foot slope can read as six feet from uphill and eight feet from the downhill neighbor’s side. The rule your city uses is worth confirming before you order materials.
Retaining walls create the trickiest situation. In many jurisdictions, when a fence sits on top of a retaining wall, the combined height counts toward the fence limit. A four-foot retaining wall topped with a six-foot fence can be treated as a ten-foot structure. Some communities measure the fence portion separately, but that’s the exception. If your yard has any grade change at the property line, call the planning department before building.
Finding Your Actual Limit
Two sets of rules can apply to your fence: the local zoning ordinance and, if you’re in a planned community, the HOA’s covenants (often called CC&Rs). You have to comply with both, and the stricter rule wins.
Local Zoning Code
Search your city or county name plus “zoning code” or “fence regulations” to find the ordinance. Most municipal websites have a planning, zoning, or code compliance section that spells out height limits by district, setback rules, material restrictions, and permit thresholds. If nothing turns up online, call the planning department. They answer these questions constantly and can usually tell you the limit in a few minutes.
Look for your specific zoning district designation (R-1, R-2, and so on), because fence rules sometimes differ between single-family and multi-family residential zones in the same city. Check as well whether your lot falls inside a historic district, conservation overlay, or planned development district — any of those can impose unique fence requirements on top of the standard code.
HOA Rules
An HOA can cut the height limit below the city’s, dictate approved materials and colors, require architectural review board approval before you build, or prohibit fences in certain areas entirely. These restrictions are enforceable through the association’s governing documents. Complying with city code doesn’t protect you from HOA fines or a forced-removal demand if the CC&Rs say otherwise.
When You Need a Permit
Many municipalities require a building permit before you install a fence. The trigger varies. Some cities require permits for any new fence. Others only require one when the fence exceeds six feet or uses certain materials like masonry or concrete. A few jurisdictions, Houston among them, don’t require permits for standard wood or metal fences under eight feet.
A typical application asks for a site plan showing your property lines, the proposed fence location, height, and materials, and sometimes post depth and footing details. Some jurisdictions want a recent property survey attached. Permit fees generally run $25 to $300 depending on the jurisdiction and fence size. Processing takes a few days to a couple of weeks for straightforward residential fences.
Skipping a required permit creates problems beyond the fine. An unpermitted fence can complicate a future home sale, since title searches and buyer inspections may flag it, and you could be ordered to tear it down and rebuild it with proper permits — paying for the fence twice.
Asking for More Height: Variances
If you need a taller fence than the code allows, for noise reduction along a busy road or added security, you can apply for a variance through your local zoning board of appeals. Approval isn’t automatic. The board asks whether strict application of the height limit creates a genuine hardship or practical difficulty specific to your property, not just inconvenience or preference.
Factors that usually strengthen an application:
- Unique property conditions, such as unusual topography, proximity to a highway or commercial zone, or a lot shape that makes the standard height inadequate for its intended purpose
- Minimal neighborhood impact — the taller fence won’t block neighbors’ light, reduce their property values, or create safety problems
- Minimum necessary deviation, meaning you’re asking for one or two additional feet rather than doubling the allowed height
- No self-created hardship, meaning you didn’t cause the condition that now makes the variance necessary
The process involves an application, a fee that’s typically higher than a standard permit fee, and a public hearing where neighbors can comment. Decisions usually come within 30 to 90 days after the hearing. If the variance is denied, you’re generally stuck with the standard height unless you appeal to court, which is expensive and rarely successful for residential fences.
Situations Where the Standard Limit Doesn’t Apply
Pool Enclosures
If your property has a swimming pool, hot tub, or spa, fence rules get more prescriptive and generally require greater height than a decorative barrier. The Consumer Product Safety Commission recommends pool barriers at least 48 inches tall measured on the side facing away from the pool, with five-foot barriers preferable. Many state and local codes have adopted this standard or set it higher at 60 inches. Pool fence gates must be self-closing and self-latching, and pedestrian gates must open outward, away from the pool.1U.S. Consumer Product Safety Commission. Safety Barrier Guidelines for Residential Pools Pool rules apply on top of standard fence regulations, not instead of them.
Spite Fences
A number of states have laws targeting spite fences — structures built with no reasonable purpose other than annoying or harming a neighbor. These laws typically define a spite fence as any fence over a certain height, often six to ten feet, that serves no useful purpose and was erected maliciously. Courts can order such a fence reduced or removed regardless of whether it technically complies with zoning. Height alone doesn’t make a fence a spite fence; intent and lack of legitimate purpose do.
Property Lines and Easements
How tall isn’t the only question that decides whether your fence stays up. Building over a property line onto a neighbor’s land creates a potential legal dispute and, over enough years, an adverse possession claim. Utility easements are another trap: you can usually build across one, but the utility company can remove the fence without compensation if it needs access. Check your plat map or deed for recorded easements before planning the layout.
What Happens If You Ignore the Rules
Enforcement follows a predictable pattern. A neighbor or code officer spots the violation and files a complaint. The city sends a formal notice giving you a set period, often 30 days, to bring the fence into compliance. Ignore the notice and daily fines begin accruing; amounts vary widely by jurisdiction and can add up to thousands of dollars over weeks of noncompliance.
If municipal enforcement doesn’t resolve the issue, the city can pursue legal action to compel compliance, potentially producing a court order to shorten or remove the fence at your own expense. HOA enforcement follows a similar escalation: warning letter, then fines that commonly start at $25 to $100 per occurrence and increase with each subsequent violation, and eventually a lien on your property or a lawsuit.
A 20-minute call to your planning department costs nothing and answers the height question for your specific address. Make that call before you buy materials.