KeypadLab

How to Calculate Stairs: Rise, Run and Stringer Length

Every stair calculation starts with one fixed number: the total rise from finished floor to finished floor. Everything else, the number of risers, the tread depth, the total run and the stringer length, follows from it. This guide walks through the calculation in the order carpenters use, with a complete worked example and the IRC limits for residential stairs.

The terms you need

TermMeaning
Total riseVertical distance from the lower finished floor to the upper finished floor
Riser heightHeight of one step
Tread depthHorizontal depth of one step, measured nosing to nosing
Total runHorizontal length of the whole stair
StringerThe sloped board that carries the treads and risers
HeadroomClear height above the stair, measured vertically from the line of the nosings

Step 1: Measure the total rise

Measure from the finished surface of the lower floor to the finished surface of the upper floor. If the flooring is not installed yet, add its thickness at the top and the bottom. Getting this wrong is the most common reason for a first or last step that is higher or lower than the rest, which is a classic trip hazard.

Our example uses a total rise of 105 in (8 ft 9 in).

Step 2: Find the number of risers

Divide the total rise by the maximum riser height allowed, 7¾ in under the IRC, and round up:

105 ÷ 7.75 = 13.5 → 14 risers

Then divide again to get the exact riser height: 105 ÷ 14 = 7.5 in. All risers must be the same height; the IRC allows no more than ⅜ in between the tallest and the shortest.

Step 3: Choose the tread depth

A stair feels comfortable when two risers plus one tread add up to about 24 to 25 in, the length of a normal step:

2 × 7.5 + T = 25 → T = 10 in

10 in is the IRC minimum. With treads under 11 in, the code requires a nosing of ¾ to 1¼ in, so the actual board is deeper than the 10 in you lay out.

Step 4: Total run and stair angle

There is always one tread fewer than risers, because the last riser steps onto the upper floor:

13 treads × 10 in = 130 in (10 ft 10 in)

The stair angle is arctan(7.5 ÷ 10) = 36.9°. Comfortable residential stairs are usually between about 30° and 37°. If the run does not fit, change the riser count and compare:

RisersRiserTreadTotal runStringerAngle
138.08 in8.85 in106 in149 in42.4°
147.50 in10.0 in130 in167 in36.9°
157.00 in11.0 in154 in186 in32.5°

The 13-riser version breaks the code twice: risers over 7¾ in and treads under 10 in. The 15-riser version is the most comfortable but needs 2 ft more floor space. Where the run is tight, an L-shaped stair with a landing is the usual solution.

Step 5: Stringer length

The stringer is the hypotenuse of the triangle formed by total rise and total run:

√(105² + 130²) = 167 in ≈ 13 ft 11 in

Add length for the cut at the top and bottom, so a 16 ft board is the practical choice here. Most residential stringers are cut from 2×12 lumber; after cutting the notches, the remaining throat must still be strong enough, so check your lumber yard's or engineer's guidance for long spans.

Step 6: Check headroom and the stair opening

The IRC requires at least 6 ft 8 in (80 in) of headroom above the stair. A common estimate for the length of the floor opening is:

Opening ≈ (80 in + floor thickness) ÷ riser × tread

With a 12 in floor structure: (80 + 12) ÷ 7.5 × 10 ≈ 123 in, a little over 10 ft. If the opening has to be shorter, the stair needs to turn or the headroom has to come from somewhere else.

IRC limits for residential stairs at a glance

ItemRequirement
Riser heightMax. 7¾ in
Tread depthMin. 10 in
Variation within a flightMax. ⅜ in between largest and smallest riser or tread
Nosing¾ to 1¼ in where treads are less than 11 in
Stair widthMin. 36 in
HeadroomMin. 6 ft 8 in
HandrailRequired with 4 or more risers, 34 to 38 in above the nosings

These are the model code values. Many states and cities adopt the IRC with local amendments, so check with your building department before you build.

Frequently asked questions

How many stairs for an 8 ft ceiling?

With an 8 ft ceiling and about 12 in of floor structure, the total rise is around 108 in. That gives 14 risers of about 7.7 in or 15 risers of 7.2 in, with one tread fewer than risers.

Do I count the top floor as a step?

You count it as a riser but not as a tread. That is why a stair with 14 risers has 13 treads.

What is the best riser and tread combination?

Around 7 to 7½ in riser with 10½ to 11 in tread feels natural for most people and stays well within code.

Can I use the calculator for metric stairs?

Yes. The stair calculator works in inches and in centimeters and can check against other building codes as well.