This stair calculator lays out a straight staircase from a single measurement: the total rise between finished floors. It finds how many steps you need, the exact riser height, the number of treads, the total horizontal run, the stringer length and the stair angle — then checks the result against the International Residential Code (IRC) and the classic comfort rule. Work in inches or centimeters.
How to use the stair calculator
- Measure the total rise from the top of the lower finished floor to the top of the upper finished floor. Include flooring thickness on both levels.
- Keep the maximum riser height at 7.75 in (IRC) or enter the limit from your local code — 7 in for most commercial stairs.
- Enter the tread depth you want, measured from the face of one riser to the face of the next (10 in minimum for homes).
- Read the step count, layout dimensions and the code check below the results.
Stair formulas
Risers = round up (Total rise ÷ Max riser height) Riser height = Total rise ÷ Risers Treads = Risers − 1 Total run = Treads × Tread depth Stringer ≈ √(Total rise² + Total run²) Angle = arctan(Riser height ÷ Tread depth)
There is always one more riser than tread on a straight stair because the upper floor acts as the last step. The stringer length is the diagonal line of the stair; buy stringer stock at least a foot longer to allow for the top and bottom cuts.
Example: stairs for a 105-inch floor-to-floor height
A typical 8-foot ceiling plus floor framing gives a total rise of about 105 in. With a 7.75 in maximum riser and 10 in treads:
- 105 ÷ 7.75 = 13.55 → round up to 14 risers
- Riser height = 105 ÷ 14 = 7.5 in
- Treads = 14 − 1 = 13; total run = 13 × 10 = 130 in (10 ft 10 in)
- Stringer ≈ √(105² + 130²) = 167.1 in (13 ft 11 in)
- Angle = arctan(7.5 ÷ 10) = 36.9°; 2 × 7.5 + 10 = 25 in → comfortable
Number of steps for common floor heights
Using a 7¾ in maximum riser and 10 in treads:
| Total rise | Risers | Riser height | Treads | Total run |
|---|---|---|---|---|
| 30 in (2 ft 6 in) | 4 | 7.5 in | 3 | 30 in (2 ft 6 in) |
| 84 in (7 ft 0 in) | 11 | 7.64 in | 10 | 100 in (8 ft 4 in) |
| 96 in (8 ft 0 in) | 13 | 7.38 in | 12 | 120 in (10 ft 0 in) |
| 105 in (8 ft 9 in) | 14 | 7.5 in | 13 | 130 in (10 ft 10 in) |
| 108 in (9 ft 0 in) | 14 | 7.71 in | 13 | 130 in (10 ft 10 in) |
| 114 in (9 ft 6 in) | 15 | 7.6 in | 14 | 140 in (11 ft 8 in) |
| 120 in (10 ft 0 in) | 16 | 7.5 in | 15 | 150 in (12 ft 6 in) |
Stair building code limits (US)
| Dimension | Residential (IRC R311.7) | Commercial (IBC 1011) |
|---|---|---|
| Riser height | 7¾ in maximum | 4–7 in |
| Tread depth | 10 in minimum | 11 in minimum |
| Variation between steps | ⅜ in maximum | ⅜ in maximum |
| Stair width | 36 in minimum | 44 in minimum (36 in for small occupancy) |
| Headroom | 6 ft 8 in minimum | 80 in minimum |
| Handrail height | 34–38 in | 34–38 in |
| Nosing | ¾–1¼ in where tread < 11 in | Required profile limits |
Codes are adopted and amended locally, so always confirm the numbers with your building department before cutting stringers.
Practical tips for laying out stairs
- Keep every step identical. Uneven risers are the main cause of trips; the code allows only ⅜ in difference between the tallest and shortest.
- Account for finish flooring. If the bottom step gets tile and the landing gets carpet, adjust the first and last riser cuts so the finished heights match.
- Check headroom along the whole run — the stairwell opening must be long enough for 6 ft 8 in clearance above every nosing.
- Short on space? Add a landing to turn the stair (L or U shape), or consider a spiral staircase.
- Deck stairs follow the same rules. Measure rise to the ground where the bottom step will actually land, since grade often slopes.
Related calculators
- Spiral Staircase Calculator
- Rafter Length Calculator
- Rise Over Run Slope Calculator
- Board Foot Calculator
- Roof Pitch Calculator
Frequently Asked Questions
How do I calculate the number of stairs I need?
Divide the total rise between finished floors by the maximum riser height and round up. For a 105 inch rise and a 7.75 inch maximum riser, 105 ÷ 7.75 = 13.55, so you need 14 risers of 7.5 inches each.
What is the standard rise and run for stairs?
In US homes the IRC allows a riser of up to 7¾ inches and requires a tread of at least 10 inches. A common comfortable combination is a 7 to 7.5 inch riser with a 10 to 11 inch tread.
How many steps are needed for an 8 foot ceiling?
An 8 foot ceiling usually means a floor-to-floor rise of about 105 to 108 inches once floor framing is included, which needs 14 risers and 13 treads with a 7¾ inch maximum riser.
Why is there one less tread than risers?
On a straight staircase the upper floor serves as the final step, so the stair needs one fewer tread than risers.
What is the best angle for stairs?
Between 30 and 37 degrees is comfortable for indoor stairs. A 7.5 inch riser with a 10 inch tread gives about 37 degrees; steeper than about 42 degrees feels like a ladder.