Stair building codes exist to prevent falls — the leading cause of residential injuries. For houses, townhomes, and their decks, the governing code is the International Residential Code (IRC), which most US jurisdictions adopt with local amendments. Commercial buildings fall under the stricter International Building Code (IBC) — see the comparison below. Here's what you need to know.

Check stair stringer rise and run →

Calculate rise per step, tread run, total run, and stringer length against common IRC limits.

IRC rise and run requirements

These are the core dimensional requirements from IRC Section R311.7 for residential stairs:

The comfort rule: Rise plus run should equal 17 to 18 inches. This isn't in the IRC, but it's a widely accepted industry standard. A 7.5-inch rise with a 10.5-inch run gives you 18 inches — right in the sweet spot. Stairs that follow this rule feel natural to walk on.

Handrail and guard requirements

Headroom and width

Common code violations

These are the issues that most frequently cause inspection failures:

Residential (IRC) vs. commercial (IBC)

A common point of confusion: the IRC and the IBC are different codes with different stair limits. Everything above is residential (IRC) — it applies to one- and two-family dwellings, townhouses, and their decks. Anything else — a shop open to the public, a multi-family building, an office — falls under the IBC, which is stricter:

Stairs sized to the IRC limits will fail inspection on a commercial project. If you're unsure which code applies, ask your building department when you pull the permit.

Local code amendments

The IRC is the baseline. States and municipalities can — and do — amend it. Notable differences:

Always check with your local building department before starting. A quick phone call or visit to the permit counter can save you from tearing out completed work. Ask specifically about stair rise, run, handrail, and guard requirements — those are the areas where local amendments are most common.

Use the stair stringer calculator for code checks →

Enter your total rise and tread depth. Get rise per step, number of steps, total run, stringer length, and common IRC warnings.

Sources

Section numbers on this page refer to the 2021 editions. Your jurisdiction may adopt an earlier or later edition, with amendments — confirm requirements with your local building department before you build.