Deck Railing Height and Spacing Requirements | 36-Inch Rule

Most deck guards must stand 36 inches tall with openings too small to pass a 4-inch sphere, and stairs need a 34-inch guard.

One measurement decides whether a deck fails inspection: how far the finished walking surface sits above the ground beneath it. Cross 30 inches at an open edge, and the 2024 International Residential Code requires a guard — 36 inches tall on a level deck, with gaps a 4-inch sphere cannot pass.

The code is a model document, not federal law. Your state, county, or city may run an older edition or amend the numbers, and some jurisdictions require 42-inch residential guards. Everything below reflects the 2024 IRC as summarized in published deck guides — confirm the adopted edition with your building department before you buy lumber.

When Does A Deck Actually Need A Guard?

A guard is required wherever an open edge of a deck, landing, ramp, or stair sits more than 30 inches above the floor or grade below. The trigger is measured at any point within 36 inches horizontally of that open edge, so a drop that only appears near the rim still counts.

The 2024 IRC also exempts some detached decks from permits when they measure 200 square feet or less, sit no more than 30 inches above grade, and do not serve a required exit door. A permit exemption is not a safety exemption — the guard rules still apply to any deck that clears the height trigger.

Screening does not qualify. Jefferson County’s guard guidance states plainly that insect screening is not a guard, because mesh gives way under body weight. Glass works only with the safety glazing required at hazardous locations such as guards and certain stair and landing areas.

How Tall Must A Deck Railing Be?

Required guards on level deck surfaces must be at least 36 inches high, measured vertically from the finished walking surface. Take that measurement off the decking, not the framing — a guard sized to bare joists can finish short once boards and a threshold go down.

A handrail is required on at least one side of every stair flight with four or more risers, at 34 to 38 inches measured from the line connecting the nosings. Handrails run continuously for the flight, hold at least 1½ inches of clearance from an adjacent wall, and terminate at a post or wall instead of ending open. Grip size for a circular Type I handrail runs 1¼ to 2 inches.

Element 2024 IRC Requirement Measured From
Guard trigger Required above 30 in Any point within 36 in of the open edge
Guard height, level deck 36 in minimum Finished walking surface
Guard height, open stair side 34 in minimum Line connecting the nosings
Handrail required Flights of 4+ risers At least one side
Handrail height 34–38 in Line connecting the nosings
Handrail wall clearance 1½ in minimum Adjacent wall surface
Guard openings, level deck 4-in sphere must not pass Balusters, bottom rail, posts
Guard openings, stairs 4⅜-in sphere maximum Between members
Tread–riser triangle 6-in sphere maximum Tread, riser, bottom rail
Riser and tread 7¾ in max / 10 in min Nosing to nosing

Deck Railing Spacing Requirements: Where The Gaps Get Measured

Guard openings on a level deck cannot let a 4-inch-diameter sphere pass at any point — between balusters, under the bottom rail, around posts, or between horizontal members. The code sets no universal center-to-center baluster dimension, and Castle Rock’s 2024 IRC deck guide makes the point explicit: the sphere is tested against the clear opening, so baluster width and gap together decide compliance.

Stair guards allow slightly more room, with a 4⅜-inch sphere as the limit between members and 6 inches for the triangular opening formed by a tread, riser, and bottom rail. Two failures account for most re-inspections:

  • A stair-side guard measured from the tread surface instead of the nosing line.
  • Baluster gaps checked while the space under the bottom rail, beside posts, or between horizontal members goes unmeasured.

Horizontal rails draw extra scrutiny from inspectors because evenly stacked members give a child footholds to climb.

Replacing railing rather than inspecting it? Baluster width and material decide how the spacing math lands — these tested deck railing options show hardware built around the opening test.

Four checks, run in this order, cover nearly every fail:

  1. Finished surface height above grade at the open edge — over 30 inches means a guard.
  2. Guard height: 36 inches on level runs, 34 inches on the open stair side from the nosing line.
  3. A 4-inch sphere at the balusters, under the bottom rail, beside posts, and along horizontal members.
  4. Handrail presence and height on flights of four or more risers, 34 to 38 inches.

Where a local amendment changes a number, the local number wins every time.

Common Questions

Does 4-Inch Spacing Mean 4 Inches On Center?

No. Four inches is the outer limit on the clear opening, not on fastener centers. A wider baluster eats into that gap, so center-to-center spacing has to tighten as the baluster grows. Measure between the faces, then repeat the same test under the bottom rail, beside posts, and along any horizontal member.

Can I Build A 42-Inch Guard Instead Of 36?

Often, yes — a taller guard clears the 36-inch minimum, and some jurisdictions require 42 inches on residential decks by local amendment. Check how the extra height interacts with stair handrails, where a guard doubling as a handrail still has to land between 34 and 38 inches from the nosing line. Your building department settles it.

Do Existing Decks Have To Meet The 2024 IRC?

Not automatically. The IRC is a model code, and enforcement belongs to the authority having jurisdiction — many departments apply current guard rules when a permit is pulled for a repair, addition, or railing replacement rather than retroactively. An older deck with baluster gaps over 4 inches or a guard under 36 inches is worth fixing regardless of what triggers an inspection.

Sources

  • Castle Rock, Colorado. “2024 Uncovered Decks Building Guide” Source for the 4-inch sphere test on clear openings and stair guard dimensions.
  • Jefferson County, Colorado. “Guards” Source for the 30-inch trigger, 36-inch guard height, and the rule that screening is not a guard.
  • Windsor, Colorado. “2024 IRC Decks Guide” Source for handrail height, riser and tread limits, and permit exemptions.

Scroll to Top