Stair Calculator
Enter the floor-to-floor height and your target riser and tread sizes.
How to use the Stair Calculator
- Enter Total rise (floor to floor) and choose its unit.
- Enter Target riser height and choose its unit (IRC maximum is 7¾ in (196 mm)).
- Enter Tread depth and choose its unit (IRC minimum is 10 in (254 mm), excluding nosing).
- Add any optional details you have; leave the rest blank.
- Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
- Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.
How stair layout works
Every riser on a staircase must be the same height. Even a small difference trips people, which is why codes limit the variation to about 3/8 in. You start with the total rise, measured from the finished lower floor to the finished upper floor. Divide it by the riser height you would like and round up to a whole number of risers. Then divide the total rise by that number to get the exact riser height.
risers n = ⌈total rise ÷ target riser⌉ · riser = total rise ÷ n · treads = n − 1
A staircase has one tread fewer than it has risers, because the upper floor is the last step. The total run is the number of treads times the tread depth. If your opening has a fixed length, enter the total run and the calculator works out the tread depth instead. The stringer, the sloping board that carries the treads, is the hypotenuse of the rise and run triangle.
stringer = √(rise² + run²) · angle = arctan(rise ÷ run)
Worked example
A basement stair has a total rise of 108 in (9 ft). With a 7.5 in target, 108 ÷ 7.5 = 14.4, which rounds up to 15 risers of 7.2 in each. There are 14 treads; at 10 in each the run is 140 in. The stringer is √(108² + 140²) = 176.8 in (14.7 ft), and the stair angle is 37.6°. The comfort check gives 2 × 7.2 + 10 = 24.4 in, inside the 24–25 in sweet spot.
Code limits and comfort
| Rule | US residential (IRC) |
|---|---|
| Maximum riser height | 7¾ in (196 mm) |
| Minimum tread depth | 10 in (254 mm) plus nosing, if risers are solid |
| Minimum headroom | 6 ft 8 in (2,032 mm) |
| Minimum width | 36 in (914 mm) |
The comfort rule 2R + T ≈ 24–25 in (about 610–635 mm) matches the length of a normal stride. Stairs between about 30° and 37° feel natural. Steeper stairs feel like a ladder, and shallower ones take up a lot of floor space. Commercial buildings and other countries use different limits (the UK, for example, has its own maximum pitch and riser rules), so check your local code before you cut.
Practical tips
- Measure the rise with the finished flooring in place, or add its thickness to your measurement.
- Buy stringer boards at least a foot longer than the calculated length, to allow for the plumb and level cuts at each end.
- Check headroom along the whole run, not just at the top.
Frequently asked questions
How many steps do I need for a 9 foot rise?
A 9 ft (108 in) rise needs 15 risers of 7.2 in with a 7.5 in target, or 14 risers of 7.71 in if you accept the maximum height. That means 14 or 13 treads respectively.
What is the maximum riser height allowed by code?
The International Residential Code allows a maximum of 7¾ in (196 mm) for homes. Commercial codes typically allow 7 in. Local amendments can be stricter.
How do I calculate stair stringer length?
Use Pythagoras: stringer = √(total rise² + total run²). For a 108 in rise and 140 in run that is 176.8 in. Buy a longer board to allow for the end cuts.
What is the 2R + T rule for stairs?
Twice the riser height plus the tread depth should be about 24–25 in (610–635 mm). That matches an average stride, so stairs within this range feel comfortable to climb.