Stair Calculator

Enter the total height from floor to floor and the tread depth you want. You get the number of steps, the exact riser height, the total run and a diagram.

in
Measure from the finished lower floor to the finished upper floor. 9 ft = 108 in.
in
7 3/4 in under the US residential code.
in
At least 10 in under the US residential code.

Enter your numbers to see the result.

Advertisement

How to use the stair calculator

  1. Measure the total rise: the height from the finished lower floor to the finished upper floor (or deck surface).
  2. Enter the tallest riser you want. 7.75 inches is the maximum in the US residential code; 7 to 7.5 inches is more comfortable.
  3. Enter the tread depth, the horizontal distance from one step's edge to the next. The code minimum is 10 inches.

The calculator picks the smallest number of risers that keeps each one under your maximum, then makes all risers the same height.

Advertisement

The stair formulas

Risers = total rise ÷ maximum riser height, rounded up
Riser height = total rise ÷ risers
Treads = risers − 1
Total run = treads × tread depth

There is one tread fewer than risers because the top step is the upper floor itself.

Worked example

A floor-to-floor height of 108 inches (9 feet), a maximum riser of 7.75 inches and 10 inch treads:

  • Risers: 108 ÷ 7.75 = 13.9, rounded up to 14 risers
  • Riser height: 108 ÷ 14 = 7.71 inches (about 7 11/16 in)
  • Treads: 14 − 1 = 13 treads
  • Total run: 13 × 10 = 130 inches (10 ft 10 in)
  • Diagonal length: √(108² + 130²) = about 169 inches
  • Angle: about 39.7°

US residential stair rules

The International Residential Code (IRC), which most US states and towns adopt, sets these limits for ordinary stairs:

Rule Limit
Riser height 7 3/4 inches maximum
Tread depth 10 inches minimum
Difference between risers or treads in one flight 3/8 inch maximum
Headroom 6 feet 8 inches minimum
Width 36 inches minimum

Many places amend these rules, and decks and commercial buildings can have different ones. Check with your local building department before you build.

What makes stairs comfortable

A common rule of thumb is that twice the riser plus the tread should be about 24 to 25 inches. A 7.5 inch riser with a 10 inch tread gives 25. Stairs between about 30° and 37° feel natural for most people; steeper stairs feel like a ladder.

If the angle comes out too steep, use deeper treads or more, shorter risers. That makes the total run longer, so check you have the floor space.

Stringer length

The diagonal length shown is the line from the bottom nosing to the top floor. Cut stringers need extra length for the bottom cut and the top connection, so buy boards at least a foot or two longer and lay out the cuts with a framing square.

For the lumber itself, use the board foot calculator.

Frequently asked questions

How do I calculate the number of stairs I need?

Divide the total rise in inches by your maximum riser height and round up. For a 108 inch rise and a 7.75 inch maximum riser, that is 14 risers and 13 treads.

What is the maximum stair riser height?

7 3/4 inches under the International Residential Code used in most of the US. Local codes can differ, so check with your building department.

What is the minimum tread depth for stairs?

10 inches under the International Residential Code, measured from the edge of one tread to the edge of the next.

Why is there one fewer tread than risers?

The top riser leads onto the upper floor or deck, which acts as the last step, so it does not need its own tread.

How long should a stair stringer be?

At least the diagonal length shown here, which is the square root of rise squared plus run squared. Buy boards a foot or two longer to allow for the cuts at the top and bottom.

Results are estimates for planning. Material weights, coverage and sizes vary by product, so confirm quantities with your supplier before you order.

Embed this calculator on your site

Free for blogs, schools and teachers. Paste this code into any page. Keep the credit line under the calculator.

Preview