Stair Calculator

Quick answer

The stair calculator works out the number of risers and treads, exact riser height, total run, stringer length, stair angle and number of stringers from the floor-to-floor rise, and checks the comfort rule.

Risers
14
Riser height
7.714
Riser height (fraction)
7 11/16 in
Treads
13
Total run
130
Stringer length
169.01
Stair angle
39.7
Comfort check 2R + T
25.43
Stringers
4

Comfortable, code-compliant stairs balance riser height and tread depth. The U.S. International Residential Code allows risers up to 7¾ in and treads of at least 10 in, with no more than ⅜ in variation between steps. A classic comfort rule says twice the riser plus the tread should be about 24–25 in (600–640 mm).

How to use the Stair Calculator

  1. Total rise (floor to floor)
  2. Maximum riser height
  3. Tread depth (run)
  4. Stair width
  5. Maximum stringer spacing

Results update as you type, and every field accepts the units shown in its menu.

How it works

Enter the total rise from finished floor to finished floor, the maximum riser height, the tread depth (run), the stair width and stringer spacing. The calculator rounds up the risers, recalculates the exact riser height and gives the run, stringer length, angle and stringers.

Code limits

Code Max riser Min tread
IRC (US residential) 7¾ in 10 in
IBC (US commercial) 7 in 11 in
UK Part K (private stair) 220 mm 220 mm going
NBC Canada (dwellings) 200 mm 255 mm run

Inputs explained

Field What to enter
Total rise (floor to floor) Units: in, cm, mm, ft, m
Maximum riser height Units: in, cm, mm, ft, m
Tread depth (run) Units: in, cm, mm, ft, m
Stair width Units: in, cm, mm, ft, m
Maximum stringer spacing Units: in, cm, mm, ft, m

What each result means

  • Risers = ceil([Total rise (floor to floor)]÷[Maximum riser height] – 0.000001)
  • Riser height = [Total rise (floor to floor)]÷[Risers]
  • Riser height (fraction) = [Riser height]
  • Treads = [Risers] – 1
  • Total run = [Treads]×[Tread depth (run)]
  • Stringer length = sqrt([Total rise (floor to floor)]^2 + [Total run]^2)
  • Stair angle = deg(atan([Total rise (floor to floor)]÷[Total run]))
  • Comfort check 2R + T = 2×[Riser height] + [Tread depth (run)]
  • Stringers = ceil([Stair width]÷[Maximum stringer spacing] – 0.000001) + 1

Formula

Risers = ceil(total rise ÷ maximum riser); riser height = rise ÷ risers Treads = risers − 1; total run = treads × tread depth Stringer = √(rise² + run²); angle = atan(rise ÷ run); comfort: 2R + T ≈ 24–25 in

Worked example

Inputs: Total rise (floor to floor): 108 in; Maximum riser height: 7.75 in; Tread depth (run): 10 in; Stair width: 36 in; Maximum stringer spacing: 16 in.
Results: Risers = 14; Riser height = 7.714 in; Riser height (fraction) = 7 11/16; Treads = 13; Total run = 130 in; Stringer length = 169.01 in; Stair angle = 39.7 °; Comfort check 2R + T = 25.43 in; Stringers = 4.

Key terms

Riser
The vertical face of a step.
Tread
The horizontal part you step on.
Stringer
The inclined board that supports the treads and risers.

Frequently asked questions

How many steps for a 9 ft rise?

108 in ÷ 7¾ in = 13.9, so 14 risers of 7.71 in and 13 treads.

What is the code for stair risers and treads?

IRC: risers ≤ 7¾ in, treads ≥ 10 in, headroom ≥ 6 ft 8 in, width ≥ 36 in.

What is the ideal stair angle?

30–37°; above about 42° stairs feel like a ladder.

Sources

  1. International Code Council: IRC R311.7 Stairways

Guides on this topic

Cite this calculator

Speedy Calculator. (2026). Stair Calculator. Speedy Calculator. https://speedycalculator.com/calculators/construction/stairs/