About the Stair Calculator
A staircase has to divide a fixed vertical rise into a whole number of equal steps - get the riser height wrong and the stairs feel awkward or fall outside code, so the math has to work backward from the total rise.
How It Works
The calculator divides the total rise by your target riser height to find the nearest whole number of steps, then recalculates the exact riser height that evenly splits the rise across that many steps, and uses the Pythagorean theorem to find the stringer length.
Formula & Methodology
Since the number of steps must be a whole number, the calculator first estimates how many steps are needed, then works backward to find the exact riser height that divides the total rise evenly across that many steps - this is almost always very close to, but not exactly, your target riser height. The stringer (the diagonal board the steps attach to) forms the hypotenuse of a right triangle with the total rise and total run as the two legs.
Examples
A standard interior staircase
A 108-inch total rise (9 feet, typical floor-to-floor height) at a 7.5-inch target riser needs 14 steps, with an actual riser of 7.71 inches and a stringer about 14.1 feet long.
A shorter rise
A 96-inch rise at the same 7.5-inch target needs 13 steps instead of 14, since 96 ÷ 7.5 rounds to 13.
Advantages
- Calculates the exact riser height, not just an estimate close to your target
- Includes stringer length via the Pythagorean theorem, not just step count
- Flags when the resulting riser height might exceed common code maximums
Common Mistakes
- Using the target riser height as-is instead of recalculating the exact even split
- Forgetting that total run uses one fewer tread than the step count
- Not adding extra length to the calculated stringer length for actual board framing and support
Edge Cases to Watch For
- The International Residential Code commonly caps riser height at 7.75 inches and requires a minimum 10-inch tread depth for residential stairs, though exact requirements vary by local jurisdiction.
- Total run uses (steps − 1) × tread depth rather than steps × tread depth, since the top step's "run" is the upper floor itself, not an additional tread.
- Stringer length as calculated is the theoretical minimum along the diagonal - actual stringer boards need extra length at both ends for proper support and fastening.
Common Use Cases
- Planning a new interior or exterior staircase
- Checking whether a planned riser height falls within common code limits
- Estimating stringer board length before cutting