Calculateus

Stair Calculator

Calculate the number of steps, riser height, and stringer length for a staircase from its total rise.

Result

Number of Steps
14
Actual Riser Height
7.714 in (19.6 cm)
Total Run
130 in (330.2 cm)
Stringer Length
14.08 ft (4.29 m)

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.

steps = round(total rise ÷ target riser); actual riser = total rise ÷ steps; stringer length = √(rise² + run²)

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
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

Why does the calculator adjust my target riser height?

The number of steps must be a whole number, so the total rise is divided evenly across that many steps - the "actual" riser height shown is what each step will really measure once evenly split, which is usually very close to your target but rarely identical to it.

What riser height and tread depth are considered comfortable/code-compliant?

The International Residential Code commonly caps riser height at 7.75 inches and requires a minimum 10-inch tread depth for residential stairs - many builders target 7-7.5 inch risers with 10-11 inch treads for a comfortable climb, but always check your local code, which can vary.

Conclusion

Stair layout is one of the few home projects where the math genuinely has to work out to a whole number - you can't have a fractional step. Always verify riser height and tread depth against your local building code before cutting any stringers.