Stair Calculator
Risers, treads and stringers from your total rise, drawn to scale with the headroom.
Risers, treads and stringers for a staircase from its total rise, drawn to scale with the headroom line and the stairwell opening it needs, and checked against the building code’s stair limits.
finished floor to finished floor · 8 ft 9 in
Risers
14 is the fewest that keep each riser at 7¾ in or less; more risers make a gentler stair that takes more floor.
More options1 in treads · 2×12 stringers · 36 in wide · 10 in floor · IRC 2021
Stringer board
Check against
ExampleYour stair
14risers of 7½ in
13 treads of 10 in, 10 ft 10 in of run, at 36.9°.
Enter yours to see your result.
- Stringers
- 3 × 2×12 × 14 ft (13 ft 10⅜ in)
- Stairwell opening
- 10 ft 1 in or more
An estimate of materials to buy, not engineering or code advice. Check sizes with your supplier and local building department. Terms
Code check · informational
- Riser height (within the limit)7¾ in at most; keep every riser within ⅜ in of the others. R311.7.5.17½ in
- Tread depth, nosing to nosing (within the limit)10 in at least. R311.7.5.210 in
- Nosing (within the limit)¾ in to 1¼ in on treads under 11 in. R311.7.5.31 in
- Rise of one flight (within the limit)12 ft 7 in at most between floors or landings. R311.7.38 ft 9 in
- Width (within the limit)36 in clear at least, above the handrail. R311.7.136 in
- Stairwell opening for 6 ft 8 in headroomMeasured back from the top riser, under a floor 10 in thick. Enter your opening under More options to check it. R311.7.2≥ 10 ft 1 in
- Handrail on at least one sideWith 14 risers (4 or more): 34 in to 38 in above the nosings. R311.7.8, R311.7.8.1
The 2021 International Residential Code, R311.7 and R312.1, as printed in the SMA’s visual interpretation. Informational: your town may adopt another edition or amend it, and its inspector decides.
My shopping list
Add each part of a job and print one list. It stays on this device.
How this works: 4 sources,
How this works
Method
The total rise is divided by the tallest riser the chosen code allows (7¾ in under the 2021 IRC) and rounded up, giving equal risers and one tread fewer, since the upper floor is the last step. The stringer is laid out with its notch corners on the board’s top edge and its bottom dropped one tread thickness, and its length, throat and angle follow from the rise and run by trigonometry. The stairwell opening reaches back to where a line 6 ft 8 in above the nosings passes under the upper floor.
Sources
- 2021 International Residential Code, R311.7 Stairways and R312.1 Guards (text as printed in the SMA Visual Interpretation of the 2021 IRC Stairbuilding Codes, 2023) (International Code Council; Stairway Manufacturers’ Association, 2023)
- Approved Document K: Protection from falling, collision and impact, 2013 edition (Table 1.1, paras 1.11, 1.34, 1.41) (HM Government (England), 2013)
- DCA 6, Prescriptive Residential Wood Deck Construction Guide (stair requirements and commentary) (American Wood Council, 2018)
- Voluntary Product Standard PS 20-25, American Softwood Lumber Standard (dressed sizes, standard lengths) (National Institute of Standards and Technology, 2025)
How it’s tested
15 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Limits
An estimate of materials to buy, not engineering or code advice. Check sizes with your supplier and local building department.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: a staircase drawn to scale from its total rise, with the stringer layout, rise and run, deck stairs, stairs with a landing and the IRC and Approved Document K limits checked.
Key facts
- The 2021 International Residential Code allows a riser of at most 7¾ inches (196 mm) and asks for treads at least 10 inches (254 mm) deep, nosing to nosing (R311.7.5).
- Headroom over a stair has to be at least 6 feet 8 inches (2032 mm), measured straight up from the line along the tread nosings (IRC R311.7.2).
- A flight may climb at most 12 feet 7 inches (151 in, 3835 mm) between floors or landings (IRC R311.7.3), and stairs with four or more risers need a handrail on at least one side (R311.7.8).
- A stair from floor to floor 8 ft 9 in apart takes 14 risers of 7½ in and 13 treads; at a 10 in run that is 10 ft 10 in of floor.
Source: International Code Council, 2021 International Residential Code, R311.7 (as printed in the SMA Visual Interpretation of the 2021 IRC Stairbuilding Codes, 2023).
All 4 calculators
Layout · Stairs to build
Start from the total rise
Everything about a stair follows from one measurement: the total rise, the height from the finished floor at the bottom to the finished floor at the top. Measure it where the stair will stand, after the flooring is down or with its thickness added, because a stair whose top or bottom step comes out different from the rest is the one people trip on. The code allows the tallest and shortest riser in a flight to differ by no more than ⅜ inch.
Divide the total rise by the tallest riser you are allowed (7¾ in under the IRC) and round up: that is the fewest risers that work. For 105 in it is 13.55, so 14 risers of exactly 7½ in. There is always one tread fewer than risers, because the upper floor is the last step: 13 treads here. Choose the tread run (10 in at least) and the stair’s length on the floor is the treads times the run, 10 ft 10 in.
More risers make each step lower and the stair gentler, but every extra riser adds a tread and pushes the bottom of the stair further out. Try a count or two above the minimum with the chips and watch the drawing: the angle, the run and the stairwell opening all move.
Headroom and the stairwell opening
A stair to an upper floor passes through a hole in that floor, and its length decides whether people hit their heads. The IRC wants 6 ft 8 in of clear height above the line through the nosings. The calculator draws that line and works out how far back from the top riser the opening has to reach, allowing for the thickness of the floor framing you enter. Put in an opening you already have to check it.
The code check under the answer lists each limit beside your numbers. It is a guide to the model code, not approval: towns adopt different editions and amend them, and the inspector decides. In England the limits are Approved Document K’s; pick it from the chips.
Sources
- International Code Council; Stairway Manufacturers’ Association, 2021 International Residential Code, R311.7 Stairways and R312.1 Guards (text as printed in the SMA Visual Interpretation of the 2021 IRC Stairbuilding Codes, 2023)
- HM Government (England), Approved Document K: Protection from falling, collision and impact, 2013 edition (Table 1.1, paras 1.11, 1.34, 1.41)
- American Wood Council, DCA 6, Prescriptive Residential Wood Deck Construction Guide (stair requirements and commentary)
- National Institute of Standards and Technology, Voluntary Product Standard PS 20-25, American Softwood Lumber Standard (dressed sizes, standard lengths)
The codes are cited for their limits as published; the check on this page is informational, and the code your town adopts, with its amendments, is the one that applies.
Common questions
How do I calculate the number of stairs?
Divide the total rise (floor to floor) by the tallest riser allowed, 7¾ in under the IRC, and round up. For a 105 in rise that is 13.55, so 14 risers of 7½ in, and 13 treads.
What is the code for stair rise and run?
Under the 2021 IRC, risers are at most 7¾ in and treads at least 10 in deep, nosing to nosing, with a ¾ to 1¼ in nosing on treads under 11 in. Risers and treads in a flight may vary by ⅜ in at most.
How much headroom does a staircase need?
At least 6 ft 8 in under the IRC, measured vertically from the line along the nosings, and 2.0 m in England under Approved Document K. The stairwell opening has to be long enough for that line to clear the floor framing.
How long is a stair stringer?
Roughly the diagonal of the total rise and run, plus what the cuts at the top and bottom take. For a 105 in rise with 14 risers and a 10 in run it is about 13 ft 10 in along a 2×12, so a 14 ft board.
Related tools
- Concrete CalculatorConcrete, gravel, sand, soil and mulch for any shape you draw, as bags, tons or truckloads
- Board Foot CalculatorBoard feet and cost of a lumber list, plus cut lists for plywood and boards, studs and lumber sizes
- Square Footage CalculatorSquare feet of any room you draw, and the paint, tile, flooring, drywall or shingles to cover it