Stair Calculator

Enter the floor-to-floor height and your target riser height to lay out a straight staircase. You get the riser count, tread depth, total run, stringer length and angle, plus code checks for risers, treads and headroom.

Units
Finished floor below to finished floor above.
The highest riser you want. The calculator divides the rise evenly at or below it.
Measured nosing to nosing.
If the horizontal space is fixed, enter it here; it overrides the tread depth.
Joists plus subfloor at the stairwell opening. Used for the headroom check.
Length of the hole in the upper floor, measured along the stairs from the top.

Result

Number of risers
15 risers, 14 treads
  • Actual riser height7.2 in (7 3/16″)
  • Number of treads14
  • Tread depth10.5 in (10 1/2″)
  • Total run12 ft 3 in (147 in)
  • Stringer length (approx.)15 ft 2.4 in (182.4 in)
  • Stair angle34.4°
  • 2 × riser + tread24.9 in
  • Min. opening for 6 ft 8 in headroom10 ft 11.3 in (131.3 in)
  • Riser checkOK (max 7.75 in)
  • Tread checkOK (min 10 in)
  • Headroom check6 ft 8.5 in (80.5 in): OK (min 6 ft 8 in)
  • Code checks use the International Residential Code (IRC R311.7): risers up to 7¾ in, treads at least 10 in, headroom at least 6 ft 8 in measured from the line of the tread nosings, and no more than 151 in of rise between landings. Local codes can differ.
  • Stringer length is the straight diagonal from the bottom riser to the top floor edge. Buy boards at least a couple of feet longer for the cuts and bearing.
  • A comfortable stair has 2 × riser + tread between about 24 and 25 in (61–64 cm).

How to use the stair calculator

  1. Choose inches or centimeters.
  2. Measure the total rise from the finished floor at the bottom to the finished floor at the top. Include flooring that is not installed yet.
  3. Enter the target riser height, the tallest step you are willing to build. The calculator rounds the number of risers up so every riser is equal and no taller than the target.
  4. Enter the tread depth, or, if the space is limited, the total run available. The run overrides the tread depth.
  5. For the headroom check, enter the upper floor thickness and the length of the stairwell opening.

The formulas

  • Number of risers = total rise ÷ target riser, rounded up
  • Actual riser = total rise ÷ number of risers
  • Number of treads = risers − 1
  • Total run = treads × tread depth
  • Stringer length ≈ √(total rise² + total run²)
  • Stair angle = arctan(riser ÷ tread)

Headroom is measured from the nosing line, which starts one riser above the bottom floor and climbs at the stair’s slope. Under the header at the end of the opening, headroom = (rise − floor thickness) − (riser + distance from first riser to header × riser ÷ tread). The calculator also solves this backwards for the shortest opening that still gives 6 ft 8 in.

Worked example: a 108-inch rise

The calculator opens with a 108 in (9 ft) rise, a 7.5 in target riser, 10.5 in treads, a 10 in thick upper floor and a 132 in opening.

  • Risers: 108 ÷ 7.5 = 14.4 → 15 risers, each 108 ÷ 15 = 7.2 in (about 7 3/16 in)
  • Treads: 15 − 1 = 14, and the run is 14 × 10.5 = 147 in (12 ft 3 in)
  • Stringer: √(108² + 147²) = √33,273 ≈ 182.4 in (15 ft 2.4 in)
  • Angle: arctan(7.2 ÷ 10.5) ≈ 34.4°
  • Comfort check: 2 × 7.2 + 10.5 = 24.9 in, inside the usual 24–25 in range
  • Headroom: the header is 147 − 132 = 15 in from the first riser. The nosing line there is 7.2 + 15 × 7.2 ÷ 10.5 ≈ 17.5 in high, and the header is 108 − 10 = 98 in high, so headroom ≈ 80.5 in, just over 80 in.
  • The shortest opening that still passes is 131.25 in (10 ft 11.3 in).

Both the riser and tread pass the IRC limits, and the flight is under the 151 in maximum between landings.

Getting the layout right

The total rise is the measurement that matters most. An error of an inch there changes every riser, and the IRC allows no more than 3/8 in difference between the tallest and shortest riser in a flight. Measure in more than one spot if the floor is not level.

If the run comes out longer than the space you have, raise the target riser slightly (up to 7¾ in) or use the total run field to fix the run and see the tread depth that results. For the right-triangle math behind the stringer, the triangle calculator can solve any missing side or angle, and the slope calculator gives the pitch as a ratio or percentage.

Limitations

This is a planning tool for straight stairs. It does not lay out landings, winders or spiral stairs, and it does not check stair width, handrail height, guardrails or nosing projection. Local codes may differ from the IRC, and commercial buildings follow stricter IBC rules, so confirm with your building department before you cut stringers.

Frequently asked questions

What is the maximum stair riser height?

Under the International Residential Code, a riser can be no more than 7¾ inches (about 19.7 cm), and treads must be at least 10 inches deep measured nosing to nosing. Commercial buildings under the IBC are stricter, with risers of 7 in maximum and treads of 11 in minimum.

How many stairs do I need for a 9-foot rise?

A 9 ft (108 in) rise needs at least 14 risers to stay under 7¾ in each (108 ÷ 7.75 = 13.9). Many builders use 15 risers of 7.2 in for an easier climb, which gives 14 treads.

Why is there one fewer tread than risers?

The top riser steps up onto the upper floor itself, so the last "tread" is the landing. A stair with 15 risers has 14 treads you have to build.

How much headroom does a staircase need?

At least 6 ft 8 in (203 cm), measured straight up from the sloped line connecting the front edges of the treads to the lowest thing overhead, usually the header at the edge of the stairwell opening.

Last reviewed: