Stair Calculator
Number of steps, riser height, tread depth, stringer length and angle from your total rise.
How this is calculated
Risers = round(total rise ÷ preferred riser). Actual riser = total rise ÷ risers. Treads = risers − 1. Total run = treads × tread depth. Stringer = √(rise² + run²). Comfort rule: 2 × riser + tread ≈ 24–25 in (62–64 cm).
Enter the total vertical rise (floor to floor or deck to ground), your preferred riser height and tread depth. The calculator picks the best step count, checks it against common code limits and comfort rules, and gives stringer length, angle, lumber and cost.
Results are estimates for planning purposes only. Real-world quantities depend on site conditions, materials and workmanship. Always verify measurements, follow local building codes and confirm quantities with your supplier or a qualified professional before ordering or building.
About the Stair Calculator
Stairs feel wrong when the math is off by even half an inch — uneven risers are a trip hazard and a code violation. This calculator takes your total rise (floor to floor, or ground to deck surface) and produces a full cut list: riser count, exact riser height, tread depth, total run and stringer length. It targets the comfortable 7-inch riser and 11-inch tread that building codes are built around.
How to use
- Measure the total rise: vertical distance from the finished lower floor to the finished upper surface.
- Enter that rise in inches — for example, 105 inches for a deck 8 feet 9 inches high.
- Enter a target riser height if you have one; otherwise the calculator aims for about 7 inches.
- Choose tread depth: 11 inches is the comfortable standard, 10 inches the code minimum.
- Use the cut list: riser count, actual riser height, tread count, total run and stringer board length.
Understanding your results
Riser count is the number of steps; actual riser height divides the total rise evenly so every step is identical — the critical safety number. Treads equal risers minus one. Total run is how far the stairs extend out; stringer length is the diagonal board measurement for cutting.
How the calculation works
Riser count is total rise divided by the target riser height (about 7 inches), rounded up. Actual riser height is total rise divided by that count, and must stay at or under 7.75 inches per the International Residential Code. Total run is treads times tread depth. Stringer length is the hypotenuse: the square root of rise squared plus run squared.
Stair Calculator FAQs
What is the maximum stair riser height allowed by code?
How do I calculate the number of steps for my stairs?
How long will my staircase be (total run)?
How much headroom do stairs need?
How many stringers does a staircase need?

Written by
Nabil Sharif
Founder of CalcDune — a free library of 137 online calculators for finance, health and everyday math. Every calculator shows the formula behind its result, so you can see exactly how your numbers are worked out.
More articles by Nabil →