How the stair calculator works
The stair calculator needs only two measurements, the total rise and the tread depth you want; everything else is arithmetic. It works in five steps:
- Measure the total rise from the finished lower floor to the finished upper floor, plumb, with a level and tape. Include flooring that is not down yet.
- Count the risers. Divide the rise by the code's maximum riser and round up. 8′ 9″ ÷ 7-3/4 in = 13.55, so 14 risers.
- Size each riser. Divide the rise by that count: 105 ÷ 14 = 7-1/2″. Every riser in the flight must match within 3/8 in under the IRC[1].
- Count the treads. A straight flight has one tread fewer than risers, because the upper floor is the last step: 13 treads.
- Find the run. Treads × tread depth: 13 × 10-1/2 in = 11′ 4-1/2″ of floor space, face of the first riser to face of the last.
Under More options you can also enter the floor space you have, to check the run fits, and the nosing, to get the depth of each tread board. If the run is too long for the room, try a stair rise and run calculator that starts from the space you have, or split the climb with a stair calculator with landing. For outdoor steps off a deck, the deck stair calculator builds the treads from deck boards.
Stair code limits in the US, UK, Canada and Australia
The riser maximum, tread minimum and any rise-to-going rule decide how many steps a stair needs. These are the dwelling (private) stair limits the calculator checks:
| Code | Riser | Tread / going | Other rules |
|---|---|---|---|
| US IRC 2021/2024[1][2] | max 7-3/4 in (196 mm), no minimum | min 10 in (254 mm) | 6 ft 8 in headroom; 36 in width; max 151 in rise per flight |
| US IBC (commercial)[3] | 4–7 in (102–178 mm) | min 11 in (279 mm) | dwelling units may use 7-3/4 / 10 in |
| England, Approved Doc K[4] | 150–220 mm | 220–300 mm | pitch max 42°; 2R + G 550–700 mm; 2.0 m headroom |
| Canada NBC 2020[5] | 125–200 mm | run 255–355 mm | 860 mm width; 1950 mm headroom; max 3.7 m per flight |
| Australia NCC 2022[6][7] | 115–190 mm | going 240–355 mm | 2R + G 550–700 mm; 2 to 18 risers per flight; 2.0 m headroom |
The IRC is a model code that states and cities adopt, often with amendments[9]. The 2024 IRC moved stairways from R311.7 to R318.7 without changing these numbers[2]. Check which edition your building department enforces.
Stair calculator rise and run: a worked example in metric
For a 2,700 mm floor-to-floor height in Australia, the maximum riser is 190 mm, so 2,700 ÷ 190 = 14.2 rounds up to 15 risers of 180 mm. With a 250 mm going, 2R + G = 610 mm, inside the 550–700 mm band[6]. The 14 treads take 3,500 mm of floor, and 15 risers stay under the 18-riser limit for one flight.
The same height under the IRC gives 2,700 ÷ 196.85 = 13.7, so 14 risers of 193 mm. Different codes often give different counts for the same opening, which is why the calculator lets you pick the code.
Stair calculator with diagram: what the drawing shows
The stair calculator with diagram draws your flight to scale as you type. The wood shape is one cut stringer on the board width you chose, with the treads laid on top. Two details are easy to miss:
- The drop. The first riser on the stringer is cut short by the tread thickness, so every finished step comes out equal once the treads are on.
- The throat. The wood left under the notches. A 2x12 with 7-1/2″ × 10 in steps keeps 5-1/4″; deeper steps eat more. The stair stringer calculator gives the layout marks.
Headroom and the stairwell opening
The opening in the floor above must be long enough that nobody hits their head: the IRC wants 6 ft 8 in measured plumb from the sloped line through the tread nosings[1]. Add the upper floor thickness (joist, subfloor and ceiling) under More options and the calculator gives the opening length. For 14 risers of 7-1/2″, 10 in treads and an 11 in floor, it is about 10 ft. England and Australia require 2.0 m, Canada 1,950 mm for a dwelling stair[4][5][7].
Picking a comfortable tread depth
A comfortable stair keeps twice the riser plus the tread near 25 in (63 cm). The 1979 NBS Guidelines for Stair Safety cites 2R + T = 63 cm as a good formula and R + T of 17 to 18 in as an older rule[8]. England and Australia write a band of 550–700 mm into the code[4][6]. With 7-1/2″ risers, a 10 in tread gives 25 in; a 9 ft rise (14 risers of 7-11/16″) is just as easy with a 10 in tread.
Measure twiceTotal rise is the one number that ruins a stair if it is wrong. Measure at the stair location, from finished floor to finished floor, after deciding the flooring on both levels.
Common stair calculation mistakes
Most stair errors come from the total rise or the bottom step, not from the arithmetic:
- Measuring before the flooring. Total rise is finished floor to finished floor. A 3/4 in floor added later changes the top or bottom step by more than the 3/8 in variation the 2021 IRC (R311.7.5.1) allows[1].
- Rounding the riser count down. 105 in ÷ 13 risers is 8.08 in, over the 7-3/4 in limit. Always round the count up.
- Counting a tread for every riser. The upper floor is the last step, so a straight flight has one tread fewer than risers.
- Forgetting the drop. Cut the tread thickness off the bottom of the stringer or the first step is too tall.
- Skipping headroom. Any beam or floor edge must clear 6 ft 8 in above the nosing line (R311.7.2; R318.7.2 in 2024).
- Using nominal sizes. A 2x12 stringer is 11-1/4 in wide, not 12 in, which matters for the throat.
- Open sides without a guard. Where the stair is more than 30 in above the floor, the open side needs a guard whose openings stop a 4-3/8 in sphere, sized so a small child cannot slip through[1]; see the baluster spacing calculator.
Parts of a stair
A stair is risers, treads and nosings carried on stringers, with headroom and a handrail measured from the line through the nosings. The diagram labels each part with the 2021 IRC limit[1]:
| # | Part | Limit and section |
|---|---|---|
| 1 | Riser height | at most 7-3/4 in (196 mm); 2021 R311.7.5.1, 2024 R318.7.5.1 |
| 2 | Tread depth | at least 10 in (254 mm), nosing to nosing; R311.7.5.2 / R318.7.5.2 |
| 3 | Nosing | 3/4 to 1-1/4 in where the tread is under 11 in; R311.7.5.3 / R318.7.5.3 |
| 4 | Headroom | at least 6 ft 8 in (2032 mm) above the nosing line; R311.7.2 / R318.7.2 |
| 5 | Handrail height | 34 to 38 in above the nosing line, 4 or more risers; R311.7.8 / R320.2 |
| 6 | Stringer | cut 2x12 (11-1/4 in wide); the 2024 IRC moved these rules to R318.7 and R320 |
Frequently asked questions
How many steps do I need for a 9 foot rise?
Under the IRC a 108 in rise needs 14 risers of about 7-11/16″ and 13 treads. 108 ÷ 7-3/4 = 13.9, which rounds up to 14.
What is the standard stair rise and run?
For homes in the US the IRC allows risers up to 7-3/4 in and treads of at least 10 in. Commercial stairs under the IBC use 4–7 in risers and 11 in treads. A 7 in riser with an 11 in tread is a common comfortable choice.
Does the top floor count as a step?
Yes for risers, no for treads. The last riser lands on the upper floor, so a straight stair has one tread fewer than it has risers.
Is there a stair calculator app?
Yes: this page is built to work as one on a phone. It runs in any mobile browser with no sign-up, and you can add it to your home screen from the browser menu.
Can I use the stair calculator in metric?
Yes. Switch the panel to m · mm and type the rise in millimetres. The code check converts the IRC limits and uses the UK, Canadian and Australian limits in their own millimetre values.
Sources
- 2021 International Residential Code, Chapter 3: Building Planning (R301.5, R311.7 stairways, R312 guards)
- 2024 International Residential Code, Chapter 3 (R318.7 stairways, R320 handrails, R321 guards)
- 2021 International Building Code, Chapter 10: Means of Egress (1011.5.2, 1015.3)
- Approved Document K: Protection from falling, collision and impact (2013 edition, for use in England)
- National Building Code of Canada 2020, Division B, Part 9, Section 9.8 Stairs, ramps, handrails and guards
- ABCB Housing Provisions, Part 11.2 Stairway and ramp construction (NCC 2022)
- ABCB Housing Provisions, Part 10.3 Room heights (stair headroom)
- Guidelines for Stair Safety, Building Science Series 120 (Archea, Collins, Stahl)
- International Residential Code adoption map