Stair Calculator
Building a staircase? Enter the total rise to find the number of risers, the actual riser height, total run and stringer length — with a code check against the IRC.
Your Staircase
Code Check (2021 IRC R311.7.5)
How It Works
The calculator divides the total rise by your desired riser height and rounds to the nearest whole number of risers, then divides the total rise by that count to get the actual riser height — so every riser is exactly equal. If that would make a riser taller than the 7¾-inch code maximum, it adds another riser. The number of treads is always one less than the number of risers, because the upper floor itself acts as the last tread. Total run is treads times tread depth; stringer length comes from Pythagoras, √(rise² + run²); and the stair angle is atan(rise ÷ run).
The code check compares your staircase against the 2021 International Residential Code, section R311.7.5 (renumbered R318.7 in the 2024 IRC): maximum riser 7¾ inches, minimum tread 10 inches, and no more than ⅜ inch of variation between the tallest and shortest riser in a flight. Because this calculator makes every riser equal, the variation is always zero. The comfort check uses Blondel's formula: twice the riser plus the tread should land between 24 and 25 inches for a comfortable stride.
Worked Example
A total rise of 108 inches with a desired riser of 7.5 inches: 108 ÷ 7.5 = 14.4, rounded to 14 risers, so the actual riser is 108 ÷ 14 = 7.71 inches. That gives 13 treads, and at 11 inches each the total run is 13 × 11 = 143 inches. The stringer length is √(108² + 143²) = 179.2 inches, and the stair angle is atan(108 ÷ 143) = 37.1°. Blondel's check: 2 × 7.71 + 11 = 26.4 inches, just above the 24–25 inch comfort band — a slightly steep stair.
Assumptions
- All risers are equal height, so riser variation within the flight is zero.
- Code limits used: maximum riser 7¾ in, minimum tread 10 in, maximum variation ⅜ in (2021 IRC R311.7.5; 2024 IRC R318.7).
- A single flight may rise at most 151 inches (12 ft 7 in) before a landing is required.
- Tread depth is measured nosing to nosing; the nosing overhang itself is not added.
Staircases at different total rises (desired riser 7.5 in, tread depth 11 in):
| Total rise | Risers | Actual riser | Treads | Total run |
|---|---|---|---|---|
| 96 in | 13 | 7.38 in | 12 | 132 in |
| 108 in | 14 | 7.71 in | 13 | 143 in |
| 120 in | 16 | 7.50 in | 15 | 165 in |
How to Use This Calculator
Enter the total rise — floor to floor, finished surface to finished surface — your desired riser height and the tread depth. Results update live, showing the riser count, actual riser height, total run, stringer length, stair angle and the code check. If you enter a desired riser above the 7¾-inch code maximum, it is clamped to the maximum and a warning is shown.
Tips and Practical Advice
Measure the total rise after the finished flooring is in, or allow for its thickness — a ¾-inch floor added later throws every riser off. Keep every riser exactly the same height: even a small difference is a tripping hazard, which is why the code limits variation to ⅜ inch. Check headroom too — the IRC requires at least 6 ft 8 in of clear headroom above the stair. And remember that local codes vary, so check the requirements with your building department before you build.
Sources: Code limits are from the 2021 International Residential Code, section R311.7.5 (renumbered R318.7 in the 2024 IRC); the 151-inch maximum rise per flight and the 6 ft 8 in headroom minimum are from the same code. Last reviewed: 15 November 2026.
Built and tested by SumKitTool — see how we check our numbers.
Frequently Asked Questions
How many risers do I need for my staircase?
Divide the total rise by your desired riser height (about 7.5 inches is comfortable) and round to the nearest whole number, then divide the total rise by that count to get the actual riser height. A 108-inch rise gives 14 risers at 7.71 inches each.
What is the maximum riser height allowed by code?
The maximum riser height is 7¾ inches under the 2021 IRC, section R311.7.5 (renumbered R318.7 in the 2024 IRC). The same section sets a minimum tread depth of 10 inches and limits the variation between risers in one flight to ⅜ inch.
How do I work out the total run of a staircase?
The number of treads is one less than the number of risers, because the upper floor acts as the last tread. Multiply treads by the tread depth: 13 treads at 11 inches give a total run of 143 inches.
What makes a staircase comfortable to climb?
Blondel's formula says twice the riser height plus the tread depth should land between 24 and 25 inches — that matches a natural stride. A 7.71-inch riser with an 11-inch tread gives 26.4 inches, which is slightly steep but still within code.
Last updated: