Do I need a permit to build a deck in California?

Answered by Tim, a working California construction superintendent and founder of YouSuperIntendIT.

Published June 27, 2026 · Last updated August 22, 2026

Short answer: it depends on size, height, and how it attaches. Section R105.2 of the 2025 California Residential Code exempts a small, low, freestanding deck from a building permit, but the deck has to clear four separate tests at once. Miss any one and you need a permit. The number that does the most work in that test is 30 inches, and it is worth understanding because the same 30 inches also decides whether the code makes you build a railing.

When does a deck not need a permit in California?

Only when it is 200 square feet or less, no more than 30 inches above grade, freestanding, and not serving your required exit door.

Here is the exemption exactly as the 2025 California Residential Code writes it in Section R105.2: "Decks not exceeding 200 square feet (18.58 m2) in area, that are not more than 30 inches (762 mm) above grade at any point, are not attached to a dwelling or townhouse and do not serve the exit door required by Section R318.4."

Four conditions, joined by "and." All four have to be true at the same time:

  • 200 square feet or less. That is about 14 by 14.
  • Not more than 30 inches above grade at any point. Not average height. The highest point on a sloped yard is the one that counts.
  • Not attached to the dwelling or townhouse. Free-standing on its own posts and footings.
  • Not serving the required exit door. If it is the deck you step onto out of the back door, it is out.

If you are reading this alongside other articles, note that most of them still cite the old cross-reference to Section R311.4 and leave out "or townhouse." Those pages are quoting the 2022 code. The 2025 California Residential Code took effect January 1, 2026, and it renumbered the egress chapter, which is why the exemption now points at R318.4.

Why does 30 inches decide both my permit and my railing?

Because 30 inches is the ceiling on the permit exemption and the trigger for a required guard, so one inch decides both.

Almost nobody connects these two rules, and connecting them is the single most useful thing on this page.

The permit exemption stops at 30 inches above grade. Section R321.1.1 then says guards are required for open-sided walking surfaces "located more than 30 inches (762 mm) measured vertically to the floor or grade below at any point within 36 inches (914 mm) horizontally to the edge of the open side."

Same number. So the two rules move together:

  • At 30 inches or below: no permit needed, and no guard required by the code.
  • At 31 inches: you need a permit and a guard. Both switch on at once.

That is why a "we will just raise it a few inches to get it level with the door threshold" conversation is never a small change. It can move a weekend project into permit territory and add a railing to the whole perimeter in one step.

Two details in the guard rule people miss. It measures to the grade below at any point, so a deck that is 24 inches up at the house and 34 inches up where the yard falls away needs the guard. And the code says plainly that "insect screening shall not be considered as a guard."

How tall does a deck railing have to be in California?

42 inches, which is six inches taller than most of the country requires.

Section R321.1.2 requires guards at open-sided walking surfaces to be "not less than 42 inches (1067 mm) in height." California amends this upward. The model code most other states use says 36 inches, so a deck plan, a railing kit, or a contractor's habit brought in from out of state will land short here.

The exception is stairs: guards on the open sides of stairs can be not less than 34 inches, measured from a line connecting the stair nosings.

Baluster spacing is Section R321.1.3, and the standard is a sphere test rather than a tape measure. A required guard "shall not have openings from the walking surface to the required guard height that allow passage of a sphere 4 inches (102 mm) in diameter." Two exceptions apply on stairs: the triangle formed by the riser, tread, and bottom rail is allowed 6 inches, and guards on the open side of stairs are allowed 4 and 3/8 inches.

If you are buying a railing system, check it against 42 inches and the 4-inch sphere before it ships. This is a common and expensive reorder.

Does an attached deck need a permit in California?

Yes. Attachment removes the exemption outright, no matter how small or low the deck is.

"Are not attached to a dwelling or townhouse" is its own condition, so a 60 square foot deck sitting 12 inches off the ground still needs a permit the moment it is bolted to the house.

The reason is the ledger, which is the board fastened to your house that carries the deck's load into your framing. Section R507.9.1.1 is specific about it: a deck ledger has to be at least a 2 by 8 nominal, No. 2 grade or better pressure-preservative-treated Southern pine, incised pressure-preservative-treated hem-fir, or decay-resistant naturally durable wood.

Then it adds two prohibitions that matter enormously in California housing stock: "Deck ledgers shall not support concentrated loads from beams or girders" and "Deck ledgers shall not be supported on stone or masonry veneer."

That second one catches a lot of homes here. If your wall is stone or masonry veneer, the ledger cannot bear on the veneer. It has to be carried by the structure behind it, or the deck has to be built free-standing on its own posts. A ledger lagged through veneer is exactly the detail that gives way years later, usually with people standing on it. That is the failure the permit and the framing inspection exist to catch.

Do I still need to check zoning if my deck is permit-exempt?

Yes. Setbacks are a separate planning rule that the building permit exemption does not touch.

The R105.2 exemption is a building code exemption, and the code says so directly in its own preamble: exemption from permit requirements "shall not be deemed to grant authorization for any work to be done in any manner in violation of the provisions of this code or any other laws or ordinances of this jurisdiction."

How close your deck can sit to a property line is zoning, which is local and completely separate. So is anything your HOA has to say. A deck can be fully exempt from a building permit and still be in the wrong place, and moving footings after they are poured is not a small job. Check the building side and the planning side before you dig.

What do I ask a deck builder before they start?

Ask for the height at the highest point, whether it is attached, and who is pulling the permit.

Three questions at the walkthrough settle almost everything on this page:

What is the finished walking surface height at the highest point above grade, and how did you measure it? Is this attached to the house or free-standing? And if any of the four exemption conditions fail, are you pulling the permit or am I?

The first question is the one that separates people. A builder who has done this in California will answer with the low corner of the yard already in mind, because they know 30 inches is measured at any point and they know what it triggers.

If the deck is going up against a stone or stucco veneer wall, add one more: ask how they intend to carry the ledger, and listen for whether the answer involves the structure behind the veneer or a free-standing frame.

What happens if I build a deck without a permit?

You own an unpermitted structure that resurfaces at resale, and an unpermitted deck is one nobody inspected.

The paperwork problem is the smaller half. Unpermitted work shows up when you sell, and getting it permitted after the fact usually means exposing the framing and connections so they can finally be inspected.

The real problem is that the connection nobody looked at is the connection most likely to fail. Deck collapses are overwhelmingly ledger failures, and they happen when the deck is loaded with people. The inspection is not there to slow you down. It is there because a framing inspector looking at your ledger bolts for four minutes is the cheapest insurance in the entire project.

This is general information, not legal advice. Local jurisdictions can be stricter than the state code, and zoning setbacks, HOA rules, and fees are all local. Confirm your situation with your building and planning departments before you build. Verified against the 2025 California Residential Code Sections R105.2, R321 and R507 as of August 22, 2026.

Common questions

When does a deck not need a permit in California?

Only when all four conditions in CRC R105.2 hold at once: not more than 200 square feet, not more than 30 inches above grade at any point, not attached to a dwelling or townhouse, and not serving the exit door required by Section R318.4. Missing any one requires a permit.

Does an attached deck need a permit in California?

Yes. Being attached to the dwelling removes the exemption on its own, regardless of size or height, because the load transfers through a ledger into your framing. CRC R507.9.1.1 sets the ledger material and bars ledgers supported on stone or masonry veneer.

Do I need a permit for a ground-level deck in California?

A low freestanding deck can be exempt if it is also 200 square feet or less and does not serve the required exit door. Measure the height at the highest point above grade, not the average, because the 30-inch limit applies at any point.

How high does a deck have to be before it needs a railing in California?

More than 30 inches above the floor or grade below, measured at any point within 36 inches horizontally of the open edge, per CRC R321.1.1. That is the same 30 inches that ends the permit exemption, so a deck over 30 inches needs both a permit and a guard.

How tall does a deck railing have to be in California?

Not less than 42 inches, per CRC R321.1.2, which is taller than the 36 inches used in most states. Guards on the open sides of stairs may be not less than 34 inches, and openings must not pass a 4-inch sphere.

Related questions

Got a quote or a project in front of you? Ask Tim, a working California superintendent, a question and get a plain-English take for free. Want the full line-by-line read on a contractor's bid with a fair-or-not verdict? Run it through Check a Bid. And if the job needs a permit, use a licensed contractor who pulls it and stands behind the work.

We use cookies to improve your experience. We never sell your personal information. Analytics stay off until you accept. See our .