Stair Calculator
Work out the number of steps, the exact riser height, the total run and the stringer length for a staircase from the floor-to-floor rise, checked against US and UK building rules and the comfort rule.
How to Use
- Measure the total rise: from the finished floor at the bottom to the finished floor at the top.
- Choose the rules to check against: US homes (IRC), US commercial (IBC) or England (private stair).
- Enter the tread depth (the run of each step, without the nosing).
- Read the number of risers, the exact riser height, the total run and the stringer length.
- Check the messages: code limits, and whether the stair passes the 2R + T comfort rule.
Worked Example
Basement stairs with a total rise of 108 in (9 ft) and 10½ in treads, to the US residential code. Risers: 108 ÷ 7.75 = 13.9, so 14 risers, each 108 ÷ 14 = 7.71 in (just under 7¾). Treads: 14 − 1 = 13. Total run: 13 × 10.5 = 136.5 in (11 ft 4½ in). Stringer: √(108² + 136.5²) = 174.1 in, about 14 ft 6 in. Pitch: tan⁻¹(7.71 ÷ 10.5) = 36.3°.
The comfort check: 2 × 7.71 + 10.5 = 25.9 in, a little steep. One more riser, 15 of 7.2 in, gives 2 × 7.2 + 10.5 = 24.9 in, and the run grows to 147 in.
The common mistake: measuring the rise before the floors are finished. Adding ¾ in of hardwood at the top makes the top riser ¾ in shorter than the rest, outside the ⅜ in tolerance. Measure from finished floor to finished floor, or allow for the finishes.
Show Work
Formulas
The Stride Behind the Rules
The 2R + T rule goes back to the French architect François Blondel, who in 1675 related step size to the length of a person’s stride: going up, each unit of height costs about twice as much effort as a unit of depth. Modern codes put hard limits around that idea, because stair falls are one of the most common causes of injury at home.
Uniformity matters as much as the numbers. A riser that is even ½ in off from its neighbours catches toes, which is why codes limit the variation to ⅜ in (5 mm in some countries) and why stair builders lay out every step from one calculated riser height rather than measuring each one.
About This Calculator
This calculator lays out a straight staircase from the total rise and tread depth: the number of risers, the exact riser height, the treads, the total run, the stringer length and the angle. It checks the result against the US residential and commercial codes or the English rules for a private stair, applies the 2R + T comfort rule, and draws the stair in profile, in inches or millimetres.
Everything runs in your browser; nothing is sent anywhere. It is a layout aid; your local code and inspector have the final word on stairs, guards and handrails.
Related calculators: Slope & Grade Calculator, Deck Calculator, and Concrete Calculator.
Frequently Asked Questions
How do I calculate the number of stairs?
Divide the total rise by the maximum riser height and round up. For a 108 in rise under the US residential code (7¾ in maximum), 108 ÷ 7.75 = 13.9, so 14 risers of 108 ÷ 14 = 7.71 in. There is always one fewer tread than risers, because the top floor is the last step: 13 treads.
What are the code limits for stairs?
US homes (IRC): risers up to 7¾ in, treads at least 10 in, headroom at least 6 ft 8 in, and risers within ⅜ in of each other. US commercial (IBC): risers between 4 and 7 in, treads at least 11 in. England (Approved Document K, private stair): rise up to 220 mm, going at least 220 mm, pitch no steeper than 42°. Local codes can differ; check before you build.
What is the 2R + T rule?
Two risers plus one tread should come to about 24 to 25 in (600–630 mm), which matches a comfortable stride. A 7 in riser with an 11 in tread gives 25. Stairs that fall well outside that range feel too steep or too shallow, even when they meet the code. In England the rule allows 550 to 700 mm.
How long is a stair stringer?
The stringer runs along the slope, so its length is √(rise² + run²) of the whole flight, plus extra at the top and bottom for the cuts. For a 108 in rise and 136½ in run it is 174 in, about 14 ft 6 in, so it is cut from a 16 ft 2×12.
Why must all the risers be the same height?
People set their stride on the first couple of steps and trip on one that differs. The IRC allows no more than ⅜ in difference between the tallest and shortest riser in a flight. Remember that floor finishes change the first and last risers: allow for the flooring at the top and bottom.
How do I use the Stair Calculator?
Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.
Is it free? Does it work without internet?
Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.
Where does my data go?
Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.
Common Use Cases
Basement stairs
108 in rise, 10½ in treads: 14 risers of 7.71 in, 13 treads, 136½ in run, 36.3°.
A gentler stair
The same rise with 15 risers of 7.2 in and 10½ in treads: 2R + T = 24.9 in, inside the comfort range.
Deck stairs
30 in rise to a deck: 4 risers of 7½ in, 3 treads of 11 in, 33 in run.
Commercial stair
144 in floor to floor under IBC: 21 risers of 6.86 in with 11 in treads, 220 in of run.
English house
2,600 mm floor to floor: 12 risers of 216.7 mm would pass (40.9°), but one more, 13 of 200 mm with 250 mm goings, gives a gentler 38.7° and a 3,000 mm run.
Last updated: