Stair calculator
Enter the height from floor to floor. The calculator divides it into equal steps, finds the tread from the rule 2 × riser + tread ≈ 25 in (63 cm), and checks the result against the code you choose.
How the calculator works
- Number of risers. It divides the floor-to-floor height by the riser you aim for (7 in or 17.5 cm when you leave it empty), rounds to a whole number, and adds a riser while the riser is taller than the rule allows.
- Riser height. The height divided by the number of risers, so that every step is the same.
- Tread depth. 2 × riser + tread = 630 mm (24.8 in), kept within the rule's smallest and largest tread. A fixed tread under More options replaces it.
- Treads and run. A straight flight has one tread less than it has risers, because the upper floor is the last step. The total run is the number of treads × the tread depth.
- Stairwell opening. The opening in the upper floor must start where the ceiling would come closer than the headroom to the line of the nosings: 6 ft 8 in (2.03 m) under the IRC, 2 m in England and Germany.
Worked example
A US house with 8 ft ceilings and a 12 in floor structure has 9 ft (108 in) from floor to floor.
| Step | Calculation | Result |
|---|---|---|
| Risers | 108 in ÷ 7 in = 15.4, rounded | 15 risers |
| Riser height | 108 in ÷ 15 | 7 3/16 in (18.3 cm) |
| Tread depth | 24.8 in − 2 × 7.2 in | 10 3/8 in (26.4 cm) |
| Total run | 14 treads × 10 3/8 in | 12 ft 1 5/8 in (3.70 m) |
| Stringer | √(145.6² + 108²) in | 15 ft 1 in (4.61 m) |
| Opening | Where the ceiling is closer than 6 ft 8 in to the nosing line | 11 ft 1 in (3.38 m) |
Both values pass the IRC: a riser of at most 7 3/4 in and a tread of at least 10 in. With 16 risers of 6 3/4 in, the treads grow to 11 5/16 in and the stair becomes about 2 ft (61 cm) longer, but gentler.
Stair rules by country
The calculator checks the rule you choose. Values are for a stair inside a house or an apartment.
| Rule | Riser | Tread | Other |
|---|---|---|---|
| United States, IRC 2021 | At most 7 3/4 in (19.7 cm) | At least 10 in (25.4 cm) | Width at least 36 in, headroom 6 ft 8 in |
| England, Approved Document K | 150 to 220 mm | 220 to 300 mm | 2R + G 550 to 700 mm, pitch at most 42°, headroom 2 m |
| Germany, DIN 18065 | 14 to 20 cm | 23 to 37 cm | 2R + G 59 to 65 cm, width at least 80 cm, headroom 2 m |
| Spain, CTE | At most 20 cm | At least 22 cm | Width at least 80 cm, headroom 2.10 m |
| Italy, DM 236/1989 | No limit | At least 25 cm | 2a + p 62 to 64 cm, width at least 80 cm |
| Brazil, NBR 9050 | 16 to 18 cm | 28 to 32 cm | For stairs on accessible routes; headroom 2.10 m in the state fire codes |
| France, Blondel formula | 16 to 21 cm | 24 to 28 cm | 2h + g 60 to 64 cm; a comfort rule, not a law for houses |
For the full US rules, with handrails, nosings and winders, see stair dimensions, and for spiral stairs spiral staircase dimensions.
Questions
How do you calculate rise and run for stairs?
Divide the floor-to-floor height by about 7 in (17.5 cm) and round to a whole number of risers. The riser is the height divided by that number. Choose a tread so that 2 × riser + tread is about 25 in (63 cm); the run is the number of treads times the tread.
How many steps do I need for a 9 ft ceiling?
With a 12 in floor structure, the floor-to-floor height is 10 ft (120 in). That gives 17 risers of 7 1/16 in and 16 treads of 10 11/16 in, a run of about 14 ft 3 in (4.34 m).
How long is a stair stringer?
About the square root of run² + rise². A stair that climbs 108 in over a run of 145 5/8 in needs a stringer of about 181 in (15 ft 1 in), before cutting.
How big is a stairwell opening?
Long enough that the ceiling stays above the headroom line, 6 ft 8 in (2.03 m) under the IRC, over the stair. For a 108 in rise with a 12 in floor, that is about 11 ft 1 in (3.38 m).
Does the calculator work for a stair with a landing?
Yes. Choose L or U. The landing is as deep as the stair is wide, and you can set how many risers come before it.
Sources
- International Code Council: 2021 International Residential Code, section R311.7
- UK government: Approved Document K, table 1.1
- Treppe berechnen: DIN 18065 (German)
- Medidas de escalera: CTE (Spanish)
- Código Técnico de la Edificación: DB-SUA, SUA 2, 1.1 (Spanish)
- Calcolo scala: DM 236/1989 (Italian)
- Medidas de escada: NBR 9050 (Portuguese)
- Calcul escalier: formule de Blondel (French)
Checked on 15 November 2026. Codes change and differ between countries, states and towns. Ask your local building department before you build.