Board-formed concrete retaining walls and planted terraces along a steep San Francisco street

Permits

Do You Need a Permit for a Retaining Wall in San Francisco?

· 6 min read

It's one of the first questions people ask San Fran Retaining Wall Pros: do I need a permit to build this wall? The honest answer is that it depends on the height, what's on top of it and where it sits. Here's how the common rules work, in plain English. This is general information, not legal advice, and your local building department has the final say.

The four-foot rule and how it's measured

California's building code exempts many small retaining walls from a building permit. The usual threshold is four feet, measured from the bottom of the footing to the top of the wall. Not from the ground on one side, and not from the lower side of the wall. From the bottom of the footing.

That detail catches people out. A wall that looks three feet tall from the patio can be four feet or more once you count the footing buried below.

Short and simple

Under four feet from footing to top, with nothing heavy on top, a permit often isn't required. Over four feet, you should assume one is.

Surcharge: why a short wall can still need a permit

A surcharge is any extra load pressing on the soil behind a wall. A driveway, a parking pad, a building, a pool or a steep slope above the wall all count. The code treats those walls differently because the extra load makes the wall work harder.

  • A short wall along a driveway may still need engineering
  • A wall that supports a deck or a patio with heavy furniture can count
  • A wall below a sloping lot is carrying more than flat soil
  • A wall beside a structure may affect the foundation

If anything heavy sits within a short distance behind the wall, plan on a conversation with the building department.

Other things that can trigger review

Beyond the building permit
SituationWhat can apply
Front yard or street-facing wallPlanning rules on height and design
Work on or next to the sidewalk or streetPublic works and encroachment permits
Hillside or mapped hazard areaGeotechnical review and added requirements
Wall near a protected treeTree protection rules
Historic or landmark propertyDesign review of visible changes
Wall near a creek or drainageSetbacks and environmental review
Work along a shared property lineSurvey and neighbor agreements

Rules vary by city. What's right in San Francisco isn't always right in Daly City or Oakland, so check locally.

What about replacing an existing wall?

Replacing a wall in the same place often still needs the same review as a new one, especially if it's tall or carries a load. Repairing a small section is different from rebuilding a wall. Our installation and replacement pages explain how we approach both.

Questions worth asking the building department

  • Is a permit required for the wall height and location I'm planning?
  • Do I need engineered drawings, and a soils report?
  • Are there design or height limits for walls in my front yard or setback?
  • Does my lot fall in a mapped slope or seismic hazard zone?
  • Will inspections be required during construction, such as footings or steel?
  • Does anything I'm planning touch the public sidewalk or street?

Bring a simple sketch with the wall length, height, location on the lot and what's above and below it. Staff can answer most questions faster when they can see the layout.

The risk of skipping it

Unpermitted walls can come back to haunt you. Problems show up when you sell, when you refinance or when a neighbor files a complaint. An insurance company may question coverage after a failure. Fixing it later usually means opening the wall up for inspection.

A permitted wall comes with engineering, inspections and a paper trail. That's worth something when a buyer asks for the history.

How to find out for sure

  1. Measure the proposed wall from the bottom of the footing to the top.
  2. Note anything above the wall that adds load.
  3. Check whether the wall faces the street or touches the public right-of-way.
  4. Call your building department or ask your contractor to do it.
  5. Get it in writing if you can.

For a Bay Area example, see how rules play out on the hills in Berkeley.

Related services

Back to the homepage

Written by the San Fran Retaining Wall Pros Team. Published October 16, 2026, updated November 2, 2026.

Questions about your own wall?

Not sure whether your wall needs a permit? Call San Fran Retaining Wall Pros, and we'll go over the height, the load and the lot with you.

Call now(415) 941-4392Free Quote