Skip to content

When Does a Backyard Deck Need a Building Permit?

There is a real exemption that lets you build a deck in California without a permit — but it has four conditions, and every single one has to be true. Most backyard decks fail on the one nobody thinks about: the door.

Sungjoon Nam
AI-assisted article · General information, not legal advice · details

Researched and written with AI tools. Property examples are illustrative analyses based on public records, and people described may be composites.

When Does a Backyard Deck Need a Building Permit?
Photo by Zac Gudakov on Unsplash

The lumber is stacked in the driveway and your brother-in-law is halfway through a story about the deck he built in one weekend with no permit and no trouble. He may well be right about his deck. The question is whether yours is the same deck — and the difference usually comes down to a single detail neither of you has thought about: whether the back door opens onto it.

The short answer: California's residential code lists decks among the work that needs no building permit, but only when all four of these are true — the deck is not more than 200 square feet, is not more than 30 inches above grade at any point, is not attached to a dwelling or townhouse, and does not serve the exit door required by the code (§ R105.2). Miss any one, and you need a permit.

Key numbers

Condition Threshold Where it comes from
Deck area Not exceeding 200 square feet § R105.2
Height above grade Not more than 30 inches at any point § R105.2
Attachment Not attached to a dwelling or townhouse § R105.2
Egress Does not serve the required exit door § R105.2
Detached accessory structure (shed, gazebo) Floor area not exceeding 120 square feet, one story § R105.2
Certificate of occupancy Not required for permit-exempt work § R110.1

The four conditions, one at a time

The exemption reads:

Decks not exceeding 200 square feet in area, that are not more than 30 inches above grade at any point…

200 square feet is not a large deck — 10 by 20, or 14 by 14. It is a patio-sized platform, not an outdoor room.

30 inches above grade at any point is the phrase that quietly disqualifies hillside projects. A deck that is 12 inches up at the house wall and 40 inches up at the downhill corner has a point above 30 inches, so the whole deck fails the test. The same threshold shows up again in the guard rules, which is not a coincidence: 30 inches is where California decides a fall becomes dangerous, and a deck that needs a guard is a deck the building department wants to see.

Not attached to a dwelling or townhouse means freestanding, on its own posts. This is the condition most decks fail. A ledger board bolted to the house is a structural connection to the building, and a badly flashed or badly fastened ledger is the single most common cause of deck collapses — which is exactly why attaching to the house takes the project out of the exemption.

Does not serve the exit door. Your house is required to have an exit door, and the landing or deck outside it is part of getting out in an emergency. A deck that sits under that door is doing a life-safety job, so it is never exempt, however small or low it is.

What "exempt" does not mean

An exempt deck is still governed by the code. The first sentence of the exemption list is the one to remember: exemption from permit requirements shall not be deemed to grant authorization for any work to be done in violation of this code, or of any other law or ordinance of the jurisdiction (§ R105.2).

In practice, three things still apply to a permit-free deck:

  • Zoning still applies. Setbacks from your property lines, lot coverage limits, and rules about how much of the yard you may build on are planning rules, not building-permit rules. Skipping the permit does not skip them.
  • Structural requirements still apply. Footings, joist spans, ledger connections and composite decking all have code requirements whether or not anyone inspects the work.
  • Selling the house still exposes it. An unpermitted structure shows up in disclosures and inspections, and legalizing it afterwards costs far more than permitting it up front.

There is one piece of paperwork you can skip: a certificate of occupancy is not required for work exempt from permits under the exemption list, and is not required for accessory buildings or structures (§ R110.1).

The rest of the backyard list

The same section exempts several other projects homeowners take on in the same weekend:

  • One-story detached accessory structures with a floor area not exceeding 120 square feet — the shed and small-gazebo rule. Note the code's own warning attached to this item: these structures may still be regulated by California's Wildland-Urban Interface code despite being exempt from permits, which matters in fire-hazard severity zones.
  • Fences not over 7 feet high.
  • Retaining walls not over 4 feet in height, measured from the bottom of the footing to the top of the wall, unless they are supporting a surcharge.
  • Sidewalks and driveways.
  • Prefabricated swimming pools that are less than 24 inches deep.
  • Swings and other playground equipment.
  • Window awnings supported by an exterior wall that do not project more than 54 inches from the wall and need no additional support.
  • Painting, papering, tiling, carpeting, cabinets, countertops and similar finish work.

Two administrative rules sit underneath all of this. Where equipment replacements or repairs have to happen in an emergency, the permit application must be submitted the next working business day (§ R105.2.1). And ordinary repairs need no application at all — but the code draws that line tightly: ordinary repairs do not include cutting away a wall or partition, removing or cutting a structural beam or load-bearing support, changing a required means of egress, or altering water, sewer, gas, drainage, electrical or mechanical work (§ R105.2.2).

Your city can require a permit anyway

This exemption list is the 2025 statewide code, in effect since January 1, 2026, and it is a floor that cities are free to raise. A California jurisdiction adopts the state code and may amend it to require permits for work the state exempts — smaller decks, shorter walls, sheds under 120 square feet — and hillside, coastal and fire-hazard jurisdictions frequently do. Nothing here overrides a local ordinance that is stricter.

So the sequence that saves money is: measure the area, measure the worst-case height, decide whether it touches the house, check whether it lands under the exit door — then call your building department with those four answers. The call takes five minutes and settles it against the version of the code your city actually enforces.

Sources

Frequently asked questions

How big can a deck be without a permit in California?

Up to 200 square feet — but the size limit is only one of four conditions. The deck must also be no more than 30 inches above grade at any point, must not be attached to the dwelling or townhouse, and must not serve the code-required exit door (§ R105.2). All four have to be true at once, and cities may require permits below the state threshold.

Does a freestanding deck need a permit?

Being freestanding satisfies one of the four conditions, not all of them. A detached deck still needs a permit if it is over 200 square feet, if any point is more than 30 inches above grade, or if it serves the required exit door (§ R105.2). A large freestanding deck is permitted work.

Why does attaching a deck to the house require a permit?

The state exemption applies only to decks that are not attached to a dwelling or townhouse (§ R105.2). A deck bolted to the building becomes part of that building's structure, and the connection carries the load and the weather. That is a connection building departments want reviewed and inspected, so the exemption stops there.

Do I need a permit for a shed in my backyard?

Not under the state code if it is a one-story detached accessory structure with a floor area not exceeding 120 square feet (§ R105.2). The code adds a caveat to that same item: such structures may still be regulated by California's Wildland-Urban Interface requirements even though they are exempt from permits. Zoning setbacks apply either way.

What happens if my deck was built without a permit?

The exemption list says explicitly that being exempt from a permit never authorizes work that violates the code or a local ordinance (§ R105.2). A deck that needed a permit and did not get one remains non-compliant, typically surfacing during a sale or a neighbor complaint. Building departments have a permitting path for existing work — ask about it before you list the house.