100+ free calculators, no signup | 💰 Financial ❤️ Health & Fitness 📐 Math 🔧 Other
🇺🇸 USD | About Contact

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)
Quick examples
Riser height
7.20in per riserabout 7 3/16 inMeets IRC

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

147 in12 ft 3 in

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).

Stair angle34.4°slope of 68.6% from horizontal
Stringer length182.41 in15 ft 2 7/16 in diagonal, before trimming
Step comfort24.9 in2R + T. Inside the 24 to 25 in comfort range
Stairwell opening131.98 in11 ft 0 in long for 6 ft 8 in headroom
Tread board11.5 in10.5 in tread + 1 in nosing

Your calculation

The same steps the calculator runs, with your numbers.

  1. Risers: 108 ÷ 7.5 = 14.4, rounded up to 15 risers.
  2. Riser height: 108 ÷ 15 = 7.2 in (about 7 3/16 in).
  3. Treads: 15 − 1 = 14. Total run: 14 × 10.5 = 147 in.
  4. Angle: arctan(7.2 ÷ 10.5) = 34.44°.
  5. Stringer: √(147² + 108²) = √33,273 = 182.41 in.
  6. Step comfort: 2 × 7.2 + 10.5 = 24.9 in.
  7. 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.

ItemYour stairCodeResult
Riser height7.2 in7 3/4 in maxMeets
Tread depth10.5 in10 in minMeets
Rise per flight108 in151 in (12 ft 7 in) maxMeets
Stair width36 in36 in minMeets
Nosing1 in3/4 to 1 1/4 inMeets
Handrail15 risersOne side at 4 or more risersRequired

Other riser counts

Same total rise and tread depth with fewer or more risers.

RisersRiser (in)Run (in)AngleRiser limit
138.308 (8 5/16)12638.4°Riser too tall
147.714 (7 11/16)136.536.3°Within limit
166.75 (6 3/4)157.532.7°Within limit
176.353 (6 3/8)16831.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.

Risers = total rise ÷ maximum riser, rounded up Riser height = total rise ÷ risers; treads = risers − 1 Total run = treads × tread depth; angle = arctan(riser ÷ tread) Stringer = √(total run² + total rise²) Example: 108 ÷ 7.5 = 14.4, rounded up to 15 risers 108 ÷ 15 = 7.2 in risers; 15 − 1 = 14 treads 14 × 10.5 = 147 in run (12 ft 3 in); arctan(7.2 ÷ 10.5) = 34.44° √(147² + 108²) = √33,273 = 182.41 in stringer (15 ft 2 7/16 in)

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.

RuleIRC (homes)IBC (commercial)OSHA (workplaces)
Riser height7 3/4 in (196 mm) max4 to 7 in (102 to 178 mm)9 1/2 in max
Tread depth10 in (254 mm) min11 in (279 mm) min9 1/2 in min
Riser and tread variation3/8 in max in a flight3/8 in max in a flightUniform between landings
Width36 in min44 in, or 36 in under 50 occupants22 in min
Headroom6 ft 8 in (2032 mm)80 in (2032 mm)6 ft 8 in
Rise per flight12 ft 7 in (151 in) max12 ft (144 in) maxNot set in 1910.25
Nosing3/4 to 1 1/4 in; not required with 11 in treads3/4 to 1 1/4 in where required; not required with 11 in treadsNot set in 1910.25
Landing depth36 in minStair width, need not exceed 48 in30 in min
HandrailsOne side at 4 or more risers, 34 to 38 in highBoth sides, 34 to 38 in highAs set by 1910.28
Stair angleSet by riser and tread limitsSet by riser and tread limits30 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.

⚠️
Cities and states adopt different code editions and add their own amendments. Treat these numbers as the model code baseline and confirm the edition your building department enforces before you buy material.

How to Calculate Stair Rise and Run Manually

  1. 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.
  2. 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.
  3. Find the exact riser height. Divide the total rise by the whole number of risers.
  4. Count the treads. Subtract one from the riser count.
  5. 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.

Step comfort = 2 × riser + tread Default stair: 2 × 7.2 + 10.5 = 24.9 in Grandjean example: 2 × 17 + 29 = 63 cm; arctan(17 ÷ 29) = 30.4°
RiserTread2R + TAngleMeets
7 3/4 in10 in25.5 in37.8°IRC only (steepest IRC stair)
7 1/2 in10 1/2 in25.5 in35.5°IRC only
7.2 in10 1/2 in24.9 in34.4°IRC only
7 1/4 in11 in25.5 in33.4°IRC only
7 in11 in25 in32.5°IRC and IBC
6 1/2 in12 in25 in28.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.

Opening length = (80 + floor thickness) × tread ÷ riser Floor: 9 1/4 in joist + 3/4 in subfloor + 1/2 in drywall = 10.5 in (80 + 10.5) × 10.5 ÷ 7.2 = 90.5 × 1.4583 = 131.98 in Metric: (2032 + 250) × 270 ÷ 180 = 3,423 mm

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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

Rise 40 in, maximum riser 7.5 in, 11 in treads, nothing overhead 40 ÷ 7.5 = 5.33, rounded up to 6 risers of 6.667 in (6 11/16 in) 5 treads × 11 = 55 in run (4 ft 7 in); angle 31.22° Stringer √(55² + 40²) = √4,625 = 68.01 in (5 ft 8 in); 2R + T = 24.33 in

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

IBC, rise 144 in, maximum riser 7 in, 11 in treads, 44 in wide 144 ÷ 7 = 20.57, rounded up to 21 risers of 6.857 in (6 7/8 in) 20 treads × 11 = 220 in run (18 ft 4 in); angle 31.94° Stringer √(220² + 144²) = √69,136 = 262.94 in; 2R + T = 24.71 in

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

Rise 2700 mm, maximum riser 180 mm, 270 mm treads, 250 mm floor 2700 ÷ 180 = 15 risers of exactly 180 mm; 14 treads × 270 = 3,780 mm run Angle arctan(180 ÷ 270) = 33.69°; 2R + T = 630 mm Stringer √(3780² + 2700²) = 4,645.3 mm; opening 3,423 mm

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.