Stair Calculator
To find your number of stairs, divide the total rise in inches by a target riser height and round up. A 9 foot rise at a 7 1/2 inch target takes 15 risers of 7.20 inches and 14 treads.
Find Your Stair Layout
Enter the total rise from finished floor to finished floor, then your target riser and tread run.
15 risers
each 7.20 in tall, about 7 3/16 in, with 14 treads between the floors.
Total run 11 ft 8 in, stair angle 35.8 degrees
Material List
These figures lay out the stair. Measure on site before you cut a stringer.
How It Works
Measure the total rise from the finished floor at the bottom to the finished floor at the top. The calculator divides that by your target riser and rounds up, since you cannot build part of a step and rounding down makes every riser taller. It then divides the total rise by that whole number, so all the risers come out equal.
Risers = total rise / target riser, rounded upRiser height = total rise / risersTreads = risers minus 1Total run = treads x tread runStringer diagonal = square root of (total rise x total rise + total run x total run)First riser on stringer = riser height minus tread thicknessStair angle = arctangent of (riser height / tread run)The top floor acts as the last tread, so there is always one fewer tread than risers. Fine Homebuilding says to deduct one tread thickness from the first riser, or that step will end up higher than the rest. It also says to add the thickness of the finished floor to the riser if the flooring is not installed yet.
Worked Example
Here is the math for a stair with a 9 foot total rise, a 7 1/2 inch target riser, a 10 inch tread run, and 1 1/2 inch treads.
- 9 ft x 12 = 108 in of total rise
- 108 in / 7.5 in = 14.4, rounded up to 15 risers
- 108 in / 15 = 7.20 in per riser
- 15 risers minus 1 = 14 treads
- 14 x 10 in = 140 in of total run, or 11 ft 8 in
- Square root of (108 x 108 + 140 x 140) = 176.82 in of diagonal, about 14 ft 9 in
- 7.20 in minus 1.5 in = 5.70 in for the first riser on the stringer
The calculator shows a stair angle of 35.8 degrees for this layout. With 12 to 18 inches added for waste, the stringer stock comes to about 15 ft 9 in to 16 ft 3 in.
Stair Counts by Total Rise
These counts use a 7 1/2 inch target riser, so a different target changes them. A 10 foot rise is the one row here that lands exactly on the target.
| Total Rise | Risers | Riser Height | Treads | Total Run at 10 in | Total Run at 11 in |
|---|---|---|---|---|---|
| 3 ft | 5 | 7.20 in | 4 | 3 ft 4 in | 3 ft 8 in |
| 4 ft | 7 | 6.86 in | 6 | 5 ft 0 in | 5 ft 6 in |
| 6 ft | 10 | 7.20 in | 9 | 7 ft 6 in | 8 ft 3 in |
| 8 ft | 13 | 7.38 in | 12 | 10 ft 0 in | 11 ft 0 in |
| 9 ft | 15 | 7.20 in | 14 | 11 ft 8 in | 12 ft 10 in |
| 10 ft | 16 | 7.50 in | 15 | 12 ft 6 in | 13 ft 9 in |
| 11 ft | 18 | 7.33 in | 17 | 14 ft 2 in | 15 ft 7 in |
| 12 ft | 20 | 7.20 in | 19 | 15 ft 10 in | 17 ft 5 in |
Rise and Run Rules of Thumb
The Journal of Light Construction says a safe and comfortable rise is between 7 and 8 inches. Swanson Tool gives three quick checks: rise plus run of 17 to 18 inches, two risers plus one run of 24 to 25 inches, and rise times run of 72 to 76 inches. The worked example comes to 17.2, 24.4, and 72.0, so it falls inside all three.
This table shows the stair angle for common pairs, in degrees. A taller riser or a shorter run makes the stair steeper.
| Riser Height | 10 in Run | 10 1/2 in Run | 11 in Run | 12 in Run |
|---|---|---|---|---|
| 7 in | 35.0 | 33.7 | 32.5 | 30.3 |
| 7 1/4 in | 35.9 | 34.6 | 33.4 | 31.1 |
| 7 1/2 in | 36.9 | 35.5 | 34.3 | 32.0 |
| 7 3/4 in | 37.8 | 36.4 | 35.2 | 32.9 |
Model Code Limits to Compare
These figures come from Section R311.7 of the 2021 International Residential Code, or IRC. They are model code values and not your local rules, and this calculator does not approve a stair.
| Item | 2021 IRC | Section |
|---|---|---|
| Maximum riser height | 7 3/4 in | R311.7.5.1 |
| Largest riser difference in a flight | 3/8 in | R311.7.5.1 |
| Minimum tread depth | 10 in | R311.7.5.2 |
| Nosing projection | 3/4 to 1 1/4 in | R311.7.5.3 |
| Minimum clear width | 36 in above the handrail; at and below it, 31 1/2 in with one handrail or 27 in with two | R311.7.1 |
| Minimum headroom | 6 ft 8 in | R311.7.2 |
| Maximum rise of one flight | 12 ft 7 in | R311.7.3 |
| Minimum landing depth, straight run | 36 in | R311.7.6 |
| Handrail height | 34 to 38 in | R311.7.8.1 |
The code calls for a handrail on at least one side of a flight with four or more risers, and the nosing is not required where the tread depth is at least 11 inches. The 2024 IRC keeps the same riser, tread, width, headroom, and flight rise limits in Section R318.7.
Local rules can differ. The Journal of Light Construction notes that the riser limit can vary by state, and the National Association of Home Builders recommends that state and local governments set residential stair limits at a riser of no more than 8 1/4 inches and a tread of no less than 9 inches, or keep the limits in their legacy codes. Workplaces follow other rules, and OSHA allows standard stairs a riser up to 9.5 inches, a tread of at least 9.5 inches, and an angle of 30 to 50 degrees.
Cutting the Stringers
The Journal of Light Construction says most open stringers are cut from 2×12 stock. Fine Homebuilding says to leave at least 5 inches of stock behind the notches, and the Journal of Light Construction measures that uncut depth to the saw kerf.
The stock length above says nothing about strength. For deck stairs, the Journal of Light Construction gives a 2×12 stringer a maximum recommended unsupported span of 6 feet, and it says overspanned stringers can be repaired with intermediate support posts, so plan support for a long flight.
Frequently Asked Questions
These cover the questions that come up most often.
How Many Steps Do I Need for a 9 Foot Rise?
A 9 foot rise is 108 inches. At a 7 1/2 inch target, that takes 15 risers of 7.20 inches and 14 treads. At the 7 3/4 inch maximum in the 2021 IRC, it takes 14 risers of 7.71 inches and 13 treads.
What Is the Maximum Stair Riser Height?
The 2021 IRC sets the riser height at not more than 7 3/4 inches, and the tallest riser in a flight can exceed the shortest by no more than 3/8 inch. Your local code can differ, so check with your building department.
How Deep Should Stair Treads Be?
The 2021 IRC sets the tread depth at not less than 10 inches, measured from nosing to nosing. It also calls for a nosing of 3/4 inch to 1 1/4 inches, unless the tread depth is at least 11 inches.
Why Are There Fewer Treads Than Risers?
The floor at the top serves as the last step, so a stair always has one fewer tread than risers. That is why total run uses the tread count and not the riser count.
How Do I Measure Total Rise?
Measure from the finished floor at the bottom to the finished floor at the top. For a deck, the Journal of Light Construction says to measure to the elevation of the actual landing spot, which is not necessarily straight down from the deck, since the ground may slope away.
How Long Should a Stair Stringer Be?
Take the square root of the total rise squared plus the total run squared, then add 12 to 18 inches for waste, as Swanson Tool suggests. For a 108 inch rise and a 140 inch run, the diagonal is 176.82 inches, or about 14 ft 9 in.
Sources
Every figure on this page comes from the sources below, or from the math shown.
- International Code Council, 2021 International Residential Code, Section R311.7 Stairways
- International Code Council, 2024 International Residential Code, Section R318.7 Stairways
- OSHA, 29 CFR 1910.25 Stairways
- Journal of Light Construction, Stair Stringers: Calculation and Layout
- Journal of Light Construction, Avoiding Deck Stair Defects
- Journal of Light Construction, Better Stair Stringer Layout
- Fine Homebuilding, Laying Out Basic Stair Stringers
- Swanson Tool Co., Stair Stringer Layout
- National Association of Home Builders, Stair Geometry Standards
- Photo: Neoclassicism Enthusiast, Interior of the Mița the Cyclist House, Bucharest, CC0, Wikimedia Commons
This result is an estimate. Check your measurements before you order. If we got something wrong, please contact us.