Stair Calculator

How many steps do your stairs need? Enter the floor-to-floor height to get the number of risers and treads, the riser height, total run, stringer length and angle, checked against the US residential building code.

Total rise: finished floor to finished floor.

Answer

9 ft 0 in total rise

14 steps (14 risers)

Riser height7.714 in
Treads13 × 10 in
Total run10 ft 10 in
Stringer length14 ft 1.01 in
Angle37.6°
2 × riser + tread25.43 in

Meets the IRC limits for homes: risers at most 7¾ in, treads at least 10 in. 2 × riser + tread is in the comfortable 24–25 in range.

Your stairs from the side

37.6°riserise 9′ 0″run 10′ 10″14 × 7.71″tread 10″stride 2R + T = 25.4″ ✓ comfortable

Drag the upper floor to change the height and watch steps appear or disappear; drag the orange nosing to change the tread; click the rise or tread to type. Press Walk up to try the stride. 14 equal risers but only 13 treads: the upper floor is the last step. The dashed line touches every nosing; its slope is the stair angle.

Why this answer

  1. Number of risers. Total rise ÷ maximum riser: 108 ÷ 7.75 = 13.94, rounded up to 14 (rounding down would make each step too tall).
  2. Riser height. Split the rise evenly: 108 ÷ 14 = 7.714 in. Every riser must match within ⅜ in, or people trip.
  3. Treads and run. One fewer tread than risers: 13 × 10 in = 130 in of floor space.
  4. Stringer. The diagonal from Pythagoras: √(108² + 130²) = 169.01 in, before adding for the top and bottom cuts. Buy a board at least a foot longer.

Why it works

Why are stairs built the way they are?

47.2°riserun 7′ 6″10 × 10.80″stride 2R + T = 31.6″ · long steps
Risers over 7¾″ break the IRC limit.

Step 1 of 3

How many steps?

A 9 ft (108 in) rise, split into equal steps. Slide the number of risers. Each step is now 10.80 in tall, too tall for a home (the limit is 7¾ in).
Find the fewest risers that are 7¾ in or less.

Put it to use

Before you cut stringers

  • Measure the rise to the finished floors (include flooring at top and bottom) or the first and last steps end up different heights.
  • Code also requires headroom (6 ft 8 in), handrails on stairs with 4 or more risers, and nosings of ¾ to 1¼ in on solid risers. Check your local code; this is a planning tool.
  • Outdoor and deck stairs follow the same rules; use 2 × 12 stringers about 16 in apart.

How it works

The stair calculator takes the total rise, measured from finished floor to finished floor, and finds the fewest risers that keep each one at or under the maximum height (7¾ in under the International Residential Code). It then gives the exact riser height, the number of treads, the total run, the stringer length and the stair angle.

Risers are always split evenly, because uneven steps cause trips. There's one fewer tread than risers, since the upper floor acts as the last step. The stringer length comes from the Pythagorean theorem using the total rise and total run.

It also checks the comfort rule 2 × riser + tread ≈ 24–25 in, which matches a natural walking stride.

Risers = ⌈total rise ÷ max riser⌉Riser height = total rise ÷ risersTreads = risers − 1; run = treads × tread depthStringer = √(rise² + run²)Comfort: 24 in ≤ 2R + T ≤ 25 in

Worked example: A 9 ft (108 in) floor-to-floor rise

  1. 108 ÷ 7.75 = 13.9, rounded up to 14 risers.
  2. Riser height: 108 ÷ 14 = 7.71 in.
  3. 13 treads × 10 in = 130 in (10 ft 10 in) of run.
  4. Stringer: √(108² + 130²) ≈ 169 in (14 ft 1 in); 2 × 7.71 + 10 = 25.4 in ✓.

Common mistakes

  • Measuring the rise to the subfloor instead of the finished floor.
  • Building as many treads as risers.
  • Rounding the riser count down, which makes steps too tall.
  • Forgetting headroom (6 ft 8 in) and handrail requirements.

Frequently asked questions

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

14 risers of about 7.71 in each and 13 treads, if your code allows a 7¾ in maximum riser.

What is the code for stair riser height?

The International Residential Code allows risers up to 7¾ in and treads at least 10 in deep, with no more than ⅜ in variation between steps. Local codes can differ.

Why is there one less tread than risers?

The top riser brings you up to the upper floor, which serves as the last tread, so you don't build it.

How long should a stair stringer be?

Use √(total rise² + total run²) and buy a board at least a foot longer for the cuts at the top and bottom.

What is a comfortable stair angle?

Between about 30° and 38°. A 7½ in riser with a 10½ in tread is about 35.5°.

Sources & assumptions

  • Checks against the International Residential Code (Section R311.7): risers no taller than 7¾ in and treads at least 10 in deep.
  • Many U.S. jurisdictions adopt the IRC with local amendments; your local building department has the final word.
  • The comfort check uses the common stride rule 2 × riser + tread ≈ 24–25 in.

Sources

Last reviewed: October 2026. Results are estimates, not legal, tax, financial or engineering advice. See our editorial standards.