Retaining Wall Permits in San Francisco, Oakland and Marin County
Retaining walls are everywhere in the Bay Area, holding up hillside yards, driveways, and cuts behind new homes. One of the first questions owners ask is whether they need a permit. The short answer: small walls can be exempt, but the exemption is narrower than most people think, and many walls on sloping Bay Area lots end up needing a permit and engineering.
This guide summarizes the official rules for San Francisco, Oakland, and unincorporated Marin County, explains the common exceptions, and covers what goes into a permitted wall. Rules change, so always confirm with your local building department before you build.

The 4-Foot Rule (and Why It’s Not the Whole Story)
All three jurisdictions start from the same idea: a retaining wall 4 feet or less in height may not need a building permit, but only if it isn’t supporting additional load. The key details:
- Height is measured from the bottom of the footing to the top of the wall, not from the visible ground. A wall that shows 3 feet above grade with a 1.5-foot-deep footing is 4.5 feet tall for permit purposes.
- Surcharge matters. A wall that supports a “surcharge,” meaning extra load above or behind it such as a driveway, parking, a building, or sloping ground, generally needs a permit at any height.
- Liquids. Walls that impound flammable or combustible liquids (Class I, II, or IIIA) are not exempt.

San Francisco
San Francisco’s Department of Building Inspection says a building permit isn’t required for retaining walls 4 feet or less in height, measured from the bottom of the footing to the top of the wall, unless the wall supports a surcharge or impounds Class I, II, or III-A liquids (SF.gov).
A few SF-specific points:
- Walls in the public right-of-way are different. Low retaining walls (under 4 feet) in the sidewalk area in front of a property are handled through a Public Works Minor Sidewalk Encroachment Permit (SF Public Works).
- Hillside sites. If the wall is part of a project that needs a geotechnical report, or sits in or near a mapped earthquake-induced landslide area, DBI may require additional engineering review. See our guide to building on a San Francisco hillside.
Oakland
The City of Oakland states that a building permit is required before constructing a new retaining wall, or repairing or replacing one, and that structural calculations are required with the permit application (City of Oakland). The exception is a wall not over 4 feet in height, measured from the bottom of the footing to the top of the wall, unless it supports a surcharge or impounds Class I, II, or IIIA liquids.
Oakland adds several rules that affect design:
Height and Spacing Limits
Oakland says retaining walls can’t exceed 8 feet in height except as allowed in Planning Code Section 17.108.150, and that multiple walls must be separated by at least 4 feet between their exposed faces.
Design Review
If the wall is visible from the street or adjacent lots, Design Review may be required first, and visible walls must be finished with an approved material such as stained or stucco concrete, decorative block, wood, stone, or masonry.
Recycling Plan and Creek Protection
Oakland says all of its building permits require an approved recycling plan before they are issued. If your property is next to a creek, also check Oakland’s Creek Protection Permit requirements before you start work.
Marin County
For unincorporated Marin County, the County’s Building and Safety division lists retaining walls 4 feet high or lower as not needing a building permit, as long as they are not supporting sloped earth and not supporting earth with heavy loads (like cars) (Marin County).
That “sloped earth” condition is important in Marin. On a hillside lot, many low walls hold back a slope above them, which removes the exemption. Grading is regulated separately under the County’s excavating, grading, and filling rules, so if your wall involves significant cut or fill, check with Marin County Public Works about whether a grading permit applies.
Note: Incorporated cities in Marin, such as Mill Valley, San Rafael, Novato, and Sausalito, run their own building departments. Check with the city if your property is inside city limits.
When You Need an Engineer
Even when a permit isn’t strictly required, an engineered wall is often the right call. Consider bringing in a geotechnical and structural engineer when:
- The wall retains a slope, a driveway, a structure, or a neighbor’s yard
- The wall is near a property line, sidewalk, or existing foundation
- There are signs of past movement, such as cracking, leaning, or wet ground
- Soils are soft, filled, or poorly drained
- You’re stacking or terracing walls
A permitted wall typically includes a geotechnical recommendation for design pressures, structural calculations, footing and reinforcement details, and drainage behind the wall. Poor drainage is one of the most common reasons retaining walls fail.
Common Retaining Wall Types on Bay Area Sites
- Cast-in-place concrete walls. Reinforced concrete cantilever walls, common for driveways, basements, and lot-line conditions. See our concrete work services.
- Soldier pile walls. Steel beams with timber or concrete lagging, often used on hillsides where a deep footing isn’t practical.
- Soil nail walls. Grouted steel bars with a shotcrete facing, built top-down into a cut slope.
- Segmental block walls. Interlocking concrete units. Taller block walls generally need geogrid reinforcement and engineering.
The right type depends on height, soils, access, what the wall supports, and appearance requirements.
What Does a Retaining Wall Cost?
Cost depends heavily on wall type, height, length, access, soils, drainage, and engineering. Published Bay Area estimates for segmental block walls commonly fall in the range of roughly $60 to $120 per square foot of wall face, with taller engineered walls at the upper end or higher (Royal Outdoor Solutions, 2026). These are typical third-party ranges, not LVI pricing. Engineered concrete, soldier pile, or soil nail walls on hillside sites vary even more widely. The most reliable number comes from a site visit and a quote based on your engineering.
Frequently Asked Questions
Do I need a permit for a 3-foot retaining wall?
Possibly not, but only if the wall is 4 feet or less measured from the bottom of the footing, and it doesn’t support a surcharge (such as a driveway or structure) or, in unincorporated Marin, sloped earth. Remember that the footing counts toward height.
How is retaining wall height measured for permits?
In San Francisco and Oakland, height is measured from the bottom of the footing to the top of the wall, not just the exposed face.
Does Oakland require a permit to repair a retaining wall?
Yes. Oakland says a building permit is required to construct, repair, or replace a retaining wall, unless the wall meets the 4-foot exemption.
Can I build two short walls instead of one tall wall?
Terracing can reduce load, but it doesn’t automatically avoid permits or engineering. Oakland requires at least 4 feet between the exposed faces of multiple walls. Ask your engineer how stacked walls interact.
Who can pull the permit?
In Oakland, permits can be issued to appropriately licensed California contractors or to property owners or their legal representatives. Check your local department for its rules.
Plan Your Retaining Wall with LVI
LVI Engineering builds retaining walls as part of our excavation, grading, and concrete work across Marin County, San Francisco, and the East Bay. If you have a hillside cut, a failing wall, or a new wall on your plans, we can help you sort out the approach.
Contact LVI Engineering or call 415-599-9575 to request a quote.

