Stair Calculator: Risers, Treads, Stringers and the Code Limits
By FindMySum · Last reviewed
A stair calculator turns one measurement, the total rise between two floors, into a staircase you can build: how many steps, how tall each riser is, how far the stair runs across the floor, and how long the stringers need to be. It also checks the layout against the building code, because stairs are one of the places where codes are strict about dimensions. This article explains the layout method, the National Building Code of Canada 2020 and International Residential Code 2021 limits, and a worked example with the calculator's defaults.
The layout method
Every riser in a flight should be the same height, because people set their stride on the first few steps and trip on one that differs. So the method starts by dividing the total rise into equal parts:
- Number of risers = total rise ÷ maximum riser height, rounded up. Rounding up gives the fewest risers that keep each one within the code limit.
- Riser height = total rise ÷ number of risers.
- Number of treads = risers − 1. The upper floor serves as the last step, so a stair always has one fewer tread than risers.
- Total run = treads × run per step. This is how far the stair projects across the floor.
- Stringer length = √(total rise² + total run²), the length along the slope before cuts.
The run is your choice within the code range. A longer run makes a shallower, more comfortable stair but takes more floor space.
The code limits
The calculator checks three sets of limits.
| Limit | NBC 2020, in a dwelling unit | NBC 2020, public stair | IRC 2021 |
|---|---|---|---|
| Riser height | 125 to 200 mm | 125 to 180 mm | 7¾ in maximum |
| Run | 255 to 355 mm | 280 mm minimum | 10 in minimum tread depth |
| Headroom | 1,950 mm | 2,050 mm | 6 ft 8 in |
| Width | 860 mm | depends on occupant load | 36 in |
The NBC 2020 increased the minimum run for stairs within dwelling units to 255 mm. Provinces adopt the NBC on their own schedules and with their own amendments, Ontario and British Columbia have their own building codes, and US states and cities adopt the IRC with local changes. The calculator's checks are a planning aid; the code in force where you build, as interpreted by the building official, is what counts.
Worked example: the calculator's defaults
The calculator opens with a 2,650 mm total rise, typical of a basement or second-floor stair, a 260 mm run, 2,000 mm of headroom and a 900 mm width, checked against the NBC rules for stairs within a dwelling unit.
- Risers: 2,650 ÷ 200 = 13.25, rounded up to 14 risers.
- Riser height: 2,650 ÷ 14 = 189.3 mm, within the 125 to 200 mm range.
- Treads: 14 − 1 = 13 treads.
- Total run: 13 × 260 = 3,380 mm.
- Stringer: √(2,650² + 3,380²) = 4,295 mm, so a 16 ft (4.88 m) board leaves room for the cuts.
- Angle: the slope is atan(189.3 ÷ 260), about 36°.
All four checks pass. Shorten the run to 240 mm and the stair fails the 255 mm minimum; check it as a public stair instead and the 180 mm riser limit pushes it to 15 risers of 176.7 mm.
Comfort beyond the minimum
Meeting the code doesn't guarantee a comfortable stair. A long-standing rule of thumb is that twice the riser plus the run should be about 610 to 635 mm (24 to 25 inches), roughly a normal walking stride. The default layout gives 2 × 189.3 + 260 = 639 mm, just above that range. Stairs used every day by children or older people benefit from lower risers and deeper runs than the minimum.
What the calculator does not check
The checks cover straight flights with rectangular treads. Winders, curved and spiral stairs have their own rules. The calculator also doesn't check landings, the nosing projection and tread depth, handrail height and continuity, guards and the openings between balusters, or the uniformity limits between adjacent risers once the stair is built. Ask your building department for the local stair requirements and inspection steps before you start.
More questions
How do I measure total rise accurately?
Measure from the finished surface of the lower floor to the finished surface of the upper floor, at the spot where the stair will land. If the flooring isn't installed yet, add its thickness at the top and subtract any added at the bottom. Floors are rarely perfectly level, so measure at the bottom of the planned stair, not elsewhere in the room.
Do deck and exterior stairs follow the same rules?
Exterior stairs serving a house generally follow the same rise and run limits as interior private stairs, and they also need guards and handrails once they exceed a certain height. Some provinces and municipalities publish their own deck guides with extra rules for footings, landings and lighting, so check locally before building.
How many stringers does a stair need?
It depends on the width and the tread material. A common practice is to space stringers no more than about 16 inches (400 mm) apart for typical wood treads, so a 36-inch stair usually gets three. Thinner or composite treads may need closer spacing; follow the tread manufacturer's span rating.
When does a stair need a landing?
Long flights need intermediate landings: the IRC limits a single flight to a vertical rise of 151 inches (12 ft 7 in) between floor levels or landings, and the NBC limits the height of a flight as well. Landings are also needed at the top and bottom of most stairs and where a door swings over the stair.
What size lumber should I use for stringers?
Notched stringers are most often cut from 2×12 lumber, which leaves enough wood below the notches for typical residential spans. Codes and span tables set a minimum effective depth below the notch, and longer or wider stairs may need engineered support, so check the requirements that apply where you build.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.