Staircase Calculator

Calculate the number of steps, riser height, tread depth, stringer length, and staircase angle for your project. Results follow IRC residential building code standards for safe, comfortable stairs.

in inches
in inches (min 10" per IRC code)
in inches (min 36" per IRC code)

How to Calculate Staircase Dimensions

Building a staircase requires precise measurements to ensure safety and comfort. Here is how each measurement is determined:

  1. Measure the total rise: This is the vertical distance from the finished floor at the bottom to the finished floor at the top. Measure in inches for accuracy.
  2. Calculate the number of risers: Divide the total rise by your target riser height (7 to 7.75 inches for code compliance). Round to the nearest whole number.
  3. Find the actual riser height: Divide the total rise by the number of risers to get the exact riser height for each step.
  4. Calculate total run: The number of treads (risers minus one) multiplied by the tread depth gives you the horizontal distance the staircase covers.
  5. Determine stringer length: Use the Pythagorean theorem: stringer = sqrt(total rise2 + total run2).

IRC Building Code Requirements

Material Estimates

Frequently Asked Questions

How do you calculate staircase dimensions?
Divide the total rise (floor-to-floor height) by a comfortable riser height (typically 7-7.75 inches) to get the number of steps. Then multiply the number of treads (steps minus one) by the tread depth (minimum 10 inches per IRC code) to get the total run. The stringer length is calculated using the Pythagorean theorem: square root of (total rise squared + total run squared).
What is the IRC building code for stairs?
The International Residential Code (IRC) requires a maximum riser height of 7.75 inches (196mm) and a minimum tread depth of 10 inches (254mm). The staircase must be at least 36 inches wide, and headroom must be at least 6 feet 8 inches. The riser height variation between steps cannot exceed 3/8 inch.
How many stairs do I need for 9 feet?
For a 9-foot (108-inch) total rise, you typically need 14 to 15 steps. With 15 risers, each riser would be 7.2 inches high, which is well within IRC code limits. With 14 risers, each would be 7.71 inches — still code compliant but near the maximum.
What is the ideal stair angle?
The ideal staircase angle is between 30 and 37 degrees. Stairs steeper than 42 degrees become uncomfortable and may not meet building codes. The 7/11 rule (7-inch rise, 11-inch run) produces a comfortable 32.5-degree angle that most people find easy to climb.