1. Home
  2. Roofing & Carpentry Calculators
  3. Stair Calculator

Stair Calculator

Plan a set of stairs from floor to floor. Get the number of steps, riser height, tread count, total run, stringer length and stair angle, with a check against common IRC limits.

How to Use the Stair Calculator

  1. Measure the total rise from finished floor to finished floor.
  2. Keep the maximum riser at 7.75 in (IRC) or enter a lower comfortable height.
  3. Enter the tread depth; 10 in is the IRC minimum, and 10–11 in feels comfortable.
  4. Read steps, riser height, run, stringer length and angle.

Stair Formulas

Risers = Total rise ÷ Maximum riser height, rounded upRiser height = Total rise ÷ Risers
Treads = Risers − 1 · Total run = Treads × Tread depthStringer ≈ √(Total rise² + Total run²)

Example: Stairs for a 9 ft Floor-to-Floor Height

Total rise: 108 in ÷ 7.75 = 13.9 → 14 risers of 7.71 in

Treads: 13 at 10 in = 130 in (10.83 ft) of run

Stringer: √(108² + 130²) = 169 in (14.08 ft) → buy 16 ft 2×12s

Angle: about 37.6°

Common IRC Stair Rules

ItemIRC residential limit
Maximum riser height7 3/4 in
Minimum tread depth10 in
Minimum headroom6 ft 8 in
Minimum stair width36 in
Riser variation in a flightNo more than 3/8 in
Handrail height34 – 38 in

These come from the International Residential Code; your state or city may adopt different numbers. Commercial stairs follow stricter rules.

Making Stairs Comfortable

  • A popular rule is 2 × riser + tread ≈ 24–25 in.
  • Lower risers with deeper treads feel easier, but need more floor space.
  • Keep every riser the same height; uneven steps are a trip hazard.
  • Remember the tread thickness when cutting the first stringer step.

Tips for Building Stairs

  • Measure total rise after flooring is in, or include finished floor thickness.
  • Use at least three stringers for a 36 in wide stair; wider stairs need more.
  • Price your lumber with the board foot calculator.
  • Building deck stairs? Pair this with the deck calculator.

Stair Calculator FAQs

How many steps do I need for 9 feet?

A 9 ft (108 in) rise needs 14 risers at about 7.71 inches each with the IRC 7¾ inch maximum, and 13 treads.

What is the code for stair riser height?

The International Residential Code limits risers to 7¾ inches and requires treads of at least 10 inches. Local codes can vary.

How do I calculate stair stringer length?

Find the total rise and total run, then use the Pythagorean theorem: stringer ≈ √(rise² + run²). Buy a board longer than this to allow for cuts.

How many treads are in a set of stairs?

Usually one fewer than the number of risers, because the top floor acts as the last step.