Deck guard requirements
Three numbers decide whether a deck guard passes: 30 inches for whether you need one, 36 inches for how high, and 4 inches for the gaps. The fourth number — 200 pounds — is the one nobody tests until an inspector leans on it.
The four requirements
| Requirement | Value | IRC reference (2021) |
|---|---|---|
| When a guard is required | Deck surface more than 30″ above grade below | R312.1.1 |
| Minimum guard height | 36″ measured vertically from the deck surface | R312.1.2 |
| Infill openings | A 4″ sphere must not pass through | R312.1.3 |
| Concentrated load | 200 lb applied in any direction at the top | R312.1.4 / R301.5 |
These are the 2021 International Residential Code values. Most US jurisdictions adopt the IRC with amendments, and the amendments are where the surprises are: some states require 42″ guards on elevated decks, some exempt guards below 48″ for one- and two-family dwellings, and some have no exemption at all. The clause numbers above are the starting point, not the answer.
The 30-inch rule measures grade, not a number on a drawing
The trigger is the vertical distance from the deck surface to the grade directly below it — not the average, and not the height at the highest point of the lot. A deck that is 28″ above grade at one corner and 34″ at the other needs a guard, because part of it is over 30″.
This is why a walk-out basement deck almost always needs a guard even when it feels low: the grade drops away, and the deck is 8 feet above the ground at the far end.
Why 36 inches is not the whole height question
A 36″ guard on a 12″-high deck segment is a barrier against a stumble. A 36″ guard on a deck 10 feet above a patio is a fall-arrest barrier and is treated differently by some designers — 42″ is common on commercial and multi-family work for that reason.
The height is measured from the finished deck surface to the top of the guard, vertically. It is not measured along the slope of a stair rail, and it is not measured to the bottom of the top rail.
The 4-inch rule and its two failures
The sphere rule applies to every opening in the guard: between balusters, between the bottom rail and the deck, between the top rail and the bottom rail if the infill is horizontal, and at the ends where the guard meets a post.
The two failure modes:
- The bottom gap. A guard with balusters that stop 5″ above the deck has a 5″ opening along its whole length. The fix is a bottom rail or a solid kick board.
- Shrinkage. A layout computed to 3.95″ can measure 4.05″ a season later as treated lumber dries. Target 3.75–3.9″ instead; the baluster spacing calculator solves for that.
The load test almost nobody does
The 200 lb requirement is a concentrated load applied at the top of the guard in any direction — pushing, pulling, and sideways. What fails is not the rail; it is the post-to-frame connection.
Two lag screws through the rim joist will not take 200 lb of lateral load at the top of a 36″ post; the lever arm multiplies it to roughly 600 lb of pull at the connection. Through-bolts, a manufactured post base with a structural screw pattern, or a post that continues down to the framing below are the ways this is actually satisfied.
Where this page stops being the answer
- It does not replace your local code. Amendments change the numbers above, and the adopted edition in your jurisdiction may be older or newer than 2021.
- It does not design the guard. Post size, spacing, anchorage and rail capacity are a designed assembly.
- It does not cover screen enclosures or pool barriers, which have separate and stricter rules.
- It does not cover stair guards, where the height is measured from the nosing and the rail must be graspable; see deck stair code.
Questions people actually ask
At what height does a deck need a railing?
More than 30 inches above the grade directly below it. Measured vertically from the deck surface, and if any part of the deck exceeds 30 inches, that part needs a guard.
How tall does a deck railing have to be?
36 inches minimum under the 2021 IRC, measured from the finished deck surface to the top of the guard. Some jurisdictions require 42 inches, particularly for multi-family or elevated decks.
What is the 4-inch sphere rule?
No opening in a guard may allow a 4-inch sphere to pass through. It applies between balusters, under the bottom rail and at the ends of the guard, not just to the baluster field.
How strong does a deck railing have to be?
It must resist a 200-pound concentrated load applied in any direction at the top. In practice the post anchorage is the weak link, which is why through-bolts or manufactured post bases are required.