Deck Railing Height: Code Requirements (IRC 2021)
Under the 2021 International Residential Code, a deck needs a guard (railing) when the walking surface is more than 30” above the ground at any point within 36” horizontally of the edge. That guard must be at least 36” tall for a home. Many cities amend these rules, so confirm locally.
Quick reference
| Requirement | IRC 2021 | Section |
|---|---|---|
| Guard required when deck is more than | 30” above grade | R312.1.1 |
| Minimum guard height (deck) | 36” above the decking | R312.1.2 |
| Minimum guard height (open side of stairs) | 34” above the nosing line | R312.1.2 |
| Openings in the guard | Must not pass a 4” sphere | R312.1.3 |
| Openings on stair guards | Must not pass a 4⅜” sphere | R312.1.3 |
| Triangle under stair guard | Must not pass a 6” sphere | R312.1.3 |
| Stair handrail height | 34”–38” above the nosings | R311.7.8.1 |
36” or 42”?
The IRC minimum for one- and two-family homes is 36”. The 42” figure comes from the commercial building code (IBC) and applies to multifamily and commercial decks. Some cities require 42” on all decks, and many owners choose 42” on high decks for comfort. Measure height vertically from the deck surface to the top of the rail.
Baluster spacing
The 4” sphere rule means the gap between balusters must be less than 4”. With 1½” square balusters, about 3¾” between them keeps you safely under the limit. That works out to roughly 2.3 balusters per foot of railing.
Also check:
- the gap under the bottom rail (also under 4”)
- horizontal “ladder” rails, which some jurisdictions prohibit on high decks because children can climb them
Post spacing and strength
Guards must resist a 200 lb load applied at the top in any direction. That’s why guard posts are bolted through the rim joist and tied back to the framing with blocking or hold-down hardware, not just screwed to the face. Most wood railing systems keep posts 6 ft or less apart. Manufactured composite and aluminum systems list their own maximum spans.
Stairs
- A handrail is required on stairs with four or more risers, 34”–38” above the nosings, and must be graspable.
- If the stair’s open side is more than 30” above grade, it also needs a guard at least 34” high.
- See deck stair code requirements for the full list.
Estimate your railing
The deck calculator adds railing automatically when your deck is more than 30” high, and counts posts, rails and balusters with gaps under 4”.