Stair Code Requirements (IRC R311.7)

Enter your total rise to check a stair against every limit below.

in

Type it the way you read the tape: 68 1/2, 5' 8 1/2", 68.5 or 174cm.

Type your total rise and the answer appears here.

Code check runs as you type
Where to measure
Where to measure total riseTotal risemeasure straight downlevel off the finished deckdeck or floorfinished ground or floor

Measure from the top of the finished upper floor or deck straight down to where the bottom step will land. Not level ground? Measure at the landing spot.

Drag, or use the arrow keys
AdjustTread, riser, lumber, nosing, units — the drawing updates as you go

Steps

Top of stair

Lumber

Stringer stock

Space (optional)

Show results in

Cut sheet

Your marks, cuts and shopping list fill in here.

Code check

  • Runs as soon as you enter a total rise.

Based on the IRC (2021 R311.7 / 2024 R318.7). Local codes vary — confirm with your building department before building.

The residential stair code at a glance

These are the limits in the International Residential Code for one- and two-family homes: 2021 IRC Section R311.7, renumbered R318.7 in the 2024 edition with the same numbers. Most US states and cities build on the IRC, often with local changes.

item requirement
Maximum riser height 7 3/4”
Minimum tread depth 10”, nosing to nosing
Nosing 3/4”–1 1/4” on stairs with solid risers; not required when treads are 11” or deeper
Variation between risers or treads 3/8” largest to smallest
Minimum headroom 6’ 8” (80”), measured straight up from the nosing line
Minimum width 36” clear above the handrail
Handrail required at 4 or more risers, 34”–38” high
Maximum rise of one flight 151” (12’ 7”); more needs a landing
Landings at the top and bottom; at least as wide as the stair and 36” deep
Open risers must stop a 4” sphere when the stair rises more than 30”

Risers and treads

Riser height is measured straight up from the leading edge of one tread to the next. The 7 3/4” limit applies to every riser, including the first and last. Builders most often get these wrong because the floor finish or tread thickness was missed. The calculator above divides your total rise into equal risers and never goes over 7 3/4”.

Tread depth is measured level, from the front edge of one tread to the front edge of the next. Nosing overhang does not count toward the 10”.

Uniformity. The tallest riser can be no more than 3/8” taller than the shortest, and the same goes for treads. This is the rule that catches a stair built on an unfinished floor: add 3/4” of hardwood later and the top or bottom step is out of tolerance.

Headroom and width

Headroom is measured straight up from the sloped line through the tread nosings to the lowest thing overhead: ceiling, beam, duct or soffit. You need 6’ 8” along the whole flight and over the landings.

Width is at least 36” clear above the handrail. A handrail may project up to 4 1/2” into that width on each side, so the clear width at the rail is at least 31 1/2” with one rail and 27” with two.

Handrails

A stair with four or more risers needs a handrail on at least one side. It must be 34”–38” high, measured straight up from the nosing line, and run continuously from above the top riser to above the bottom riser. Leave at least 1 1/2” between the rail and the wall. A round rail must be 1 1/4”–2” in diameter so a hand can close around it.

Guards

Any open side of a stair, landing or floor more than 30” above the floor or ground below needs a guard. On the open side of a stair the guard is at least 34” high from the nosing line, and 36” on landings and floors.

Openings in a guard must stop a 4” sphere. The IRC allows 4 3/8” on the open sides of stairs, and the triangle formed by the riser, tread and bottom rail may stop a 6” sphere instead. Many local codes still require 4” everywhere. The stair railing calculator spaces balusters to whichever limit you choose.

Landings

There must be a landing or floor at the top and bottom of every stair, at least as wide as the stair and 36” deep in the direction of travel. One flight may not rise more than 151” between floors or landings. A taller stair needs an intermediate landing; the stair calculator with landing splits it for you. An interior stair may skip the top landing if a door at the top does not swing over the stairs.

Lighting

Stairs need a light that covers the treads and landings. An interior stair with six or more risers needs a light switch at each floor level.

Worked example: does a 68 1/2” stair pass?

Type 68 1/2 into the calculator above. You get 9 risers of 7 5/8” (under 7 3/4”) and 8 treads of 10 1/2” (over 10”), so both pass. Because the treads are under 11”, a 3/4”–1 1/4” nosing is required with solid risers. Nine risers means a handrail is required, and the 68 1/2” rise is well under the 151” flight limit, so no landing is needed.

Frequently Asked Questions

What is the code for stair rise and run?

Under the IRC, risers can be no taller than 7 3/4" and treads no shallower than 10", measured nosing to nosing. No riser or tread may differ from the others in the flight by more than 3/8".

How many stairs before a handrail is required?

The IRC requires a handrail on at least one side of any stair with four or more risers. It must be 34" to 38" high, measured straight up from the line through the tread nosings.

What is the minimum headroom for stairs?

6' 8" (80"), measured straight up from the sloped line through the tread nosings to the lowest obstruction above, along the whole stair and over landings.

When is a guard required on stairs?

When an open side of the stair or landing is more than 30" above the floor or ground below. On stairs the guard must be at least 34" high, and openings must stop a 4 3/8" sphere under the IRC, or 4" where local codes require it.

How tall can a staircase be without a landing?

One flight can rise at most 151" (12' 7") between floors or landings. Taller stairs need an intermediate landing at least as wide as the stair and 36" deep.