Stair Calculator
Plan stair risers, treads, total run, and stringer length. IRC code compliance check + side-view diagram.
Construction
Stair Calculator
Generated on April 25, 2026
Floor to floor
Max code: 7.75 in
Min code: 10 in
Optional, typical 0-1.25 in
Side view (drawn to scale)
IRC code check
Step-by-step calculation
Formula
# risers = round(total rise / preferred riser). Actual riser = total rise / # risers. # treads = # risers − 1. Total run = # treads × tread depth. Stringer = √(rise² + run²).
- 1Total rise: 108 in (floor to floor).
- 2# risers = round(108 / 7) = 15.
- 3Actual riser height = 108 / 15 = 7.200 in.
- 4# treads = 15 − 1 = 14 (the top step is the floor).
- 5Total run = 14 × 11 = 154.00 in.
- 6Stringer length = √(108² + 154.00²) = 188.10 in.
- 7Stair angle = arctan(108 / 154.00) = 35.04°.
- 8Code: max riser 7.75 in, min tread 10 in. Comfort rule: 2R + T should be 24-25 in.
?What is the Stair Calculator?
The Stair Calculator computes the number of risers, riser height, total run, stair angle, and stringer length from a known total rise (floor-to-floor measurement) and your preferred riser height. It then checks compliance against the International Residential Code (IRC) limits — max riser 7.75 inches, min tread 10 inches, plus the comfort rule '2R + T should equal 24-25 inches'. Includes a drawn-to-scale side view of the staircase. Used by carpenters, DIYers, and architects to plan internal stairs, deck stairs, and porch stairs that feel comfortable and meet code.
The Formula
The number of treads is always one less than risers because the topmost riser ends at the upper floor (the floor itself counts as the final 'tread'). Stringer length is the diagonal cut of the support board — calculated by the Pythagorean theorem from total rise and total run. The 2R + T rule of thumb (sum should be 24-25 inches) was derived from studies of comfortable stride length: humans naturally take a step that combines rise and tread depth into this approximate distance, so violating the rule produces stairs that feel awkward.
Practical Examples
Floor-to-floor 9 ft (108 in) with 7-inch preferred riser: 16 risers × 6.75 in actual + 15 treads × 11 in = 165 in run, 35.6° angle.
Deck stair 36 in down to grade with 7-in preferred: 5 risers, 4 treads — short porch staircase.
Code minimum: 7.75 in max riser, 10 in min tread (IRC 2021). Some local codes allow up to 8.25 in for retrofits.
Service stairs (basements, attics) often go up to 8 in riser — uncomfortable but sometimes necessary in tight spaces.
Comfortable stairs: 7 in riser + 11 in tread = 25 in (2R+T) — feels natural going up and down.
Frequently Asked Questions
Popular Conversions
Jump to a ready-made conversion — useful for quick reference and sharing: