San Francisco, CA Fence Regulations: Retaining Walls (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.
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?
Does a short retaining wall ever need a permit?
Sources & Official References
Other rules in San Francisco
California rules heatmap·Compare San Francisco to another location·View the California fence regulations overview
See something wrong?
Help us keep this page accurate. If you notice an error or outdated information, let us know.