Stair Rise & Run Calculator with Code Check
Enter the total rise, and the floor length available if you know it, to see how many risers you need, how high each one is, how far the stair runs across the floor and whether it meets the code limits, before you mark the stringer.
Rule: 2021 IRC R311.7 · Tested against 33 worked examples, 3 printed in a published source · How this is worked out →
Common cases
Questions people ask
How many steps do I need for a 108 inch rise?
At least 14 risers. 108 divided by the 7 3/4 in maximum riser is 13.94, which rounds up to 14, and each riser is then 7.7143 in (≈ 7 11/16 in on a tape). That stair has 13 treads on the stringer, because the upper floor is the last step, and its total run is 130 in at a 10 in tread. With 15 risers each is 7.2 in and the total run is 140 in.
What is the maximum riser height and minimum tread depth for stairs in a house?
Under 2021 IRC Section R311.7.5 a riser may be no more than 7 3/4 in high and a tread no less than 10 in deep, measured from the front edge of one tread to the front edge of the next. A tread under 11 in deep also needs a nosing that projects 3/4 in to 1 1/4 in. Your state or city may have amended these figures.
Why is there one fewer tread than risers?
This tool lays out a stair whose top riser ends at the upper floor, so the upper floor itself is the last step and needs no tread on the stringer. Its edge then counts as the last nosing, so it should project past the top riser by the same amount as the treads: not at all if the treads have no nosing. If you build with a full tread flush with the upper floor at the top of the stringer, the number and height of the risers are the same but the stair is one tread run longer.
Do all the steps have to be the same height?
Nearly. Within one flight the tallest riser may be no more than 3/8 in taller than the shortest, and the deepest tread no more than 3/8 in deeper than the shallowest. Measure the total rise between finished floor surfaces, and do not step a rounded riser height up the stringer: for a 108 inch rise, 13 steps of 7 11/16 in leave the last riser at 8 1/16 in. Measure every mark from one point instead, as the mark-out table on this page does.
How tall can a stair be before it needs a landing?
Under 2021 IRC Section R311.7.3 a single flight may rise no more than 12 ft 7 in between floor levels or landings. This tool checks that limit but does not lay out landings.