Stair Calculation Formulas
Number of Steps = Round(Total Rise ÷ Target Riser Height)
Actual Riser Height = Total Rise ÷ Number of Steps
Total Run = (Number of Steps − 1) × Tread Depth
Why the Actual Riser Differs From Your Target
Since the number of steps must be a whole number, this calculator rounds to the nearest whole step count, then recalculates the exact riser height needed to evenly divide your total rise — this is why the "actual" riser height is often slightly different from your initial target.
Why Run Uses (Steps − 1)
The top step is typically the floor/landing itself, so the horizontal run only needs treads for all steps except the final one — hence one fewer tread than the total step count.
Building Code Considerations
Most US residential building codes require riser heights between about 4 and 7.75 inches, with limited variance (often under 3/8") between the tallest and shortest riser in a single flight. Always verify your local building code requirements before finalizing stair dimensions.