MS Construction and Services logoMS Construction and Services Call Now
Home / Guides

Deck stair and railing code in California

The numbers an inspector measures, each with the section it comes from. Written by a licensed California deck contractor, not copied from a national guide built to a different code.

Ten numbers, each with its code section2022 California Residential CodeChecked against the code text on September 22, 2026

Short answer

  1. Risers no taller than 7 inches, treads at least 10 inches deep.
  2. A guard on the deck is 42 inches minimum — not the 36 inches most national articles quote.
  3. The guard is required once the drop passes 30 inches.
  4. Handrail between 34 and 38 inches, and it has to be grippable.

Your city may amend these. The building department issuing the permit has the final word.

The numbers, with the section they come from

Every figure below is quoted with its code section so you can check it yourself. Edition: 2022 California Residential Code, the cycle in force in 2026.

Stair riser height
7 inches maximumCRC R311.7.5.1
The vertical face of each step. The tallest and shortest riser in a flight may differ by no more than 3/8 inch — uneven steps are the most common reason a stair fails inspection.
Stair tread depth
10 inches minimumCRC R311.7.5.2
The part you stand on, measured nosing to nosing. Deeper is allowed and usually walks better on a deck.
Stair width
36 inches minimumCRC R311.7
Clear width above the handrail. Handrails may project into that width by a limited amount; the stair itself is not built narrower.
Handrail height
34 to 38 inchesCRC R311.7.8.1
Measured vertically from the nosing of each tread. One continuous handrail is required on any flight with four or more risers.
Handrail grip
1.25 to 2 inches acrossCRC R311.7.8.5
A Type I handrail has to be graspable: a 4x4 post cap or a wide flat board is not a handrail, however solid it feels.
Guard (deck railing) height
42 inches minimumCRC R312.1.2
On the deck itself. This is where California differs from what many out-of-state guides say — 36 inches is not enough here.
When a guard is required
drop over 30 inchesCRC R312.1.1
Measured to the grade or floor below, within 36 inches horizontally of the open edge. A low deck may need no guard at all; an inch over the line and it does.
Guard on the stair side
34 to 38 inches allowedCRC R312.1.1 exception
Only where the top rail also serves as the handrail. That is why a stair guard may legitimately look lower than the deck guard beside it.
Baluster spacing
no 4-inch openingCRC R312.1.3
No opening in a guard may let a 4-inch sphere through, from the walking surface up to the required height. On the open side of a stair the limit is 4 3/8 inches, and the triangle under the bottom rail at each step 6 inches.
Landings
top and bottom, 36 inches deepCRC R311.7.6
At least as wide as the stair and at least 36 inches in the direction of travel. A door opening onto the stair without a landing is a failure.

Five ways a deck stair fails inspection

Who checks this on your project

We build stairs and railings under a California license, class C-61/D41, and the work is inspected by your city, not by us. Our license number is below — the guide to checking it is linked at the end of this page.

License number
1148079
Classification
C-61 / D41 — Siding and Decking
Status
Current and active
Checked
September 22, 2026
How to check any contractor’s license  →

Questions people actually ask

Is the deck railing height 36 or 42 inches in California?

42 inches on the deck surface. The 36-inch figure comes from the international code used in many other states and from national articles written to it. On the open side of a stair, 34 to 38 inches is allowed where the top rail is also the handrail.

At what height does a deck need a railing?

When the walking surface is more than 30 inches above the grade or floor below, measured within 36 inches horizontally of the open edge. Below that a guard is not required, though many owners add one anyway.

What is the code for stair rise and run?

Rise, the riser height, is 7 inches maximum (CRC R311.7.5.1). Run, the tread depth, is 10 inches minimum (CRC R311.7.5.2). Within one flight the tallest and shortest riser may differ by no more than 3/8 inch.

What is the handrail height code for deck stairs?

34 to 38 inches, measured vertically from the nosing of each tread (CRC R311.7.8.1). A continuous handrail is required on any flight with four or more risers, and it has to be graspable: 1.25 to 2 inches across.

What is the baluster spacing code?

No opening in a deck guard may let a 4-inch sphere pass (CRC R312.1.3). On the open side of a stair the limit is 4 3/8 inches, and the triangle formed by the riser, tread and bottom rail may not pass a 6-inch sphere.

Do I need a permit for deck stairs?

Usually yes when the stair is part of new deck work or a replacement, and the answer depends on your city rather than on the state. Ask the building department that would issue it — they decide, and the call is free.

Can I reuse my old stairs on a new deck?

Rarely, and it is worth checking before anyone quotes on it. Once the stair becomes part of new work it is judged against the current code, and older flights most often miss on riser height.

Who is responsible for meeting code, me or the contractor?

The contractor builds to code and the permit is inspected against it, but the property owner carries the consequence of unpermitted or failing work at sale time. Ask in writing who pulls the permit.

Building or replacing a stair? Let’s get the numbers right first.

Tell us the deck height, the run and your ZIP. We will say plainly whether it needs a permit and what the stair will cost.

Free on-site estimate. A pro walks the deck with you and goes through every detail in person.