Home › Lumber
Stair Calculator
Formula verified · Updated Nov 2026
Results update as you type. Estimates only — confirm final quantities before ordering.
Enter the total rise — the floor-to-floor height — and this calculator works out a straight stair: how many steps, how high each riser is, the total run, the stringer length and the stair angle. With the default 7.75 in maximum riser and 10 in tread, the result meets the US residential code; always check your locally adopted code before building.
The formula
Actual riser = Total rise ÷ Steps
Treads = Steps − 1 (the top tread is the upper floor)
Total run = Treads × Tread depth
Stringer length = √(Total rise² + Total run²)
Stair angle = atan(Total rise ÷ Total run)
The defaults — 7.75 in maximum riser and 10 in tread — are the US residential code (IRC) limits. If you raise the maximum riser above 7.75 in or drop the tread below 10 in, the result no longer meets that code: only do it if your local code allows it, and check before you cut any stringers.
Worked example
Example: a total rise of 105 in, 10 in treads, 7.75 in maximum riser.
- Steps: 105 ÷ 7.75 = 13.55, rounded up = 14 steps
- Actual riser: 105 ÷ 14 = 7.50 in
- Treads: 14 − 1 = 13 treads
- Total run: 13 × 10 = 130 in (10 ft 10 in)
- Stringer: √(105² + 130²) = 167.11 in (13 ft 11.1 in)
- Angle: atan(105 ÷ 130) = 38.93°
Reference chart
| Total rise | Steps | Riser height | Total run |
|---|---|---|---|
| 96 in (8 ft) | 13 | 7.38 in | 120 in |
| 100 in | 13 | 7.69 in | 120 in |
| 105 in | 14 | 7.50 in | 130 in |
| 108 in (9 ft) | 14 | 7.71 in | 130 in |
| 120 in (10 ft) | 16 | 7.50 in | 150 in |
| 132 in (11 ft) | 18 | 7.33 in | 170 in |
Frequently asked questions
What do building codes require for stairs?
The US residential code (IRC 2021 §R311.7) limits risers to 7¾ in maximum and treads to 10 in minimum, with at least 6 ft 8 in of headroom. Codes are adopted locally and vary, so verify against your local code before building.
Why is the step count rounded up?
Risers on one stair must all be equal height — you cannot build 13.55 steps. Rounding up adds one step and drops each riser slightly, which keeps every step the same and the stair comfortable.
Why is there one fewer tread than riser?
The top step of a stair is the upper floor or landing itself, so a 14-riser stair has 13 treads plus the landing. Counting 14 treads would make the stair one tread too long.
What if my stair has a landing or a turn?
This calculator sizes one straight run. For a stair with a landing, split the total rise at the landing and calculate each run separately, then add the landing depth to the total run.
How many steps for a standard 8 ft ceiling?
An 8 ft floor-to-floor height is 96 in. At the 7.75 in maximum riser: 96 ÷ 7.75 = 12.39, rounded up to 13 steps, each 96 ÷ 13 = 7.38 in high, with 12 treads and a total run of 12 × 10 in = 120 in (10 ft) at the standard 10 in tread — the same figures in the table above.
Related calculators
- Slope Calculator — Slope as a percent, an angle in degrees, and a ratio.
- Roof Pitch Calculator — Pitch (x/12), angle, slope percent and rafter factor.
- Board Foot Calculator — Board feet and lumber cost from thickness, width, length and quantity.
How we verify this
International Residential Code (IRC) 2021 §R311.7 — risers max 7¾ in, treads min 10 in, headroom min 6 ft 8 in; stringer length by Pythagoras; codes are adopted locally — verify against your local code before building.