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.

Your stair
Units
Shape
More options
Steps
risers of
Treads
×
Total run
Pitch
2 × riser + tread
Stringer length
Stairwell opening
Floor space
First flight
risers,
Second flight
risers,
  • Riser height:
  • Tread depth:
  • 2 × riser + tread:
  • Pitch:
  • Width :
Side view. The dashed line keeps the headroom above the nosings; the upper floor stops where it crosses it.

How the calculator works

  1. 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.
  2. Riser height. The height divided by the number of risers, so that every step is the same.
  3. 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.
  4. 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.
  5. 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.

StepCalculationResult
Risers108 in ÷ 7 in = 15.4, rounded15 risers
Riser height108 in ÷ 157 3/16 in (18.3 cm)
Tread depth24.8 in − 2 × 7.2 in10 3/8 in (26.4 cm)
Total run14 treads × 10 3/8 in12 ft 1 5/8 in (3.70 m)
Stringer√(145.6² + 108²) in15 ft 1 in (4.61 m)
OpeningWhere the ceiling is closer than 6 ft 8 in to the nosing line11 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.

RuleRiserTreadOther
United States, IRC 2021At 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 K150 to 220 mm220 to 300 mm2R + G 550 to 700 mm, pitch at most 42°, headroom 2 m
Germany, DIN 1806514 to 20 cm23 to 37 cm2R + G 59 to 65 cm, width at least 80 cm, headroom 2 m
Spain, CTEAt most 20 cmAt least 22 cmWidth at least 80 cm, headroom 2.10 m
Italy, DM 236/1989No limitAt least 25 cm2a + p 62 to 64 cm, width at least 80 cm
Brazil, NBR 905016 to 18 cm28 to 32 cmFor stairs on accessible routes; headroom 2.10 m in the state fire codes
France, Blondel formula16 to 21 cm24 to 28 cm2h + 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

Embed this calculator

Add this calculator to your website. Copy the code and paste it into your page.

<iframe src="https://simplehouseplanner.com/tools/stair-calculator/?embed" title="Stair calculator" width="100%" height="760" style="border: 1px solid #d9d9d9; border-radius: 12px" loading="lazy"></iframe>
<p><a href="https://simplehouseplanner.com/tools/stair-calculator/">Stair calculator</a> · Simple House Planner</p>

Checked on 15 November 2026. Codes change and differ between countries, states and towns. Ask your local building department before you build.