Guides

Stair Rise and Run: The Code Rules

Inspectors measure risers and treads with a tape, and a step that is too tall or uneven fails. These are the stair rules in the International Residential Code, which most US towns adopt, with the math for working out how many steps you need.

Open the Stair Stringer Calculator

Quick answer

Under the 2021 International Residential Code, a riser can be at most 7-3/4 inches tall and a tread at least 10 inches deep, and no riser or tread in a flight may differ from the others by more than 3/8 inch. Stairs must be at least 36 inches wide with 6 ft 8 in of headroom, and any flight with four or more risers needs a handrail 34 to 38 inches high.

Risers and treads

How many steps you need

Measure the total rise, from the landing or ground surface to the top of the finished deck or floor. Divide by 7.75 and round up: that is the number of risers. Divide the total rise by that number for the actual riser height, so every step comes out equal. When the deck or floor is the top step, there is one fewer tread than risers.

Total riseRisersEach riserTreads (deck as top step)Run at 10 in treads
24 in46 in330 in
30 in47.5 in330 in
36 in57.2 in440 in
48 in76.86 in660 in
60 in87.5 in770 in
96 in137.38 in12120 in
108 in147.71 in13130 in

The stair stringer calculator does this for your measured rise (it aims for a more comfortable 7-1/2 inch riser unless you change the target) and lays out the stringer cuts.

Width, headroom and landings

Handrails

Deck stairs

DCA 6 adds details for wood deck stairs: 2x12 stringers at least, cut stringers spanning no more than 6 ft and spaced no more than 18 inches apart, at least three cut stringers on a 36-inch stair, and stair guards with posts no more than 6 ft apart.

The 2024 code and local rules

The 2024 IRC keeps the same numbers but moves the stair rules to section R318.7 and handrails to R320, and adds some landing exceptions for short exterior stairs. Some states amend the stair rules; New Jersey, for example, allows 8-1/4 inch risers and 9 inch treads. Your building department has the final word.

Frequently asked questions

What is the maximum stair riser height?

7-3/4 inches under the 2021 IRC (R311.7.5.1), with no more than 3/8 inch difference between the tallest and shortest riser in a flight.

What is the minimum stair tread depth?

10 inches, measured between the nosings (2021 IRC R311.7.5.2). Treads under 11 inches need a 3/4 to 1-1/4 inch nosing.

How many steps for a 30 inch rise?

4 risers of about 7.5 inches each, with 3 treads if the deck is the top step.

When do stairs need a handrail?

When a flight has four or more risers, on at least one side, 34 to 38 inches above the nosings (2021 IRC R311.7.8).

Calculators for this

Published 2026-11-06. Sources: 2021 International Residential Code, section R311.7 (Colorado adoption, via UpCodes); 2024 International Residential Code, chapter 3 (Maryland adoption, via UpCodes); 2024 International Residential Code as amended by New Jersey (via UpCodes); American Wood Council, DCA 6 Prescriptive Residential Wood Deck Construction Guide. See how we calculate.