Code & safety

Deck railing height requirements: what code actually says

By the Solid Decking team · Updated

Quick answer

Under the International Residential Code, a deck needs a guard (railing) once it is more than 30 inches above grade, and that guard must be at least 36 inches tall. Guards on the open side of stairs must be at least 34 inches, and openings can’t let a 4-inch sphere pass through. Your local code can be stricter.

Railings are the part of a deck people trust without thinking about it — they lean on them, sit on them, and let kids play next to them. That’s why the code is specific about when a deck needs one, how tall it has to be, how close the balusters must be, and how much force it has to resist. This guide walks through the rules in the 2021 International Residential Code (IRC), the model code most Illinois towns adopt for one- and two-family homes.

When does a deck need a railing?

The IRC calls a deck railing a guard. A guard is required on the open sides of any walking surface — deck, porch, landing, or stairs — that is more than 30 inches above the floor or grade below, measured at any point within 36 inches horizontally of the edge (IRC R312.1.1).

That 36-inch “look-out” zone matters on sloped lots. A deck can be 24 inches above grade at the house and 40 inches above grade a few feet out where the yard falls away. If any point within 36 inches of an open edge drops more than 30 inches, that edge needs a guard.

Below 30 inches, a guard isn’t required by the IRC, but many homeowners add one anyway — and some HOAs or local amendments require it.

How tall does a deck railing have to be?

LocationMinimum height (IRC)How it’s measured
Deck, porch, landing36 in.Vertically from the walking surface to the top of the guard
Open side of stairs34 in.Vertically from a line connecting the tread nosings
Stair guard that doubles as the handrail34–38 in.From the nosing line; must also meet handrail grip rules
Commercial / multifamily (IBC, for comparison)42 in.Not required for houses under the IRC

Measure from the finished deck surface, not the joists. If you plan an outdoor rug, a raised platform, or built-in benches near the edge, remember that anything people can stand on effectively raises the walking surface — benches against a guard can make it easy to climb over. Many builders keep benches away from the edge or raise the guard behind them.

On high decks, plenty of homeowners choose 42-inch railings for comfort even though 36 inches is the residential minimum. Some aluminum and composite railing systems are sold in both 36- and 42-inch kits.

Baluster spacing: the 4-inch sphere rule

Openings in a guard must be small enough that a 4-inch sphere cannot pass through (IRC R312.1.3) — roughly the size of a small child’s head. In practice that means balusters with a clear gap of about 3-1/2 to 3-3/4 inches, so normal wood movement or an installation variance doesn’t push a gap over 4 inches.

  • Open side of stairs: the limit relaxes to a 4-3/8-inch sphere.
  • Stair triangle: the triangular opening formed by a riser, tread, and the bottom rail of a stair guard may allow up to a 6-inch sphere.
  • Bottom gap: the space between the deck surface and the bottom rail is also an “opening” and must meet the 4-inch rule.
  • Cable railing: cables must be tensioned so they can’t be spread to pass the 4-inch sphere — which is why cable systems need stiff end posts and spacing around 3 inches.

The IRC doesn’t prohibit horizontal infill (the so-called “ladder effect”), but some local codes and HOAs do. Check before choosing horizontal boards or cable.

How strong does a deck railing have to be?

The IRC requires guards to resist a 200-pound concentrated load applied in any direction at any point along the top, and infill such as balusters to resist 50 pounds over a 1-square-foot area (IRC Table R301.5). Meeting that load is mostly about the post connection, not the rail itself.

A 4x4 post notched and held with two carriage bolts into a single rim joist often flexes well before 200 pounds. Common ways to get a solid post:

  • Through-bolting the post with blocking behind the rim so the joist can’t rotate.
  • Tested post-to-framing hardware (tension ties or proprietary post anchors) installed to the manufacturer’s details.
  • Surface-mount aluminum posts installed with the system’s required blocking under the decking.

Never cut a post notch deeper than the code or the post-hardware instructions allow — over-notching is a classic cause of wobbly railings.

Handrails vs. guards on deck stairs

Stairs have two separate requirements. A guard is needed on any open side more than 30 inches above grade. A handrail is needed on at least one side of any flight with four or more risers, mounted 34 to 38 inches above the nosings and shaped so a hand can actually grip it — a 2x6 laid flat doesn’t qualify. See the deck stair code guide for the details.

Local rules around Peoria, Illinois

Cities and villages across Peoria, Tazewell, and Woodford counties adopt the IRC with their own amendments, and county building offices cover unincorporated addresses. Requirements can differ on things like guard height on high decks, horizontal infill, and inspection steps. Before you build or replace a railing, confirm the rules with the office that issues your permit — or have us handle the railing and the permit. Looking for a style? Browse deck railing ideas and costs.

Frequently asked questions

How high does a deck railing have to be?

Under the International Residential Code, guards must be at least 36 inches high, measured from the deck surface. Guards along the open side of stairs must be at least 34 inches, measured from the line of the stair nosings. Some local codes require more.

At what height does a deck need a railing?

A guard is required when the walking surface is more than 30 inches above the floor or grade below, measured at any point within 36 inches horizontally of the open edge.

How far apart can deck balusters be?

The openings in a guard must not let a 4-inch sphere pass through. On the open side of stairs the limit is 4-3/8 inches, and the triangle formed by the riser, tread, and bottom rail may allow up to a 6-inch sphere.

Is a 42-inch railing required on a house deck?

Not under the IRC for one- and two-family homes — 36 inches is the minimum. 42-inch guards are typical in commercial and multifamily construction under the International Building Code, and some homeowners choose 42 inches for high decks.

Related guides

All deck guides →

Planning a project in the Peoria area?

Where we work: Peoria · East Peoria · Pekin · Morton · Washington · Dunlap · Chillicothe · Bartonville · Peoria Heights · Germantown Hills · Metamora · Eureka · all service areas

Ready to start your deck project?

Free on-site quotes within about 25 miles of Peoria. Tell us what you have in mind — we reply within one business day.