Stair Calculator

Work out how many steps a staircase needs, the exact riser height, total run, stringer length and angle, with building code and comfort checks.

Stair calculator
Units
Steps

    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.

    On this page

    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.

    How to use the stair calculator

    1. Choose inches or millimetres. The default riser and tread sizes change to suit each system.
    2. Measure the total rise: the vertical height from the finished floor at the bottom to the finished floor at the top. Include the thickness of any flooring that’s still to be laid.
    3. Set the maximum riser height your code allows or you prefer. Lower risers make gentler, more comfortable stairs but need more space.
    4. Set the tread depth, the horizontal depth of each step from the front of one riser to the front of the next.
    5. Select Calculate stairs. You’ll see the number of risers and treads, the exact riser height, the total run, the stringer length, the angle and the code and comfort checks.

    How the calculation works

    1. Number of risers: divide the total rise by the maximum riser height and round up. 108 ÷ 7.75 = 13.94, so 14 risers.
    2. Actual riser height: divide the total rise by the number of risers so every step is identical. 108 ÷ 14 = 7.714 inches, or about 7 11/16 inches.
    3. Number of treads: one fewer than the risers, because the top floor acts as the last step. 14 risers need 13 treads.
    4. Total run: treads × tread depth. 13 × 10 = 130 inches.
    5. Stringer length: the diagonal from the Pythagorean theorem, √(rise² + run²). √(108² + 130²) ≈ 169 inches, about 14 ft 1 in. Buy stringer stock a little longer to allow for the cuts at the top and bottom.
    6. Angle: the arctangent of rise ÷ run. arctan(108 ÷ 130) ≈ 39.7°.

    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.

    Building code guidelines

    United States (International Residential Code)

    • Maximum riser height: 7¾ inches.
    • Minimum tread depth: 10 inches, measured from nosing to nosing.
    • Minimum headroom: 6 ft 8 in, measured vertically from the line of the nosings.
    • Minimum stair width: 36 inches.
    • Handrails: required on at least one side where there are four or more risers, at a height of 34 to 38 inches.

    Commercial buildings under the International Building Code have stricter limits, typically a maximum riser of 7 inches and a minimum tread of 11 inches.

    Metric guidelines

    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.

    The comfort rule: 2R + T

    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.

    Worked examples

    • Gentle stairs with 7-inch risers: a total rise of 105 inches with a 7-inch maximum riser needs exactly 15 risers of 7 inches. With 11-inch treads, the 14 treads give a run of 154 inches, an angle of 34.3° and a 2R + T of exactly 25 inches.
    • Metric stair: a rise of 2,600 mm with a 190 mm maximum riser needs 14 risers of 185.7 mm. With 250 mm goings, the run is 3,250 mm and the pitch is 38.7°, within a 42° limit.
    • Too steep: the same 2,600 mm rise with 220 mm risers and goings gives 12 risers of 216.7 mm and a pitch of 47.1°, steeper than the 42° limit for private stairs, so it would need a longer run.

    Planning tips

    • Check the space first. Make sure there’s room for the total run plus a landing of at least the stair width at the bottom, and that the headroom is enough along the whole flight.
    • Account for finished floors. If you’ll add carpet, tiles or hardwood later, measure to the finished height or adjust the top and bottom risers so they end up the same as the others.
    • Add nosings. A nosing of ¾ to 1¼ inches projecting over each riser makes stairs easier to climb. The IRC requires nosings on stairs with solid risers when treads are less than 11 inches deep.
    • Consider a landing. Long flights are often split with a landing, which also lets the stair change direction to fit the space.
    • Get approval. Most new or rebuilt stairs need a building permit or approval and an inspection.

    Deck and outdoor steps

    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.

    Winder and spiral stairs

    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.

    Cutting stringers

    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.

    Related calculations

    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.

    Frequently asked questions

    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.