Divide the total rise by about 7½ in and round to get the number of risers. The IRC caps risers at 7¾ in (19.7 cm) and needs treads at least 10 in (25.4 cm) deep, with 6 ft 8 in (203 cm) of headroom (IRC R311.7, sources below). A 108 in rise gives 14 risers of 7 11/16 in and 13 treads.
How to measure total rise
Total rise is the height the stair climbs, finished floor to finished floor. Every other number comes from it, so measure it twice.
- Hold a level off the edge of the upper floor and measure straight down to where the bottom step will land. Floors are rarely flat, so measure at that spot.
- Add the thickness of any finish flooring still to come on the upper floor, and subtract any still to come on the lower floor.
- Enter the result. The calculator splits it into equal risers, so the first and last steps match the rest.
If a tread is thicker or thinner than the finished floor, cut the difference off the bottom of the stringer (dropping the stringer) so the first step matches (Fine Homebuilding).
Deck stairs: deck surface to the landing
For a deck, total rise runs from the top of the deck boards to the landing pad or ground where the bottom step sits. Ground often slopes, so measure where the stairs will land, not at the deck edge (Trex).
- Rest a straight board on the deck, sticking out past the edge, and level it.
- Measure from the board down to the ground where the stairs will end, about one tread depth out per tread.
- Run the calculator, then measure again at the total run it gives. If the ground drops, enter the new rise (Canadian Woodworking).
How the stair calculator works
The calculator divides your total rise by your target riser and rounds to whole risers. If a riser would come out over 7¾ in, it adds one, so it never breaks the code maximum. All risers are equal.
There is one tread fewer than risers, because the upper floor is the last step. Total run is treads times tread depth. Stringer length is treads times the diagonal of one step, the length of the cut board. Add 2 in to spare and take the next stock length; lumber comes in 2 ft steps from 6 to 24 ft (Archtoolbox).
For indoor stairs it also sizes the opening in the upper floor for 6 ft 8 in of headroom above the nosing line.
The math, with your numbers
These lines update as you type above.
The step diagonal is the square root of riser² plus tread². The throat is the board depth minus riser × tread ÷ step diagonal.
Worked example: a 108 in stair, drawn to scale
Say a basement stair climbs 108 in (274 cm) floor to floor, with a 7½ in target riser, 10 in treads and a 1 in nosing.
108 ÷ 7.5 = 14.4, so 14 risers of 7.714 in (7 11/16 in), 13 treads and a 130 in run. Each step's diagonal is 12.63 in, so a stringer is 13 × 12.63 = 164.2 in and fits a 14 ft 2x12. The angle is 37.6°.
One catch: 7 11/16 in is rounded. Mark every riser at 7 11/16 in and 14 of them add up to 107 5/8 in, so the top step comes out 3/8 in taller, the most the IRC allows. Spread the difference and check the last riser before you cut.
Stair code limits (IRC R311.7)
The International Residential Code sets these limits for house stairs, and deck and porch stairs follow the same rules. The calculator checks every row except open risers.
| Rule | IRC 2021 | Limit | Metric |
|---|---|---|---|
| Riser height | R311.7.5.1 | at most 7¾ in | 19.7 cm |
| Tread depth | R311.7.5.2 | at least 10 in | 25.4 cm |
| Riser or tread difference in one flight | R311.7.5.1, .2 | at most 3/8 in | 1.0 cm |
| Nosing | R311.7.5.3 | ¾ to 1¼ in; not needed on treads 11 in or deeper | 1.9 to 3.2 cm |
| Open risers | R311.7.5 | 4 in sphere must not pass, where total rise is over 30 in | 10.2 cm |
| Headroom | R311.7.2 | at least 6 ft 8 in | 203 cm |
| Width | R311.7.1 | at least 36 in above the handrail; 31½ in at a handrail on one side, 27 in with two | 91, 80, 69 cm |
| Rise of one flight | R311.7.3 | at most 151 in (12 ft 7 in) between landings | 384 cm |
| Handrail | R311.7.8 | on at least one side of a flight with 4 or more risers | none |
| Handrail height | R311.7.8.1 | 34 to 38 in above the nosings | 86 to 97 cm |
Sources: the ICC's 2021 IRC chapter 3, checked against city and county handouts that quote it: Knox County, TN, Timnath, CO, White Bear Lake, MN, Wells, ME (2021 IRC) and Gilroy, CA. Flight rise also from Washington WAC 51-51-0311 and Anchorage handout R.13; open risers from Viewrail.
The American Wood Council's deck guide, DCA 6, adds rules for deck stairs: 2x12 stringers at least, three cut stringers at least, no more than 18 in between stringers on stairs over 36 in wide, and a landing once a deck stair climbs more than 12 ft (AWC DCA 6). See handrail height and stair dimensions for more.
Check your local code. Cities adopt the IRC with changes. Garrett County, Maryland lists an 8¼ in riser and 9 in tread (deck guide), and Timnath and White Bear Lake print a 12 ft flight limit. Ask your building department before you cut.
The comfort rule: 2 risers + 1 tread
Code limits keep stairs safe, not comfortable. The stair builder's rule: twice the riser plus the tread should come to about 25 in. Fine Homebuilding puts it as 2 risers plus 1 run within an inch of 25 in, and riser plus run within an inch of 18 in (Fine Homebuilding, 2 rules for comfortable stairs). ArchDaily gives the metric form: 2 risers plus 1 tread equals 63 to 65 cm (ArchDaily).
| Riser | Tread for 2R + T = 25 in | Riser + tread | Meets IRC? |
|---|---|---|---|
| 7 in | 11 in | 18 in | Yes, no nosing needed |
| 7¼ in | 10½ in | 17¾ in | Yes |
| 7½ in | 10 in | 17½ in | Yes, the calculator's default |
| 7¾ in | 10 in (9½ in is too shallow) | 17¾ in | Yes, at both limits |
Tread depth is the run, nosing to nosing.
Stringers: board size and how many
Cut stringers are 2x12s, the DCA 6 minimum for deck stairs. A 2x12 is actually 1½ × 11¼ in (Archtoolbox, SPIB), and the notches eat into that. Leave at least 5 in of solid wood, the throat, below each notch (JLC, common defects in deck stairs, Decks.com). The calculator flags a throat under 5 in.
A cut 2x12 should span at most 6 ft horizontally; past that, add a post and footing under the middle. Solid (uncut) stringers can span up to 13 ft 3 in (Simpson Strong-Tie).
The number of stringers depends on width and treads. DCA 6 asks for at least three cut stringers, at most 18 in apart. Thin and composite treads need closer spacing: Trex's thicker boards span up to 12 in, and the North American Deck and Railing Association recommends 12 in (Trex, Simpson Strong-Tie). The calculator uses 18 in.
| Stair width | Stringers, 18 in max apart | Stringers, 12 in apart |
|---|---|---|
| 36 in (91 cm) | 3 | 4 |
| 42 in (107 cm) | 4 | 5 |
| 48 in (122 cm) | 4 | 5 |
| 60 in (152 cm) | 5 | 6 |
| 72 in (183 cm) | 5 | 7 |
Outer stringers flush with both edges. Spacing: AWC DCA 6, Anchorage handout R.13.
What to buy
For the worked example, a 36 in wide stair with closed risers:
| Part | Board | Pieces | Buy |
|---|---|---|---|
| Stringers | 2x12 | 3 at 13 ft 8 1/8 in | 3 × 14 ft |
| Treads, deck | 2x6 (5½ in), 2 per step | 26 at 36 in | 7 × 12 ft |
| Treads, one board | 2x12 (11¼ in) | 13 at 36 in | 4 × 12 ft |
| Risers | 1x8 (7¼ in) | 14 at 36 in | 4 × 12 ft |
Actual board sizes from Archtoolbox. A 12 ft board gives four 36 in pieces.
- Treads: as deep as the run plus the nosing, 11 in here. Two 2x6s give 11 in; one 2x12 gives 11¼ in. DCA 6 Table 6 allows 2x4 or 5/4 boards as the smallest treads on cut stringers (AWC DCA 6).
- Risers: a riser board fills the riser height minus the tread thickness, so under a 1 in tread a 1x8 ripped to width covers any code riser. Open risers must stop a 4 in sphere.
- Waste: buy one spare tread board. Cut one stringer first, test-fit it, then use it as the pattern (Fine Homebuilding).
Stairs and decks more than 30 in above the floor or grade need guards on their open sides (Wells, ME 2021 IRC handout); see railing height and the baluster spacing calculator.
Questions people ask
How many stairs do I need for an 8 ft ceiling?
About 14 risers and 13 treads. An 8 ft ceiling plus a 10 in floor is about 106 in of rise: 14 risers of 7 9/16 in. Measure your own floor to floor.
How many steps do I need for a 30 in deck?
Four risers of 7½ in and three treads, running 30 in out with 10 in treads. Four risers means a handrail (AWC DCA 6).
What is the maximum riser height for stairs?
7¾ in under IRC R311.7.5.1, with treads at least 10 in deep. Some local codes differ.
How long is a stair stringer?
Treads times the diagonal of one step: 13 × 12.63 = 164.2 in for the worked example, which fits a 14 ft board. The shortcut, the square root of total rise² plus total run², gives 169 in, a bit more than you cut.
How many stringers do I need for 36 in wide stairs?
Three, 17¼ in apart, inside DCA 6's 18 in limit. Use four if your tread maker asks for 12 in spacing.
Can the top or bottom step be a different height?
Only by 3/8 in, the most the IRC allows between the tallest and shortest riser. Plan for finish flooring before you cut.
What angle should stairs be?
About 35° to 37° for comfort, says Trex. The IRC limits work out to at most 37.8°.
Sources
- International Code Council, 2021 International Residential Code, chapter 3, section R311.7 (official text; numbers checked against the handouts below)
- Knox County, Tennessee, stairs handout (2018 IRC)
- Town of Timnath, Colorado, 2018 residential stair guide
- City of White Bear Lake, Minnesota, residential stair guide
- Town of Wells, Maine, 2021 IRC common questions
- City of Gilroy, California, stairs, handrails and guards handout
- Washington State, WAC 51-51-0311
- Municipality of Anchorage, deck handout R.13
- Garrett County, Maryland, deck information guide
- American Wood Council, DCA 6 deck construction guide (2015 IRC edition)
- Simpson Strong-Tie, safe and sturdy deck stairs
- JLC, Bruce Barker, Common defects in deck stairs
- Fine Homebuilding, Mike Maines, 2 rules for building comfortable stairs; How to cut stair stringers
- ArchDaily, calculating staircase dimensions
- Trex, How to calculate and cut stair stringers
- Canadian Woodworking, measuring exterior stair stringers
- Decks.com, Cutting stair stringers
- Viewrail, Tread depth and risers
- Archtoolbox, Lumber dimensions; Southern Pine Inspection Bureau, Nominal vs actual lumber sizes
Checked October 7, 2026. Metric values are converted from inches.