California Permits for Decks, Sheds and Retaining Walls
In California, a small detached shed, a low deck and a short retaining wall can often be built without a building permit, but the cutoffs are set by your city or county, not by one statewide rule. The California Residential Code carries the IRC’s list of work exempt from a permit, and local building departments adopt and amend it: San Diego exempts retaining walls only up to 3 ft, San Francisco exempts sheds only under 100 sq ft, and many cities still require zoning, grading, coastal or wildfire approvals for work that needs no building permit.
Quick answer
- Sheds: Usually exempt up to 120 sq ft, one story, detached (under 100 sq ft in San Francisco); wiring or plumbing needs a permit
- Decks: Often exempt at 200 sq ft or less, no more than 30 in. above grade, not attached and not serving an exit door
- Retaining walls: Model rule is 4 ft or less from bottom of footing with no surcharge; San Diego cuts it to 3 ft
- Grading: A separate permit; Los Angeles exempts only small cuts and fills, never over 50 cubic yards or where drainage changes
- Extra approvals: Coastal zone, fire hazard zones and hillsides can add permits even for exempt work
- Frost depth: Only a real issue in the mountains, such as 18 to 24 in. in Truckee
Who decides what needs a permit in California?
The 2025 California Residential Code, in effect for permit applications filed on or after January 1, 2026, is based on the 2024 IRC, but the state adopts only selected sections of its administrative chapter, among them the building items of the R105.2 list of work exempt from a permit (HCD statement of reasons). Cities and counties adopt the rest of that chapter when they adopt the code, and many amend the exemption list, which is why the numbers below differ from city to city. “No building permit” also never means “no rules”: San José says a project that needs no permit still can’t violate city codes or state or federal law (San José, when is a building permit required).
For the code itself, see our California building code guide.
Do you need a permit for a shed in California?
Usually not for a small one, but check the size limit and what goes inside it.
| City | Shed with no building permit | Catch |
|---|---|---|
| San Diego | One story, detached, 120 sq ft of projected roof area or less | Can’t be used for a separately regulated use (SDMC 129.0203) |
| San José | 120 sq ft or less, measured from the exterior walls | Any electricity or plumbing needs a permit; over 650 sq ft also needs a Planning special use permit |
| Sacramento | Detached, single story, unconditioned, under 120 sq ft | A shed attached to the house always needs a permit |
| San Francisco | One story, projected roof area under 100 sq ft, no taller than 8 ft | Smaller limit than most of the state |
Zoning setbacks and lot coverage still apply to exempt sheds. Sacramento’s handout tells owners to confirm setbacks, size, height and lot coverage with Planning before building.
Do you need a permit for a deck in California?
Low, small, freestanding decks are commonly exempt. San Diego (SDMC 129.0203, item 15) exempts a deck that is 200 sq ft or less, no more than 30 in. above grade at any point, not attached to the house and not serving the required exit door. Sacramento’s 2026 handout uses the same 200 sq ft and 30 in. limits for detached decks that don’t serve a required exit door. San Francisco has no deck line in its list, but it exempts platforms and walks no more than 30 in. above grade that aren’t part of an exit and aren’t over a basement or story below.
Anything attached to the house, higher than 30 in., or bigger than 200 sq ft should be treated as a permit job. Patio covers are separate: San Diego exempts covers up to 300 sq ft and 12 ft tall outside setbacks, but not in the Coastal Overlay Zone or a Planned Development (San Diego, when is a permit required), while Sacramento requires a permit for any attached patio cover. The structural rules for permitted decks come from the residential code’s deck section, which California takes from the IRC; see IRC rules in plain English.
Do you need a permit for a retaining wall in California?
The model exemption is a wall no more than 4 ft tall, measured from the bottom of the footing to the top of the wall, that doesn’t hold up a surcharge (extra load such as a slope, driveway or building above it) or impound flammable liquids. San Francisco uses that rule as written. Other cities don’t:
- San Diego: exempt only up to 3 ft, measured from the top of the footing to the top of the wall, with no surcharge (SDMC 129.0203, item 5).
- Los Angeles: LADBS publishes standard details for small retaining and slough walls. Only its Figure 1 wall needs no permit, it can’t go where the slope is steeper than 1:5 (20 percent), and it is limited to 30 in. where a walkway sits behind it (LADBS P/BC 2026-002).
- San José: a wall over the city’s height limit needs a building permit, a Planning permit and a separate Public Works permit (San José, fences and retaining walls).
A wall that holds back a sloped bank or carries a load such as a driveway loses the exemption. The IRC’s engineering triggers for taller or loaded walls are covered in IRC rules in plain English.
When do you need a grading permit in California?
Grading permits are local and are separate from building permits. Los Angeles spells out its exceptions in LADBS bulletin P/BC 2026-128:
- Cuts: no grading permit for an excavation under 2 ft deep, or one that doesn’t create a cut slope over 5 ft high and steeper than 2:1.
- Fills: no grading permit for fill under 1 ft deep on ground flatter than 10:1.
- Either way: the exception is lost if the work moves more than 50 cubic yards or changes the existing drainage pattern.
San José lists grading permits, tree removal permits and geologic hazard clearances among the extra approvals an accessory building project may need. Jobs that disturb an acre or more also need the state’s construction stormwater permit, as covered on our California guide.
Coastal, wildfire and hillside lots need extra approvals
- Coastal zone: the Coastal Act’s definition of development includes placing any solid material or structure and grading, and a coastal development permit is required for development in the coastal zone. It comes from the city or county where a Local Coastal Program is certified, or from the Coastal Commission (California Coastal Commission). San Diego notes that its July 15, 2026 changes to permit exemptions don’t apply in the Coastal Overlay Zone until the Commission certifies them.
- Fire hazard zones: the California Wildland-Urban Interface Code has its own sections for decks and for accessory buildings, and applies to new buildings in mapped Fire Hazard Severity Zones (State Fire Marshal). Ask whether your lot is in a zone before choosing deck boards or a shed kit.
- Hillsides and geologic hazard areas: Los Angeles applies separate rules to its designated Hillside Areas, and lots in state-mapped fault or seismic hazard zones may need a geologic report (see our building code guide).
How deep do footings need to be in California?
The residential code’s foundation chapter comes from the IRC, which sets footings at least 12 in. below undisturbed ground and below the local frost line. The frost depth itself is set by your local building department, and the published numbers we found come from mountain towns: the Town of Truckee uses 18 in. below 7,000 ft elevation and 24 in. above it, and the Town of Mammoth Lakes uses 24 in. Ask your building department for its number before you dig.
Sources
- HCD, initial statement of reasons for the 2025 California Residential Code
- San Diego Municipal Code 129.0203, exempt structures (eff. July 15, 2026) and When is a permit required? (2025)
- San José, when is a building permit required, accessory buildings and fences and retaining walls
- City of Sacramento, residential accessory structures handout CDD-0417 (rev. Jan. 1, 2026)
- San Francisco, check if your construction project needs a permit (SF Building Code 106A.2)
- LADBS P/BC 2026-002, retaining or slough wall and P/BC 2026-128, grading permits
- California Coastal Commission, permit authority and Office of the State Fire Marshal, Building in the Wildland
- Town of Truckee, design criteria and Town of Mammoth Lakes
Last checked November 14, 2026.
Common questions
How big a shed can you build without a permit in California?
In San Diego, San Jose and Sacramento a one-story detached shed of about 120 sq ft can go up without a building permit, while San Francisco’s limit is under 100 sq ft and 8 ft tall. Adding electricity or plumbing usually triggers a permit, and zoning setbacks still apply.
Do I need a permit for a 3 ft retaining wall in California?
Often not, if it carries no extra load. San Francisco exempts walls up to 4 ft from the bottom of the footing, and San Diego exempts walls up to 3 ft above the footing. A wall that supports a slope, driveway or building above it needs a permit in either city.
Does a ground-level deck need a permit in California?
In San Diego and Sacramento, a deck of 200 sq ft or less that is no more than 30 in. above grade and doesn’t serve a required exit door needs no building permit. San Diego also requires that it not be attached to the house. Larger, higher or attached decks need a permit.
Do I need a permit to regrade my yard in California?
It depends on your city. In Los Angeles, cuts under 2 ft and fills under 1 ft on fairly flat ground are exempt, but not if the work moves more than 50 cubic yards or changes the existing drainage pattern. In the coastal zone, grading can also need a coastal development permit.
This is a plain-English summary, not legal advice.
See every California building, digging and contractor rule on our California guide. Related: California building code for homes · California contractor license rules · California mechanics lien law · IRC rules in plain English · Retaining wall permits by state.
Groundwork Design Co. · designed by builders
Plans drawn for California’s rules
Groundwork Design Co. draws patios, walls, decks and planting plans to scale for any U.S. home, with the layout, sizes and materials any local contractor can price.
Using this guide? Link to it or cite it. It’s free to use with a link back, and we keep it updated against official sources.
Cite as: Muthler Landscaping & Construction, “California Permits for Decks, Sheds and Retaining Walls,” https://muthlerlandscaping.com/state-guides/california/building-permits/ (page updated November 14, 2026).
Get an email when your state’s rules change
We re-check every entry against official sources. Tell us your state and we’ll email you when something changes.