How to use the stair calculator
- Measure the total rise — the height from the finished lower floor to the finished upper floor, including flooring that is not yet installed. This is the one measurement everything depends on.
- Set a preferred riser height. The calculator divides the rise into equal steps as close to it as possible, then adds a step if the riser would be higher than the code allows.
- Leave the total run empty to size the treads with the step rule, or enter it when the stair has to fit a fixed length.
- Pick the code to check against and, for the headroom, the thickness of the upper floor.
The stair formulas
- Number of risers = total rise ÷ preferred riser height, rounded to a whole number.
- Riser height = total rise ÷ number of risers — every riser must be the same height.
- Treads = risers − 1, because the top riser steps onto the upper floor.
- Step rule (Blondel): 2 × riser + tread ≈ 63 cm (about 24¾ in), the length of a comfortable stride. The calculator uses it for the tread depth when no run is given.
- Total run = tread depth × treads; stringer length = √(rise² + run²); angle = arctan(riser ÷ tread).
Worked example: a 9-foot floor-to-floor height
The total rise is 108 in. With a preferred riser of 7¼ in: 108 ÷ 7.25 = 14.9, so 15 risers of 7.2 in (7 3/16″). The step rule gives a tread of 24.8 − 2 × 7.2 = 10.4 in, and 14 treads make a total run of 145.6 in (12 ft 1⅝ in). The stringer along the pitch line is √(108² + 145.6²) = 181.3 in and the angle is 34.7°. With 14 risers instead, each would be 7.71 in — still under the IRC's 7¾ in, but steeper.
Code limits used by the check
| Code | Max riser | Min tread | Other |
|---|---|---|---|
| US — IRC R311.7 (one- and two-family homes) | 7¾ in (196 mm) | 10 in (254 mm) | Headroom 6 ft 8 in (2,032 mm) |
| UK — Approved Document K, private stair | 220 mm | 220 mm | Pitch max 42°; 2R + G 550–700 mm; headroom 2.0 m |
| Germany — DIN 18065, homes with up to two dwellings | 14–20 cm | 23–37 cm | 2R + T 59–65 cm; headroom 2.0 m |
| Comfort rule only | — | — | 2R + T 60–65 cm |
The IRC measures the tread from nosing to nosing and allows up to 3/8 in of variation between risers; nosings of ¾ to 1¼ in are required when the tread is less than 11 in. Local amendments, commercial buildings and spiral or winder stairs have different rules — this calculator covers straight flights.
Headroom and the stairwell opening
Headroom is measured vertically from the sloping line through the tread nosings to the ceiling or the edge of the floor above. The pitch line drops one riser for every tread, so the opening in the upper floor must be at least (headroom + floor thickness) × tread ÷ riser long, measured back from the top nosing. For the example above with a 10-in floor: (80 + 10) × 10.4 ÷ 7.2 = 130 in.
Tips before you cut a stringer
Measure the rise in several places — floors are rarely level. Remember that the finished floor covering changes the top and bottom risers. The stringer board must be longer than the pitch-line length to allow for the top and bottom cuts; a 2×12 is the usual choice for wooden stringers. For a ramp or any other incline, the slope calculator converts rise and run to grade and angle, and the roof pitch calculator works the same geometry for rafters.
Frequently asked questions
How many steps do I need for a 9-foot ceiling?
A 9-ft ceiling usually means about 108 in floor to floor with the floor structure. That is 15 risers of 7.2 in or 14 risers of 7.71 in — both under the IRC maximum of 7¾ in. Measure your own floor-to-floor height, since joist depth and flooring change it.
What is the maximum riser height for stairs?
In US homes, 7¾ in under the IRC (R311.7.5.1). The UK allows 220 mm for a private stair, Germany 20 cm under DIN 18065, and the Netherlands 188 mm. Commercial buildings have lower limits, typically 7 in (178 mm).
What is the 2R + T rule?
Two risers plus one tread should equal the length of a normal stride, about 63 cm or 24¾ in (Blondel’s rule). A stair with 17 cm risers then gets 29 cm treads. Stairs that follow it feel natural to climb.
How do I calculate stringer length?
Multiply the tread depth by the number of treads to get the total run, then take √(rise² + run²). For 108 in of rise and 145.6 in of run, the pitch line is 181.3 in long; buy a board at least a foot longer for the end cuts.
What is a good stair angle?
Between about 30° and 37° is comfortable for a home stair. The IRC limits (7¾ in risers, 10 in treads) allow up to about 37.8°; the UK caps private stairs at 42°.
Last updated: November 14, 2026