Stair Stringer Calculator

Lay out a stair stringer for a deck or porch: riser count and height, treads, total run, stringer length, angle, and the exact cuts to mark with your framing square.

Deck surface to ground, plumb
IRC minimum 10″ including nosing
2× material ≈ 1.5″
IRC 7.75″ · IBC 7″
Risers4
Actual riser height7.5″
Treads3
Total run30″
Stringer length (hypotenuse)3.54 ft (42.43″)
Stair angle45°
Stringer cut — vertical6″

Mark stringers with a framing square: horizontal cut = tread run (10″), vertical cut = riser minus tread thickness (6″). Cut the bottom riser shorter by the tread thickness so the treads land level. Check local code — riser max 7.75″ (IRC) or 7″ (IBC), and all risers must be within 3/8″ of each other.

What a stringer actually is

The stringer is the angled board that carries the stairs: every riser and tread is cut into it or fastened to it. Two stringers hold a narrow flight; a full-width stair usually gets a third down the middle so the treads can't spring.

Total rise is the vertical drop from finished deck surface to finished grade or landing, plumb. Total run is horizontal: tread run × tread count. The stringer is the hypotenuse of that triangle, so it is always longer than the run.

Risers, treads, and why risers = treads + 1

You derive the riser height, you don't pick it: divide the total rise by a riser near the legal maximum, round up to a whole number of risers, then divide the rise by that count.

There is always one more riser than there are treads. The first steps from the ground onto the bottom tread; the last steps from the top tread onto the deck, where no tread is needed. Count risers when you divide the rise, treads when you work out the run and order material.

Notched stringers and dropped stringers

Cut every stringer from the same marks.

How the 3/8" variation rule works in practice

R311.7.5.1 caps the riser at 7¾″ and adds a second limit: the greatest riser may not be more than 3/8" taller than the smallest. R311.7.5.2 does the same for treads — 10″ minimum nosing to nosing, no tread more than 3/8" off another. A stair can sit under the maximum and still fail on the spread.

In practice you cannot shim a tread to fix a sag, leave the bottom step short, or lay the decking after the stringers are set — the deck board shifts the top riser by its full thickness. One riser off, usually the bottom one, is the most common stair failure.

Nosing — and when you don't need it

R311.7.5.3 requires the nosing to project ¾″ to 1¼″ beyond the riser below, with a radius no larger than 9/16" or a bevel no larger than ½″. The projection counts toward tread depth, so the code measures nosing to nosing. Nosing isn't required where the tread is at least 11″ deep.

Handrails and the 34″–38″ band

R311.7.8 requires a handrail on at least one side of any flight with four or more risers, set 34″ to 38″ above the nosing line, measured vertically and not along the rake. A deck stair that just clears grade often comes out at four risers. Also checked: 36″ clear width (R311.7.1) and 6′8″ headroom (R311.7.2).

Worked example — a 30″ deck rise

The calculator opens on a 30″ rise and a 10″ tread run. Work it by hand:

R311.7.6 wants a 36″ landing top and bottom, so the stair eats 30″ of run plus that landing; R311.7.3 caps a flight at 12′7″ of rise.

Common mistakes

Stair stringer FAQ

How do I figure out the number of risers and the riser height?

Divide the total rise by the maximum riser you're allowed, round up to a whole number, then divide the rise by that count. A 30″ rise gives 4 risers at 7.5″ each.

Why is the stringer longer than the total run?

It is the hypotenuse of a right triangle, not the run: √(rise² + run²). A 30″ rise with a 30″ run is 42.4″.

Do I need a handrail on a set of deck stairs?

Yes, for any flight with four or more risers (R311.7.8), set 34″ to 38″ above the nosing line and measured vertically.

Is the 7¾″ riser maximum the same everywhere?

No. Base IRC 2021 is 7¾″ risers with 10″ treads; CT, VA and MA allow 8¼″ with 9″, and OR 8″ with 9″.

Related pages