Guides · Deck code rules · Guards
Deck guard height and opening rules: IRC R312 and the AWC guide
A guard is the railing along an open deck edge. The model code sets when you need one, how tall it must be and how small the gaps must be, and the AWC deck guide adds post and attachment details.
Under the model IRC, a guard is required where the walking surface is more than 30 inches above the floor or grade below (R312.1.1). Minimum height is 36 inches (R312.1.2), and no opening may pass a 4 inch sphere (R312.1.3). The AWC DCA 6 guide also calls for guards on decks over 30 inches. Confirm the PA-adopted edition with your code office.
Guard rules by section
| Point | What the source states | Section |
|---|---|---|
| When a guard is needed | Open sides more than 30 inches above the floor or grade below, measured within 36 inches horizontally of the edge. | IRC R312.1.1 |
| Height | 36 inches minimum for one and two family homes. | IRC R312.1.2 |
| Openings | A 4 inch sphere may not pass through. | IRC R312.1.3 |
| Stair guard triangle | The triangular opening at the bottom of a stair guard may not pass a 6 inch sphere. | IRC R312.2 |
| Deck trigger (AWC) | Decks more than 30 inches above grade need a guard. | AWC DCA 6, p. 19 |
| Guard posts | Minimum 4×4 posts, at least 1,100 psi; receiving joist at least 2×8; 1,800 lb hold-down for a 36 inch guard. | AWC DCA 6, p. 19 |
The 4 inch sphere also appears in the AWC guide’s commentary (C11). The IRC numbers above come from a published summary of IRC R312, so check them against the code text your office enforces. Related glossary terms: guardrail, rim joist and stair stringer. See also deck stair rules.
Questions
How high does a deck railing have to be?
The model IRC sets 36 inches minimum for one and two family homes (R312.1.2).
Does a deck close to the ground need a railing?
The model IRC and the AWC guide set the trigger at more than 30 inches above grade (R312.1.1; DCA 6, p. 19). Your municipality may have its own rules, so ask your code office.
How far apart can balusters be?
A 4 inch sphere may not pass through any opening (R312.1.3).
What post size does the AWC guide use for guards?
At least 4×4 posts, attached to a joist at least 2×8, with an 1,800 lb hold-down for a 36 inch guard (DCA 6, p. 19).
Sources: Guard requirements summary, IRC R312; American Wood Council, DCA 6 (2015); PA L&I, UCC regulations and statutes. Checked Nov. 22, 2026.
Muthler Landscaping & Construction · Lock Haven, PA
Planning a deck?
We build decks across central Pennsylvania. Tell us what you have in mind.
Get a quoteAll guidesMuthler Landscaping & Construction LLC · 913 Bellefonte Ave, Lock Haven, PA 17745 · (570) 397-9800 · PA HIC #PA212584.