Stair Calculator
Standard stairs use a 7–7¾″ rise and a 10–11″ run (IRC limits: 7¾″ maximum riser, 10″ minimum tread). Enter your total rise and this stair calculator works out the number of steps, exact riser height, total run and stringer length — and checks the result against those code limits.
Quick answer: a 24″ rise needs 4 steps, 36″ needs 5, 40″ needs 6, 48″ needs 7, and a standard 8 ft floor-to-floor rise needs 14. See thesteps table for other heights.
Vertical height, finished floor to finished floor/ground
7″ is the comfort standard; 7¾″ is the code max
Code minimum 10″; 10½–11″ is comfortable
—
You might also need:Board Foot Calculator·Rafter Calculator
How stair math works
actual riser = total rise ÷ steps
total run = (steps − 1) × tread depth (top landing counts as the last "tread")
stringer = √(total rise² + total run²)
The critical rule: every riser must end up identical, so you divide the total rise evenly rather than stacking fixed 7-inch steps. Note the run uses one fewer tread than there are risers when the stair lands flush at the top — deck stairs that finish at grade level with a final step work the same way.
How many stairs do I need? Steps for common total rises
Based on a 7-inch target riser (kept under the 7¾-inch code limit) and 10½-inch treads, with the top landing counting as the last tread.
| Total rise | Risers (steps) | Riser height | Total run | Stringer length |
|---|---|---|---|---|
| 18″ | 3 | 6″ | 21″ | 27.7″ |
| 24″ | 4 | 6″ | 31.5″ | 39.6″ |
| 30″ | 4 | 7.5″ | 31.5″ | 43.5″ |
| 36″ | 5 | 7.2″ | 42″ | 55.3″ |
| 40″ | 6 | 6.67″ | 52.5″ | 66″ |
| 48″ | 7 | 6.86″ | 63″ | 79.2″ |
| 54″ | 8 | 6.75″ | 73.5″ | 91.2″ |
| 60″ | 9 | 6.67″ | 84″ | 103.2″ |
| 72″ | 10 | 7.2″ | 94.5″ | 118.8″ |
| 96″ (8 ft) | 14 | 6.86″ | 136.5″ | 166.9″ |
| 108″ (9 ft) | 15 | 7.2″ | 147″ | 182.4″ |
Got a fixed horizontal space, for example a 48-inch rise that has to fit in 60 inches of run? Divide the run by the number of treads (one fewer than the risers). Seven risers gives 6 treads of 10 inches, which meets the 10-inch minimum.
Residential code limits (IRC — always confirm locally)
| Element | Requirement |
|---|---|
| Max riser height | 7¾″ |
| Min tread depth | 10″ |
| Max riser variation | ⅜″ within a flight |
| Min stair width | 36″ |
| Min headroom | 6′8″ |
| Handrail height | 34–38″ above nosing |
Building tips
- Account for finishes first: measure total rise from finished floor to finished floor. A 1-inch tread on an unfinished frame changes every riser.
- The first cut is a template: lay out one stringer with a framing square and stair gauges, cut it, test-fit it, then trace the rest from it.
- Drop the bottom: trim the tread thickness off the bottom of the stringer so the first step isn't taller than the rest once treads go on.
- Ordering lumber? Total your board feet with the board foot calculator.
- Related tools: lay out the railing with the baluster spacing calculator (stairs allow a 4⅜″ gap), and plan the deck it serves with the deck calculator.
Frequently asked questions
What is the standard rise and run for stairs?+
Comfortable stairs have a rise of about 7 inches and a run (tread depth) of 10–11 inches. The IRC residential code caps riser height at 7¾ inches and requires treads at least 10 inches deep. A classic comfort check: rise + run should total 17–18 inches.
How do I calculate the number of steps?+
Divide the total rise (floor-to-floor height) by your target riser height, round to the nearest whole number, then divide again to get the exact riser height. Example: 45 inches ÷ 7 = 6.4, round to 6 steps → 45 ÷ 6 = 7.5 inch risers.
How many steps do I need for a 40 inch rise?+
Six risers. 40 ÷ 7 = 5.7, which rounds to 6, giving risers of 6⅔ inches. With 10½-inch treads that is 5 treads and 52½ inches of total run. Five risers would make each one 8 inches, which is over the 7¾-inch code limit.
How many stair steps for a 48 inch rise and 60 inch run?+
Seven risers of 6.86 inches. That gives 6 treads, and 60 inches ÷ 6 = 10-inch treads, which just meets the 10-inch code minimum. If you can stretch the run to 63 inches, 10½-inch treads are more comfortable.
How long a board do I need for stair stringers?+
Stringer length is the diagonal: √(total rise² + total run²), plus about a foot of extra for the top connection and cutting. A stair with 45 inches of rise and 60 inches of run needs 75 inches diagonally — buy a 2×12 at least 8 feet long.
Can all the risers be different heights?+
No — building codes allow at most ⅜ inch variation between the tallest and shortest riser in a flight. Uneven risers are the #1 cause of stair trips. This is why you divide the total rise evenly rather than building each step at a fixed height.
What size lumber do I use for stringers?+
Use 2×12s — after cutting the notches, at least 5 inches of solid wood ("throat") must remain. Space stringers 16 inches apart for 2× lumber treads (max three stringers for a 36-inch-wide stair) and closer for composite treads.