Reviewed · Prices checked October 2026 · How we calculate

Stair Calculator: How Many Steps and How Long a Stringer?

Enter the total rise, floor to floor or deck to ground, and the tread depth you want. You get the risers, treads, total run and stringer length, with the building code's limits checked.

Inputs

Units
in

Top of the finished floor or deck to the ground or floor below.

in

At least 10 in; 10 1/2 to 11 is comfortable.

$

Your stairs

Updates as you type
14risers

of 7 11/16 in and 13 treads of 10 1/2 in for a 9 ft 0 in rise. Total run 11 ft 4 1/2 in, stringers 14 ft 6 1/16 in long.

  • Pass Riser 7 11/16 in ≤ 7 3/4 in
  • Pass Tread 10 1/2 in ≥ 10 in
  • Pass Flight 9 ft 0 in ≤ 12 ft 7 in
  • Check Comfort tip: 2R + T = 25.9 in (24 to 25 feels easiest)
Stair details
Code check (IRC R311.7)Passes: riser 7 11/16 in (≤ 7 3/4 in); tread 10 1/2 in (≥ 10 in); flight under 12 ft 7 in
Stringer boards16 ft (2×12), cut to 14 ft 6 1/16 in plus the top and bottom cuts
Comfort (2 risers + 1 tread)25.9 in (over 25: a long stride)
Also requireda handrail 34 to 38 in high on at least one side; a 3/4 to 1 1/4 in nosing (treads under 11 in); at least 36 in wide and 6 ft 8 in of headroom
Treads at your price—
Show the math
Risers: 108 in ÷ 7.75 in = 13.94 → 14 risers of 108 ÷ 14 = 7.714 inRun: 13 treads × 10.5 in = 136.5 inStringer: √(108² + 136.5²) = 174.1 in

The price you type is used for this estimate only; it isn't saved.

How it works

The formula

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

The code limits we check

  • From the 2021 International Residential Code, R311.7 (as adopted): risers no more than 7 3/4 in, treads at least 10 in, and no more than 3/8 in difference between the biggest and smallest of either in a flight.
  • A flight rises no more than 12 ft 7 in (151 in) between floors or landings; at least 36 in wide; 6 ft 8 in of headroom.
  • A nosing of 3/4 to 1 1/4 in on each tread, unless treads are at least 11 in deep. A handrail 34 to 38 in high on at least one side once there are four or more risers.
  • Comfort: designers aim for 2 risers + 1 tread between 24 and 25 in, a rule of thumb from Architectural Graphic Standards (as cited by Autodesk), not a code requirement.
  • Your town may amend the code (California, for one, asks for taller guards). Check with your building department before you cut.

Steps by total rise

Risers, riser height and total run by total rise, with 10 1/2 in treads
Total riseRisersRiser heightRun (10 1/2 in treads)
24 in46 in2.6 ft
36 in57 3/16 in3.5 ft
48 in76 7/8 in5.3 ft
72 in107 3/16 in7.9 ft
96 in137 3/8 in10.5 ft
108 in147 11/16 in11.4 ft
120 in167 1/2 in13.1 ft
144 in197 9/16 in15.8 ft

Questions people ask

How many steps do I need?

Divide the total rise by 7 3/4 in and round up: that's the number of risers. A 9 ft (108 in) rise takes 14 risers of 7 11/16 in, with one fewer tread than risers.

What is the maximum step height?

7 3/4 in under the International Residential Code, with treads at least 10 in deep. Commercial buildings follow a stricter code (7 in risers, 11 in treads).

How long should a stair stringer be?

The diagonal of the total rise and total run, plus a little for the top and bottom cuts. Stringers are usually cut from 2×12s, which come in 2 ft steps.