Stair Calculator

How many steps does a staircase need? Enter the total rise and the tread depth you want, and get the number of risers, the riser height, the total run, the stringer length and the stair angle, with a warning if a step is outside the IRC limits.

Enter your measurements

Units

The vertical height from the bottom surface to the top surface the stairs reach. A typical 8 ft ceiling floor-to-floor rise is about 105 to 110 in.

The IRC minimum is 10 in, measured nosing to nosing.

Leave blank and the calculator picks the fewest risers that keep each one at 7 3/4 in or less. Enter a number to test your own layout.

You need

14 risers

7.71 in each · 13 treads of 10 in

Stair layout
Total rise108 in
Risers (steps up)14 (fewest at 7 3/4 in or less)
Riser height7.71 in
Treads (risers minus 1)13
Tread depth10 in
Total run130 in (10.83 ft)
Stringer length169.01 in (14.08 ft)
Stair angle39.7°

These dimensions are within the IRC limits for residential stairs: a riser of 7 3/4 in or less and a tread of 10 in or more.

Formula: risers = total rise ÷ 7.75 in, rounded up; riser height = total rise ÷ risers; run = (risers − 1) × tread depth; stringer = √(rise² + run²). Cut the stringer from a board longer than this length. Your local code may differ, so check it, and keep every riser within 3/8 in of the others.

How to calculate stair rise and run

The total rise is the vertical distance from the lower surface to the upper surface, measured from finished floor to finished floor or to the top of the deck. Every step up is a riser, and the height of each riser is the total rise divided by the number of risers. Residential building codes limit that height, so the calculator starts from the limit.

Risers = total rise ÷ 7.75 in, rounded up
Riser height = total rise ÷ risers
Treads = risers − 1
Total run = treads × tread depth
Stringer length = √(total rise² + total run²)

The International Residential Code (section R311.7.5) sets a maximum riser height of 7 3/4 inches and a minimum tread depth of 10 inches, and it limits the difference between the tallest and shortest riser in a flight to 3/8 inch. A stair has one tread fewer than risers, because the upper floor or deck acts as the top step. Your local code may be stricter or differ, so check it before you cut a stringer.

Worked example: a total rise of 108 inches

A floor-to-floor rise of 108 inches (9 ft) with 10-inch treads:

  • Risers: 108 ÷ 7.75 = 13.9, which rounds up to 14 risers
  • Riser height: 108 ÷ 14 = 7.714 inches, under the 7 3/4-inch maximum
  • Treads: 14 − 1 = 13 treads, so the total run is 13 × 10 = 130 inches, or 10 ft 10 in
  • Stringer: √(108² + 130²) = 169.0 inches, about 14 ft 1 in, so the stringer needs a board at least 16 ft long
  • Angle: the stair climbs at about 39.7 degrees

Mark and cut every step from the same layout so that all risers are equal. If you want a gentler stair, use a deeper tread, which lengthens the run. Make sure there is space for the run before you commit to a layout.

Stair layouts for common rises

The table lists the fewest risers that keep every riser at 7 3/4 inches or less, with 10-inch treads.

Stair layouts for common total rises (10 in treads)
Total riseRisersRiser heightTreadsTotal runStringer length
24 in46 in330 in38.4 in
36 in57.2 in440 in53.8 in
48 in76.86 in660 in76.8 in
60 in87.5 in770 in92.2 in
72 in107.2 in990 in115.3 in
84 in117.64 in10100 in130.6 in
96 in137.38 in12120 in153.7 in
108 in147.71 in13130 in169 in

You can enter your own number of risers to test a layout. If the riser comes out taller than 7 3/4 inches or the tread shallower than 10 inches, the calculator flags it. Measuring a deck or porch height? The deck board calculator covers the boards, and the slope calculator turns a rise and a run into a percent grade if you are planning a ramp instead.

What to check before you build

This calculator checks the riser height and tread depth against the IRC limits. It does not check headroom, handrails, guards, landings, stair width, nosing, or the strength of the stringer, and building codes regulate those items closely for safety. Measure the total rise after the finished surfaces are in place, because flooring and decking change the height. Two stringers are usually not enough for wide treads, so ask your lumber supplier about the number and size of stringers, and confirm the permit and inspection rules with your local building department.

Stair Calculator FAQ

How many steps do I need for a rise of 108 inches?

You need 14 risers, each 7.714 inches high, with 13 treads between them. The upper floor is the last step, which is why a stair has one tread fewer than risers.

What is the maximum riser height?

The International Residential Code, section R311.7.5, sets a maximum of 7 3/4 inches for residential stairs, with at most 3/8 inch of difference between risers in one flight. Your local code governs, so check it.

What is the minimum tread depth?

The IRC minimum is 10 inches for residential stairs. A deeper tread gives a gentler stair, but it also needs more horizontal space for the total run.

How do I calculate the length of a stair stringer?

Use the Pythagorean theorem with the total rise and the total run: the stringer is the square root of rise squared plus run squared. Allow extra length for the cuts at both ends, since the board is wider than the stair line.

Does the calculator check my local building code?

It checks the IRC riser and tread limits only. Handrails, headroom, landings, guards and the framing are not included, so confirm the rules with your local building department before you build.

Guides

Last updated . Free to use, no sign-up. How we check our numbers.