Skip to content
MeasureToBuy

Stair Calculator

Enter the total rise, the tallest riser you'll accept and the tread depth. The calculator finds the number of risers and their exact height, the treads, total run, stringer length and how many stringers to cut.

Structural sizes — footings, framing, stairs — are governed by local building codes and site conditions. Use this for material planning, and confirm sizes with your building department or an engineer.

Measurements

Finished floor to finished floor. For a deck, measure from the deck surface to the landing pad.

The IRC maximum is 7¾ in; 7–7½ in is comfortable.

Measured nosing to nosing. The IRC minimum is 10 in.

36 in is the usual residential minimum.

Advanced optionscoverage, sizes, custom values
Maximum stringer spacing

Wood treads

Your estimate

You need 15 risers of 7 3/16 in each, and 14 treads.

108 in ÷ 15 risers = 7 3/16 in; 14 treads × 10 in = 11.67 ft of run.

Total rise
108 in
Risers
15 risers
Exact riser height7.2 in
7 3/16 in
TreadsThe upper floor is the top step
14 treads
Tread depth
10 in
Total run140 in
11.67 ft
Stringer lengthRise and run hypotenuse
14.73 ft
Stair angle
35.8 degrees
2×12 stringers to buy16 ft boards
4 stringers

Comfort check

2 × riser + tread24–25 in is comfortable
24.4 in
  • Every riser must be the same height — the IRC allows no more than ⅜ in difference between the tallest and shortest. Measure the total rise to finished floors, and cut the bottom of the stringer down by one tread thickness.
  • The suggested board length adds about a foot (300 mm) to the stringer length for the top and bottom cuts.
  • Headroom, handrails, guards, landings and stringer attachment are also regulated. Stair rules vary — check your local building code before you cut.
Stairs · profile
108 inrun 11.67 ft7.2 in15 RISERS · 14 TREADSSTRINGER
The upper floor is the last step, so there is one fewer tread than risers. Stringer ≈ √(rise² + run²) = 14.73 ft.

Next step

Deck boards for the treads

Count deck boards, joists and screws for the deck itself.

Decking calculator

How to measure

  1. Measure the total rise from finished floor to finished floor. If the flooring isn't down yet, add its thickness. For deck stairs, measure from the deck surface to the landing pad, using a level and straightedge if the ground slopes.
  2. Set a target maximum riser: 7–7½ in is comfortable; the IRC maximum is 7¾ in.
  3. Choose the tread depth: 10 in is the IRC minimum, 10½–11 in feels better. Measure nosing to nosing.
  4. Measure the stair width between stringer outsides.

How the stair calculation works

Risers        = ceil(total rise ÷ max riser)
Riser height  = total rise ÷ risers
Treads        = risers − 1
Total run     = treads × tread depth
Stringer      = √(total rise² + total run²)
Angle         = atan(riser ÷ tread)
Comfort       = 2 × riser + tread  (24–25 in)
Stringers     = max(3, ceil(width ÷ 16 in) + 1)

Dividing the total rise by the maximum riser and rounding up gives the fewest risers that stay under the limit. Dividing the rise by that count makes every riser identical — the most important rule for a safe stair.

There is one fewer tread than risers because the upper floor is the last step. The run is treads × tread depth.

The stringer is the hypotenuse of the rise and run. Buy boards about a foot longer for the plumb cut at the top and the level cut at the bottom.

2R + T between 24 and 25 in matches a natural stride. Stringers go no more than 16 in apart for wood treads (12 in for composite), and never fewer than three.

Worked example

Floor to floor is 108 in. Target riser 7½ in, 10 in treads, 36 in wide.

  1. Risers: 108 ÷ 7.5 = 14.4 → 15 risers
  2. Riser height: 108 ÷ 15 = 7.2 in (7 3/16 in)
  3. Treads: 15 − 1 = 14; run: 14 × 10 = 140 in (11.67 ft)
  4. Stringer: √(108² + 140²) = 176.8 in = 14.73 ft → 16 ft 2×12s
  5. Comfort: 2 × 7.2 + 10 = 24.4 in ✓; stringers: 36 ÷ 16 = 2.25 → 3 + 1 = 4

Cut 15 risers of 7 3/16 in and 14 treads of 10 in, from four 16 ft 2×12 stringers.

Reading your result

The headline gives the number of risers and the exact height to lay out on the framing square. Use the same number for every step.

Warnings appear if a riser is over 7¾ in, a tread is under 10 in, or the stride falls outside 24–25 in. Adjust the target riser or tread depth until they clear.

If the total run doesn't fit the space, you need a landing or a turn — a shorter tread would break the comfort rule.

Assumptions

  • A straight flight with no landing. Split a long flight with a landing into two calculations.
  • Total rise is measured between finished surfaces. The bottom of the stringer is cut down by one tread thickness so the first and last risers come out right.
  • Code checks use IRC residential limits (7¾ in riser, 10 in tread). Your local code may differ.

Unit conversions use exact definitions (1 in = 25.4 mm, 1 US gal = 3.785 L). See the calculation methodology for rounding rules.

When to call a professional

  • Stairs are one of the most tightly regulated parts of a house: riser and tread limits, headroom (usually 6 ft 8 in), handrails, guards and landings. Codes vary — check with your local building department.
  • Deck stairs need a solid landing pad and secure stringer attachment at the top. Get a permit and inspection where required.

Frequently asked questions

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

Floor to floor is usually about 9 ft plus the floor structure — say 108 in. At 7½ in max, that's 15 risers of 7.2 in and 14 treads.

Why is there one fewer tread than riser?

The top riser steps you onto the upper floor, which acts as the last tread.

What is the maximum riser height?

The IRC sets 7¾ in for homes, with no more than ⅜ in difference between risers. Commercial codes and other countries are stricter — check locally.

How long should a stair stringer be?

The hypotenuse of the total rise and total run, plus about a foot for the end cuts. For 108 in of rise and 140 in of run, that's 14.7 ft — buy 16 ft boards.

How many stringers do I need?

Space them no more than 16 in apart for wood treads (12 in for composite), with at least three. A 36 in stair gets four at 16 in spacing.

More lumber & carpentry calculators

All lumber & carpentry