Skip to content

Stair Calculator

Work out the number of steps, riser height, total run and stringer length for a staircase, and check them against the NBC 2020 and IRC 2021 stair limits.

Calculator Details

Steps:14 risers of 189.3 mmSee results ↓

The code and stair type to check against

Millimetres or inches for every measurement below

Vertical height from finished floor to finished floor

Horizontal distance from one riser to the next (nosing to nosing)

Clear height above the stair, measured vertically from the line of the nosings

Clear width between walls or handrails

Your Results

Steps: 14 risers of 189.3 mm

Steps

14 risers of 189.3 mm

13 treads · Meets NBC 2020 (same in NBC 2025): stairs within a dwelling unit (private)

Passes the checks belowRiser, run, headroom and width are within NBC 2020 (same in NBC 2025): stairs within a dwelling unit (private).

Layout

Riser height

189.3 mm

Run per step

260 mm

Total run

3,380 mm

Stringer length

4,295 mm

along the slope, before cuts

Angle

36.1°

Side view to scale: 14 risers, 13 treads; the dashed line is the slope of the stringer.

A 2650 mm rise needs 14 risers of 189.3 mm and 13 treads, a total run of 3380 mm at 36.1°. It meets the NBC 2020 (same in NBC 2025): stairs within a dwelling unit (private) limits checked here.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Code checks for NBC 2020 (same in NBC 2025): stairs within a dwelling unit (private)
CheckYoursLimitResult
Riser height (maximum)189.3 mm200 mm✓ Pass
Riser height (minimum)189.3 mm125 mm✓ Pass
Run (minimum)260 mm255 mm✓ Pass
Run (maximum)260 mm355 mm✓ Pass
Headroom (minimum)2,000 mm1,950 mm✓ Pass
Width (minimum)900 mm860 mm✓ Pass

How This Calculator Works

How the Stair Is Laid Out

Risers = ⌈total rise ÷ maximum riser⌉
Riser height = total rise ÷ risers · Treads = risers − 1
Total run = treads × run · Stringer = √(rise² + run²)

Your calculation: 2,650 ÷ 200 mm maximum, rounded up = 14 risers of 189.3 mm. 13 treads × 260 = 3,380 mm. Stringer: √(2,650² + 3,380²) = 4,295 mm.

Frequently Asked Questions

How do I work out how many stairs I need?

Measure the total rise from finished floor to finished floor and divide by the maximum riser height your code allows, then round up. That gives the fewest equal risers. A 2,650 mm rise with a 200 mm maximum needs ⌈13.25⌉ = 14 risers of about 189 mm. There is always one fewer tread than risers, because the top floor is the last step.

What are the stair rise and run limits in Canada?

Under the National Building Code of Canada 2020, stairs within a dwelling unit may have a rise of 125–200 mm and a run of 255–355 mm, with 1950 mm of headroom. Public stairs are limited to 180 mm rise and at least 280 mm run. Provinces adopt the NBC with changes, so check your provincial code.

What are the stair rules in the US International Residential Code?

IRC 2021 allows a maximum riser height of 7.75 in (7¾ in) and a minimum tread depth of 10 in, with 80 in (6 ft 8 in) of headroom and a 36 in minimum width. Risers and treads within a flight may not vary by more than ⅜ in.

What is the difference between run and tread depth?

Run is the horizontal distance from the face of one riser to the face of the next. Tread depth includes the nosing that overhangs the riser below, so it is usually 15–25 mm (about 1 in) more than the run. This calculator works with run, which is what sets the total length of the stair.

How long should the stringer be?

The stringer runs along the slope, so its length is √(total rise² + total run²). Buy a board at least one standard length longer than that to allow for the cut at the top and the seat cut at the bottom, and choose its depth so enough wood remains below the notches (often 3½ in or 90 mm minimum).

What makes a stair comfortable?

A common rule of thumb is that two risers plus one run should add up to about 610–635 mm (24–25 in), close to a normal stride. Steeper stairs (taller risers, shorter runs) save floor space but are harder to climb and descend safely.

Why must all risers be the same height?

People set their stride from the first few steps and expect the rest to match; a step that is even slightly different causes trips. Codes limit variation within a flight (the IRC allows ⅜ in within a flight, and the NBC sets similar tolerances), which is why the calculator divides the total rise into equal risers.

Your local code and building official decide. Provinces, states and cities adopt these model codes with amendments. This checks straight flights with rectangular treads only: rise, run, headroom and width. Not checked: winders and curved stairs, landings, nosings and tread depth, handrails, guards, openings between balusters, riser uniformity, lighting and fire separations.

NBC 2020 (same in NBC 2025): stairs within a dwelling unit (private): National Building Code of Canada 2020, Division B, Part 9: Table 9.8.4.1 (rise 125–200 mm, run 255–355 mm for stairs within dwelling units), Sentence 9.8.2.2.(1) (headroom 1 950 mm for stairs within dwelling units), Sentence 9.8.2.1.(2) (width 860 mm). The NBC 2020 raised the minimum run for dwelling-unit stairs to 255 mm.

NBC 2020 (same in NBC 2025): public stairs (Part 9 buildings): National Building Code of Canada 2020, Division B, Part 9: Table 9.8.4.1 (public stairs: rise 125–180 mm, run 280 mm minimum, no maximum), Sentence 9.8.2.2.(1) (headroom 2 050 mm). Required width depends on the occupant load (Subsection 9.8.2), so it is not checked.

IRC 2021: one- and two-family dwellings (US): International Residential Code 2021, Section R311.7: R311.7.5.1 (riser height 7¾ in maximum), R311.7.5.2 (tread depth 10 in minimum, nosing to nosing), R311.7.2 (headroom 6 ft 8 in), R311.7.1 (width 36 in minimum above the handrail height).

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:

  1. Number of risers = total rise ÷ maximum riser height, rounded up. Rounding up gives the fewest risers that keep each one within the code limit.
  2. Riser height = total rise ÷ number of risers.
  3. Number of treads = risers − 1. The upper floor serves as the last step, so a stair always has one fewer tread than risers.
  4. Total run = treads × run per step. This is how far the stair projects across the floor.
  5. 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.

LimitNBC 2020, in a dwelling unitNBC 2020, public stairIRC 2021
Riser height125 to 200 mm125 to 180 mm7¾ in maximum
Run255 to 355 mm280 mm minimum10 in minimum tread depth
Headroom1,950 mm2,050 mm6 ft 8 in
Width860 mmdepends on occupant load36 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.

  1. Risers: 2,650 ÷ 200 = 13.25, rounded up to 14 risers.
  2. Riser height: 2,650 ÷ 14 = 189.3 mm, within the 125 to 200 mm range.
  3. Treads: 14 − 1 = 13 treads.
  4. Total run: 13 × 260 = 3,380 mm.
  5. Stringer: √(2,650² + 3,380²) = 4,295 mm, so a 16 ft (4.88 m) board leaves room for the cuts.
  6. 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.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy