REMODEL FIT
SURVEY BLUE · CALCULATOR · CA-02

Stair calculator

Enter the total rise and your step size to get the number of risers, exact riser height, total run, stringer length and a code check, with a side view drawn to scale.

Your stairs
Stair type
in
Finished floor to finished floor.
in
Never more than 7¾ in, the IRC maximum.
in
Nosing to nosing. Code minimum 10 in.
in
Tread overhang, ¾ to 1¼ in. Enter 0 for none.
in
Optional. Sets the number of stringers.
in
Joists plus subfloor. Sizes the stairwell opening.
Stringer board
SIDE VIEW · DRAWN TO SCALE
Risers
Riser height
Treads
Total run
Stair angle
Code check
Stringer length
Your stair listSURVEY BLUE · CA-02
THE ANSWER

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.

Riser, at most7¾ in
Tread, at least10 in
Headroom, at least6 ft 8 in
Example: 108 in rise14 risers7 11/16 in each, 13 treads of 10 in

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.

  1. 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.
  2. Add the thickness of any finish flooring still to come on the upper floor, and subtract any still to come on the lower floor.
  3. 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).

  1. Rest a straight board on the deck, sticking out past the edge, and level it.
  2. Measure from the board down to the ground where the stairs will end, about one tread depth out per tread.
  3. 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.

Risers = 108 in ÷ 7.5 in = 14.4, round to 14 Riser = 108 in ÷ 14 = 7.714 in (7 11/16 in) Treads = 14 − 1 = 13 (the top floor is the last step) Total run = 13 × 10 in = 130 in (10 ft 10 in) Stringer = 13 × 12.63 in = 164.2 in (13 ft 8 1/8 in)

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.

14risers of 7 11/16 in
13treads of 10 in
10 ft 10 intotal run
13 ft 8 1/8 ineach 2x12 stringer

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°.

6 ft 8 inheadroom5 ft 9 in7 11/16 in10 inopening 9 ft 9¾ in2x12 stringer, 13 ft 8 1/8 in108 in rise130 in run (10 ft 10 in)04 ft
Figure 1. The worked example to scale (bar: 4 ft). With a 10 in thick upper floor, the headroom line meets the floor's underside 12 in past the first riser, so the opening must be at least 9 ft 9¾ in long.

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.

RuleIRC 2021LimitMetric
Riser heightR311.7.5.1at most 7¾ in19.7 cm
Tread depthR311.7.5.2at least 10 in25.4 cm
Riser or tread difference in one flightR311.7.5.1, .2at most 3/8 in1.0 cm
NosingR311.7.5.3¾ to 1¼ in; not needed on treads 11 in or deeper1.9 to 3.2 cm
Open risersR311.7.54 in sphere must not pass, where total rise is over 30 in10.2 cm
HeadroomR311.7.2at least 6 ft 8 in203 cm
WidthR311.7.1at least 36 in above the handrail; 31½ in at a handrail on one side, 27 in with two91, 80, 69 cm
Rise of one flightR311.7.3at most 151 in (12 ft 7 in) between landings384 cm
HandrailR311.7.8on at least one side of a flight with 4 or more risersnone
Handrail heightR311.7.8.134 to 38 in above the nosings86 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).

RiserTread for 2R + T = 25 inRiser + treadMeets IRC?
7 in11 in18 inYes, no nosing needed
7¼ in10½ in17¾ inYes
7½ in10 in17½ inYes, the calculator's default
7¾ in10 in (9½ in is too shallow)17¾ inYes, 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).

5 1/8 in throat(keep 5 in or more)7 11/16 in10 in11¼ in(2x12)
Figure 2. One notch of the example stringer, to scale: a 5 1/8 in throat on a 2x12. A 2x10 (9¼ in) would leave about 3 1/8 in.
36 in wide17¼ in17¼ in
Figure 3. Looking up the stairs: three 2x12 stringers under a 36 in tread, 17¼ in apart on center.

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 widthStringers, 18 in max apartStringers, 12 in apart
36 in (91 cm)34
42 in (107 cm)45
48 in (122 cm)45
60 in (152 cm)56
72 in (183 cm)57

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:

PartBoardPiecesBuy
Stringers2x123 at 13 ft 8 1/8 in3 × 14 ft
Treads, deck2x6 (5½ in), 2 per step26 at 36 in7 × 12 ft
Treads, one board2x12 (11¼ in)13 at 36 in4 × 12 ft
Risers1x8 (7¼ in)14 at 36 in4 × 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

Checked October 7, 2026. Metric values are converted from inches.