Stair Calculator: How to Calculate Risers, Treads, and Stringer Length

Building a staircase takes more than guessing. Every step has to be the same height, deep enough to stand on, and within building code limits. A stair calculator does that math for you. Enter your total rise, and it returns the number of steps, the exact riser height, the tread run, and the stringer length.

This guide explains the stair formulas, the code limits, a comfort rule builders use, and worked examples you can follow for your own project.

What Is a Stair Calculator?

A stair calculator works out the dimensions of a staircase from the total vertical distance it has to cover. The free stair calculator asks for three inputs:

  • Total rise: the floor-to-floor height
  • Target riser height: how tall you’d like each step to be
  • Tread run: the depth of each step

It returns the number of steps, the actual riser height, the number of treads, the total run, and the approximate stringer length.

Stair Terms You Should Know

  • Rise (riser height): the vertical height of a single step
  • Run (tread depth): the horizontal depth of a single step
  • Total rise: the full vertical height from the bottom finished floor to the top finished floor
  • Total run: the full horizontal length of the staircase
  • Stringer: the sloped board that supports the treads and risers

The Stair Calculation Formulas

Here is how to calculate stairs step by step:

  1. Number of risers = Total rise ÷ Target riser height, rounded up
  2. Actual riser height = Total rise ÷ Number of risers
  3. Number of treads = Number of risers − 1
  4. Total run = Number of treads × Tread depth
  5. Stringer length = √(Total rise² + Total run²)

There is always one fewer tread than risers because the top floor acts as the final step.

Stair Calculator Example: 9-Foot Ceiling

Suppose your staircase must cover a total rise of 108 inches (9 feet), you want a riser near 7.5 inches, and you plan on a 10.5-inch tread.

  • Risers: 108 ÷ 7.5 = 14.4, rounded up to 15
  • Actual riser height: 108 ÷ 15 = 7.2 inches
  • Treads: 15 − 1 = 14
  • Total run: 14 × 10.5 = 147 inches (12 ft 3 in)
  • Stringer length: √(108² + 147²) = √33,273 ≈ 182.4 inches (about 15 ft 2 in)

Your actual riser (7.2 in) differs a little from your 7.5-inch target. That’s normal, because the total rise rarely divides evenly. Rounding up the riser count keeps every step at or below your target.

Stair Calculator Example: 8-Foot Rise

Now try a total rise of 96 inches with a 7.5-inch target and a 10-inch tread:

  • Risers: 96 ÷ 7.5 = 12.8, rounded up to 13
  • Actual riser height: 96 ÷ 13 ≈ 7.38 inches (about 7 3/8 in)
  • Treads: 12
  • Total run: 12 × 10 = 120 inches (10 ft)
  • Stringer length: √(96² + 120²) = √23,616 ≈ 153.7 inches (about 12 ft 10 in)

Stair Building Code Requirements

Stair rules vary by location, so always confirm with your local building department. Under the International Residential Code (IRC), which many U.S. jurisdictions adopt with local changes:

Requirement Residential (IRC) Commercial (IBC)
Maximum riser height 7.75 inches 7 inches
Minimum tread depth 10 inches 11 inches
Riser/tread variation Max 3/8 inch within a flight Max 3/8 inch within a flight

Uneven risers are a common inspection failure and a safety hazard, since people adjust to a steady rhythm and trip when it changes.

Code check example: A design with a 7.75-inch riser and a 9.5-inch tread passes on the riser (it’s exactly at the limit) but fails on the tread, which is under the 10-inch minimum. It would not pass inspection.

The Comfort Rule: Beyond Minimum Code

Meeting code doesn’t guarantee stairs that feel natural. Builders often use two rules of thumb:

  • 2R + T rule: twice the riser plus the tread should fall between about 24 and 25 inches
  • R + T rule: riser plus tread should total about 17 to 18 inches

Check the 108-inch example:

  • 2R + T = (2 × 7.2) + 10.5 = 24.9 inches (within range)
  • R + T = 7.2 + 10.5 = 17.7 inches (within range)

That staircase passes both the code limits and the comfort test.

How to Use a Stair Calculator (Step by Step)

  1. Measure total rise from finished floor to finished floor, not subfloor to subfloor, since flooring thickness changes the number.
  2. Choose a target riser height, usually 7 to 7.5 inches for homes.
  3. Choose a tread depth of at least 10 inches (11 or more feels more comfortable).
  4. Enter the values into the stair calculator.
  5. Check the results against local code and the comfort rule.
  6. Adjust and recalculate if the stairs feel too steep or too shallow.

Landings, Handrails, and Special Cases

  • Landings: Codes generally limit how much vertical rise a single flight can have, and a landing is required to break up very tall staircases. Calculate each flight separately.
  • Handrails: Many codes require a handrail once a flight reaches four or more risers.
  • Spiral stairs: These follow separate code rules with different riser and clear-width requirements, so a standard stair calculator is only a starting point.
  • Open risers, winders, and curved stairs: These have extra restrictions, so check local code before designing.

Checklist Before You Cut Any Material

A calculator result is a starting point. Before cutting stringers:

  • Re-measure the total rise, including finished flooring at the top and bottom.
  • Test-fit one stringer before cutting the rest, since floors are rarely perfectly level.
  • Keep every riser the same, within the allowed tolerance, along the entire flight.
  • Account for the first and last step, where tread and flooring thickness can change the riser height.
  • Confirm code requirements for handrails, guards, headroom, and width with your local building department.

Common Stair Calculation Mistakes

  • Measuring from subfloor instead of finished floor
  • Using the number of risers as the number of treads
  • Rounding the riser height instead of rounding the riser count up
  • Choosing a tread under the minimum depth
  • Forgetting to subtract the thickness of the top tread or flooring when laying out the stringer
  • Skipping a test-fit of the first stringer

FAQ: Stair Calculator

How do you calculate the number of steps for stairs?
Divide the total rise by your target riser height and round up. The result is the number of risers.

How many treads are there?
One fewer than the number of risers.

What is the maximum riser height?
Under the IRC, 7.75 inches for residential stairs. Local rules may differ.

What is the minimum tread depth?
10 inches under the IRC for residential stairs.

How do you calculate stringer length?
Use the Pythagorean theorem: the square root of (total rise squared plus total run squared).

Why must all risers be the same height?
Uniform steps prevent trips and falls, and inspectors commonly check for variations over 3/8 inch.

Is the stair calculator free?
Yes. The free stair calculator needs no sign-up.

Related Calculators

Final Thoughts

Good stairs come down to consistent measurements: an accurate total rise, evenly sized risers, and treads that meet code and feel comfortable. A stair calculator handles the math in seconds, so you can focus on building. Run your numbers through the free stair calculator, double-check them against your local code, and test-fit before you cut.

This article is for general information only and is not a substitute for a licensed contractor or structural engineer. Building codes vary by jurisdiction, so confirm requirements with your local building department before construction.