Building code compliance isn't optional — it's the difference between stairs that pass inspection and ones that don't. But the IRC's stair rules aren't just bureaucratic box-ticking. Every number exists because somebody got hurt on stairs that didn't follow it. Here's what the code requires, what each number means in practice, and how to check your own stairs with a tape measure.
Why Stair Code Exists
Falls on stairs are one of the leading causes of injury in the home. The reason is rhythm: you climb stairs on autopilot, and your body expects every step to be exactly like the last. When one riser is a quarter inch taller than the others, your foot lands where your brain assumed solid ground would be — and it isn't there. That's why the code is so fussy about uniformity. Boring stairs are safe stairs.
Key IRC Stair Dimensions
IRC Section R311.7 sets the minimum requirements for residential stairs. Below are the actual numbers, plus how an inspector checks each one.
Riser Height
Maximum: 7¾ inches. Taller than this and the stair gets steep enough to be a fall hazard, especially going down.
Minimum: Not specified in the IRC, but risers below 4 inches feel awkward and break your cadence.
Variation: ⅜ inch max. The tallest and shortest riser in a flight cannot differ by more than 3/8 inch. This is the rule inspectors enforce hardest.
How it's checked: Every riser gets measured and the tallest is compared to the shortest. More than ⅜" apart and you fail.
Tread Depth
Minimum: 10 inches, measured horizontally from nosing to nosing (the front edges of consecutive treads).
Nosing projection: ¾ inch to 1¼ inches. The nosing is the rounded or beveled front edge that overhangs the riser below. Less than ¾" and your toe catches; more than 1¼" and the nosing can split under load.
How it's checked: Tread depth is measured nose-to-nose, not by board width — a 2×10 (9¼" actual) with a 1" nosing meets the 10" requirement. The inspector also runs a hand along the nosing to confirm it's not a sharp 90-degree edge.
Stair Width
Headroom
How it's checked: Tape held plumb from a tread nosing straight up. Basement stairs fail this constantly — that boxed-in duct run may be sitting right over the nosing line.

The 7-11 Rule and the 2R+T Comfort Formula
A widely used guideline is the "7-11 rule": risers around 7 inches, treads around 11 inches — stricter than code minimums, and noticeably more comfortable.
Behind it sits a comfort formula carpenters have used for over a century: 2R + T ≈ 24–25 inches, where R is riser height and T is tread depth. A 7" riser with an 11" tread gives 2×7 + 11 = 25 — right in the sweet spot. A max-code stair (7¾" riser, 10" tread) gives 25.5, which is legal but feels steeper, especially going down. Code sets the floor for safety, not the ideal — if you have the space, design to 7-11.
Handrail Requirements
When required: On at least one side of any stair with 4 or more risers.
Height: 34 to 38 inches, measured vertically from the nosing line to the top of the rail.
Graspable: A hand must be able to close around it — a 2×4 laid flat doesn't count. Round rails should be 1¼" to 2" in diameter.
Continuous: The rail must run the full length of the flight without breaks. A newel post interrupting the grip mid-flight is a common failure.
Extensions: At the top, the rail must extend horizontally at least 12 inches beyond the top riser, so you have something to hold before your first step. At the bottom it should continue to the slope of the stair or terminate at a newel post.
Termination: Rails must end in a wall, a newel post, or curve back on themselves — not in midair where a bag strap can catch.

Guard Requirements
Guards are the barrier along an open side that keeps you from falling off the side of the stair — a different job from a handrail, with different rules:
When required: On any open side where the drop to the floor below is more than 30 inches.
Minimum height: 36 inches from the nosing line (42" under the commercial IBC).
The 4-inch sphere rule: Openings — between balusters, or between the bottom rail and the treads — must not allow a 4-inch sphere to pass through. It exists because of children: a 4-inch gap is too small for a small child's head to fit through and get stuck. Inspectors literally carry a 4-inch ball to test it.
Guards are also required along open sides of landings and raised floor areas more than 30" above grade. And don't build guards to handrail height out of habit — 34–38" isn't enough; guards need 36" minimum from the nosing line, and on a stair slope that measurement point matters.
Landing Requirements
Every stairway needs a landing at the top and bottom.
Minimum length: 36 inches, measured in the direction of travel.
Width: At least as wide as the stairway it serves.
What counts: A hallway, a room floor, a deck surface, or a concrete pad — anything flat, stable, 36" deep, and as wide as the stairs. Dirt, grass, or pavers sitting on soil don't qualify; exterior stairs need a real pad.
One more detail: doors. A door can't swing out over the stairs in a way that eats into the required landing. Plan door swings before you frame.
IRC vs. IBC: Which Code Applies to You?
The IRC (International Residential Code) covers one- and two-family dwellings and townhouses — your house. The IBC (International Building Code) covers commercial buildings and apartments with three or more units, with stricter numbers because occupant loads are higher.
Requirement | IRC (Residential) | IBC (Commercial) |
|---|
Max Riser | 7¾" | 7" |
Min Tread | 10" | 11" |
Min Width | 36" | 44" |
Headroom | 6'8" | 6'8" |
Guard Height | 36" | 42" |
If the project is a rental with three or more units or a commercial space, the IBC column applies. When in doubt, ask your building department which code they've adopted for your project type — one phone call settles it.
Common Code Violations That Fail Inspection
Uneven risers. The single most failed item. Usually caused by forgetting the "drop cut" — the bottom riser is measured from the landing surface while every other riser sits on a tread, making the first step taller than the rest by the tread's thickness.
Missing handrail returns. Rails that end in midair instead of terminating into a wall, post, or curving back.
Nosing too sharp or missing. A crisp 90-degree tread edge is a violation and a shin hazard.
Wrong guard height. Guards built to handrail height (34–38") fail — guards need 36" minimum from the nosing line.
Balusters too far apart. Anything a 4-inch sphere passes through fails. Four inches looks wider than it is when you're spacing by eye — use a tape.
Handrail too fat to grip. A 2×6 cap or chunky decorative rail isn't graspable. If you can't close your hand around it, it doesn't count.
Check Your Own Stairs with a Tape Measure
You don't need an inspector's toolkit. Grab a tape measure and run this in about ten minutes:
1. Every riser. Measure each riser straight up, tread to tread. Subtract the smallest from the largest — more than ⅜" difference fails the uniformity rule.
2. Tread depth. Measure nose-to-nose; each should be at least 10". Then check nosing overhang: ¾" to 1¼".
3. Width. Across the narrowest point at handrail height: 36" clear minimum.
4. Headroom. Hold the tape plumb from a tread nosing straight up: 6'8" minimum. Check every step — the tight point is usually under the floor above.
5. Handrail. 34"–38" above the nosing line. Can you close your hand around it? Does it run the full flight unbroken? Does it extend 12" past the top step?
6. Guards. On any open side with a 30"+ drop: 36" minimum height, and baluster gaps no wider than 4" (a tennis ball is close enough for a rough check).
7. Landings. 36" deep in the direction of travel at top and bottom, at least as wide as the stairs.
Pass all seven and your stairs are in good shape by IRC standards. If not, you now know exactly what to fix — and whether it's a Saturday project or a call to a contractor.
Local Amendments: Your City May Be Stricter
The IRC is a model code — states and municipalities adopt it and then amend it. Some require 11" minimum treads, handrails on both sides, or permits for any stair work at all. A few still enforce older editions with different numbers.
The fix is simple: call your building department before you start. Ask which code edition they've adopted and what the inspector checks on stairs. Ten minutes, free, and the inspector tells you exactly what they want to see. No better source exists for your address.
FAQ
Do I need a permit for stair repair? Usually yes if you're reframing stringers, changing dimensions, or the stairs serve as required egress. Like-for-like tread replacement sometimes doesn't need one. Most stair work sits over 30" above grade — assume you need a permit and confirm with the building department.
Does code apply to my existing old stairs? Existing stairs are generally grandfathered — nobody has to tear out a 1920s staircase with 8" risers. But the moment you alter the stairs (rebuild, relocate, change dimensions), the new work must meet current code. And a buyer's inspector will flag non-compliant stairs at sale time even if they're grandfathered.
What's the difference between a handrail and a guard? A handrail is for gripping while you climb (34–38" high, graspable, following the slope). A guard is a barrier blocking an open drop (36" minimum, balusters ≤4" apart). One stair often needs both.
Can I build stairs steeper than code allows? Not as a primary stairway — 7¾" max riser and 10" min tread are hard limits. Steeper options like ship's ladders exist in the code only for very limited uses (small loft or roof hatch access), never as main stairs. Tight on space? Solve it with a landing or a turn, not by breaking the riser limit.
How do I measure riser variance? Measure every riser tread-to-tread, write down each number, subtract the smallest from the largest. More than ⅜" fails. Don't eyeball it — a quarter inch is invisible until measured, and your feet will find it before your eyes do.
Which code applies to my basement stairs? The IRC, same as the rest of a single-family home — including the 6'8" headroom rule, which basement stairs fail more than any other section because of low ceilings and ductwork. Measure headroom at every step before framing.
Code numbers are only useful if your stairs actually land on them. The free stair calculator at stairscalculator.net runs your total rise and target riser height through all of this automatically — step count, exact riser height, tread depth, stringer length, stair angle — and checks the results against the IRC limits above. Do the math first, build second, and the inspection takes care of itself.
Build to code, and your stairs disappear into the background of daily life — exactly what good stairs are supposed to do.