calcnet
All calculators

Construction

Stair Stringer Calculator

Enter the floor-to-floor rise and get the number of risers, exact riser height, total run, and 2x12 stringer length — with a live IRC / IBC code check.

Inputs

Inches. A standard 9 ft floor-to-floor is 108 in.

Inches. 7 in is comfortable; clamped to code max if needed.

Inches. IRC min 10 in, IBC min 11 in.

Inches. Drives the number of stringers.

Result

Adjust the inputs to see your result.

How the math works

A stair is just a right triangle. The total rise (floor to floor) is one leg, the total run is the other, and the stringer is the hypotenuse. The hard part isn't the trig — it's hitting it while staying inside the building code's limits on how tall each step can be and how deep it has to be.

Start with the rise. Divide it by your target riser height to get a step count, then round to a whole number — you can't have a fractional step. The calculator then checks that count against the code: if dividing the rise by it would leave a riser taller than the maximum, it adds a step and recomputes. The actual riser height is the total rise divided by the final number of risers, so every step comes out identical.

Risers, treads, and the stringer

There is always one more riser than tread — the top riser lands you on the floor above, which isn't a tread. So treads = risers − 1, and the total run is that tread count times your tread depth. The stringer length is the hypotenuse of the rise and run, √(rise² + run²), plus about a foot of extra board for the top plumb cut and the bottom attachment to the floor. That stock is almost always a 2x12.

Where stairs fail inspection

  • Riser too tall. Over 7-3/4 in (IRC) or 7 in (IBC) is an automatic fail. Add a riser to bring it down.
  • Tread too shallow. Under 10 in (IRC) or 11 in (IBC) and the stair is steeper than code allows.
  • Risers not uniform. The most-cited stair defect: every riser must be within 3/8 in of every other. Lay them all out from one total-rise measurement, not by stacking step on step.
  • Headroom. Both codes want 80 in of clear headroom measured plumb from the tread nosing — easy to lose under a low ceiling or a stair above.

IRC vs. IBC — pick the right code

The IRC covers one- and two-family dwellings; the IBC covers commercial and most multi-family work. The IBC is the stricter of the two on geometry, so a basement stair that passes as residential can fail if the same building is later classed commercial. When in doubt, build to the tighter IBC numbers — a 7 in max riser and 11 in tread ride more comfortably anyway. Either way, verify your local amendments: jurisdictions tweak these limits.

Riser, tread, and headroom limits from IRC R311.7 and IBC 1011 — model codes, enacted into law and not copyrightable per Veeck v. SBCCI. Stringer geometry is plain trigonometry. Verify local amendments.

Recommended

Recommended for this job

We may earn a commission on qualifying purchases. Prices and availability are set by the vendor.

FAQ

Questions, answered

What is the maximum stair riser height by code?
Under the IRC (residential, R311.7) the maximum riser is 7-3/4 inches. Under the IBC (commercial, 1011) it drops to 7 inches. Both require a minimum tread depth — 10 inches IRC, 11 inches IBC — and all risers must be within 3/8 inch of each other.
How many stairs do I need for an 8-foot rise?
An 8-foot (96-inch) floor-to-floor rise at a comfortable 7-inch target gives 14 risers (96 ÷ 14 ≈ 6.86 inches each) and 13 treads under the IRC. The calculator increases the riser count automatically if your target would push the riser over the code maximum.
What size board do I need for a stair stringer?
A 2x12 is the standard stringer board. After cutting the riser/tread notches, a 2x12 leaves the minimum 3-1/2 to 5 inches of remaining throat depth most codes expect. The calculator returns the cut length of the stringer — buy a board at least that long.
What's the difference between IRC and IBC stairs?
The IRC governs one- and two-family homes; the IBC governs commercial and most multi-family buildings. The IBC is stricter: 7-inch max riser vs. 7-3/4, and 11-inch min tread vs. 10. A stair that passes the IRC can fail the IBC, so pick the code your jurisdiction enforces.
Are my risers code-compliant?
Enter your total rise and target riser and the calculator flags PASS or FAIL against the chosen code's maximum riser and minimum tread. The other half of compliance is uniformity: every riser must be within 3/8 inch of every other — measure from one total-rise figure rather than stacking step-by-step.