Skip to main content
CityRuleLookup

San Francisco Height Limits Rules (2026): What You Need to Know

Some Restrictions

Key Facts

Front yard fence height
3 feet (36 inches) maximum in most residential districts
Side yard fence height
6 feet maximum along interior side property lines
Rear yard fence height
6 feet permitted; up to 10 feet may require planning review
Corner lot visibility
Sight triangle requirements apply — fences must not obstruct driver visibility
Prohibited materials
Barbed wire, razor wire, and electrified fencing prohibited on residential properties
Variance required
Fences exceeding standard height limits require a Planning Department variance

The Short Version

San Francisco establishes maximum fence and wall heights based on location on the property and the underlying zoning district. Front yard fences in residential districts are generally limited to 3 feet (36 inches) in height to maintain open streetscape character. Side and rear yard fences may be up to 6 feet in height. Fences between 6 and 10 feet may be permitted in rear yards with planning review. Corner lots and lots adjacent to public stairways have additional visibility and setback requirements. The city's dense urban fabric and varied topography create unique fence considerations not found in most California cities.

Full Breakdown

The San Francisco Planning Code establishes fence and wall height regulations that vary by zoning district and location on the property. In the city's RH-1, RH-2, RH-3, RM, and other residential zoning districts, fences and walls within the required front setback area are generally limited to a maximum of 3 feet (36 inches). This relatively low front-yard limit reflects San Francisco's urban design philosophy of maintaining an open, pedestrian-friendly streetscape — many of the city's residential neighborhoods feature low front fences or no front fences at all, with landscaped front yards that contribute to the neighborhood character.

Along interior side property lines and in rear yards, fences may be up to 6 feet in height without special permits, consistent with the standard maximum in most California jurisdictions. In rear yards, fences or walls between 6 and 10 feet may be permitted subject to Planning Department review, particularly where the taller fence serves as a retaining wall on a sloped lot or provides necessary screening between residential and commercial or industrial properties.

San Francisco's dramatic topography creates unique fencing situations. On steeply sloped lots — common in neighborhoods such as Noe Valley, Twin Peaks, Potrero Hill, and the Castro — retaining walls that also function as fences may be subject to both the Planning Code height limits and Building Code structural requirements. The height of a fence or wall on a slope is typically measured from the lower grade at the base of the structure.

Corner lots must maintain clear sight triangles at intersections, and fences within these triangles must not exceed heights that would impair driver visibility. Lots adjacent to public stairways (of which San Francisco has over 300) have additional setback and height requirements to maintain safe pedestrian access.

Barbed wire, razor wire, concertina wire, and electrified fencing are prohibited on residential properties. These materials may be permitted only in certain industrial and commercial zones with approval.

What Happens If You Violate This?

Fences exceeding height limits without an approved variance are subject to enforcement by the SF Planning Department. Notices of violation typically allow 30 to 60 days for correction. Failure to comply may result in administrative penalties starting at $250 per day. The Planning Department may require removal or modification of non-compliant fences, and unpermitted construction may trigger additional Building Department enforcement.

Frequently Asked Questions

How tall can my front yard fence be in San Francisco?
Front yard fences in most residential districts are limited to 3 feet (36 inches). This low limit is designed to maintain the open streetscape character that defines many SF neighborhoods.
Can I build a 6-foot fence along my side yard in San Francisco?
Yes. Side yard and rear yard fences up to 6 feet are generally permitted in residential zones. Corner lots may have additional sight triangle restrictions that limit fence height near intersections.
Can I put barbed wire on my fence in San Francisco?
No. Barbed wire, razor wire, and electrified fencing are prohibited on residential properties. These materials are only permitted in certain commercial and industrial zones with specific approval.

Sources & Official References

How does San Francisco compare?

See how San Francisco's height limits rules stack up against other locations.

Submit a Correction

Found something that looks wrong or outdated? Let us know and we'll look into it.