Stair Calculator

Work out the number of steps, riser height, total run and stringer length for a staircase or deck stairs.

How to use the stair calculator

Measure the total rise: the vertical distance from the finished floor (or ground) at the bottom to the finished floor or deck surface at the top. Enter the maximum riser height you want to allow and the tread depth. The calculator finds the smallest number of equal steps that keeps every riser within your limit.

The stair formulas

Risers = Total rise ÷ Maximum riser height (rounded up)
Riser height = Total rise ÷ Risers
Treads = Risers − 1
Total run = Treads × Tread depth
Stringer length = √(Rise² + Run²)
Worked example: A total rise of 108 inches (9 ft) with a 7¾ inch maximum riser needs 14 risers, each 7.71 inches (just under 7¾). That gives 13 treads. At 10 inches per tread, the total run is 130 inches (10 ft 10 in), the stringer is about 169 inches (14.1 ft) long, and the stair angle is about 40°.

Why are there fewer treads than risers?

The top step is the upper floor or deck itself, so a stair always has one less tread than risers. This is the most common mistake when building stairs: count risers from the rise, then subtract one for the treads.

Common code limits

Rule (US residential, IRC)Typical limit
Maximum riser height7¾ in (19.7 cm)
Minimum tread depth10 in (25.4 cm)
Variation between risersNo more than ⅜ in
Minimum headroom6 ft 8 in (2.03 m)

Rules differ by country, state and building type, and commercial stairs are stricter. Confirm with your local building department before cutting stringers.

Comfortable stairs

A popular comfort rule says two risers plus one tread should equal about 24–25 inches. With 7½ inch risers, a 10 inch tread gives 25 inches, which feels natural for most people. Very steep stairs (over about 40°) feel like a ladder; shallow ones waste space.

Tips

  • Measure from finished surfaces. If flooring or decking will be added later, include its thickness, or the first or last step will be a different height.
  • Buy longer stringer boards than the calculated length to allow for the cuts at the top and bottom.

Frequently asked questions

How many steps do I need for a 9 ft rise?

A 108 inch rise with a 7¾ inch maximum riser needs 14 risers of about 7.71 inches and 13 treads.

Why do stairs have one less tread than risers?

The top floor or deck acts as the final step, so you need one fewer tread than risers.

What is the maximum riser height?

Under the US International Residential Code the usual maximum is 7¾ inches. Other countries and building types have their own limits.

How long should a stair stringer be?

Use Pythagoras: the square root of the total rise squared plus the total run squared. Buy boards a little longer for cuts.

Last reviewed December 3, 2026. Results are estimates. Check product labels and local codes before buying.