Skip to content

Stair Calculator (Rise, Run & Stringers)

Find the number of steps, the riser height, total run and stringer length for a staircase, with IRC code checks.

Enter your measurements

in

Measure from finished floor to finished floor.

in

The IRC allows up to 7-3/4 in. for homes.

in

The IRC requires at least 10 in.

Number of risers (steps)14

Number of risers (steps)

14

Riser height
7.714 in
Number of treads
13
Total run
130 in
Stringer length (approx.)
169 in
Stair angle
39.7°

Estimates only. Check product labels and local codes before you buy.

How to use the stair calculator

  1. Measure the total rise from the finished floor at the bottom to the finished floor at the top, in inches.
  2. Enter the maximum riser height you want. The International Residential Code (IRC) allows up to 7-3/4 in. for homes.
  3. Enter the tread depth (the horizontal run of each step). The IRC requires at least 10 in.

The formulas

Risers = total rise ÷ maximum riser height, rounded up

Riser height = total rise ÷ risers (every riser must be the same height)

Treads = risers − 1 (the top floor acts as the last step)

Total run = treads × tread depth

Stringer length ≈ √(total rise² + total run²)

Angle = arctan(total rise ÷ total run)

Worked example

A 108 in. total rise (9 ft floor to floor) with a 7-3/4 in. maximum riser and 10 in. treads:

  • Risers: 108 ÷ 7.75 = 13.9, so 14 risers
  • Riser height: 108 ÷ 14 = 7.71 in. (just under 7-3/4 in.)
  • Treads: 13; total run: 13 × 10 = 130 in.
  • Stringer: √(108² + 130²) ≈ 169 in.; angle ≈ 39.7°

Code checks built in

The calculator warns you when the riser height is over 7-3/4 in. or the tread depth is under 10 in., the limits in IRC section R311.7.5 for one- and two-family homes. The IRC also limits how much risers or treads may vary within a flight (3/8 in.), requires headroom of at least 6 ft 8 in., and sets rules for nosings, handrails and guards. Your local code may differ, so check with your building department.

Tips

  • Stringer board length: the stringer length above is the sloped line only. Buy a board long enough to include the top and bottom cuts, often the next size up.
  • Measure after flooring. Changing floor thickness at the top or bottom changes the first and last risers, which the code requires to match the others.
  • Comfort rule: many designers aim for two risers plus one tread to total about 24–25 in.

Frequently asked questions

How many steps do I need for 9 feet?

For a 108 in. total rise with a 7-3/4 in. maximum riser, you need 14 risers of about 7.71 in. and 13 treads.

How many stairs do I need for 8 feet?

96 in. ÷ 7.75 in. = 12.4, so 13 risers of about 7.38 in. and 12 treads.

How do I calculate stair stringer length?

Use the Pythagorean theorem on the total rise and total run: √(rise² + run²). For 108 in. of rise and 130 in. of run, the sloped length is about 169 in. Buy a longer board to allow for the end cuts.

What is the maximum stair riser height?

The International Residential Code allows up to 7-3/4 in. with treads of at least 10 in. for homes. Commercial buildings under the International Building Code are stricter: 7 in. maximum riser and 11 in. minimum tread.

How many stringers do I need for stairs?

Many builders space stringers about 16 in. apart or less, so a 36 in. wide stair gets three. Composite or thin treads may need closer spacing; follow the tread maker's span rating.

Last reviewed November 3, 2026. Found a problem? Tell us.