Calcamaze

Stair Calculator

Work out the number of steps, riser height, tread depth, total run and stringer length for stairs.

in
in

US residential code (IRC): 7¾ in. Check your local code.

in

IRC minimum: 10 in, measured without the nosing.

Result

Number of risers (steps)
14
Riser height
7.71 in
Number of treads
13
Total run
10 ft 10 in
Stringer length (approx.)
14 ft 1 in
Stair angle
37.6°
Comfort check (2 × riser + tread)
25.4 in
Within the comfortable 24–25½ in (61–65 cm) range.

Plan a straight staircase from the total rise between floors. The calculator finds the fewest equal steps that keep each riser under your maximum height, then works out the run, the stringer length and the stair angle.

Building codes set limits on riser height, tread depth, headroom and handrails. The defaults follow the US International Residential Code; always check the rules where you live.

Enter the total rise and the maximum riser height to get the number of risers and treads, the total run, the stringer length and the stair angle, with a comfort check.

How do you lay out a staircase?

A staircase is defined by its total rise (floor to floor), the riser height of each step and the tread depth. Divide the total rise by the maximum riser height you want and round up to get the number of risers; there is one fewer tread than risers because the top step is the upper floor.

The US International Residential Code limits risers to 7¾ in and requires treads of at least 10 in, with riser heights varying by no more than ⅜ in in a flight. A comfortable stair keeps 2 × riser + tread between about 24 and 25 in.

How to use the stair calculator

  1. Measure the total rise from finished floor to finished floor.
  2. Enter the maximum riser height allowed and the tread depth.
  3. Read the risers, treads, run, stringer length and comfort check.

Formula

Risers = ⌈Total rise ÷ Max riser⌉ · Riser height = Total rise ÷ Risers

There is one fewer tread than risers, because the top floor acts as the last step. Total run = Treads × Tread depth, and the stringer length is √(Rise² + Run²).

Worked examples

A 9 ft floor-to-floor rise

Units
Imperial (in)
Total rise (floor to floor)
108 in
Maximum riser height
7.75 in
Tread depth
10 in
Number of risers (steps)
14
Riser height
7.71 in
Number of treads
13

108 ÷ 7.75 = 13.9, so 14 risers of 108 ÷ 14 = 7.71 in, with 13 treads. At 10 in treads the total run is 130 in.

A metric stair, 2.7 m rise

Units
Metric (cm)
Total rise (floor to floor)
270 cm
Maximum riser height
18 cm
Tread depth
28 cm
Number of risers (steps)
15
Riser height
18 cm
Number of treads
14

270 ÷ 18 = 15 risers of exactly 18 cm, and 14 treads of 28 cm for a run of 3.92 m.

Stair rules (US IRC, residential)

ItemRequirement
Maximum riser height7¾ in (196 mm)
Minimum tread depth10 in (254 mm)
Riser variation within a flight≤ ⅜ in (9.5 mm)
Minimum headroom6 ft 8 in (2,032 mm)
Minimum width36 in (914 mm)
Handrail height34–38 in (864–965 mm)

Working out the number of steps

Divide the total rise by the maximum riser height and round up. A 108 in rise with a 7¾ in maximum needs 14 risers of about 7.7 in each. There is always one fewer tread than risers, because the top floor is the last step.

Common mistakes

  • Measuring the rise before the finished flooring is down — add its thickness at top and bottom.
  • Making the top or bottom step a different height to “make it fit”, a common cause of trips.
  • Forgetting headroom where the stair passes under a floor above.

Frequently asked questions

What is the standard stair rise and run?

US residential code allows risers up to 7¾ in and treads of at least 10 in. A rise of about 7 in with an 11 in tread is often considered most comfortable.

How do I measure total rise?

Measure vertically from the finished floor at the bottom to the finished floor at the top, allowing for any flooring still to be laid.

What does the comfort check mean?

Twice the riser plus the tread should be about 24 to 25 inches, a long-standing rule for comfortable stairs.

Sources

  1. 2021 International Residential Code (IRC), International Code Council
  2. 29 CFR 1910.25: Stairways (OSHA), Legal Information Institute, Cornell Law School

Last updated · Calculations checked by automated tests· Editorial policy