Stair Building Code, Explained

The rules for stairs in a house fit on one page. Here they are in plain English, with the section number for each, so you know what an inspector will measure.

The short answer. Under the residential code (IRC), a stair in a house needs risers no taller than 7 3/4", treads at least 10" deep, every step within 3/8" of the others, at least 36" of width and 6' 8" of headroom, and a handrail 34" to 38" high once it has 4 or more risers. Commercial buildings follow stricter rules: 7" risers and 11" treads.

Where the rules come from

Most of the United States builds houses under the International Residential Code (IRC), a model code published by the International Code Council. Stairs are in Section R318.7 of the 2024 edition (R311.7 in the 2021 edition). The numbers in this guide are from the 2024 edition. Many areas still build under the 2021 or 2018 edition. The limits in this guide are the same; only the section numbers changed.

The IRC is not law by itself. Each state, county or city adopts an edition and can change it. So treat this guide as the baseline and your building department as the final word. It covers one- and two-family houses; apartments and commercial buildings follow a different, stricter code, compared further down.

The short version

RuleLimitIRC section
Riser height7 3/4" maximumR318.7.5.12021: R311.7.5.1
Tread depth10" minimumR318.7.5.22021: R311.7.5.2
Tallest vs. shortest riser, deepest vs. shallowest tread3/8" maximum differenceR318.7.5.1, R318.7.5.22021: R311.7.5.1, R311.7.5.2
Nosing3/4" to 1 1/4"; not required on treads 11" or deeperR318.7.5.32021: R311.7.5.3
Open risersNo opening a 4" ball can pass, where more than 30" above the floor or groundR318.7.5.12021: R311.7.5.1
Width36" minimumR318.7.12021: R311.7.1
Headroom6' 8" minimumR318.7.22021: R311.7.2
Rise between floors or landings12' 7" (151") maximumR318.7.32021: R311.7.3
LandingsAt the top and bottom; at least 36" in the direction of travelR318.7.62021: R311.7.6
HandrailWith 4 or more risers; 34" to 38" highR318.7.8, R320.22021: R311.7.8, R311.7.8.1
GuardOn open sides more than 30" above the floor or groundR321.12021: R312.1
Exterior landingsSlope no more than 1/4" per foot (2%)R318.32021: R311.3
Light at exterior stairsA light at the top landingR325.72021: R303.8

Risers and treads

Riser, tread and nosing limits Close-up of three steps. Riser height, measured from tread top to tread top, is 7 and 3/4 inches at most. Tread depth, measured nosing to nosing, is at least 10 inches. The nosing sticks out 3/4 inch to 1 and 1/4 inches. Riser: 7 3/4" max Tread: 10" min Nosing: 3/4" to 1 1/4" Tallest and shortest riser within 3/8" of each other
Riser height is measured from the top of one tread to the top of the next. Tread depth is measured level, from nosing to nosing.

Riser height can be at most 7 3/4". It is measured vertically between the leading edges of two treads, so it includes the tread, not just the riser board.

Tread depth must be at least 10". It is measured horizontally from the front edge of one tread to the front edge of the next. That is the run of the step, not the width of the board: a nosing adds to the board, not to the tread depth.

Uniformity is the rule people miss. Within one flight, the tallest riser cannot be more than 3/8" taller than the shortest, and the same goes for tread depth. People settle into a stair's rhythm within a step or two, so a single odd step is a trip hazard. The first and last steps are the usual culprits, because they meet floors that were finished later.

Nosing. On stairs with solid risers, each tread must stick out 3/4" to 1 1/4" past the riser below, unless the treads are 11" deep or more.

Open risers are allowed. But where the opening is more than 30" above the floor or the ground, it must be too small for a 4" ball to pass through, so a small child cannot slip between the treads.

Width

A stair must be at least 36" wide, measured above the handrail. Handrails may stick into that width by up to 4 1/2" on each side, which leaves at least 31 1/2" clear with one handrail and 27" with two.

Headroom and handrails

Headroom and handrail height Side view of a stair. Headroom is measured straight up from the sloped line that joins the tread nosings and must be at least 6 feet 8 inches. The handrail runs 34 to 38 inches above that same line. Nosing line Handrail: 34" to 38" above the nosing line Ceiling, beam or soffit Headroom: 6' 8" min, measured straight up
Both are measured from the nosing line, the sloped line that touches the front edge of every tread.

Headroom must be at least 6' 8" (80"), measured straight up from the nosing line to the lowest thing overhead: a ceiling, a beam, a soffit or a duct. It often decides where a basement stair can go.

Handrails are required on at least one side of any flight with 4 or more risers. The top of the rail sits 34" to 38" above the nosing line, runs the full length of the flight, and must be a shape a hand can wrap around. A round rail qualifies at 1 1/4" to 2" in diameter. A 2x4 laid flat does not.

Guards

A guard is the barrier that keeps people from falling off the side. It is required on the open side of any stair, landing, deck or porch that is more than 30" above the floor or ground below. On a level surface it must be at least 36" high. Along a stair it must be at least 34" high, measured from the nosing line. Openings must stop a 4" ball, or a 4 3/8" ball on the sloped side of a stair.

Landings and tall stairs

Every stair needs a floor or a landing at the top and at the bottom, at least as wide as the stair and at least 36" deep in the direction you walk. One flight can rise no more than 12' 7" (151") before it needs a landing. Older editions of the code set that limit at 12 feet.

Outdoor stairs

Outdoor stairs follow the same riser, tread, width and handrail rules as indoor ones. Four things are specific to them:

Building one off a deck? How to build deck stairs covers the landing pad, the stringers and the guard step by step, and the deck railing code covers baluster spacing.

Residential vs. commercial stairs (IRC vs. IBC)

Stairs in offices, stores, schools and apartment buildings fall under the International Building Code (IBC), Section 1011. Its limits are stricter because more people, and more kinds of people, use the stair. Inside a single apartment, the IBC allows some of the residential numbers; your building department will tell you which apply.

RuleHouse (IRC)Commercial (IBC)
Riser height7 3/4" maximum, no minimum7" maximum, 4" minimumIBC 1011.5.2
Tread depth10" minimum11" minimumIBC 1011.5.2
Width36" minimum44" minimum; 36" if it serves fewer than 50 peopleIBC 1011.2
Headroom6' 8"6' 8" (80")IBC 1011.3
Rise of one flight12' 7" maximum12' maximumIBC 1011.8
Handrail height34" to 38"34" to 38"IBC 1014.2
Guard height36" (34" along a stair)42"IBC 1015.3

The IBC also usually requires a handrail on both sides and solid risers on most stairs. If you are building a stair that people outside your household will use, such as a rental unit, a shop or a church, ask which code applies before you lay it out.

Why your town may be different

Local changes are common, and they go both ways. Pennsylvania's statewide code allows risers up to 8 1/4". Baltimore allows treads as shallow as 9". Other places are stricter, or still use an older edition. Before you build, ask your building department three things:

Check your own stair

Enter your total rise in the calculator and it checks the layout against these rules as you type, with the section number next to each one.

Open the stair calculator

Questions people ask

What is the maximum riser height for stairs?

In a house, 7 3/4" under the International Residential Code. In commercial and public buildings the International Building Code allows 7" at most. Some states and cities change these numbers, so check yours.

What is the minimum tread depth for stairs?

10" in a house, measured level from the front edge of one tread to the front edge of the next. Commercial stairs need 11".

Is there a maximum tread depth?

No. Neither code sets a maximum. The limit that matters is uniformity: within one flight, the deepest and the shallowest tread can differ by no more than 3/8".

What is the code for stair rise and run?

For a house: rise (riser height) 7 3/4" or less and run (tread depth) 10" or more, every step within 3/8" of the others. Most builders aim for about 7 1/2" by 10" to 10 1/2", which leaves room for error on the first and last steps.

Is there a minimum riser height?

Not in the residential code. The commercial code sets a minimum of 4", along with a 7" maximum riser and an 11" minimum tread.

Does the code apply to deck stairs?

Yes. A deck attached to a house is covered by the same stair rules, plus the guard rule for the deck itself.

What is the code for exterior stairs?

The same as for indoor stairs: risers up to 7 3/4", treads at least 10", a handrail with 4 or more risers and a guard where the stair is more than 30" above the ground. Outdoors, the landings must also slope no more than 1/4" per foot so water drains, and the stair needs a light at the top landing.

My house is old and the stairs don't meet these numbers. Do I have to rebuild them?

Generally the code applies to new work and to stairs you rebuild. Existing stairs are usually left alone unless they are unsafe. Your building department decides.

What is the "7-11 rule"?

A rule of thumb, not a code rule: a 7" riser with an 11" tread makes a comfortable stair. A related one says two risers plus one tread should add up to 24" to 25".

This guide is a summary, not legal advice. It leaves out winders, spiral stairs and several exceptions. Read the full section, or ask your building department, before you build.

Sources

Was this guide helpful?

Help us improve this guide

Was it helpful?

Only if you want a reply.