Sillmark

Stair Calculator

Stair risers, treads, total run and stringer length from the total rise, with IRC code checks.

Stair type
Units
Finished floor to finished floor.Top of the decking to the grade or landing below.
IRC max 7 3/4 in.
Nosing to nosing. IRC min 10 in.
Optional.
Optional. 6 ft 8 in is 80 in.
Optional.

Your stair

Risers –
  • Riser height–
  • Treads–
  • Total run–
  • Stair angle–
  • Stringer length–
  • 2x12 to buy–
  • Tread board depth–

    How to use the stair calculator

    1. Measure the total rise from finished floor to finished floor. For a deck, measure from the top of the decking to the grade or landing where the stair will land.
    2. Keep the max riser at 7 3/4 in unless your local code is stricter. The calculator never makes a riser taller than this number.
    3. Enter the tread depth, measured nosing to nosing. This is the run of each step, not the width of the tread board.
    4. Add the nosing, headroom and stair width to check them against the code. Leave a field blank to skip that check.

    Stair formulas

    Risers          = total rise ÷ max riser, rounded up
    Riser height    = total rise ÷ risers
    Treads          = risers − 1
    Total run       = treads × tread depth
    Stringer length = √(total rise² + total run²)
    Stair angle     = arctan(riser height ÷ tread depth)
    Tread board     = tread depth + nosing

    The number of treads is one less than the number of risers because the upper floor serves as the top step. The stringer length is the diagonal along the nosing line. The board needs a few extra inches for the plumb cut at the top and the level cut at the bottom, so lay the cuts out on the board before you buy if the diagonal is close to a standard length.

    Worked example

    A basement stair with a total rise of 9 ft (108 in), a 7 3/4 in max riser, 10 in treads and a 1 in nosing.

    • Risers: 108 ÷ 7.75 = 13.94, rounded up to 14 risers.
    • Riser height: 108 ÷ 14 = 7.714 in, just under 7 3/4 in.
    • Treads: 14 − 1 = 13 treads.
    • Total run: 13 × 10 = 130 in, or 10 ft 10 in.
    • Stringer length: √(108² + 130²) = 169.0 in, or 14 ft 1 in. Buy a 16 ft 2x12.
    • Stair angle: arctan(7.714 ÷ 10) = 37.6°.
    • Tread board: 10 + 1 = 11 in deep.

    Every code check passes. The comfort rule gives 2 × 7.714 + 10 = 25.4 in, a little steep. A 7.2 in max riser adds one riser: 108 ÷ 15 = 7.2 in, and 2 × 7.2 + 10 = 24.4 in is in the comfortable range. The extra tread adds 10 in of run.

    IRC stair code limits

    The checks follow IRC section R311.7 for one- and two-family dwellings, as written in the 2018 and 2021 editions.

    Item IRC limit Section
    Riser height 7 3/4 in max R311.7.5.1
    Tread depth, nosing to nosing 10 in min R311.7.5.2
    Variation in risers or treads in a flight 3/8 in max R311.7.5.1, R311.7.5.2
    Nosing projection 3/4 to 1 1/4 in, not required with treads of 11 in or more R311.7.5.3
    Headroom 6 ft 8 in min R311.7.2
    Width 36 in min R311.7.1
    Rise of one flight 151 in max between floors or landings R311.7.3
    Handrail Required with 4 or more risers, 34 to 38 in high R311.7.8

    Your city or county may adopt a different edition or amend these numbers, so confirm with the local building department. Commercial stairs under the IBC are stricter: risers of 4 to 7 in and treads of at least 11 in. The comfort rule (2 risers + 1 tread at about 24 to 25 in) is guidance, not code.

    Deck stairs

    Choose Deck stairs above and enter the rise from the top of the decking to the grade or landing below. Deck stairs follow the same IRC R311.7 limits as indoor stairs. The American Wood Council guide DCA 6, Prescriptive Residential Wood Deck Construction Guide (2015 IRC basis), adds these requirements:

    Tips for laying out stairs

    Stair calculator FAQ

    How many steps do I need for a 9 foot rise?

    With a 7 3/4 in max riser, a 108 in rise needs 14 risers: 108 ÷ 7.75 = 13.94, rounded up. Each riser is 7.714 in, and there are 13 treads because the upper floor is the top step.

    What is the maximum riser height for stairs?

    The IRC limits risers to 7 3/4 in and requires treads of at least 10 in, measured nosing to nosing (R311.7.5). Risers in one flight may not vary by more than 3/8 in. Commercial stairs under the IBC allow 7 in risers and require 11 in treads.

    Do stair treads need a nosing?

    Yes, when the tread is less than 11 in deep. The IRC requires a nosing projection of 3/4 to 1 1/4 in on those stairs (R311.7.5.3). With treads of 11 in or more, a nosing is not required.

    How do I calculate stair stringer length?

    Square the total rise and the total run, add them and take the square root. A 108 in rise with a 130 in run gives a 169.0 in stringer, so buy a 16 ft 2x12. Lay out the top and bottom cuts on the board before you buy if the length is close.

    How many stringers do deck stairs need?

    DCA 6 calls for 2x12 stringers spaced no more than 18 in on center, and at least three when all of them are cut stringers. A 36 in stair needs three and a 48 in stair needs four.

    How much headroom does a stair need?

    The IRC requires at least 6 ft 8 in of headroom, measured straight up from the sloped line through the tread nosings or from the floor of a landing (R311.7.2).