Skip to main content
1,270 ZIP codes in 11 states (833) 603-9967
Installers finishing a low deck with black metal railing panels

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.

The load test behind railing height rules

Height is only half the code requirement. Under the IRC, a deck guard must also resist a 200-pound concentrated load at the top in any direction, and infill is commonly tested at 50 pounds over a 1-foot square.

Do local rules ever require taller railings?

Yes. Some jurisdictions amend the 36-inch IRC minimum; California has used 42 inches for residential guards. Check your adopted code.

Why do inspectors push on railing posts?

Because the 200-pound load concentrates at the post connection, which is the most common weak point on older decks.

Deck railing height and code requirements: state-by-state differences

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.

Authoritative references

Researched and reviewed . Code and product figures change; confirm with your building department and the manufacturer.

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.

Does a stair handrail count as a guard?

Not by itself on an open stair more than 30 inches above grade; that side also needs a guard meeting the opening rules.

Questions about your deck?

Talk to a deck specialist

Call (833) 603-9967 to be connected with an independent deck contractor for your project.

Call (833) 603-9967

By calling, you agree to be connected with an independent deck contractor, that your call may be recorded, and that the contractor may call or text you about your project. Consent is not a condition of purchase. Free referral service; no obligation. How it works · Privacy

Call now: (833) 603-9967