✨ 50+ Free Calculators  —  No Signup Required  —  Fast & Accurate Results

Stair Calculator Number of Steps, Rise and Run

Written by CalculatorSphere Team• Last updated: August 7, 2026How we verify our calculators
Quick Answer: Free stair calculator – find the number of steps, riser height, total run, and stringer length for any staircase. Includes IRC building code compliance check for safe stairs.

Stair Calculator – Number of Steps, Rise & Run

Building a staircase? Our stair calculator finds the ideal number of steps, rise height, and run depth based on your total rise — so your stairs meet building code and feel comfortable to climb.

Stair Calculator

Advertisement

Standard Stair Dimensions (IRC Building Code)

MeasurementIRC Code Requirement
Max Riser Height8.25 inches
Min Riser Height4 inches
Min Tread Depth9 inches
Min Width36 inches
Handrail Height34–38 inches

How to Calculate Stair Rise and Run

Stair layout starts from one measurement: the total rise, which is the vertical distance from the finished floor at the bottom to the finished floor at the top. Everything else follows from it.

1. Number of risers = Total rise / Target riser height, rounded to a whole number
2. Actual riser height = Total rise / Number of risers
3. Number of treads = Number of risers minus 1
4. Total run = Number of treads x Tread depth

Step 3 catches almost everyone. A flight always has one fewer tread than riser, because the upper floor itself acts as the final tread.

Worked example

Total rise of 112 inches, targeting a comfortable 7 inch riser:

  • Risers: 112 / 7 = 16 exactly, so 16 risers
  • Actual riser height: 112 / 16 = 7 inches
  • Treads: 16 – 1 = 15 treads
  • Total run at a 10.5 inch tread: 15 x 10.5 = 157.5 inches, about 13 ft 2 in

If the numbers had not divided evenly, you would round the riser count and recalculate the actual height. For a 113 inch rise, 113 / 7 = 16.14, so you would use 16 risers at 7.06 inches each.

Every riser must be the same height. Building codes allow a maximum variation of only 3/8 inch between the tallest and shortest riser in a flight. Uneven risers are a genuine trip hazard, because people climb stairs on autopilot after the first two steps.
Advertisement

Building Code Limits

DimensionResidential limit (IRC)
Maximum riser height7.75 inches
Minimum tread depth10 inches
Maximum variation between risers3/8 inch
Minimum headroom6 ft 8 in
Minimum stair width36 inches
Handrail height above nosing34 to 38 inches

These are the widely used International Residential Code figures. Local codes vary, and commercial stairs are stricter, so confirm with your building department before cutting anything.

The Comfort Rules

Code sets the legal limits. These three long-standing rules of thumb are what separate stairs that merely pass inspection from stairs that feel right to climb:

  • Riser plus tread = 17 to 18 inches. The simplest check.
  • (2 x Riser) plus tread = 24 to 25 inches. Based on average stride length.
  • Riser x tread = 71 to 74 square inches. The tightest of the three.

A 7 inch riser with a 10.5 inch tread gives 17.5, 24.5 and 73.5, so it satisfies all three. That combination is popular for exactly this reason.

Calculating Stringer Length

The stringer is the sawtooth-cut board carrying the treads. Its length is the diagonal, so it comes from Pythagoras:

Stringer length = square root of (Total rise squared + Total run squared)

For our 112 inch rise and 157.5 inch run: 112 squared is 12,544, 157.5 squared is 24,806, and the square root of 37,350 is about 193 inches, roughly 16 ft 1 in. Buy stock a foot longer than the calculation, since the end cuts consume length.

Common Stair Mistakes

  • Cutting one tread too many. Treads equal risers minus one. This is the classic error.
  • Measuring to the subfloor. Total rise must be measured between finished floor levels. Forgetting a 3/4 inch hardwood layer at the top throws every riser off.
  • Forgetting the stringer drop. The bottom of the stringer is cut down by the thickness of one tread, otherwise the first step ends up taller than the rest.
  • Ignoring headroom. Stairs that fit the floor plan perfectly can still fail on the 6 ft 8 in clearance under the opening above.
Advertisement

Frequently Asked Questions

How do I calculate stair rise and run?

Divide the total rise by your target riser height to get the number of risers, rounding to a whole number, then divide the total rise by that number to get the actual riser height. Treads equal risers minus one. Total run is the number of treads multiplied by tread depth. For a 112 inch rise: 16 risers at 7 inches, 15 treads, and a total run of 157.5 inches at a 10.5 inch tread.

What is the ideal stair riser height?

Around 7 to 7.5 inches is the comfort sweet spot for residential stairs. The IRC maximum is 7.75 inches. Pairing a 7 inch riser with a 10.5 inch tread satisfies all three traditional comfort rules, which is why that combination is so widely used.

Why is the number of treads one less than the number of risers?

Because the upper floor acts as the final tread. If you climb 16 risers, the sixteenth one lands you on the floor above rather than on a step, so you only need 15 actual treads. Cutting 16 treads is the most common stair-building mistake.

What are the stair comfort rules?

Three rules of thumb are used together: riser plus tread should equal 17 to 18 inches, twice the riser plus the tread should equal 24 to 25 inches, and riser multiplied by tread should equal 71 to 74 square inches. A 7 inch riser with a 10.5 inch tread satisfies all three.

What is a stringer and how long should it be?

The stringer is the sawtooth-cut board that supports the treads along each side of the staircase. Its length is the diagonal of the flight, found with Pythagoras: the square root of the total rise squared plus the total run squared. For a 112 inch rise and 157.5 inch run, that is about 193 inches. Buy stock about a foot longer to allow for end cuts.

How much can stair riser heights vary?

Very little. Building codes allow a maximum difference of 3/8 inch between the tallest and shortest riser in a flight. People climb stairs largely on autopilot after the first couple of steps, so an inconsistent riser is a real trip hazard rather than just a cosmetic issue.

What is the minimum headroom for stairs?

6 ft 8 in measured vertically from the tread nosing to the ceiling or opening above, under the IRC. This is easy to overlook, because a staircase can fit the floor plan perfectly and still fail on clearance under the floor opening at the top.

Related Calculators

Advertisement
Advertisement
Advertisement
Scroll to Top