Stair calculator
Find the number of steps, the riser and tread size, the run, the stringer length and the stairwell opening, and check them against the IRC or DIN 18065.
Straight flight
Straight flight
From finished floor below to finished floor above, flooring included.
The step count is the smallest that keeps every riser at or below this.
Leave empty to size it by the step rule 2 × riser + tread = 630 mm (24.8 in).
Code check
Riser up to 7.75 in, tread at least 10 in, headroom 6 ft 8 in, width 36 in.
Checked against the minimum of the chosen rules.
Horizontal length you have from the first riser to the upper floor edge.
Finished floor to ceiling underside. Gives the opening length that keeps the headroom.
Add this calculator to your website
Free for any website: paste this code where the calculator should appear. It keeps itself up to date, fits its height to the content and links back to the full page with the explanations.
How to use it
- 01Measure the total rise from the finished floor below to the finished floor above. If flooring is not laid yet, add its thickness at both ends.
- 02Enter the largest riser you accept. The IRC allows 7¾ in; a lower riser makes a gentler, longer stair.
- 03Leave the tread empty to size it by the step rule, or enter the tread you want.
- 04Choose the rules to check against and, if you know them, the width, the floor space for the run and the thickness of the upper floor.
- 05Read the riser and tread, the run, the stringer length and the stairwell opening. Fix anything the warnings flag before cutting.
How it is calculated
The total rise is split into equal risers. The tread follows from the step rule, and everything else is geometry of a straight flight whose top riser lands on the upper floor.
- Risers
- n = ceil(H / r max), r = H / n
- Treads
- n − 1 (the upper floor is the last step)
- Step rule
- t = 630 mm − 2r, kept within the code limits
- Run
- L = (n − 1) × t
- Pitch
- θ = atan(r / t)
- Stringer, at least
- √(L² + H²)
- Stairwell opening
- (headroom + floor thickness) × t / r
The IRC (R311.7.5) limits risers to 7¾ in and requires treads of at least 10 in, with no more than ⅜ in between the largest and smallest riser or tread in a flight. Treads under 11 in need a nosing of ¾ to 1¼ in. Headroom is 6 ft 8 in and the width at least 36 in. A single flight may rise at most 12 ft 7 in between floors or landings.
DIN 18065 for a house with up to two dwellings allows risers of 14 to 20 cm and treads of 23 to 37 cm, a clear width of at least 80 cm and headroom of 200 cm.
The step rule 2 × riser + tread = 59 to 65 cm, 63 cm on average (TÜV SÜD), matches the length of a normal adult stride. A stair outside that range feels either choppy or stretched.
The nosing line drops r / t for every unit of run from the edge of the upper floor. Headroom is reached once that drop minus the floor thickness equals the required clearance, which gives the opening length.
Worked example
9 ft floor to floor, IRC, risers up to 7¾ in, 10 in floor at the stairwell
- Risers: ceil(108 / 7.75) = 14; 108 / 14 = 7.71 in each.
- Step rule: 24.8 − 2 × 7.71 = 9.38 in, raised to the IRC minimum of 10 in. Treads: 13.
- Run: 13 × 10 = 130 in = 10 ft 10 in. Pitch: atan(7.71 / 10) = 37.6°.
- Stringer at least √(130² + 108²) = 169.0 in = 14 ft 1 in.
- Opening for 6 ft 8 in headroom: (80 + 10) × 10 / 7.71 = 116.7 in = 9 ft 8.7 in.
Getting the order right
Measure finished to finished
The first and last risers end up different if the flooring is added later. Include the floor finish at both ends before you divide the rise.
Buy a longer stringer
The diagonal is the minimum. Add for the cut at the floor and the top connection, and pick the next stock length up.
Check with your building department
Local amendments change stair rules. The IRC and DIN values here are the base; your permit drawings must follow what is adopted where you build.
Common mistakes
- Measuring the rise from the subfloor and then adding finished flooring.
- Counting as many treads as risers on a stair that lands on the upper floor.
- Rounding each riser and letting the error pile up on the last step.
- Forgetting the headroom under the edge of the upper floor.
- Using the run of the flight as the stringer length.
Questions
How many steps for a 9 ft ceiling?
With a total rise of 108 in and risers up to 7¾ in: 14 risers of 7.71 in and 13 treads. A taller floor build-up adds to the rise.
What is the maximum riser height under the IRC?
7¾ in, with treads of at least 10 in. Within one flight risers and treads may differ by no more than ⅜ in.
What is the step rule?
2 × riser + tread should be about 63 cm (24.8 in), within 59 to 65 cm. It keeps the stair in step with a normal stride.
How long should the stairwell opening be?
Long enough that the nosing line is at least the headroom below the ceiling: (headroom + floor thickness) × tread / riser.
Guides on this topic
- Stair rise and run: what the codes allow
Maximum riser, minimum tread, width and headroom for house stairs under the US IRC and the German DIN 18065, with two worked layouts.
Related calculators
Sources
- [1]IRC Code Handout #437: Stairway treads and risers (02/2022). City of Boise, Planning & Development Services. IRC R311.7.5: riser not more than 7¾ in, tread not less than 10 in, largest riser or tread in a flight within ⅜ in of the smallest; nosing ¾ to 1¼ in, not required where treads are 11 in or deeper. How risers and treads are measured.. Checked November 5, 2026
- [2]Minnesota Rules 1309.0311: amendments to IRC section R311 (2020). Minnesota Office of the Revisor of Statutes. Code text: stairways not less than 36 in clear width; headroom in all parts of the stairway not less than 6 ft 8 in.. Checked November 5, 2026
- [3]WAC 51-51-0311: IRC section R311 as adopted in Washington (2023). Washington State Legislature. R311.7.3: a flight of stairs shall not have a vertical rise larger than 12 ft 7 in between floor levels or landings.. Checked November 5, 2026
- [4]Stufen: Definition, Begriffe und Regeln. BauNetz Wissen. DIN 18065 for buildings with up to two dwellings: rise 14–20 cm, going 23–37 cm, clear width at least 80 cm (other buildings 14–19 cm, 29–37 cm, 100 cm).. Checked November 5, 2026
- [5]Treppendurchgangshöhe. BauNetz Wissen. DIN 18065: clear headroom at least 200 cm, measured vertically from the line of the nosings.. Checked November 5, 2026
- [6]Treppe berechnen. TÜV SÜD. Step rule 2 × rise + going = 59–65 cm for adults, 63 cm on average.. Checked November 5, 2026
Formulas and sources last checked on November 5, 2026. How we calculate