Skip to main content
CityRuleLookup

San Francisco, CA Fence Regulations: Retaining Walls (2026)

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

Key Facts

Permit-exempt height
4 feet or less
Measured from
bottom of footing to top of wall
Surcharge/liquid load
permit required regardless of height
Enforcing agency
SF Dept. of Building Inspection

Summary

San Francisco requires a building permit for any retaining wall over 4 feet tall, measured footing to top, or one that holds back a surcharge or liquids.

5. Retaining walls that are not over 4 feet (1219 mm) in height measured from the bottom of the footing to the top of the wall, unless supporting a surcharge or impounding Class I, II or III-A liquids.

Source: SF Building CodeView 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

Under Building Code Section 106A.2, a retaining wall needs no building permit only if it stays at or under 4 feet in height, measured from the bottom of the footing to the top of the wall, and it does not support a surcharge load or impound Class I, II, or III-A liquids. Cross that height, or add a surcharge or liquid load, and the Department of Building Inspection requires a full permit with engineering review before construction begins.

Violations & Fines

Building without a required permit exposes the wall to a stop-work order and Notice of Violation from the Department of Building Inspection, plus permit and penalty fees to legalize the work after the fact.

Frequently Asked Questions

Can I build a 5-foot retaining wall without a permit in San Francisco?
No. Section 106A.2 exempts only retaining walls at or under 4 feet, measured footing to top; anything taller needs a building permit.
Does a short retaining wall ever need a permit?
Yes, if it supports a surcharge load or impounds Class I, II, or III-A liquids, a permit is required no matter how short the wall is.

Sources & Official References

Other rules in San Francisco

All San Francisco rules

California rules heatmap·Compare San Francisco to another location·View the California fence regulations overview

Get notified when Retaining Walls 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.