2024 IRC R321.1 (guards) and R105.2 (permit exemptions), as amended by California and other statesLast verified: September 30, 2026

Deck Guardrail Height and Permit Rules by State

Applies to decks on one- and two-family dwellings. Local building departments have the final say on your specific permit exemption — this guide explains the rule, not a guarantee that your deck qualifies.

If you're expecting deck guardrail height to vary a lot state by state, the honest answer is: it mostly doesn't. Both the model residential code and nearly every state that amends it land on the same 36-inch minimum guard height. California is the one real exception, requiring 42 inches — a full 6 inches taller, and worth knowing if you're comparing a California contractor's plans against what you've seen elsewhere.

Where states actually diverge in a way that matters is a different question entirely: when does a deck need a permit at all? The model code exempts small, low, detached decks with no exit door — but that exemption only survives in some states. New Jersey, notably, has no small-deck exemption whatsoever, meaning any deck there requires a full permit regardless of size or height, a real and easy-to-miss difference from the common assumption that a small deck is automatically permit-free.

This guide covers both pieces accurately: the (mostly uniform) height and spacing rules, and the (genuinely varied) permit question, so you know which parts of what you've read online actually change depending on where you live.

Run the numbers

Whether your deck needs a permit, and how tall the guard has to be, changes the plan before you buy a single board. Free, no signup.

Open the Deck Calculator

The National Rule: When a Guard Is Required, and How Tall

The current IRC requires a guard on any open-sided walking surface — a deck, floor, stair, ramp, or landing — where it sits more than 30 inches above the grade or floor below, measured at any point within 36 inches horizontally of the open edge. Where required, the guard has to be at least 36 inches tall, measured from the deck surface (or the line connecting stair nosings, for a guard running alongside stairs). This is confirmed directly, unchanged, in the current 2024 IRC, and it's the baseline nearly every state uses without amendment.

RequirementRuleSection
When a guard is requiredWalking surface more than 30" above grade/floor below, within 36" horizontally of the edge2024 IRC R321.1.1
Minimum guard height (flat surfaces)36 inches, measured from the walking surface2024 IRC R321.1.2
Minimum guard height (open side of stairs)34 inches, measured from the stair nosing line2024 IRC R321.1.2, Exception 1
Guard doubling as a stair handrailBetween 34 and 38 inches2024 IRC R321.1.2, Exception 2

California Is the One Real Exception: 42 Inches, Not 36

California's Residential Code amends the guard height requirement directly: "Required guards at open-sided walking surfaces, including stairs, porches, balconies or landings, shall be not less than 42 inches in height" — confirmed directly against the state's own adopted code text. Everything else about the rule stays the same, including the 34-inch and 34-to-38-inch stair exceptions. This isn't a new change — the 42-inch requirement was already in place in the 2022 edition of the California code, despite some online sources incorrectly suggesting it's new or that California still uses 36 inches. If you're comparing deck plans or a contractor's quote between California and almost anywhere else, this 6-inch difference is worth double-checking.

The Opening Rule: A 4-Inch Sphere, With Two Exceptions for Stairs

Beyond height, the guard's infill can't have gaps large enough for a 4-inch sphere to pass through — the standard "can a small child's head fit through" test. Two exceptions loosen this specifically for stairs: the triangular gap formed by a stair's riser, tread, and the guard's bottom rail allows a larger 6-inch sphere (since fully closing that triangular space isn't practical), while the guard's own vertical infill along a stair is limited to a 4-3/8-inch sphere instead of 4 inches. This spacing rule is confirmed as uniform in every state checked for this guide (California, Washington, Massachusetts, New Jersey, Florida) — no state amendment to the sphere sizes was found anywhere.

LocationMaximum sphere that can passSection
General guard infill4 inches2024 IRC R321.1.3
Triangular gap at stair riser/tread/bottom rail6 inches2024 IRC R321.1.3, Exception 1
Guard infill along the open side of stairs4-3/8 inches2024 IRC R321.1.3, Exception 2

Where the Real Variation Is: Deck Permit Exemptions

The IRC exempts small decks from needing a permit at all, but only if ALL four conditions are met at once: the deck is 200 square feet or less, no more than 30 inches above grade at any point, not attached to the dwelling, and doesn't serve a required exit door. Meet all four and the model code doesn't require a permit — but miss even one (say, the deck is attached to the house, which describes most decks) and a permit is required regardless of size. States handle this baseline differently: some reproduce it unchanged, and at least one drops the small-deck exemption entirely.

StateHow it handles the small-deck exemptionBasis
CaliforniaReproduces the IRC exemption unchanged (200 sq ft / 30" / detached / no exit door)CRC R105.2
MassachusettsReproduces the same four-condition exemption, nearly word for word780 CMR 51.00 R105.2, item 10
New JerseyNo small-deck exemption exists — any deck construction or complete replacement requires a full permitN.J.A.C. 5:23-2.14; NJ DCA Construction Code Communicator
New York, Texas, IllinoisPermit exemptions are set by individual municipalities rather than a single state-level ruleLocal jurisdiction

New Jersey: No Small-Deck Exemption at All

New Jersey is the clearest exception to the "small decks don't need a permit" assumption that trips up a lot of DIYers. The state's own construction code communications are explicit that building or completely replacing a deck requires a full permit, with no size or height threshold that lets you skip it — unlike the common 200-square-foot, 30-inch exemption used in California, Massachusetts, and many individual cities elsewhere. If you're planning even a small, low deck in New Jersey, budget for the permit process from the start rather than assuming a size cutoff will exempt you.

The 200-Square-Foot, 30-Inch Pattern: Common, Not a National Rule

Because so many cities and counties adopt the IRC's permit-exemption language directly rather than writing their own, the same "200 square feet, 30 inches above grade, detached, no exit door" phrasing shows up almost verbatim in permit-exemption handouts across the country — it's a widely repeated LOCAL pattern, not a single binding national or state rule you can rely on everywhere. Always confirm with your specific city or county building department rather than assuming a number you've seen for one place applies to yours, especially since an ATTACHED deck of any size never qualifies for this exemption regardless of what state or city you're in.

Decks, Porches, and Balconies Share One Rule

The IRC doesn't single out decks for a different guard height than porches, balconies, or any other elevated walking surface — R321.1.2 covers all of them under the same 36-inch (or California's 42-inch) minimum. The only real distinction in the code is between a flat walking surface and a stair: because a stair is sloped, its guard height is measured differently, from the line connecting the tread nosings rather than from a flat floor, and the minimum drops slightly to 34 inches (or 34-38 inches where the guard doubles as the handrail you actually grip while climbing).

Where the Safety Data Comes From — and Its Limits

The Consumer Product Safety Commission estimates that between 2016 and 2019, there were about 2,900 injuries and two deaths associated with collapses or failures of decks, balconies, and porches combined. It's worth being precise about what this figure does and doesn't say: it's CPSC's own rounded estimate from a consumer tip sheet, it lumps decks, balconies, and porches together rather than isolating decks, and it covers structural collapse — a deck or its ledger failing — not falls over or through an undersized guardrail specifically. Several more dramatic-sounding statistics circulate online (one claiming 33,000 injuries from 2003-2007, another citing 4,600 emergency-room visits from 2001-2016) but neither traces back to a real CPSC document, so neither is used here.

Standards & Citations

StandardCode / SectionRequirement
IRC Guard Height and Trigger
2024 IRC
R321.1.1, R321.1.2
36" minimum guard height where a walking surface is more than 30" above grade within 36" of the edge; 34" on stairs.
IRC Guard Opening Limitations
2024 IRC
R321.1.3
4" sphere rule, with a 6" triangular exception at stairs and a 4-3/8" exception for stair-guard infill.
California Guard Height
CRC
R312.1.2
42" minimum guard height — California's amendment to the IRC baseline.
IRC Deck Permit Exemption
2024 IRC
R105.2, item 10
Decks ≤200 sq ft, ≤30" above grade, detached, and not serving a required exit door are exempt from a permit.

Apply These Requirements

Open a calculator to run this guide’s requirements against your own project.

Get Accurate Pricing From Local Contractors

Compare real pricing from licensed professionals in your area based on your estimate.

  • Free, no obligation quotes
  • Local licensed contractors
  • Faster than manual estimating

Frequently Asked Questions

How tall does a deck guardrail have to be?

In almost every state, 36 inches minimum, measured from the deck surface. California is the one real exception, requiring 42 inches. Along the open side of stairs, the minimum drops slightly to 34 inches (or 34-38 inches where the guard doubles as the handrail), measured from the line connecting the stair tread nosings rather than a flat surface.

Does deck guardrail height vary by state?

Barely. Despite how much other building code topics vary state to state, guard height is close to uniform nationally at 36 inches. California is the only state confirmed to amend it, requiring 42 inches. If you've seen conflicting numbers online for other states, they most likely all match the 36-inch national baseline.

Do I need a permit to build a small deck?

It depends on your state and your deck. The model code exempts decks that meet ALL of these at once: 200 square feet or less, no more than 30 inches above grade, not attached to the house, and not serving a required exit door. Many states and cities use this exemption unchanged, but New Jersey has no small-deck exemption at all — any deck there needs a full permit. Always check with your specific local building department, since even where the exemption exists, it's often applied and interpreted locally.

Why doesn't a low, small deck automatically skip the permit?

Because all four conditions have to be true at once, and the most commonly missed one is "not attached to the dwelling" — most decks people build are attached to the house, which alone disqualifies them from the exemption regardless of size or height. A free-standing 150-square-foot platform in the backyard might qualify; the same size deck bolted to your house's ledger board does not.

What size opening is allowed in a deck guardrail?

Generally, nothing large enough for a 4-inch sphere to pass through. Two exceptions loosen this for stairs: the triangular gap at a stair's riser, tread, and bottom rail allows up to a 6-inch sphere, while the guard's vertical infill along a stair is capped at 4-3/8 inches instead of 4. No state amendment to these spacing rules was found anywhere checked for this guide.

Where do these requirements come from?

The IRC guard sections, the deck permit exemption, and California's amended height were all read directly from the primary source — ICC Digital Codes. Other states' permit-exemption handling is cited to real state agency sources; sources are cited by section for every requirement on this page.

Related Code Guides