DeckFormula
Home/Framing/Guard requirements

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

RequirementValueIRC reference (2021)
When a guard is requiredDeck surface more than 30″ above grade belowR312.1.1
Minimum guard height36″ measured vertically from the deck surfaceR312.1.2
Infill openingsA 4″ sphere must not pass throughR312.1.3
Concentrated load200 lb applied in any direction at the topR312.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 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

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.

SituationHeight to buildWhy
Single-family deck, 30–36 in above grade36 inMeets the base IRC rule where the jurisdiction has not amended it
Single-family deck, more than 36 in above grade36 in minimum; 42 in commonNot required by the IRC, but designers specify it for a fall from height
Two-family or multi-family property42 inMany jurisdictions amend the residential height for shared dwellings
Guard doubling as a pool barrierSeparate rulePool codes set their own height, gate and opening limits — the IRC guard table does not apply
Any of the above in an amended jurisdictionThe local numberThe 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.

  1. 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.
  2. Choose a target pitch. Aim below 4 in to allow for drying shrinkage: 3.75 in.
  3. Count spaces. 89 ÷ 3.75 = 23.7 → round up to 24 spaces, which means 23 balusters between the two posts.
  4. Check the built pitch. 89 ÷ 24 = 3.71 in — comfortably under 4 in even after the boards shrink.
  5. 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.
Where this goes wrong: a layout computed at exactly 3.95 in passes on paper and fails a season later as treated lumber dries. Designing to 3.7–3.8 in costs one extra baluster and removes the failure. The baluster spacing calculator solves the count for your clear span.

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.

Related

More in Framing