Work out how many steps a staircase needs, the exact riser height, total run, stringer length and angle, with building code and comfort checks.
Defaults follow the US International Residential Code (IRC) for homes: risers up to 7¾ in and treads at least 10 in. Metric defaults suit typical private stairs (risers up to 220 mm, goings of at least 220 mm, pitch up to 42°). Always check your local building code.
The stair calculator works out how many steps a staircase needs, the exact height of each riser, the total run, the stringer length and the stair angle, from the total rise between floors. For a floor-to-floor height of 108 inches (9 feet), with risers no taller than 7¾ inches and 10-inch treads, you need 14 risers of 7 11/16 inches and 13 treads, a total run of 130 inches (10 ft 10 in) and a stair angle of about 39.7°.
It’s designed for DIYers planning deck steps, basement stairs or loft access, and for builders checking a layout before cutting stringers. It also checks the result against common building code limits and a comfort rule, in inches or millimetres.
Every riser must be the same height. Building codes in the US allow only a very small variation, 3/8 inch, between the tallest and shortest riser in a flight, because uneven steps are a major cause of trips and falls.
Commercial buildings under the International Building Code have stricter limits, typically a maximum riser of 7 inches and a minimum tread of 11 inches.
Many countries set limits in millimetres. For private stairs in homes in England and Wales, for example, the guidance allows a maximum rise of 220 mm, a minimum going of 220 mm and a maximum pitch of 42°, with 2 × rise + going between 550 and 700 mm. Other countries have their own rules, so check the regulations that apply where you’re building.
A long-standing rule of thumb says a stair is comfortable when twice the riser height plus the tread depth equals the length of an average stride. In inches, 2R + T between about 24 and 25½ inches works well. In the example, 2 × 7.714 + 10 = 25.4 inches, which is comfortable. Using a deeper 11-inch tread with the same risers gives 26.4 inches, a long stride that some people find awkward. In metric, 2R + G between 550 and 700 mm is the usual range, with around 600 to 630 mm often considered ideal.
The calculator flags results outside these ranges so you can adjust the riser height or tread depth before you build.
Outdoor steps follow the same calculation, but measure the total rise from the top of the deck boards to the ground or landing pad where the stairs will sit, not to the ground directly below the deck edge, since the ground often slopes away. Many people prefer slightly lower risers and deeper treads outdoors, such as 7-inch risers with 11-inch treads, because steps can be wet or icy. Use pressure-treated or naturally durable timber, set the bottom of the stringers on a concrete pad rather than bare soil, and leave small gaps between tread boards so water drains away.
When space is tight, winders (tapered steps that turn a corner) or spiral stairs can fit where a straight flight won’t. They follow the same principle of equal riser heights, but the tread depth varies across the width, so codes usually set a minimum depth measured at a walk line about 12 inches from the narrow end. Spiral stairs have their own, more relaxed limits in many codes, including taller risers. This calculator is designed for straight flights, so use the manufacturer’s guidance or your local code for winders and spirals.
Stringers are the sloping boards that support the treads and risers. Using a framing square, mark the riser height on one arm and the tread depth on the other, then step the pattern along the board. Remember to subtract the thickness of one tread from the bottom of the stringer, a process called dropping the stringer, so the first step isn’t taller than the rest once the treads are fitted. Most stairs need at least three stringers for treads up to about 36 inches wide.
You may also find the concrete calculator useful to work out how much concrete you need, while the square footage calculator lets you find the area of rooms and plots.
Divide the total rise by the maximum riser height and round up. For a 108-inch rise and 7¾-inch risers, that's 14 risers and 13 treads.
In US homes, risers can be up to 7¾ inches. Around 7 to 7½ inches is common and comfortable.
The US International Residential Code requires at least 10 inches. Commercial buildings usually need 11 inches.
The top floor acts as the final step, so a staircase always has one fewer tread than risers.
Use the Pythagorean theorem: the square root of the total rise squared plus the total run squared. Add extra length for cutting.
Between about 30° and 37° feels comfortable for most people. Home stairs are often around 35° to 40°.
Twice the riser height plus the tread depth should be about 24 to 25½ inches, or 550 to 700 mm, to match a natural stride.
At least 6 ft 8 in under the IRC, measured vertically from the line of the stair nosings. Other codes set similar limits, such as 2 metres.
Yes. US codes allow no more than 3/8 inch difference between the tallest and shortest riser in a flight.
Yes. Choose Millimetres and the defaults change to a 190 mm maximum riser and 250 mm going.