Skip to main content
1,270 ZIP codes in 11 states (888) 555-0123
Deck Building Services

Homeowner guide

Deck railing height and code requirements

Under the International Residential Code (IRC), which most U.S. jurisdictions adopt with local amendments, a deck generally needs a guard when its walking surface is more than 30 inches above the grade below. Residential guards must be at least 36 inches tall, and openings must not let a 4-inch sphere pass through.

By Deck Building Services · Last reviewed

When does a deck need a railing?

Under the IRC, guards are required on open sides of walking surfaces more than 30 inches above the floor or grade below, measured at any point within 36 inches horizontally of the edge.

That measurement is taken from the deck surface down to grade just beyond the edge — on a sloped yard, one side of a deck may need a guard while another doesn't. Many homeowners add railings to lower decks anyway for safety and appearance.

Elevated second-story deck on posts over a sloped backyard

How tall must deck railings and handrails be?

Common IRC guard and handrail dimensions
ElementIRC requirementNotes
Deck guard heightAt least 36 in.Measured from the deck surface to the top of the guard
Stair guard heightAt least 34 in.Measured vertically from the stair nosings
Handrail height34–38 in.Measured from the nosings; must be graspable
Guard openingsNo 4-in. sphere passesStair guards allow 4-3/8 in.; stair-tread triangle allows 6 in.
Guard strength200 lb concentrated loadApplied at the top of the guard

Why is post attachment the real safety issue?

A guard only meets the load requirement if its posts are anchored into the framing. Posts nailed or lagged to a single rim board often can't resist the required load, which is why modern details use blocking and through-bolts or tested hardware.

What are the rules for deck stair railings?

  • Stairs with four or more risers generally need a handrail on at least one side.
  • Handrails must be continuous for the full flight and graspable.
  • Open sides of stairs above the 30-inch threshold also need guards.
  • Stair guard openings are slightly larger (4-3/8 in.) under the IRC.

Do railing systems meet code automatically?

Manufactured aluminum, composite, cable and glass systems are typically tested as assemblies when installed exactly per their instructions — including post spacing and anchorage. Mixing components or changing post attachment can void that testing.

How does deck railing height and code requirements differ across the states we serve?

Elevated townhouse decks are where guard height and post anchoring matter most. The figure varies most between Virginia (23%) and Washington (5%).

Deck railing height and code requirements: regional differences across covered states
StateAttached homes (townhouses)What it means
Georgia7%Mostly detached homes: more freedom in deck railing height and code requirements
Illinois10%Mostly detached homes: more freedom in deck railing height and code requirements
Kansas7%Mostly detached homes: more freedom in deck railing height and code requirements
Maryland21%Many townhouses: elevated rear decks and HOA rules shape deck railing height and code requirements
Massachusetts6%Mostly detached homes: more freedom in deck railing height and code requirements
Minnesota11%Mostly detached homes: more freedom in deck railing height and code requirements
North Carolina6%Mostly detached homes: more freedom in deck railing height and code requirements
Pennsylvania19%Mostly detached homes: more freedom in deck railing height and code requirements
Tennessee8%Mostly detached homes: more freedom in deck railing height and code requirements
Virginia23%Many townhouses: elevated rear decks and HOA rules shape deck railing height and code requirements
Washington5%Mostly detached homes: more freedom in deck railing height and code requirements

Figures are medians across our covered communities in each state, from NOAA 1991–2020 climate normals and the Census Bureau's 2020–2024 American Community Survey. Each state and community page explains local conditions in more detail.

FAQs

Related questions

Is 36 inches high enough for a deck railing?

It meets the IRC minimum for residential guards. Some jurisdictions or very high decks call for taller guards; check locally.

How far apart can deck balusters be?

Close enough that a 4-inch sphere can't pass through, under the IRC.

Does a ground-level deck need a railing?

Generally not if the walking surface is 30 inches or less above grade, but stairs may still need handrails.

Questions about your deck?

Talk to a deck specialist

Call (888) 555-0123 to talk with a deck specialist about your project.

Call (888) 555-0123
Call now: (888) 555-0123