Seven feet in the side and back yards. Four feet in front. Those are the limits in San Rafael's zoning code, Section 14.16.140, and the city says a side or rear fence up to 7 feet needs no permit.
You will still find pages that say 8 feet, including one of the city's own older zoning handouts. The current code says 7.
Front yards and corner lots
A front yard fence tops out at 4 feet. So does a fence along the street side of a corner lot. On top of the height limit, nothing can block the view drivers need at a driveway or an intersection, so a 4-foot solid fence right at a corner can still be a problem.
One small allowance: an entry arch or trellis over a front gate can go up to 8.5 feet, as long as it doesn't block that same view.
Going taller than 7 feet
It can be done, but not on your own say-so. The code allows a side or rear fence between 7 and 9 feet where the slope or a grade difference between two lots justifies it. That takes administrative design review and an exception from the city, and a fence over 7 feet may need a building permit too.
In front, the only route to extra height is safety. The city can approve up to 2 more feet to keep people away from a hazard.
How the height is measured
From the finished ground straight up to the top of the fence, at any point along it. That matters on San Rafael's hills. A fence that is 6 feet at one post can be 8 feet at the next if the ground falls away.
Terraced fences get a break. If each step is separated by at least 4 feet of planted ground, each one is measured on its own.
What you can't build
Chain link and wire mesh are out in any yard that faces a public street or a waterway. Razor wire, broken glass and electrified fences are banned everywhere in town.
Before you build
Check where the property line really is, and talk to the neighbor who shares it. Then call us. We handle fence installation across Marin County. See our San Rafael fence page or call (415) 942-9346 for a free estimate.
Source: San Rafael Municipal Code, Section 14.16.140, last amended July 2024. Checked November 2026.
