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 |
Cite the guard requirements
If you are writing about deck guard or railing height rules and want to publish the numbers rather than retype them, copy this line. It carries a link back and names the source:
<p>Deck guard requirements - <a href="https://deckformula.com/deck-guard-requirements/">DeckFormula</a></p>The 36-inch guard height, the 4-inch sphere rule, the 200 lb load and the 30-inch exemption are the 2021 IRC residential deck figures. Local amendments change them more often than most people expect, and the building department enforces the local version.
These are the 2021 International Residential Code values (the official ICC text). 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 — verify each one against the published text at codes.iccsafe.org.
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.
36 inches or 42: a decision table by deck situation
The 36-inch figure is the 2021 IRC residential minimum, not a universal answer. Use the situation, not the habit, to pick the height you build to.
| Situation | Height to build | Why |
|---|---|---|
| Single-family deck, 30–36 in above grade | 36 in | Meets the base IRC rule where the jurisdiction has not amended it |
| Single-family deck, more than 36 in above grade | 36 in minimum; 42 in common | Not required by the IRC, but designers specify it for a fall from height |
| Two-family or multi-family property | 42 in | Many jurisdictions amend the residential height for shared dwellings |
| Guard doubling as a pool barrier | Separate rule | Pool codes set their own height, gate and opening limits — the IRC guard table does not apply |
| Any of the above in an amended jurisdiction | The local number | The building department enforces the adopted edition with local changes |
The height is measured vertically from the finished deck surface to the top of the guard. It is not measured along a stair slope, and not to the underside of the top rail.
Worked example: an 8 ft guard run with 2×2 balusters
A whole run from post face to post face, worked so the 4-inch sphere rule is checked against the built spacing rather than assumed.
- Find the clear span. Two 4×4 posts, 96 in on centre, are 3.5 in wide each. Clear span = 96 − 3.5 − 3.5 = 89 in.
- Choose a target pitch. Aim below 4 in to allow for drying shrinkage: 3.75 in.
- Count spaces. 89 ÷ 3.75 = 23.7 → round up to 24 spaces, which means 23 balusters between the two posts.
- Check the built pitch. 89 ÷ 24 = 3.71 in — comfortably under 4 in even after the boards shrink.
- Check the bottom and top. A 2×2 bottom rail closing the gap to the deck, and a top rail at 36 in. The field between them is 24 spaces at 3.71 in; no opening approaches 4 in at the ends.
This works the spacing; it does not design the assembly. Post size, spacing and anchorage are a separate structural decision, and the 200 lb concentrated load lands on the connection, not on the balusters.
Next step: once the height and spacing are settled, check the posts that carry the run with the deck railing calculator, then verify the anchors against the lateral load on the deck load requirements page before you order hardware.
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.