Skip to content Groundwork Design Co.Want a design?Custom patio, wall, deck and yard plans, drawn by builders. Anywhere in the U.S. From $349.Start here
LOCK HAVEN, PA · PA HIC #PA212584 · INSURED FREE ESTIMATES · CALL OR TEXT
PAGE

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.

Quick answer

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

PointWhat the source statesSection
When a guard is neededOpen sides more than 30 inches above the floor or grade below, measured within 36 inches horizontally of the edge.IRC R312.1.1
Height36 inches minimum for one and two family homes.IRC R312.1.2
OpeningsA 4 inch sphere may not pass through.IRC R312.1.3
Stair guard triangleThe 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 postsMinimum 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.

Planning information, not engineering or legal advice. Section numbers follow the model IRC and the 2015 AWC DCA 6. Pennsylvania L&I says the 2015 International Codes were adopted as of October 1, 2018, and numbering and figures can change between editions. The PA-adopted edition and local amendments may differ, so confirm with your municipal code office before you build.

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 guides

Muthler Landscaping & Construction LLC · 913 Bellefonte Ave, Lock Haven, PA 17745 · (570) 397-9800 · PA HIC #PA212584.