Skip to content
The Calculatorz
Floors & surfaces

Stair Calculator (Risers, Treads and Stringer Length)

Work out the number of steps, riser height, total run, stringer length and stair angle from the floor-to-floor height, and check them against common building code limits.

Quantities are planning estimates. Check local building codes, product data and your supplier's guidance before ordering or building.

Rise and step size

Measurement units
Staircase

How to use this calculator

Measure the total rise from the finished floor below to the finished floor above. Enter the tread depth you want and the maximum riser height allowed by your code (19.6 cm, or 7¾ in, under the US International Residential Code). The calculator chooses the fewest equal risers that stay within the limit and works out the rest of the staircase.

Formula

Risers = ⌈total rise ÷ maximum riser⌉. Riser height = total rise ÷ risers. Treads = risers − 1. Total run = treads × tread depth. Stringer length ≈ √(rise² + run²). Stair angle = arctan(riser ÷ tread). Comfort check: 2 × riser + tread should be about 55–70 cm (22–27½ in).

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewHammad AhmadFounder ThaykaydarSaab - Online Construction Platform

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

What is the maximum riser height?

The US International Residential Code limits risers to 7¾ in (196 mm) with treads at least 10 in (254 mm). In England, Approved Document K allows up to 220 mm rise and at least 220 mm going for private stairs, with a maximum pitch of 42°.

Why must all risers be equal?

People expect each step to be the same; codes typically allow only about 3/8 in (9.5 mm) difference between the largest and smallest riser.

What is the 2R + T rule?

Twice the riser plus the tread should be about 550–700 mm (roughly 24–25 in is ideal). It reflects a comfortable stride.

Why are there fewer treads than risers?

The top floor itself acts as the last step, so a straight flight has one fewer tread than risers.

What is a stringer?

The sloping board that supports the treads and risers. Buy timber longer than the calculated length to allow for cuts at the top and bottom.

What headroom is needed?

Usually at least 6 ft 8 in (2.03 m) in the US and 2.0 m in the UK, measured vertically above the pitch line.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. International Code Council. (2024). International Residential Code. View source
  2. Department for Levelling Up, Housing and Communities. (2013). Approved Document K: Protection from falling, collision and impact (2013 edition incorporating 2013 amendments). GOV.UK. View source
  3. Chudley, R., & Greeno, R. (2020). Building construction handbook (12th ed.). Routledge. View source
  4. American Wood Council. (2015). Design for code acceptance 6: Prescriptive residential wood deck construction guide. View source