Skip to main content
CityRuleLookup

San Francisco, CA Fence Regulations: Height Limits (2026)

Some Restrictions
Compiled from the official code textEditor Martyn O'NeillLast verified September 2026

Key Facts

Front setback max
3 feet
Side/rear yard max
6 feet
Rear yard only max
10 feet
Governing code
Planning Code Sec. 136(c)(17)-(19)

Summary

San Francisco caps fences at 3 feet in the front setback, 6 feet in side and rear yards, and 10 feet only in the rear yard under Planning Code Sec. 136(c).

(17) Fences no more than three feet in height above grade; (18) Fences and wind screens no more than six feet in height above grade; (19) Fences and wind screens no more than 10 feet in height above grade;

Source: SF Planning Code Sec. 136 - Permitted ObstructionsView official code

Official source re-checked September 7, 2026: no newer edition of the code had been published (publisher’s edition: 2026 S-96: Codes: last updated to include changes made by legislation through Ordinance 133-26, File No. 260686, approved July 23, 2026, effective August 23, 2026).

Full Breakdown

Planning Code Section 136(c) lists permitted obstructions in required open areas. Fences no more than three feet in height above grade are allowed in setbacks, yards, and usable open space; fences and wind screens up to six feet are allowed in yards and usable open space; fences and wind screens up to 10 feet in height are allowed only in required rear yards. Anything taller needs a variance or exception from the Zoning Administrator.

Violations & Fines

Fences exceeding these caps in a required setback or yard are an unpermitted obstruction; Planning enforcement can require removal or reduction to the code height, and a variance is needed to keep a taller fence.

Frequently Asked Questions

How tall can my front yard fence be in San Francisco?
No more than 3 feet above grade in the required front setback under Planning Code Sec. 136(c)(17).
Can I build a 10-foot fence in San Francisco?
Only in a required rear yard, per Sec. 136(c)(19); side yards and front setbacks are capped lower.

Sources & Official References

Other rules in San Francisco

All San Francisco rules

How San Francisco compares: Cities That Allow the Tallest Residential Fences·California rules heatmap·Compare San Francisco to another location·View the California fence regulations overview

Get notified when Height Limits in San Francisco, CA changes

We'll email you the moment we detect a change in the code. No spam, unsubscribe anytime.

We'll never sell or share your email. One-click unsubscribe in every email.

See something wrong?

Help us keep this page accurate. If you notice an error or outdated information, let us know.