How the stair calculator works
Enter the total rise from floor to floor, the riser height you would like and the tread depth. The calculator gives the number of steps, the exact riser height, the total run, the stringer length and the angle, and checks them against the US International Residential Code limits.
Formula
Risers = total rise ÷ preferred riser, rounded up. Actual riser = total rise ÷ risers. Treads = risers − 1. Total run = treads × tread depth. Stringer = √(rise² + run²). Angle = arctan(riser ÷ tread). 2021 IRC R311.7.5: riser at most 7 3/4 in (19.7 cm), tread at least 10 in (25.4 cm).
- 1
Count the risers
108 in ÷ 7.5 in = 14.4, so 15 risers of 108 ÷ 15 = 7.2 in each.
- 2
Count the treads and the run
15 risers need 14 treads; 14 × 10 in = 140 in, a run of 11 ft 8 in.
- 3
Size the stringer
√(108² + 140²) = 176.8 in, about 14 ft 8 3/4 in, so buy 16 ft stringer boards. The stair angle is 35.8°.
- 4
Check the code
7.2 in is under the 7.75 in limit and 10 in treads meet the 10 in minimum; 2 × 7.2 + 10 = 24.4 in is comfortable.
Worked example
The calculator opens with these values
- Units
- Feet and inches
- Total rise
- 108 in
- Preferred riser height
- 7.5 in
- Tread depth
- 10 in
Number of steps
15 risers
Risers and run for common floor heights
Each row comes from the calculator's own maths. The short rises suit deck and porch steps; 96 to 120 in covers most floor-to-floor heights in houses with 8 to 10 ft ceilings, once the floor framing is added.
The run is the floor space the stair takes from the first riser to the top. Leave room for a landing at the bottom.
| Total rise | Risers | Riser height | Treads | Total run |
|---|---|---|---|---|
| 18 in | 3 | 6 in | 2 | 20 in |
| 24 in | 4 | 6 in | 3 | 30 in |
| 30 in | 4 | 7.5 in | 3 | 30 in |
| 36 in | 5 | 7.2 in | 4 | 40 in |
| 48 in | 7 | 6.86 in | 6 | 60 in |
| 96 in | 13 | 7.38 in | 12 | 120 in |
| 102 in | 14 | 7.29 in | 13 | 130 in |
| 108 in | 15 | 7.2 in | 14 | 140 in |
| 114 in | 16 | 7.13 in | 15 | 150 in |
| 120 in | 16 | 7.5 in | 15 | 150 in |
Other stair rules in the 2021 IRC
Riser and tread limits are only part of the code. These rules of the 2021 International Residential Code also decide whether a stair fits the space. Local codes can differ, so confirm with your building department.
- Nosing: treads less than 11 in deep need a nosing of 3/4 to 1 1/4 in (R311.7.5.3).
- Handrail height: 34 to 38 in, measured straight up from the nosings (R311.7.8.1).
- Landings: one at the top and bottom of each stair, at least as wide as the stair and 36 in deep in the direction of travel (R311.7.6).
- Flight height: no more than 151 in of rise between floors or landings (R311.7.3).
- Guards: open sides more than 30 in above the floor below need a guard (R312.1.1).
Laying out and cutting stringers
A small error on the first stringer repeats on every step, so check it before you cut the rest.
- Measure the total rise between finished floors, adding flooring that is not installed yet.
- Cut the bottom of the stringer shorter by one tread thickness, so the first step is not taller than the others.
- Clamp stair gauges to a framing square at the riser and tread marks, so every step is marked the same.
- Cut one stringer, test it in place, then trace it onto the other boards.
- Use 2 × 12 lumber for cut stringers: a narrower board leaves too little solid wood below the notches.
Common questions
What are the US code limits for stair risers and treads?
The 2021 International Residential Code (R311.7.5) allows risers up to 7 3/4 in and requires treads of at least 10 in, with no more than 3/8 in of difference between risers in a flight. Many states and towns adopt the IRC with changes, so check with your local building department.
Why is there one tread fewer than risers?
The floor at the top acts as the last step. A stair with 15 risers has 14 treads, so the run is 14 tread depths, not 15.
What is the most comfortable stair?
A common rule is that two risers plus one tread should add up to 24 to 25 in (61 to 63.5 cm), for example 7 in risers with 11 in treads. Steps that follow it match a normal walking stride.
How long should the stringer board be?
At least the stringer length shown, which runs from the floor to the top landing along the slope. Buy the next standard length up, since the cut at each end needs some extra board.
Related calculators
Deck Calculator
Deck boards by board length, joists and screws for a rectangular deck
Pythagorean Theorem
Calculate sides of a right triangle using Pythagorean theorem
Lumber Calculator
Calculate board feet and lumber requirements
Concrete Calculator
Calculate concrete volume needed for projects