Staircase & Stair Stringer Calculator

Enter the total rise and get the number of steps, riser height, total run and stringer length, checked against the IRC limits.

Number of steps (risers) — risers

Measure from the lower finished floor or landing to the upper finished floor.

IRC minimum 10 in. 10½-11 in is more comfortable.

7¾ in under the IRC. Use your local limit if it is lower.

IRC minimum 36 in clear width.

Used to drop the bottom of the stringer so every step comes out equal.

Riser height
— in
Treads
— treads
Total run
— in
Stringer length (rise and run line)
— in
Board to buy
—
Stair angle
— °
2 × riser + tread
— in
Nosing required?
—
Drop the stringer bottom by
— in
Number of steps (risers) diagram

Shopping list

    Quantities are rounded up to whole bags, blocks and pieces. Prices change by region, so add your own to see a total.

    How to use the stair calculator

    Measure the total rise: the vertical distance from the finished surface at the bottom to the finished surface at the top. That one measurement drives everything else. Enter the tread depth you'd like and the calculator works out how many risers you need, how tall each one is, how far the stairs will reach out from the top, and how long the stringers have to be.

    The diagram shows the stringer layout to scale: each notch is one riser and one tread, and the top riser meets the upper floor. Check the total run against the space you have before you buy lumber; if it doesn't fit, a shorter tread won't help much below 10 inches, and you may need a landing or a turn.

    The formulas

    risers = total rise ÷ maximum riser, rounded up
    riser height = total rise ÷ risers
    treads = risers − 1
    total run = treads × tread depth
    stringer length = √(total rise² + total run²)

    Worked example: 105 inch total rise, 10 inch treads

    1. Risers: 105 ÷ 7.75 = 13.5, round up to 14 risers.
    2. Riser height: 105 ÷ 14 = 7½ in exactly.
    3. Treads: 14 − 1 = 13 treads.
    4. Total run: 13 × 10 = 130 in (10 ft 10 in).
    5. Stringer: √(105² + 130²) = √27,925 ≈ 167.1 in (13 ft 11 in), so a 16 ft 2×12.
    6. Comfort check: 2 × 7.5 + 10 = 25 in, right at the top of the comfortable range.

    The IRC stair rules at a glance

    ItemIRC requirement
    Riser height7¾ in maximum
    Tread depth10 in minimum, nosing to nosing
    Variation in a flight⅜ in maximum between the largest and smallest riser or tread
    Nosing¾ to 1¼ in, required when treads are under 11 in with solid risers
    Headroom6 ft 8 in minimum, measured from the line of the nosings
    Width36 in minimum clear above the handrail
    Handrail34 to 38 in above the nosings, on at least one side when there are 4 or more risers

    This summarises IRC 2021 R311.7. Many places adopt the IRC with local changes, and decks and exterior stairs may have extra rules. Your building department has the final word.

    Laying out a stringer

    1. Set a framing square on the 2×12 with the riser height on one leg and the tread depth on the other, using stair gauges to lock them.
    2. Mark each notch, sliding the square along the board, until you have the right number of risers.
    3. Drop the bottom. Cut the bottom riser shorter by one tread thickness. Otherwise the first step ends up taller than the rest once treads go on. The calculator shows this figure.
    4. Cut with a circular saw, and finish the inside corners of each notch with a handsaw so you don't weaken the stringer by over-cutting.
    5. Use the first stringer as a template for the others.

    Common mistakes

    • Measuring to the subfloor instead of the finished floor. Adding ¾ in of hardwood at the top makes the top riser short and breaks the ⅜ in rule.
    • Not checking the run. A 9 ft rise needs about 11 ft of floor space. Measure before you start.
    • Ignoring headroom. 6 ft 8 in is measured above every nosing, all the way up.

    Questions people ask

    How do I calculate the number of stairs I need?

    Measure the total rise from the lower floor to the upper floor surface in inches and divide by 7.75, the maximum riser height in the IRC. Round up to a whole number. That's your number of risers; you'll have one fewer tread, because the top floor acts as the last step.

    What is the maximum riser height for stairs?

    The International Residential Code (R311.7.5.1) allows a maximum riser height of 7¾ inches, and the tallest and shortest riser in a flight can't differ by more than ⅜ inch. Some local codes are stricter, so check yours.

    What is the minimum tread depth?

    10 inches under the IRC, measured nosing to nosing. If the tread is less than 11 inches deep and the risers are solid, each tread needs a nosing that projects ¾ to 1¼ inches.

    How long should a stair stringer be?

    Use Pythagoras: stringer length = √(total rise² + total run²). For a 105 inch rise with 13 treads of 10 inches (130 inch run), that's √(105² + 130²) ≈ 167 inches, about 13 ft 11 in, so you'd cut it from a 16 ft 2×12.

    How many stringers do I need?

    Three for a typical 36 inch wide stair is common practice: one at each side and one in the middle. Wider stairs need more, and the spacing depends on your tread material, so check the tread maker's span or your local code.

    What is the most comfortable stair rise and run?

    A long-standing rule is that two risers plus one tread should come to about 24 to 25 inches. A 7 inch riser with an 11 inch tread (25) feels easy; a 7¾ inch riser with a 10 inch tread (25.5) is legal but steep.

    Sources and assumptions

    Last reviewed 27 October 2026. Every formula on this page is checked against the worked example above in our automated tests. Found a problem? Tell us.