Railing Code — Guardrail & Handrail Requirements

Guardrail vs. Handrail

A guardrail (or guard) is a protective barrier preventing falls from elevated surfaces. A handrail provides graspable support along stairs and ramps. The IRC specifies different requirements for each. Guards are required wherever the walking surface is more than 30" above adjacent grade or floor below. Handrails are required on stairs with 4 or more risers.

Guardrail Requirements

RequirementResidential (IRC)Notes
Height — deck/porch36" minimumMeasured from deck surface to top of rail
Height — interior balcony36" minimumOpen-sided walking surfaces > 30" above floor
Baluster spacing4" maximum gapA 4" sphere must not pass through any opening
Bottom rail gap≤ 4" below bottom railMeasured from deck surface
Structural load200 lbs concentratedApplied in any direction at top of guard
Infill load50 lbs/sq ftApplied to balusters and infill panels

Handrail Specifications

RequirementSpecification
Height (above tread nosing)34" — 38"
Grip size — Type I (circular)1-1/4" — 2" cross-section dimension
Grip size — Type II (shaped)Perimeter 4" — 6-1/4"
Wall clearance1-1/2" minimum
Extension at top12" horizontal beyond top riser
Extension at bottom12" horizontal beyond bottom riser
ContinuityContinuous for full flight length

Baluster Spacing Calculation

To calculate baluster spacing: Measure the clear span between posts. For 4" max gap, the formula is: Span = (N × baluster_width) + ((N+1) × spacing). For standard 2×2 balusters (1.5" actual), max spacing for a 6' (72") span: (72 − 1.5N)/(N+1) ≤ 4. Solve iteratively. Typical spacing for 2×2 balusters is about 3-3/4" between them for a 5—6 ft span, yielding roughly 2 balusters per foot.