Stair Calculator

Calculate stair dimensions including rise, run, angle, and stringer length for any staircase.

Inputs

The step count is the whole number of risers nearest to total rise ÷ desired rise, but never fewer than the smallest count that keeps each riser at or under 7¾ in (IRC R311.7.5.1).

Steps
14
Rise per Step
7.71 in
Angle
39.72°
Total Run
130.00 in
Stringer Length
169.01 in
Total Rise
108.00 in

Results & Code Reference

DimensionValueCode LimitPass?
Rise per Step7.71 in7¾" max (IRC R311.7.5.1)✓
Tread Depth10.00 in10" min (IRC R311.7.5.2)✓
Angle39.72°30°–50° recommended✓

Standard Stair Guidelines

Figures are from the International Residential Code (R311.7) and OSHA 29 CFR 1910.25. The IRC sets a maximum riser height but no minimum. Local amendments and other codes differ, so check your local building code before you build.

DimensionIRC (one- and two-family homes)OSHA 1910.25 (general industry)
Max Rise7¾"9½"
Min Tread10"9½"
Riser variation in a flight3/8" maxsee standard
Min Width36"22"
Headroom6'8"see standard
Handrail height34"–38"see standard

A deck 40 inches above the ground with a 7.5-inch target riser looks like 5 steps, since 40 / 7.5 = 5.33 rounds to 5. Five steps would mean 8.00-inch risers, over the 7 3/4 inch limit in the International Residential Code, so the page does not accept that count. It raises the answer to 6 steps of 6.67 inches and prints a line under the Solve by menu saying so. That rule, nearest whole number but never fewer steps than the code maximum allows, is the heart of this page, and the sections below show it with real numbers.

How a total rise becomes steps, run, angle and stringer

In Desired Rise per Step mode: Steps = the larger of (Total Rise / Desired Rise, rounded to the nearest whole number) and (Total Rise / 7.75, rounded up). Rise per Step = Total Rise / Steps. In Number of Steps mode you type the count and only the division is done, with no raising. Then Total Run = (Steps - 1) x Tread, because the floor above acts as the last tread. Angle = arctan(Total Rise / Total Run), and Stringer Length = the square root of Total Rise squared + Total Run squared. Values show to two decimals.

Defaults first: Total Rise 108, Desired Rise 7.5, Tread 10 inches. 108 / 7.5 = 14.4 rounds to 14, and 108 / 7.75 = 13.94 rounds up to 14, so 14 steps. Rise per Step = 108 / 14 = 7.71 in, Total Run = 13 x 10 = 130 in, Angle = arctan(108 / 130) = 39.72 degrees, Stringer = the square root of 108 squared + 130 squared = 169.01 in, about 14 ft 1 in. A 36-inch deck gives 36 / 7.5 = 4.8, so 5 steps of 7.20 in, run 40 in, angle 41.99 degrees and stringer 53.81 in, with three green checks.

When the code floor takes over. The 40-inch deck: 40 / 7.5 rounds to 5, but 40 / 7.75 = 5.16 rounds up to 6, so the page uses 6 steps, Rise per Step 6.67 in, Total Run 50 in, Angle 38.66 degrees and Stringer 64.03 in. Another case is Total Rise 120 with Desired Rise 9: 120 / 9 = 13.3 gives 13, the floor is 16, and the page shows 16 steps of 7.50 in with the note "Here that raised the count from 13 to 16 steps." Solve by Number of Steps instead and enter 5 for the 40-inch deck: the riser becomes 8.00 in and the Pass column shows a red cross.

Metres. Switching Units to Meters / cm converts what is typed, so the defaults become Total Rise 2.743, Desired Rise 0.191 and Tread 0.254. The answer is the same 14 steps, 39.72 degrees and a Total Run of 3.30 m, with a stringer of 4.29 m. Rise per Step shows 0.20 m because only two decimals are printed (7.71 in is about 0.196 m), so read heights in inches or work in centimetres if you need finer values. Rise plus tread of 17.71 in sits inside the traditional 17 to 18 inch rule of thumb, which is not a code requirement.

How to Use This Calculator

  1. Choose Units: Inches / Feet or Meters / cm. Changing it converts the numbers already typed rather than clearing them.
  2. Set Solve by to Desired Rise per Step (default) or Number of Steps.
  3. Enter Total Rise, the vertical distance from the lower finished surface to the upper one (default 108), and either Desired Rise per Step (default 7.5) or Number of Steps (default 14).
  4. Enter Tread Depth / Run (default 10). If the box is empty or zero the page uses 10 inches.
  5. Read Steps, Rise per Step, Angle, Total Run, Stringer Length and Total Rise, then the Pass column: Rise per Step 7 3/4 in maximum, Tread Depth 10 in minimum, Angle 30 to 50 degrees. Everything updates as you type; there is no Calculate button.

Frequently Asked Questions

What do the checkmarks in the code table actually test?

Riser at most 7 3/4 inches (IRC R311.7.5.1), tread at least 10 inches (R311.7.5.2) and an angle between 30 and 50 degrees. It is a quick screen only; the IRC also limits riser variation within a flight to 3/8 inch, which the page does not check.

Does the IRC have a minimum riser height?

No. The IRC sets a maximum riser of 7 3/4 inches but no minimum. The page adds a note in the Rise per Step row when the riser falls under 4 inches, suggesting you check local code.

The answer shows 14 steps. Is that 14 treads?

No. Steps counts risers. Because the top step is the upper floor, a staircase with 14 risers has 13 treads, which is why Total Run is 13 times the tread.

I asked for 9-inch risers and the page gave me 7.50. Is it wrong?

No. In Desired Rise per Step mode it never lets a riser exceed 7 3/4 inches, so it raises the count of steps and the line under the Solve by menu tells you by how many.

Can I trust this for a permit drawing?

Treat it as a planning aid. Local amendments and other codes differ, and OSHA 1910.25 has its own figures for general industry, so confirm with your local building department.