Stair Calculator
A 108 in rise splits into 14 risers of 7.714 in, 13 treads and a 136.5 in run under the 7.75 in IRC limit. Enter your rise, pick IRC, IBC or custom limits, and the calculator lays out the flight.
Measure the total rise, the straight vertical distance from the lower finished floor to the upper finished floor, and the calculator splits it into evenly sized risers, counts the treads, and reports the total run, stringer length and stair angle with a code check.
| Risers needed | |
| Actual riser height, all risers equal | |
| Treads in the flight | |
| Total run, front of first riser to face of top riser | |
| Stringer length along the slope | |
| Stair angle from horizontal | |
| Comfort check: 2 times riser + tread |
The run counts treads only: the top tread is the upper floor itself, so a flight with N risers has N-1 treads. Headroom, handrails, guards, landings and local amendments are not checked here. All calculations run in your browser, and nothing you type is uploaded or stored.
Turn a total rise into evenly sized risers and treads, get the run, stringer length and stair angle, and check the layout against IRC or IBC limits.
Key takeaways
- Risers = the total rise divided by the maximum riser, rounded up; 108 in gives 14 risers at 7.714 in
- A flight with N risers has N-1 treads, because the upper floor is the last step
- IRC 2021 allows a 7.75 in riser and requires a 10 in tread; IBC 2021 caps risers at 7 in and requires 11 in
- Run is treads times tread depth, and the stringer is the square root of rise squared plus run squared
- Twice the riser plus the tread should land between 24 and 25 in for a comfortable climb
On this page
Start with one measurement: total rise
Every stair layout starts with a single number: the total rise. That is the straight vertical distance from the surface of the lower finished floor to the surface of the upper finished floor, measured at the spot where the stair will sit. Measure in the room where the stair lands, not across the hall, because floors slope and a half inch of drift can push a flight over the riser limit.
Measure to the finished surface. Three quarters of an inch of hardwood plus underlayment counts, and so does tile with a backer board. A floor plan that says 8 ft ceiling usually works out to about 9 ft from finished floor to finished floor once the joist depth and the ceiling assembly are included, which is 108 in, the default in the calculator.
Two mistakes show up here more than any other. The first is measuring only the ceiling height, which leaves out the floor structure and lands the stair one or two risers short. The second is measuring from bare subfloor at the bottom and finished floor at the top, which mixes two reference surfaces and quietly changes the riser height by the thickness of the flooring. Take the rise once, write it down in inches, and feed that number to the calculator.
One more riser than treads
In a straight flight that lands on the upper floor, the last step up is the floor itself. A flight with N risers therefore has N-1 treads, and that single fact explains most of the arithmetic that surprises first time builders.
Take the 108 in rise. Divide by the 7.75 in IRC maximum and you get 13.94. Nobody builds 13.94 risers, and rounding down to 13 would make each riser 8.31 in, over the limit and a trip hazard on every step, so you round up to 14 risers. Each riser is then 108 divided by 14, or 7.714 in. Fourteen risers means 13 treads, and at 10.5 in of tread depth the run is 136.5 in, or 11 ft 4.5 in.
| Risers | Treads | Run at 10.5 in treads | Run at 11 in treads |
|---|---|---|---|
| 10 | 9 | 94.5 in (7 ft 10.5 in) | 99 in (8 ft 3 in) |
| 12 | 11 | 115.5 in (9 ft 7.5 in) | 121 in (10 ft 1 in) |
| 14 | 13 | 136.5 in (11 ft 4.5 in) | 143 in (11 ft 11 in) |
| 16 | 15 | 157.5 in (13 ft 1.5 in) | 165 in (13 ft 9 in) |
The run is measured from the face of the first riser to the face of the top riser, along the floor. Add the thickness of the nosing and the finish if you are laying out floor space, and remember that the upper landing needs clear floor beyond the top riser as well. A flight that ends at a wall rather than a landing needs a different count, which is why the calculator reports the treads separately from the risers.
The residential limits: IRC R311.7
The 2021 International Residential Code, which covers one and two family homes, puts the riser ceiling at 7 3/4 in (196 mm) in section R311.7.5.1 and the tread floor at 10 in (254 mm) in R311.7.5.2. Within a single flight the tallest and shortest risers may differ by no more than 3/8 in, and the same tolerance applies to tread depth, so a flight can fail inspection even when every piece measures legal on its own. Chapter 3 of the same code sets a 36 in clear width in R311.7.1 and 6 ft 8 in of headroom in R311.7.2. The Essex, Connecticut residential stairway handout reproduces those sections in plain language.
Consistency is the part homeowners underestimate. A riser that runs 7.5, 7.5, 7.75, 7.5, 7.25 in a flight feels wrong underfoot even though every number is under 7.75. The 3/8 in tolerance exists because the eye and the foot both notice a step that is taller than its neighbours, especially on the way down in poor light. Cut all risers from one setup and check the first and last against the middle before you nail anything down.
Local amendments are real. Some jurisdictions still allow the older 8 in riser for replacement stairs, and some tighten the rules for exterior decks. The code numbers here are the model code; your building department has the final word, and a five minute call before you cut lumber is cheaper than a failed inspection.
Commercial and workplace stairs: IBC and OSHA
Commercial work moves to the International Building Code, where section 1011.5.2 sets risers at 7 in (178 mm) maximum and 4 in (102 mm) minimum, with rectangular treads at least 11 in (279 mm) deep. Headroom is 80 in (2,032 mm) under section 1011.3, and general egress stairways are 44 in wide, reducible to 36 in where the occupant load is under 50, as the Bath, Maine commercial stairway handout explains. Workplace stairs sit under a different rule set entirely: OSHA 1910.25 allows risers up to 9.5 in, requires treads at least 9.5 in deep, and holds standard stairs to an angle between 30 and 50 degrees with 22 in of width between barriers and 6 ft 8 in of vertical clearance.
| Requirement | IRC 2021 (homes) | IBC 2021 (commercial) | OSHA 1910.25 (workplace) |
|---|---|---|---|
| Maximum riser | 7.75 in (196 mm) | 7 in (178 mm) | 9.5 in (241 mm) |
| Minimum riser | no minimum stated | 4 in (102 mm) | no minimum stated |
| Minimum tread depth | 10 in (254 mm) | 11 in (279 mm) | 9.5 in (241 mm) |
| Minimum width | 36 in (914 mm) | 44 in, or 36 in under 50 occupants | 22 in (559 mm) |
| Headroom or clearance | 6 ft 8 in (2,032 mm) | 80 in (2,032 mm) | 6 ft 8 in (203 cm) |
| Stated angle range | none | none | 30 to 50 degrees |
Run the same 108 in rise through the commercial numbers and the flight changes shape. Sixteen risers of 6.75 in are needed, giving 15 treads, a 157.5 in run (13 ft 1.5 in) and a pitch of 34.4 degrees instead of 38.4. That shallower pitch is why commercial stairs feel like they go on forever: the code trades floor space for a gentler climb, and a building with the room to spare takes that trade every time.
Comfort: the 2R plus T rule
Codes set the outer limits, not the sweet spot. Carpenters have used a rule of thumb for generations: twice the riser height plus the tread depth should land between 24 and 25 in. The sum approximates the length of an average adult stride, so a stair built to it feels like walking on flat ground rather than climbing a ladder.
| Riser | Tread | 2R + T | How it reads |
|---|---|---|---|
| 7.0 in | 11.0 in | 25.0 in | Comfortable, the commercial standard |
| 7.5 in | 10.0 in | 25.0 in | Comfortable, the common residential choice |
| 7.75 in | 10.0 in | 25.5 in | Legal IRC maximum, on the steep side |
| 6.75 in | 11.0 in | 24.5 in | Comfortable, IBC geometry |
| 6.0 in | 12.0 in | 24.0 in | Shallow, garden steps and wide porches |
The rule also explains an odd fact about the code. Its two residential maximums do not combine into a comfortable stair: 7.75 in of riser with 10 in of tread scores 25.5, above the band. That is why builders who have the floor space target 7.5 in with 10 in treads, and why a 7.714 in riser with 10.5 in treads scores 25.93 and feels steep even though it passes. The calculator prints the score and a plain verdict under the results table, so you can see the trade before you commit to a layout.
Run, stringer and angle math
Three formulas cover the geometry. The run is the number of treads multiplied by the tread depth. The stringer length is the square root of the rise squared plus the run squared, which is the diagonal of the right triangle the stair makes. The angle from horizontal is the arctangent of the rise divided by the run.
For the 108 in by 136.5 in example the stringer is the square root of 11,664 plus 18,632.25, which is the square root of 30,296.25, or 174.06 in. That is 14 ft 6.06 in of board along the slope, and the angle is the arctangent of 0.7912, or 38.4 degrees. Buy longer than the number. The calculated length runs from the bottom nosing to the top nosing, and the plumb and level cuts at each end eat into the board, so a 16 ft board is the practical purchase for a 14 ft 6 in stringer.
Angle is the quickest sanity check on a layout. OSHA holds workplace stairs to 30 to 50 degrees, and 38.4 sits comfortably inside that window. Push past about 42 degrees and the stair starts to feel like a ladder, which is fine for a ship stair or a loft and wrong for a main stair that someone carries laundry up. Drop below about 30 degrees and you are building a ramp with steps in it, and the run grows faster than the rise shrinks.
Two worked layouts on the same rise
Layout A: the IRC default. Rise 108 in, IRC limits, 10.5 in treads. The calculator returns 14 risers at 7.714 in, 13 treads, a run of 136.5 in (11 ft 4.5 in), a stringer of 174.06 in (14 ft 6.06 in) and an angle of 38.4 degrees. The comfort score is 25.93 in, above the 24 to 25 band, and the code check reads "Riser 7.714 in is at or under the 7.75 in maximum. Tread 10.50 in is at or over the 10 in minimum."
Layout B: trading one riser for a gentler pitch. Same 108 in rise, but plan on 7.5 in risers and 10.75 in treads. The count goes to 15 risers at 7.2 in, with 14 treads, a run of 150.5 in (12 ft 6.5 in), a stringer of 185.24 in (15 ft 5.24 in) and an angle of 35.7 degrees. The comfort score drops to 25.15 in, still just outside the band but much closer, and every riser is a quarter inch shorter than layout A.
| Layout A, IRC max | Layout B, 7.5 in risers | IBC, 7 in risers | |
|---|---|---|---|
| Risers | 14 | 15 | 16 |
| Riser height | 7.714 in | 7.200 in | 6.750 in |
| Treads | 13 | 14 | 15 |
| Run | 136.5 in (11 ft 4.5 in) | 150.5 in (12 ft 6.5 in) | 157.5 in (13 ft 1.5 in) |
| Stringer | 174.06 in (14 ft 6.06 in) | 185.24 in (15 ft 5.24 in) | 190.97 in (15 ft 10.97 in) |
| Angle | 38.4 degrees | 35.7 degrees | 34.4 degrees |
| 2R + T | 25.93 in | 25.15 in | 24.00 in |
The trade is floor space for comfort, and it is not small. Layout B needs 14 in more floor length than layout A and a board 11 in longer, in exchange for a pitch almost 3 degrees shallower. On a basement stair with a tight landing, layout A wins because the run has nowhere to go. In a hallway with room to spare, layout B is the stair people will still like in ten years.
What the calculator does not check
The calculator handles the geometry of a straight flight. It does not check headroom, which the IRC sets at 6 ft 8 in measured from the sloped plane joining the tread nosings, and which is the measurement most often missed when a stair passes under a floor opening. It does not check handrails: the IRC calls for a graspable handrail on at least one side of most residential stairs, with the top of the rail 34 to 38 in above the tread nosings, as the Spearfish, South Dakota deck and stair handout notes.
It does not check guards, landings or the nosing profile either. Under Washington's adopted R312.1.1, guards are required on open sided walking surfaces, stairs included, that sit more than 30 in above the floor or grade below. Landings are required at the top and bottom of most flights, and solid riser stairs need a nosing between 3/4 in and 1 1/4 in. Winder treads, curved flights and spiral stairs follow different rules entirely, and a curved stair cannot be laid out from a single rise and a single tread depth.
Use the numbers as a layout starting point and a code sanity check, then confirm the details with your local building department and with the lumber you can buy in your area. A stair that measures perfectly on screen and misses headroom by two inches is still a stair you have to rebuild.
Frequently asked questions
How many risers does a 9 ft floor need?
Fourteen. 108 in divided by the 7.75 in IRC maximum is 13.94, so you round up to 14 risers of 7.714 in each, which gives 13 treads.
What is the maximum riser height for a house?
7 3/4 in (196 mm) under IRC R311.7.5.1 for the 2021 edition. Within one flight the tallest and shortest risers may differ by no more than 3/8 in.
What is the minimum tread depth?
10 in (254 mm) under IRC R311.7.5.2 for homes, and 11 in (279 mm) under IBC 1011.5.2 for commercial stairs.
How do I calculate the total run?
Multiply the number of treads by the tread depth. A 14 riser flight has 13 treads, so 13 x 10.5 in gives a 136.5 in run, or 11 ft 4.5 in.
How long is the stringer?
The square root of rise squared plus run squared. For a 108 in rise and a 136.5 in run that is 174.06 in, or 14 ft 6.06 in.
What riser and tread combination feels best?
One where twice the riser plus the tread lands between 24 and 25 in. 7.5 in with 10 in scores 25.0, and 7 in with 11 in scores 25.0.
How much headroom does a stair need?
6 ft 8 in (2,032 mm) under IRC R311.7.2, measured from the sloped plane joining the tread nosings. Commercial stairs need 80 in under IBC 1011.3.
How wide must a residential stair be?
36 in of clear width under IRC R311.7.1, with handrails allowed to project up to 4.5 in on either side.
Why is the tread count one less than the riser count?
The last step up is the upper floor itself, not a tread. A flight with 14 risers has 13 treads plus the landing surface at the top.
What angle is a typical staircase?
Around 37 to 39 degrees for a residential stair with 7.7 in risers and 10.5 in treads. OSHA holds workplace stairs to 30 to 50 degrees.
Can I use 8 in risers?
Not on a new IRC stair, which caps risers at 7.75 in. Older homes and some replacement stair provisions allow more, and OSHA allows 9.5 in for workplace stairs.
Does the calculator check my local code?
No. It uses the 2021 IRC and IBC model code limits plus a custom option, and local amendments can be stricter, so confirm with your building department.
What is a comfortable stair angle?
Between 30 and 40 degrees for most homes. A 9 ft rise with 10.5 in treads lands at 38.4 degrees, and a shallower 7.5 in riser layout lands at 35.7.
Spotted a wrong number or a broken result?
More Home Improvement tools
- ADU Cost Calculator
- Acreage Calculator
- Aggregate Cost Calculator
- Air Conditioner Room Size & BTU Calculator
- Aluminum Fence Cost Calculator
- Asphalt Calculator
- Awning Cost Calculator
- Bathtub vs Shower Footprint Calculator
- Bleach Dilution Calculator
- Block Mortar Calculator
- Board Footage Calculator
- Board and Batten Layout Calculator
- Board and Batten Siding Calculator
- Board on Board Fence Calculator
- Borax Ant Killer Calculator
- Brick Calculator
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.