Stair Calculator

Work out how many steps a staircase needs, the exact riser height, the total run, the stringer length and the angle, from the floor-to-floor height. The calculator checks the comfort rule 2 × riser + tread and common code limits, and tells you if the stair fits the space you have.

Units
Stair

From the finished floor below to the finished floor above.

The calculator uses the fewest steps that keep each riser at or below this. US code limit is 7¾ in; 15–18 cm is comfortable.

Measured without the nosing. At least 10 in (25 cm); 26–30 cm is comfortable.

Options

Leave empty to calculate automatically.

Result

Risers14
Riser height7.71 in
Stair angle39.7°
Result
Risers14
Treads13
Riser height7.71 in · 19.6 cm
Tread depth10 in · 25.4 cm
Total run130 in · 10.83 ft
Stringer length169 in · 14.08 ft
Stair angle39.7°
Step rule 2 × riser + tread25.43 in · 64.6 cm

✓ Comfortable proportions

Calculation settings

  • Units: US (ft, in)
  • Total rise (floor to floor): 108 in · Maximum riser height: 7.75 in · Tread depth (run per step): 10 in

How this was calculated

  1. Risersround up(108 ÷ 7.75) = 14
  2. Riser height108 ÷ 14 = 7.714 in
  3. Total run13 × 10 = 130 in
Show all 6 steps
  1. Stringer√(108² + 130²) = 169 in
  2. Anglearctan(108 ÷ 130) = 39.7°
  3. Step rule2 × 7.714 + 10 = 25.4 in

This calculator gives stair geometry only. Headroom, handrails, landings, stringer sizing and fixing must meet your local building code — check with your building department or a qualified builder.

The calculator checks the comfort rule 2 × riser + tread and common code limits, and tells you if the stair fits the space you have.

How to use the stair calculator

  1. Measure the total rise from finished floor to finished floor.
  2. Set the maximum riser height you want and the tread depth.
  3. Optionally enter the horizontal space available, or force a number of risers.
  4. Read the steps, riser height, run, stringer length and angle; check the warnings.

Comfortable stair dimensions

A comfortable stair keeps 2 × riser + tread between about 60 and 65 cm (24–25.5 in) — the length of a normal step. Riser heights of 15–18 cm (6–7 in) and treads of 26–30 cm (10–12 in) work well for homes.

RiserTread for 2R + T = 63 cmAngle
15 cm (5.9 in)33 cm (13 in)24°
16 cm (6.3 in)31 cm (12.2 in)27°
17 cm (6.7 in)29 cm (11.4 in)30°
18 cm (7.1 in)27 cm (10.6 in)34°
19 cm (7.5 in)25 cm (9.8 in)37°

Risers and treads

A straight stair always has one more riser than treads, because the top step is the upper floor. The calculator divides the total rise into equal risers — every riser must be the same height to avoid trips.

Building codes

In the US, the International Residential Code allows risers up to 7¾ in and requires treads of at least 10 in, plus headroom, handrail and landing rules. Other countries have their own limits. Treat the warnings here as guidance and check your local code.

Stair formulas

Number of risers
round up(total rise ÷ maximum riser)
Riser height
total rise ÷ number of risers
Treads
risers − 1
Total run
treads × tread depth
Stringer length
√(total rise² + total run²)
Angle
arctan(total rise ÷ total run)
Step rule
2 × riser + tread ≈ 60–65 cm

Worked example

  1. Floor to floor 108 in (9 ft), maximum riser 7¾ in: 108 ÷ 7.75 = 13.9 → 14 risers.
  2. Riser height: 108 ÷ 14 = 7.71 in; 13 treads.
  3. With 10 in treads: total run 130 in; stringer √(108² + 130²) = 169 in.
  4. Angle: arctan(108 ÷ 130) = 39.7°; step rule 2 × 7.71 + 10 = 25.4 in.

Assumptions

  • Straight flight without landings or winders.
  • All risers are equal.
  • Tread depth excludes the nosing.
  • Stringer length is the line of the stair; add for cuts and the floor connection.

Frequently asked questions

How many steps do I need for 9 feet?

With a maximum riser of 7¾ in, 14 risers of about 7.7 in and 13 treads.

What is the ideal riser height?

About 7 in (17–18 cm) for homes, with a tread of about 11 in (28 cm).

How do I calculate stringer length?

It is the hypotenuse of the total rise and total run: √(rise² + run²).

Why is there one less tread than risers?

The top riser leads onto the upper floor, which acts as the last tread.

What angle should stairs be?

Typically 30–37°. Steeper than about 42° feels like a ladder.

Does this calculator design the stair structure?

No. It gives geometry only; stringer size, fixing, headroom and handrails must follow local codes.