Do you need a permit for a retaining wall in San Francisco, CA?
It depends on the details of your project.
Retaining walls up to 4 ft, measured from the bottom of the footing, need no building permit.
A wall that holds back a surcharge needs a permit at any height.
In required yards, Planning treats walls that change the grade like decks.
A person last checked these rules on October 22, 2026. This is guidance only, so confirm with San Francisco before you build.
Check your exact lot
Your zoning district sets the setbacks, and a flood zone can change the permit answer. Enter your address to see both.
Permits a retaining wall can need in San Francisco
| Permit | When it applies |
|---|---|
| Building permit | San Francisco exempts only retaining walls 4 ft or less from the bottom of the footing that hold back no extra load. |
| Floodplain development permit | Grading and walls in a FEMA special flood hazard area need a floodplain permit. |
Limits that apply citywide
| In required yards and setbacks | Walls that keep roughly the existing grade are allowed; other walls and the grade they hold follow the deck rules (3 ft above grade on lots sloping 15% or less)Medium confidence |
|---|
Local details
- Call 811 at least a few days before you dig footings or post holes. Utility locating is free.
- HOA covenants and deed restrictions can be stricter than city rules. Check yours before you build.
How to apply
- Check if your project needs a permit (sf.gov)
- SF Property Information Map
- Phone: (628) 652-3200
Common questions
- When does a retaining wall need a building permit in San Francisco?
- San Francisco exempts only retaining walls 4 ft or less from the bottom of the footing that hold back no extra load. A wall 4 ft or less from footing to top, with no load above it, needs no permit in San Francisco.
- Where do I apply for a retaining wall permit in San Francisco?
- Apply through Check if your project needs a permit (sf.gov), or call (628) 652-3200.
Sources
- sf.gov, Check if your construction project needs a permit (other items). Checked 2026-10-22
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... Platforms, sidewalks, walks and driveways when not part …
- 44 CFR 59.1, definition of development (NFIP). Checked 2026-10-19
Development means any man-made change to improved or unimproved real estate, including but not limited to buildings or other structures...
- 44 CFR 60.3, floodplain management criteria. Checked 2026-10-19
Require permits for all proposed construction or other development in the community...
- San Francisco Planning Code § 136(c) (GoCodebook copy, current through Ord. 10-26, effective 3/16/2026). Checked 2026-10-22
(16) Decorative railings and decorative grille work, other than wire mesh, at least 75 percent open to perpendicular view [and] no more than six feet in height above grade... (13) Retaining walls that are necessary to maintain approximately the grade existi…