Typical limits
Height limits come from your city or county's zoning code, so they vary. Here are the rules in a few towns we checked, which show the usual pattern:
| Town | Front yard | Side and back yards | Permit |
|---|---|---|---|
| West Linn, Oregon | 3 ft | 6 ft | None needed |
| Salem, Virginia | 3½ ft | 8 ft | None needed |
| Coalville, Utah | 4 ft | 6 ft | Needed above 6 ft |
Six feet is the most common backyard limit, and it matches standard privacy fence panels. Some towns allow 7 or 8 feet. Our table of fence rules by city has the numbers for 50 cities, with a link to each one's own page.
Why front yards are lower
A tall fence along the street walls a house off from the neighborhood and blocks the view of drivers backing out of driveways. So most towns cap front-yard fences at 3 or 4 feet, and some only allow taller ones if they're mostly see-through.
Corner lots
At a street corner, a triangle of the yard usually has to stay low so drivers can see each other. In Salem, Virginia, the triangle runs 25 feet along each street from the corner, and nothing inside it, fences and plants included, may be taller than 3 feet.
Pool fences have a minimum, not a maximum
Around a pool, the question flips: the fence has to be tall enough. The US Consumer Product Safety Commission's guidelines call for a barrier at least 48 inches high, with a self-closing, self-latching gate, and many local codes require something similar. The aluminum fence calculator prices the kind of fence most often used around pools.
How height is measured
Cities usually measure from the ground at the fence to its highest point, and that's where surprises come from:
- Slopes: on uneven ground, a fence that's 6 feet on one end can measure more on the other.
- Lattice and caps: a decorative top usually counts toward the total height.
- Retaining walls: a fence on top of a wall can be measured from the lower side, which adds the wall's height.
If your fence will be close to the limit, ask the planning office how they measure it.
When you want it taller
If the code allows less than you want, you usually have two options. One is a special permit: Coalville, Utah, for example, requires a conditional use permit for anything over 6 feet. The other is a variance, which asks for an exception because of something unusual about your lot. Both take time and an application fee, and neither is guaranteed.
A tall fence put up just to annoy a neighbor can also be illegal. California treats a fence over 10 feet, maliciously put up to annoy the neighbor, as a private nuisance.
Fair questions
Can I build an 8-foot fence in my backyard?
In some towns, yes. Salem, Virginia allows 8 feet in side and back yards. In many others the limit is 6 feet, and you'd need a special permit or a variance.
Does a taller fence need a permit?
Often. The model building code most states start from doesn't require a building permit for fences up to 7 feet, but cities add their own rules. Our guide on fence permits covers it.
Do homeowners associations have their own limits?
Usually, and they're often stricter than the city's. Check your HOA's rules and get approval in writing before you build.
How much more does a taller fence cost?
More than you'd guess, because the boards, the posts and the labor all grow. The fence cost calculator shows the difference between heights for your length.
Sources
- City of West Linn, Oregon, Do I need a permit to put a fence in my yard?: an example of a city where a fence needs no permit but a front-yard fence is limited to 3 feet.
- City of Salem, Virginia, Fence height limits: a city where fences need no permit, with height limits by yard and a sight triangle at corners.
- Coalville, Utah, Fences and Walls (city code, as published by Zoneomics): a city that sets fences back 1 foot from sidewalks, limits front-yard fences to 4 feet, and needs a permit above 6.
- U.S. Consumer Product Safety Commission, Safety Barrier Guidelines for Residential Pools: fence height, picket spacing and gate rules for pool barriers.
- California Civil Code, Section 841.4: when a fence over 10 feet put up to annoy a neighbor counts as a private nuisance.
- International Residential Code, Section R105.2: the model list of work that needs no building permit, including fences up to 7 feet and small detached decks. States and cities adopt it with their own changes.
- How we calculate: every suggested price behind this calculator, with the date it was last reviewed.