How to use the stair calculator
Measure the total rise: the vertical distance from the finished surface where the stairs start to the finished surface where they end. Measure straight down, not along the slope, and measure at the spot where the stairs will actually land, because floors and yards are rarely level.
Type that number the way your tape reads it. 108, 9', 107 5/8 and 8' 11-5/8" all work. The layout appears as you type, and everything else is optional: the calculator starts with a 7 1/2" target riser and a 10" tread depth, common starting values on construction calculators.
What each result means
- Risers. The number of steps up, counting the last step onto the upper floor. Every riser is the same height: the total rise divided by the number of risers.
- Treads. The boards you step on. With a standard mount there is one tread fewer than risers, because the upper floor is the top step.
- Total run. How far the stair reaches out from the upper floor, measured along the ground. Check that you have this much room before you buy lumber.
- Stringer length. The straight-line distance from the floor at the first riser to the edge of the upper floor. Use it to pick the board length; the calculator rounds up to the next length the lumber yard sells.
- Angle. The slope of the stair. Comfortable house stairs usually land between 30 and 37 degrees.
A worked example: 9 feet floor to floor
Say the total rise is 108". With a 7 1/2" target, the calculator divides 108 by 7.5, gets 14.4, and rounds up to 15 risers so no step is taller than you asked for. Each riser is 108 ÷ 15 = 7.2", which shows as 7 3/16".
Fifteen risers means 14 treads. At 10" each, the total run is 140", or 11' 8". The stringer length comes out to 14' 8 13/16", so you buy 16-foot boards.
Under Compare riser counts you can see the neighbors. Fourteen risers would be 7 11/16" each and save 10" of floor space; that still meets the model code, but it is close to the limit and feels steeper. Sixteen risers would be 6 3/4" each and need 10" more room. Tap any option to switch the whole layout to it.
What the code check looks at
The calculator checks your layout against the stair rules in Section R318.7 of the International Residential Code (IRC), the model code most U.S. cities and counties build their own code from. The numbers below are from the 2024 edition. Many areas still build under the 2021 or 2018 edition. The limits below are the same; only the section numbers changed.
| Rule | Limit | IRC section |
|---|---|---|
| Riser height | 7 3/4" maximum | R318.7.5.12021: R311.7.5.1 |
| Tread depth | 10" minimum | R318.7.5.22021: R311.7.5.2 |
| Difference between any two risers or treads | 3/8" maximum | R318.7.5.1, R318.7.5.22021: R311.7.5.1, R311.7.5.2 |
| Nosing, when treads are under 11" and risers are closed | 3/4" to 1 1/4" | R318.7.5.32021: R311.7.5.3 |
| Openings between treads more than 30" above the ground | Must stop a 4" ball | R318.7.5.12021: R311.7.5.1 |
| Stair width | 36" minimum | R318.7.12021: R311.7.1 |
| Headroom | 6' 8" minimum | R318.7.22021: R311.7.2 |
| Rise in one flight without a landing | 12' 7" (151") maximum | R318.7.32021: R311.7.3 |
| Handrail | Required with 4 or more risers, 34" to 38" high | R318.7.8, R320.22021: R311.7.8, R311.7.8.1 |
Your local code may be different. States and cities adopt the IRC with their own changes. Pennsylvania's statewide code, for example, allows risers up to 8 1/4", and some cities still use older editions. The building department that issues your permit has the final word, so call them before you cut.
Three more checks appear under Good practice. They are not part of the IRC; they come from the American Wood Council's deck guide (DCA 6) and from long-standing shop rules: leave at least 5" of solid wood under each notch, support cut stringers that run more than 6 feet, and aim for two risers plus one tread to add up to 24" to 25".
Questions people ask
My total rise doesn't divide evenly. What do I do?
Nothing. It almost never does. The calculator divides the rise into equal risers and shows the nearest sixteenth. Because rounding one step and repeating it would add up, use the layout marks: they give the height of every tread measured from the floor, so each mark is off by a sixteenth at most.
Standard or flush mount?
With a standard mount the stringer hangs one riser below the upper floor, and the floor itself is the top step. With a flush mount the top tread sits level with the upper floor, which adds one tread and makes the stair one tread longer. Standard is the usual choice for decks.
Why does the bottom riser cut look too short?
It is supposed to. The treads add their own thickness to every step except the first, so the bottom of the stringer is cut shorter by exactly one tread thickness. Once the treads are on, every step measures the same.
How many stringers do I need?
The calculator spaces cut stringers no more than 18" apart, center to center, with a minimum of three. A 36" stair gets three; a 48" stair gets four.
Can I use it in metric?
Yes. Open More options and switch Units to Metric. Type millimeters, or add cm or m.
How we calculate
No hidden math. These are the formulas, with every length kept at full precision until the moment it is shown.
- Risers = total rise ÷ target riser height, rounded up to a whole number.
- Riser height = total rise ÷ risers.
- Treads = risers − 1 (standard mount) or risers (flush mount).
- Total run = treads × tread depth.
- Stringer length = √(total rise² + total run²).
- Angle = arctangent of riser height ÷ tread depth.
- Bottom riser cut = riser height − tread thickness.
- Wood left under each notch = board width − (riser height × tread depth) ÷ √(riser height² + tread depth²).
Fractions are rounded to the nearest 1/16" (or 1/8" or 1/32" if you choose), and an exact tie rounds up. We check the calculator against cases worked out separately by hand before every change. Four of them:
| Total rise | Setup | Risers | Riser height | Total run | Stringer length |
|---|---|---|---|---|---|
| 56 3/4" | Defaults | 8 | 7.09375" (7 1/8") | 70" | 90.11" |
| 30" | Flush mount | 4 | 7.5" (7 1/2") | 40" | 50" |
| 108" | Defaults | 15 | 7.2" (7 3/16") | 140" | 176.82" |
| 93" | 7 3/4" target | 12 | 7.75" (7 3/4") | 110" | 144.05" |
Sources
- 2024 International Residential Code, International Code Council, Section R318.7 (Stairways) and R320 (Handrails).
- IRC Section R311.7.5: Stair Treads & Risers, City of Boise building handout.
- DCA 6: Prescriptive Residential Wood Deck Construction Guide, American Wood Council.