IRC 2021 · R311.7.8 & R312

Handrail & Guardrail Requirements

Handrails and guardrails are two different things with different purposes, different triggers, and different code requirements. Here’s what IRC 2021 requires for each — and where most projects fail inspection.

A handrail is a graspable rail along stairs — required on any stair with 4 or more risers, height 34″–38″ above nosing. A guardrail is a fall-protection barrier — required on any surface more than 30″ above grade, minimum 36″ high, balusters spaced so a 4″ sphere cannot pass through.

Handrail vs. Guardrail — The Key Distinction

These two terms are often confused, but they serve different purposes and have completely different code requirements:

Handrail

  • Runs along a stairway
  • Purpose: support while climbing/descending
  • Must be graspable
  • Required: 4+ risers
  • Height: 34″–38″ above nosing
  • IRC: R311.7.8

Guardrail (Guard)

  • Runs along elevated open edges
  • Purpose: prevent falls
  • Does not need to be graspable
  • Required: surface >30″ above grade
  • Height: 36″ minimum
  • IRC: R312

A deck railing can serve as both a guardrail and a handrail simultaneously — but only if it meets both sets of requirements. A guardrail that isn’t graspable is fine as a guardrail but fails as a handrail on a stair.

Guardrail Requirements — IRC R312

When Is a Guardrail Required?

Any walking surface more than 30 inches above the floor or grade below must be protected by a guardrail on any open side. This includes decks, balconies, porches, open-sided landings, and mezzanines.

The 30-inch measurement is from the walking surface to the ground or floor below, measured at the edge of the walking surface. If any part of the perimeter exceeds 30 inches, the full open perimeter requires a guardrail.

Guardrail Height

IRC R312.1.2 requires guardrails to be at least 36 inches high, measured vertically from the walking surface to the top of the rail. Some jurisdictions and interpretations require 42 inches — always verify with your local AHJ.

Baluster Spacing — The 4-Inch Sphere Rule

IRC R312.1.3 requires that guardrail openings cannot allow a 4-inch sphere to pass through. This applies to:

For a stair guardrail, the opening limitation is a 4&frac3⁄8;-inch sphere in the triangular opening formed by the stair riser, tread nosing, and guardrail — this tighter limit prevents children from getting feet caught in the stair opening.

Structural Requirements

Guardrail posts and the top rail must be designed to resist a concentrated load of 200 pounds applied in any direction at the top of the rail. Post connections to the deck framing are the most common structural weakness — surface-mounted post bases are generally not permitted; through-bolted or blocking-supported connections are required.

Guardrail RequirementIRC 2021 MinimumCode Ref
When required>30″ above gradeR312.1.1
Minimum height36″R312.1.2
Baluster opening4″ sphere cannot passR312.1.3
Stair triangular opening4&frac3⁄8;″ sphere cannot passR312.1.3
Top rail load200 lb concentratedR312.1.4

Handrail Requirements — IRC R311.7.8

When Is a Handrail Required?

A handrail is required on any stairway with four or more risers. A three-riser stair does not require a handrail. A four-riser stair does. The handrail must be continuous from a point directly above the top riser to a point directly above the lowest riser.

Handrail Height

IRC R311.7.8.1 requires handrail height between 34 and 38 inches, measured vertically from the stair nosing to the top of the handrail. This range accounts for different users — too low reduces support, too high is awkward to grip.

Graspability — The Most Failed Requirement

The handrail must be graspable — meaning a person must be able to wrap their hand around it for support. IRC R311.7.8.3 specifies two acceptable handrail cross-sections:

A flat 2×4 on edge does not meet the graspability requirement. A 2×4 laid flat definitely does not. This is the most commonly failed handrail inspection — the shape must be graspable, not just present.

⚠️ Most common handrail failures: (1) Not graspable — a flat board or wide profile that can’t be wrapped by a hand. (2) Wrong height — measured from the floor landing instead of the nosing. (3) Not continuous — interrupted by a newel post mid-stair. (4) Missing handrail extensions at the top and bottom.

Handrail Extensions

IRC R311.7.8.2 requires handrail extensions at the top and bottom of stairs in most cases. At the top, the handrail must extend horizontally at least 12 inches beyond the top riser. At the bottom, it must extend one tread depth (at the slope of the stair) beyond the bottom riser nosing. Extensions prevent handrails from abruptly ending where users need grip most.

Handrail RequirementIRC 2021 ValueCode Ref
When required4 or more risersR311.7.8
Height range34″–38″ above nosingR311.7.8.1
Circular diameter (Type I)1&frac1⁄4;″–2″R311.7.8.3
Non-circular perimeter (Type II)4″–6&frac1⁄4;″R311.7.8.3
Top extension12″ horizontal beyond top riserR311.7.8.2
Bottom extensionOne tread depth beyond bottom nosingR311.7.8.2

Common Inspection Failures

Guardrail failures

Handrail failures

Frequently Asked Questions

What is the difference between a handrail and a guardrail?

A handrail is a graspable rail along stairs for support. A guardrail is a fall-protection barrier on elevated surfaces. Both are required in different situations.

When is a guardrail required?

On any walking surface more than 30 inches above the floor or grade below — decks, balconies, open-sided landings. IRC R312.1.1.

How high does a guardrail need to be?

Minimum 36 inches, measured vertically from the walking surface. Some jurisdictions require 42 inches — verify locally. IRC R312.1.2.

When is a handrail required on stairs?

On any stairway with four or more risers. Continuous from top riser to bottom riser. IRC R311.7.8.

What height should a handrail be?

Between 34 and 38 inches, measured vertically from the stair nosing to the top of the handrail. IRC R311.7.8.1.

What is the maximum baluster spacing for a guardrail?

Balusters must be spaced so a 4-inch sphere cannot pass through any opening. This includes the space between balusters and the gap at the bottom of the guardrail. IRC R312.1.3.

Related Guides & Calculators

Stair Code Requirements (IRC R311.7)Stair Code CalculatorDeck Building Permit RequirementsDeck Joist Span Guide