Stair Calculator
Find the number of steps, exact riser height, total run, stringer length and stairwell opening for any floor to floor rise, checked against IRC or IBC stair rules.
Nosing and headroom (optional)
15 risers and 14 treads climb a total rise of 108 in.
Allowed riser range under the IRC: up to 7 3/4 in. The bar runs from 0 to 10 in.
Total run
14 treads × 10.5 in, measured from the face of the bottom riser to the face of the top riser. Add a landing at the top and bottom: at least 36 in deep in the direction of travel (IRC R311.7.6).
Your calculation
The same steps the calculator runs, with your numbers.
- Risers: 108 ÷ 7.5 = 14.4, rounded up to 15 risers.
- Riser height: 108 ÷ 15 = 7.2 in (about 7 3/16 in).
- Treads: 15 − 1 = 14. Total run: 14 × 10.5 = 147 in.
- Angle: arctan(7.2 ÷ 10.5) = 34.44°.
- Stringer: √(147² + 108²) = √33,273 = 182.41 in.
- Step comfort: 2 × 7.2 + 10.5 = 24.9 in.
- Opening for headroom: (80 + 10.5) × 10.5 ÷ 7.2 = 131.98 in.
Code check
Checked against the 2021 International Residential Code, Section R311.7.
| Item | Your stair | Code | Result |
|---|---|---|---|
| Riser height | 7.2 in | 7 3/4 in max | Meets |
| Tread depth | 10.5 in | 10 in min | Meets |
| Rise per flight | 108 in | 151 in (12 ft 7 in) max | Meets |
| Stair width | 36 in | 36 in min | Meets |
| Nosing | 1 in | 3/4 to 1 1/4 in | Meets |
| Handrail | 15 risers | One side at 4 or more risers | Required |
Other riser counts
Same total rise and tread depth with fewer or more risers.
| Risers | Riser (in) | Run (in) | Angle | Riser limit |
|---|---|---|---|---|
| 13 | 8.308 (8 5/16) | 126 | 38.4° | Riser too tall |
| 14 | 7.714 (7 11/16) | 136.5 | 36.3° | Within limit |
| 16 | 6.75 (6 3/4) | 157.5 | 32.7° | Within limit |
| 17 | 6.353 (6 3/8) | 168 | 31.2° | Within limit |
A planning estimate for one straight flight. Building codes are adopted and amended locally, so confirm the rules with your building department before cutting stringers.
How the Stair Calculator Works
This stair calculator turns one measurement, the total rise from finished floor to finished floor, into a full stair layout. It divides the rise into equal risers no taller than the maximum you set, counts the treads, multiplies out the total run and works out the stair angle, the stringer length and the stairwell opening needed for headroom. It then checks the result against the stair rules of the International Residential Code (IRC) for homes or the International Building Code (IBC) for commercial buildings.
The number of risers must be a whole number, so the calculator rounds up. Rounding up guarantees that the exact riser height never exceeds your maximum. Every riser in the flight comes out identical, which matters because the IRC allows the tallest riser in a flight to exceed the shortest by no more than 3/8 inch.
There is one fewer tread than riser because the top floor acts as the last step. The total run is measured horizontally from the face of the bottom riser to the face of the top riser and does not include the nosing overhang or the landings. US results also show the nearest 1/16 inch, the mark you would set on a tape measure.
Stair Code Requirements: IRC, IBC and OSHA
Three sets of rules cover most stairs in the United States. The IRC applies to one and two family homes and townhouses, the IBC applies to commercial and public buildings, and OSHA 1910.25 applies to stairs in general industry workplaces. The table lists the limits from the 2021 IRC and IBC and the current OSHA standard.
| Rule | IRC (homes) | IBC (commercial) | OSHA (workplaces) |
|---|---|---|---|
| Riser height | 7 3/4 in (196 mm) max | 4 to 7 in (102 to 178 mm) | 9 1/2 in max |
| Tread depth | 10 in (254 mm) min | 11 in (279 mm) min | 9 1/2 in min |
| Riser and tread variation | 3/8 in max in a flight | 3/8 in max in a flight | Uniform between landings |
| Width | 36 in min | 44 in, or 36 in under 50 occupants | 22 in min |
| Headroom | 6 ft 8 in (2032 mm) | 80 in (2032 mm) | 6 ft 8 in |
| Rise per flight | 12 ft 7 in (151 in) max | 12 ft (144 in) max | Not set in 1910.25 |
| Nosing | 3/4 to 1 1/4 in; not required with 11 in treads | 3/4 to 1 1/4 in where required; not required with 11 in treads | Not set in 1910.25 |
| Landing depth | 36 in min | Stair width, need not exceed 48 in | 30 in min |
| Handrails | One side at 4 or more risers, 34 to 38 in high | Both sides, 34 to 38 in high | As set by 1910.28 |
| Stair angle | Set by riser and tread limits | Set by riser and tread limits | 30 to 50 degrees |
The IRC measures headroom vertically from a sloped line through the tread nosings, and the 36 inch width is the clear width above handrail height. A handrail may reduce the width at and below handrail height to 31 1/2 inches with a rail on one side, or 27 inches with rails on both sides. The IBC lets stairs serving fewer than 50 occupants narrow to 36 inches, which the calculator flags as "Under 50 occupants only" instead of a failure.
How to Calculate Stair Rise and Run Manually
- Measure the total rise. Measure plumb from the finished floor at the bottom to the finished floor at the top, at the spot where the stair will land. Floors are rarely level, so do not measure at a different point in the room.
- Divide by the maximum riser. Use 7.75 inches for the IRC limit, 7 inches for the IBC, or a lower number for a gentler stair, and round the answer up to a whole number of risers.
- Find the exact riser height. Divide the total rise by the whole number of risers.
- Count the treads. Subtract one from the riser count.
- Multiply out the run. Multiply the tread count by the tread depth, then add landing space at each end.
Take a 10 foot ceiling over a floor system 10.5 inches thick. The floor to floor rise is 120 + 10.5 = 130.5 inches. At the IRC maximum, 130.5 ÷ 7.75 = 16.84, so 17 risers of 7.68 inches (about 7 11/16 inches) and 16 treads. With 10 inch treads the run is 160 inches, or 13 feet 4 inches. A 7.5 inch maximum gives 18 risers of exactly 7.25 inches and 17 treads, which needs 170 inches, or 14 feet 2 inches, of floor space with the same treads.
Each extra riser adds one tread to the run. That trade between a shorter, steeper stair and a longer, gentler one appears in the "Other riser counts" table of the results.
Comfortable Stair Dimensions and the 2R + T Rule
Code limits set the steepest legal stair, not the most comfortable one. A long standing rule of thumb links the riser and tread to the length of a normal walking stride. NIST Technical Note 1623 describes Blondel's formula, in which twice the riser plus the tread equals 24 inches, and notes that the common US "7/11" stair satisfies 2R + G = 635 mm, or 25 inches. The National Bureau of Standards publication Guidelines for Stair Safety cites Grandjean's version, 2r + t = 63 cm (24.8 inches), with 17 cm risers and 29 cm treads.
| Riser | Tread | 2R + T | Angle | Meets |
|---|---|---|---|---|
| 7 3/4 in | 10 in | 25.5 in | 37.8° | IRC only (steepest IRC stair) |
| 7 1/2 in | 10 1/2 in | 25.5 in | 35.5° | IRC only |
| 7.2 in | 10 1/2 in | 24.9 in | 34.4° | IRC only |
| 7 1/4 in | 11 in | 25.5 in | 33.4° | IRC only |
| 7 in | 11 in | 25 in | 32.5° | IRC and IBC |
| 6 1/2 in | 12 in | 25 in | 28.4° | IRC and IBC |
The calculator reports 2R + T in the Step comfort tile and says whether it falls inside the 24 to 25 inch band (610 to 635 mm) spanned by Blondel's formula and the 7/11 stair. A value outside the band is still legal if the riser and tread meet code. It simply means the stride differs from these traditional proportions.
Headroom and Stairwell Opening Size
When a stair climbs through a floor, the opening in that floor must be long enough to keep 6 feet 8 inches of headroom above the nosing line. The nosing line drops one riser for every tread you move down the stair, while the ceiling under the upper floor stays level. Headroom is reached where the drop equals 80 inches plus the floor thickness.
The opening is measured horizontally from the top riser back toward the bottom of the stair. In the default example it is about 11 feet long, while the stair itself runs 12 feet 3 inches, so the floor above may extend over the bottom 15 inches of the run. If the calculated opening is longer than the run, the floor above cannot cover any part of the stair. For an outdoor deck stair with nothing overhead, leave the floor thickness blank and the opening tile disappears.
Cutting Stair Stringers
A stringer is the notched board that carries the treads. Its length is the diagonal of a right triangle whose legs are the total run and the total rise, which is why the calculator uses the Pythagorean theorem. Buy stock longer than the result so there is room for the top connection and the bottom cut.
- Set a framing square on the board with the riser height on the tongue and the tread depth on the blade, for example 7 3/16 inches and 10 1/2 inches.
- Trace the notch, then slide the square along the edge so the next riser mark starts where the last tread mark ends. Repeat once for each riser.
- Cut the bottom of the stringer shorter by one tread thickness. With 1 inch treads and 7.2 inch risers, the bottom notch is 6.2 inches tall, so the first finished step matches the rest after the treads go on.
- Cut one stringer, test it in place, and use it as the pattern for the others.
Tread boards are deeper than the tread depth by the nosing projection. A 10.5 inch tread with a 1 inch nosing needs an 11.5 inch board, which the calculator shows in the Tread board tile.
How to Use the Calculator
- Units and code. Pick inches or millimeters, then IRC for a house or IBC for a commercial stair.
- Total rise. The finished floor to finished floor height.
- Maximum riser. The tallest riser you accept. The result is equal or lower.
- Tread depth. The run of each step, not counting the nosing.
- Width, nosing and floor thickness. Used for the code check, the tread board and the opening.
Common Mistakes
- Measuring to the subfloor. Adding 3/4 inch flooring at the top later makes the top riser 3/4 inch taller than the rest, twice the 3/8 inch tolerance.
- Counting treads as risers. A 15 riser stair has 14 treads.
- Rounding the riser count down. 108 ÷ 7.75 = 13.94; 13 risers would be 8.31 inches each.
- Forgetting landings. The total run excludes the landing at each end.
- Treating 6 ft 8 in as ceiling height. Headroom is measured from the nosing line.
Deck, Commercial and Metric Examples
Deck stair, 40 inch rise
With six risers the IRC handrail rule applies, because a rail is required on at least one side of any flight with four or more risers. The 11 inch tread also means a nosing is not required.
Commercial stair, 12 foot rise
A rise of exactly 144 inches is the most the IBC allows in a single flight. Anything taller needs an intermediate landing, and the calculator marks the rise per flight row "Add a landing".
Metric stair, 2700 mm rise
The metric limits come from the dimensions printed in the codes: 196 mm risers and 254 mm treads for the IRC, and 102 to 178 mm risers with 279 mm treads for the IBC. The Tight space example shows a failing layout: 9 inch treads under 7.71 inch risers give a 40.6 degree stair that is 1 inch short of the IRC tread minimum.
Frequently Asked Questions
How many stairs do I need for a 9 foot rise?
A 9 foot rise is 108 inches from finished floor to finished floor. Divide it by the largest riser you will accept and round up. Under the IRC limit of 7 3/4 inches, 108 ÷ 7.75 = 13.94, so the minimum is 14 risers of 7.71 inches, about 7 11/16 inches each, with 13 treads. With a 7 1/2 inch target you get 15 risers of 7.2 inches and 14 treads. At 10 1/2 inch treads, 14 treads need a total run of 147 inches, or 12 feet 3 inches. The tread count is always one less than the riser count.
What is the maximum riser height for stairs?
In homes built under the 2021 International Residential Code, a riser can be no taller than 7 3/4 inches (196 mm), and the tallest riser in a flight may exceed the shortest by no more than 3/8 inch. Commercial and public buildings under the International Building Code need risers from 4 to 7 inches (102 to 178 mm). OSHA allows up to 9 1/2 inches on standard stairs in general industry workplaces. Local codes can change these numbers, so confirm the edition your building department enforces before you cut stringers.
What is the minimum tread depth for stairs?
The 2021 IRC requires a tread depth of at least 10 inches (254 mm), measured horizontally from nosing to nosing, with no more than 3/8 inch variation within a flight. Treads under 11 inches also need a nosing that projects 3/4 to 1 1/4 inches. The IBC requires at least 11 inches (279 mm) for commercial stairs, and OSHA sets 9 1/2 inches for standard workplace stairs. Tread depth excludes the nosing, so a 10 inch tread with a 1 inch nosing uses an 11 inch tread board.
How do you calculate stair rise and run?
Measure the total rise from the finished floor at the bottom to the finished floor at the top. Divide it by your maximum riser height and round up to get the number of risers, then divide the total rise by that whole number to get the exact riser height. The number of treads is one less than the number of risers, and the total run is the tread count times the tread depth. Example: 108 ÷ 7.5 = 14.4, so use 15 risers of 7.2 inches, then 14 × 10.5 = 147 inches of run.
How much headroom is required for stairs?
Both the IRC and the IBC require at least 6 feet 8 inches (80 inches, 2032 mm) of headroom, measured vertically from a sloped line through the tread nosings to the ceiling or soffit above. OSHA uses the same 6 feet 8 inches for workplace stairs. To size a stairwell opening, add the floor thickness to 80 inches, multiply by the tread depth and divide by the riser height. With a 10.5 inch floor, 7.2 inch risers and 10.5 inch treads, the opening must be at least 131.98 inches, or about 11 feet long.
What is the best angle for stairs?
The steepest stair the IRC allows, 7 3/4 inch risers on 10 inch treads, rises at 37.8 degrees. The 7 inch riser and 11 inch tread allowed by the IBC is 32.5 degrees. OSHA permits standard workplace stairs from 30 to 50 degrees from horizontal. For comfort, a stair safety study from the National Bureau of Standards cites Grandjean's rule that twice the riser plus the tread should equal 63 cm, and its 17 cm riser and 29 cm tread example works out to about 30 degrees. A lower angle needs a longer total run.
Sources & References
- International Code Council. 2021 International Residential Code, Chapter 3: Building Planning, Section R311.7 Stairways (width, headroom, rise per flight, risers, treads, nosings, landings, handrails). codes.iccsafe.org
- City of Fort Smith, Arkansas. 2021 IRC Code and Commentary excerpt, Section R311.7 (published code text with commentary). fortsmithar.gov
- City of Bath, Maine, Codes Department. Commercial and Multi Family Stairways: General Requirements, 2021 International Building Code (IBC 1011 and 1014 riser, tread, uniformity, width, headroom, nosing, landing, vertical rise and handrail rules). cityofbathmaine.gov
- UpCodes. 2021 IBC Section 1011.5.2 Riser Height and Tread Depth (4 inch minimum and 7 inch maximum riser, 11 inch minimum tread). up.codes
- U.S. Occupational Safety and Health Administration. 29 CFR 1910.25 Stairways (angle, riser, tread, width, headroom and landing limits for general industry). osha.gov
- Bukowski, R. W. Emergency Egress from Buildings, NIST Technical Note 1623, 2009 (Blondel's formula and the 7/11 stair). nist.gov
- Archea, J., Collins, B. L. and Stahl, F. I. Guidelines for Stair Safety, NBS Building Science Series 120, 1979 (Grandjean's 2r + t = 63 cm rule). doi.org
Results are planning estimates for a single straight flight and do not replace review by your local building official. Every number on this page was recomputed with the same formulas the calculator uses. Methodology reviewed: 2026.