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
| Rule | Limit | IRC section |
|---|---|---|
| Riser height | 7 3/4" maximum | R318.7.5.12021: R311.7.5.1 |
| Tread depth | 10" minimum | R318.7.5.22021: R311.7.5.2 |
| Tallest vs. shortest riser, deepest vs. shallowest tread | 3/8" maximum difference | R318.7.5.1, R318.7.5.22021: R311.7.5.1, R311.7.5.2 |
| Nosing | 3/4" to 1 1/4"; not required on treads 11" or deeper | R318.7.5.32021: R311.7.5.3 |
| Open risers | No opening a 4" ball can pass, where more than 30" above the floor or ground | R318.7.5.12021: R311.7.5.1 |
| Width | 36" minimum | R318.7.12021: R311.7.1 |
| Headroom | 6' 8" minimum | R318.7.22021: R311.7.2 |
| Rise between floors or landings | 12' 7" (151") maximum | R318.7.32021: R311.7.3 |
| Landings | At the top and bottom; at least 36" in the direction of travel | R318.7.62021: R311.7.6 |
| Handrail | With 4 or more risers; 34" to 38" high | R318.7.8, R320.22021: R311.7.8, R311.7.8.1 |
| Guard | On open sides more than 30" above the floor or ground | R321.12021: R312.1 |
| Exterior landings | Slope no more than 1/4" per foot (2%) | R318.32021: R311.3 |
| Light at exterior stairs | A light at the top landing | R325.72021: R303.8 |
Risers and treads
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 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:
- Landings that drain. A landing at the top and the bottom, as wide as the stair and at least 36" deep, sloped no more than 1/4" per foot (2%) so water runs off (R318.3, R318.7.6).
- No top landing for short stairs. At an exterior door, a stair of one or two risers can start right at the threshold, as long as the door does not swing over it (R318.7.6, exception 3). A storm or screen door may.
- A light at the top. Exterior stairs need a light fixture at the top landing (R325.7; R303.8 in the 2021 edition).
- Guards and open risers. Where a stair or landing is more than 30" above the ground, the open sides need a guard and the openings between treads must stop a 4" ball. That is why most deck stairs need riser boards.
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.
| Rule | House (IRC) | Commercial (IBC) |
|---|---|---|
| Riser height | 7 3/4" maximum, no minimum | 7" maximum, 4" minimumIBC 1011.5.2 |
| Tread depth | 10" minimum | 11" minimumIBC 1011.5.2 |
| Width | 36" minimum | 44" minimum; 36" if it serves fewer than 50 peopleIBC 1011.2 |
| Headroom | 6' 8" | 6' 8" (80")IBC 1011.3 |
| Rise of one flight | 12' 7" maximum | 12' maximumIBC 1011.8 |
| Handrail height | 34" to 38" | 34" to 38"IBC 1014.2 |
| Guard height | 36" (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:
- Which edition of the residential code do you use?
- Have you changed the stair section (R318.7 in the 2024 IRC, R311.7 in 2021)?
- Do I need a permit for this stair?
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 calculatorQuestions 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
- 2024 International Residential Code, International Code Council, Sections R318.3, R318.7, R320, R321 and R325.7.
- 2024 International Building Code, International Code Council, Sections 1011, 1014 and 1015.
- Residential Stair Guide, Town of Timnath, Colorado (quotes the code text section by section).
- IRC Section R311.7.5: Stair Treads & Risers, City of Boise.
- Commercial Stair Handout, Humboldt County, Nevada (IBC stair rules).
- Philadelphia Building Code, stair amendments under Pennsylvania's Uniform Construction Code.
- Baltimore City Building Code, Section 311.