How to use the Stair Calculator
- Measure the total rise: from the lower floor to the top of the upper floor, in one straight vertical line.
- Enter your tread depth and the maximum riser height allowed.
- Read the number of risers and treads, the riser height and the total run.
- Use the stringer length to buy lumber: add a foot or so for cuts.
How it works
The number of risers is the total rise divided by the maximum riser height, rounded up. Dividing the rise by that whole number gives the equal riser height every step needs. There is always one fewer tread than risers, because the top floor acts as the last step. The total run is treads × tread depth, and the stringer length follows from Pythagoras: √(rise² + run²).
The US International Residential Code (IRC) limits risers to 7¾ inches and requires treads of at least 10 inches, at least 6 ft 8 in of headroom, and risers within ⅜ inch of each other. A common comfort rule is 2 × riser + tread = 24 to 25 inches. Commercial stairs (IBC) are stricter: 7-inch maximum risers and 11-inch treads.
Formula
Risers = ⌈total rise ÷ max riser⌉ Riser height = total rise ÷ risers Treads = risers − 1 Total run = treads × tread depth Stringer ≈ √(rise² + run²)
Example
A basement with a 108-inch rise (9 ft): 108 ÷ 7.75 = 13.9, so 14 risers of 108 ÷ 14 = 7.71 in. That gives 13 treads; at 10.5 in each, the total run is 136.5 in (11 ft 4.5 in). The stringer is about 174 in long.
Steps needed by total rise (7¾ in max riser, 10½ in treads)
| Total rise | Risers | Riser height | Treads | Total run |
|---|---|---|---|---|
| 18 in (1 ft 6 in) | 3 | 6.00 in | 2 | 21.0 in |
| 24 in (2 ft 0 in) | 4 | 6.00 in | 3 | 31.5 in |
| 30 in (2 ft 6 in) | 4 | 7.50 in | 3 | 31.5 in |
| 36 in (3 ft 0 in) | 5 | 7.20 in | 4 | 42.0 in |
| 42 in (3 ft 6 in) | 6 | 7.00 in | 5 | 52.5 in |
| 48 in (4 ft 0 in) | 7 | 6.86 in | 6 | 63.0 in |
| 60 in (5 ft 0 in) | 8 | 7.50 in | 7 | 73.5 in |
| 72 in (6 ft 0 in) | 10 | 7.20 in | 9 | 94.5 in |
| 84 in (7 ft 0 in) | 11 | 7.64 in | 10 | 105.0 in |
| 96 in (8 ft 0 in) | 13 | 7.38 in | 12 | 126.0 in |
| 102 in (8 ft 6 in) | 14 | 7.29 in | 13 | 136.5 in |
| 108 in (9 ft 0 in) | 14 | 7.71 in | 13 | 136.5 in |
| 114 in (9 ft 6 in) | 15 | 7.60 in | 14 | 147.0 in |
| 120 in (10 ft 0 in) | 16 | 7.50 in | 15 | 157.5 in |
| 132 in (11 ft 0 in) | 18 | 7.33 in | 17 | 178.5 in |
| 144 in (12 ft 0 in) | 19 | 7.58 in | 18 | 189.0 in |
Frequently asked questions
How many steps do I need for 8 feet?
A 96-inch rise needs 13 risers of about 7.38 inches, with 12 treads. At 10.5-inch treads the stairs run 126 inches (10.5 ft) horizontally.
What is the code for stair riser height?
The IRC allows a maximum riser of 7¾ inches for homes, with risers in one flight varying by no more than ⅜ inch. Commercial buildings allow 7 inches.
How deep should stair treads be?
At least 10 inches under the IRC, measured nose to nose. 10½ to 11 inches feels more comfortable, especially going down.
How do I measure total rise for deck stairs?
Measure from the top of the deck surface straight down to the ground or landing where the stairs will end. If the ground slopes, measure at the point where the bottom step will land.
Last reviewed December 3, 2026. Spotted an error? Tell us.
Add this calculator to your website
Free for blogs, schools and businesses. Copy the code and paste it into your page (in WordPress, use a Custom HTML block). Please keep the credit link.