Stair Calculator

Calculate stair dimensions, stringer length, and a check against the IRC's riser and tread limits from floor-to-floor height. The IRC is a model code that states and cities adopt with amendments; check your local code.

FreeInstant resultNo signup
Copied

Reviewed & updated for 2026 by Methodology & sources · How we calculate

How stair design works

Stair design balances three competing goals: comfort, safety, and space efficiency. Get any one wrong and the stairs feel awkward, become hazardous, or eat too much floor area. The math drives everything.

Start with the total rise, the exact vertical distance from finished floor to finished floor (or finished deck to ground level, including any deck thickness). Measure with a long level and tape, NOT by tape-measuring up a wall. A 96" measurement that's off by even 1/4" can throw off your riser heights.

The calculator divides total rise by your target riser height, rounds to a whole number of risers, then recalculates the exact riser height. The IRC allows no more than 3/8" between the tallest and shortest riser in a flight (2024 IRC figure; the IRC is a model code, so check your local code); a single odd riser is a trip hazard. The number of treads is always one less than the number of risers, because the upper floor itself counts as the final "step."

Stair design rules of thumb

The first three are designers' conventions, not code. The last two come from the IRC, a model code; check your local code.

  • 2R + T = 24–25": An old French stride rule (Blondel's). Twice the riser plus the tread; a 7" riser and 11" tread give 25".
  • R + T = 17–18": A common American check. 7" + 11" = 18".
  • R × T ≈ 75: Another quick check. 7 × 11 = 77.
  • Headroom 6'8" min: The IRC's clearance above the stair. Critical in basement stairs where ducts and beams cut headroom.
  • Nosing: The tread overhang past the riser. The IRC sets a range for it where risers are solid and treads are shallow; check your local code for the figures.

Worked example: deck 9 feet above grade

You're building a deck 9 feet (108") above grade. Target 7" riser, 11" tread:

  1. Divide 108 ÷ 7 = 15.43 → round to 15 risers
  2. Actual riser = 108 ÷ 15 = 7.2" (under the IRC's 7 3/4" maximum)
  3. Treads = 15 − 1 = 14 treads
  4. Total run = 14 × 11 = 154" = 12 ft 10"
  5. Stringer length = √(108² + 154²) = √(11,664 + 23,716) = 188.1" = 15 ft 8", so buy stringer stock longer than that
  6. Angle = arctan(108 ÷ 154) = 35.0°, under the 37.8° the IRC's riser and tread limits allow

Common stair-building mistakes

  • Inconsistent risers: Top step turning out shorter because you forgot to account for the upper floor's finished surface or decking thickness. The single biggest trip-hazard mistake.
  • Wrong stringer length: Buying lumber shorter than the stair's diagonal. Always compute the diagonal BEFORE buying lumber.
  • Skipping the permit: Ask your building department before building; a permit is far cheaper than tearing out failed work.
  • Forgetting landings: The IRC limits one flight to 151" of rise between floors or landings (2024 IRC figure; the IRC is a model code, so check your local code). A taller rise needs a landing; plan dimensions accordingly.
  • No handrails: The IRC asks for one on flights of 4 or more risers, 34"–38" high, graspable and continuous along the flight (2024 IRC figure; the IRC is a model code, so check your local code).

FAQs

How do I calculate stairs?

Start from the finished floor-to-floor height in inches. Divide it by the riser height you would like, round to a whole number of risers, then divide the height by that whole number to get the real riser. You need one tread fewer than risers, and the tread count times the tread depth is the horizontal space the stair takes.

What's the building code for stairs?

Most US states and cities base their residential rules on the International Residential Code (IRC), a model code they adopt with amendments. Its stairway section (R318.7 in the 2024 edition, R311.7 in 2021) sets risers of at most 7 3/4", treads of at least 10", no more than 3/8" between the tallest and shortest riser in a flight, 6'8" of headroom, a 36" minimum width, and a handrail 34–38" high once a flight has 4 or more risers. These are the 2024 IRC's figures; your local code, often an older edition with amendments, is what the inspector enforces.

What's a comfortable stair angle?

There is no official comfort figure. What the IRC limits do fix is the steepest stair they allow: a 7 3/4" riser on a 10" tread is about 37.8°. Designers also use stride rules of thumb that tie riser to tread (see above); they are conventions, not code.

How long should the stringer be?

By Pythagoras, the stringer spans the square root of rise squared plus run squared. A 108" rise over a 144" run is a 3-4-5 triangle scaled by 36, so the diagonal is exactly 180", or 15 ft. Buy longer stock than the diagonal to allow for the cuts at top and bottom; the lumber size is a structural choice your local code and span tables govern.

How many stairs for an 8-foot ceiling?

An 8 ft floor-to-floor height is 96". Aiming for 7" risers gives 96 ÷ 7 = 13.7, so 14 risers of 6.86" each, and 13 treads. At 10" to 11" per tread that is 130" to 143" of run.

Related

Number of risers

—

Enter total rise

Adjusted riser height—
Number of treads—
Total run—
Stringer length—
Stair angle—
IRC riser/tread limits—

Estimate

  • Checks only the IRC's maximum riser, minimum tread and 151-inch (12 ft 7 in) flight limits, from the 2024 edition. The IRC is a model code that states and cities adopt, often an older edition and with amendments; headroom, width, nosing, handrails and guards are not checked.
  • Assumes total rise is measured finished-floor to finished-floor. Measuring to a subfloor throws every step out.

Stairs are the most common source of serious falls in a home and are inspected for that reason. Have the design checked against your local code.

Full methodology, sources and limitations