A stair calculator works out how many steps a staircase needs, how tall each riser is, how far the stairs run and how long the stringers must be. Enter the total rise from one floor to the next and the tread depth you want, and the calculator divides the rise into equal risers that stay within the International Residential Code (IRC) limit. It then checks the riser height, tread depth and flight height against the 2021 IRC. US inches are the default, and you can switch to centimeters.
How the stair calculator works
Every riser in a flight should be the same height, so the calculator starts from the total rise:
- Number of risers = total rise ÷ the tallest riser allowed, rounded up to a whole number.
- Riser height = total rise ÷ number of risers.
- Number of treads = number of risers − 1, because the upper floor is the last step.
- Total run = number of treads × tread depth.
- Stringer length = √(rise² + run²), the slope length from the bottom nosing line to the top.
- Angle = the angle whose tangent is rise ÷ run.
Rounding the riser count up keeps each riser at or below the limit. If you want shorter, easier steps, enter a smaller tallest riser, such as 7 inches, and the calculator adds risers to suit.
IRC stair rules the calculator checks
The 2021 IRC, which many US states and towns adopt for one- and two-family homes, sets these limits in section R311.7:
- Riser height: not more than 7¾ inches (196 mm), measured between the leading edges of the treads. The tallest riser in a flight can't exceed the shortest by more than ⅜ inch.
- Tread depth: at least 10 inches (254 mm), measured from nosing to nosing. The deepest tread can't exceed the shallowest by more than ⅜ inch.
- Height of one flight: not more than 12 feet 7 inches (3835 mm) between floors or landings.
- Headroom: at least 6 feet 8 inches (2032 mm), measured up from the sloped line along the nosings.
- Width: at least 36 inches (914 mm) of clear width above the handrail height.
- Nosing: a projection of ¾ to 1¼ inches where the tread is less than 11 inches deep.
Codes are adopted and sometimes changed by each state or city, so these are a starting point, not the final word. Your building department has the version that applies to you.
Worked example: an 8 ft 9 in floor height
Say the finished floors are 105 inches apart and you want 10 inch treads.
- 105 ÷ 7.75 = 13.55, rounded up to 14 risers.
- Riser height: 105 ÷ 14 = 7.5 inches (7½ in).
- Treads: 14 − 1 = 13.
- Total run: 13 × 10 = 130 inches, or 10 ft 10 in.
- Stringer: √(105² + 130²) = 167.1 inches, about 13 ft 11⅛ in.
- Angle: about 38.9°.
All three checks pass: the riser is under 7¾ inches, the tread is 10 inches, and the 105 inch flight is under 12 ft 7 in. With 10½ inch treads and a 108 inch rise you'd get 14 risers of about 7 11/16 in and a run of 11 ft 4½ in.
Staircase design calculator tips
Used as a staircase design calculator, the tool helps you test layouts before you build. A deeper tread gives a gentler stair but a longer run, which needs more floor space. A lower riser height adds steps and also lengthens the run. If the run is too long for the room, consider a landing and a turn, which splits the stair into two flights.
Enter a nosing to see the depth of the actual tread boards. With 10 inch treads and a 1 inch nosing, each board is 11 inches deep, while the stair's run still uses the 10 inch figure.
Measuring the total rise
Measure from the top of the finished lower floor to the top of the finished upper floor, including flooring that isn't down yet. If the lower floor will get thicker tile or the upper floor new hardwood, adjust the rise, or the first or last step will end up a different height from the rest.
Stringers and layout
A stringer is the sloped board that carries the treads and risers. Its length along the slope, from the calculator, tells you how long a board you need before you add extra for the cuts at the top and bottom. When you mark a stringer with a framing square, set the riser height on one leg and the tread depth on the other, and step it along the board once for each tread.
The bottom riser is often cut shorter by the thickness of a tread board, so that once the treads are fixed every step comes out the same height. Check the first and last steps carefully after the flooring goes down, because that's where uneven risers usually show up.
Stair angle and comfort
The stair angle gives a quick sense of how steep the stairs feel. With the IRC's 7¾ inch maximum riser and 10 inch minimum tread, a stair is at its steepest, about 37.8°. Deeper treads and shorter risers lower the angle and make the stairs easier to climb, especially for children and older people, but they take more floor space.
Common mistakes
- Counting treads as risers. A straight stair has one more riser than treads.
- Measuring to the subfloor. Use finished floor heights.
- Ignoring headroom. Check the ceiling or floor opening above the stairs, not just the steps.
- Uneven steps. Risers and treads must each stay within ⅜ inch of one another.
What next
Use this often? Add Stair to your Home screen.
Frequently asked questions
How does a stair calculator work out the number of steps?
It divides the total rise by the tallest riser allowed, 7¾ inches under the 2021 IRC, and rounds up. The rise divided by that number of risers gives the riser height.
What is the maximum riser height for stairs?
The 2021 IRC allows risers up to 7¾ inches (196 mm) in homes. Some states and cities change this, so check your local code.
How deep should stair treads be?
The 2021 IRC requires treads at least 10 inches (254 mm) deep, measured nosing to nosing.
Can I use it as a staircase design calculator?
Yes. Try different tread depths and riser heights to see the number of steps, total run, stringer length and angle, and whether each layout meets the IRC limits.
Why is there one less tread than risers?
The upper floor serves as the top step, so a straight stair has one fewer tread than risers.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.