CalcStack — free, instant, no signup. The interactive calculator loads automatically.
Code-legal risers and the exact stringer to cut.
Stairs fail inspection on two numbers: riser height (7.75" max under the IRC) and tread depth (10" min). This calculator divides your total rise into equal, code-legal risers, counts treads (one fewer than risers — the upper floor is the last landing), computes total run and stringer length, and checks the 2R+T comfort rule.
Deck builders and basement finishers use this to get equal, code-legal risers on the first layout — the 7.75" IRC limit and the treads-minus-one rule are where stair math goes wrong. The stringer length and 2R+T comfort check come free with the count.
⌈105 ÷ 7.75⌉ = 14 risers, which makes each riser exactly 7.5". That yields 13 treads, a 130-inch total run at 10" treads, and a 2R+T of 25" — comfortably in the ideal range.
Two for stairs under 36" wide cut from 2×12s; add a center stringer at 36" and wider, and composite treads often need stringers at 12" on center regardless of width. Check headroom (6'8" minimum) and handrail rules with your local code before cutting.