Skip to content
Mathico

Stair Calculator

Plan a staircase from its total rise: the number of steps, riser height, total run, stringer length and angle, checked against common building-code limits for riser height and tread depth.

Number of steps
in

7.75 in is the common US residential limit (IRC)

Steps

14 risers · 13 treads

Riser height
7.5 in (19.1 cm)
Total run
10′ 10″ (3.30 m)
Stringer length
13′ 11 1/8″
Stair angle
36.9°
  • ✓ Riser 7.5 in ≤ 7¾ in maximum
  • ✓ Tread 10 in ≥ 10 in minimum
  • ✓ Comfort: 2 × riser + tread = 25.00 in (aim for about 24–25)

The top step is the upper floor, so there's one fewer tread than risers. Stringer length is the straight-line distance; buy a board at least a foot longer, typically a 2×12. Local codes vary; check yours.

How to use the stair calculator

  1. Measure the total rise from finished floor to finished floor and enter it in any unit.
  2. Let the calculator choose the number of steps from a maximum riser height (7¾ in by default), or enter your own number of risers.
  3. Enter the tread depth, then read the riser height, total run, stringer length, stair angle and code checks.

Stair formulas

Risers = total rise ÷ maximum riser height (round up)
Riser height = total rise ÷ risers · Treads = risers − 1
Total run = treads × tread depth
Stringer length = √(total rise² + total run²) · Angle = arctan(riser ÷ tread)

Worked examples

Basement stairs: 105 in (8′ 9″) rise

105 ÷ 7.75 = 13.5 → 14 risers of 7.5 in
13 treads × 10 in = 130 in (10′ 10″) total run
Stringer = √(105² + 130²) = 167.1 in = 13′ 11 1/8″ · angle 36.9°

Deck stairs: 36 in rise, 10½ in treads

36 ÷ 7.75 = 4.6 → 5 risers of 7.2 in, 4 treads, 42 in of run and a stringer of about 55.3 in (4′ 7 5/16″).

Common code limits (US residential)

ItemIRC requirement
Riser height7¾ in maximum
Tread depth10 in minimum
Variation within a flight⅜ in maximum between largest and smallest
Headroom6 ft 8 in minimum
Width36 in minimum
Nosing (treads under 11 in, solid risers)¾ – 1¼ in

These come from the International Residential Code (section R311.7), which most US jurisdictions adopt, sometimes with amendments. Commercial stairs, and codes in other countries, have different limits. Always check with your local building department.

Laying out a stringer

  1. Set a framing square on the board with the riser height on the tongue and the tread depth on the blade, and mark each step.
  2. Trim the bottom of the stringer by the tread thickness so the first step isn't taller than the rest.
  3. Cut one stringer, test it in place, then use it as a pattern for the others (typically one every 16 inches or less, depending on the treads).

The stringer is the hypotenuse of a right triangle, the same geometry as the right triangle calculator and the rafter length calculator. Pouring concrete steps instead? The concrete calculator has a steps mode that gives cubic yards and bags.

Tips

  • Keep every step identical: uneven risers are a major trip hazard and fail inspection beyond ⅜ inch.
  • Check headroom along the whole flight, measured straight up from the line of the nosings.
  • Plan a landing if the rise is very large; each flight is calculated separately.

For planning only. Confirm dimensions with your local building code before you cut. More construction calculators.

Sources

Frequently asked questions

How do I calculate how many stairs I need?

Divide the total rise (floor to floor) by the maximum riser height and round up. For a 105-inch rise and a 7¾-inch maximum, 105 ÷ 7.75 = 13.5, so you need 14 risers of exactly 105 ÷ 14 = 7½ inches each, and 13 treads.

What is the maximum riser height and minimum tread depth?

The International Residential Code, which most US jurisdictions base their rules on, sets a maximum riser of 7¾ inches and a minimum tread of 10 inches, with at least 6 ft 8 in of headroom and a 36-inch minimum width. Risers (and treads) within a flight can't differ by more than ⅜ inch. Local codes may differ.

How long should a stair stringer be?

Use the Pythagorean theorem: stringer = √(total rise² + total run²). With a 105-inch rise and 13 treads of 10 inches (130 inches of run), the stringer is about 167 inches, or 13′ 11″. Buy a board a little longer to allow for the cuts; a 16-foot 2×12 would work here.

Why is there one less tread than risers?

In a standard stair the top riser meets the upper floor, which acts as the last step, so a flight with 14 risers has 13 treads. That's why the total run is the number of treads × tread depth.

What is a comfortable stair angle?

Most residential stairs fall between about 30° and 38°. A common comfort rule is that 2 × riser + tread should equal about 24–25 inches, matching a typical walking stride. A 7½-inch riser with a 10-inch tread gives 25 inches and an angle of about 37°.

Does the tread depth include the nosing?

No. Tread depth (the run) is measured horizontally from the face of one riser to the face of the next, not including the nosing overhang. Under the IRC, stairs with solid risers and treads under 11 inches need a nosing of ¾ to 1¼ inches.

How do I measure the total rise?

Measure vertically from the finished floor at the bottom to the finished floor at the top. If the flooring isn't installed yet, add its thickness so the first and last steps aren't a different height from the rest.