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

The formula, end to end

  1. Risers = total rise ÷ target riser, rounded — then raised to the ceiling of rise ÷ max riser (7-3/4 in IRC, 7 in IBC) if the rounded count leaves a riser over code.
  2. Actual riser = total rise ÷ risers. One division for the whole flight keeps every step identical.
  3. Treads = risers − 1; total run = treads × tread depth.
  4. Stringer length = √(rise² + run²) + 12 in for the top plumb cut and bottom attachment.
  5. Stringers = 3 boards up to 36 in of width, plus one per additional 16 in.

Worked example: 9 ft floor to floor

Run the defaults by hand — 108 in rise, 7 in target riser, 10.5 in treads, 36 in wide, IRC:

  • 108 ÷ 7 = 15.43, rounds to 15 risers; the code floor, ceiling of 108 ÷ 7.75, is only 14, so 15 stands.
  • Actual riser = 108 ÷ 15 = 7.2 in — under 7-3/4 in, PASS.
  • Treads = 14; total run = 14 × 10.5 = 147 in — 12 ft 3 in.
  • Stringer = √(108² + 147²) = √33,273 ≈ 182.41 in, plus 12 in of waste = 194.41 in — about 16.2 ft.
  • At 36 in wide: 3 stringers, all cut identically.

The punchline is that 16.2 ft: longer than a 16 ft 2x12, the longest board many lumberyards stock. You special-order an 18-footer or break the flight with a landing — exactly why full-height basement stairs so often turn. The same stair under the IBC fails twice: the 10.5 in tread misses the 11 in minimum, and the riser count clamps up to 16, dropping the riser to 6.75 in.

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.

The geometry limits side by side:

RequirementIRC R311.7 (residential)IBC 1011 (commercial)
Maximum riser height7-3/4 in7 in
Minimum riser heightnone stated4 in
Minimum tread depth10 in11 in
Riser/tread uniformity3/8 in max variation3/8 in max variation
Minimum headroom6 ft 8 in6 ft 8 in
Minimum clear width36 in44 in (36 in under 50 occupants)
Max rise between landings151 in (12 ft 7 in)12 ft
Handrailsone side, flights of 4+ risersboth sides

2015-and-later editions; the width and handrail rows carry exceptions (spiral stairs, occupant load).

Common mistakes when cutting stringers

  • Not dropping the stringer. Trim the bottom of the stringer by one tread thickness, or the first step ends up that much taller once treads go on — a 1 in tread turns a passing layout into a 3/8 in uniformity fail.
  • Measuring rise off the subfloor. Total rise is finished floor to finished floor. If 3/4 in hardwood goes down upstairs but not below, the top riser lands 3/4 in out of tolerance.
  • Stacking layout error. Stepping the framing square down the board freehand accumulates a pencil-width of drift per step. Clamp stair gauges to the square and check the layout against the calculated hypotenuse before cutting.
  • Overcutting the notches. Running the circular saw past the layout lines severs fibers in the throat — the wood doing all the work. Stop at the lines; finish corners with a handsaw.
  • Buying board length off the run. The stringer is the diagonal: the 9 ft example needs 194 in of board against a 147 in run.

Sources & how we keep this current

  • IRC R311.7 (2015 and later editions) — residential riser, tread, headroom, width, vertical-rise, and handrail limits; readable free at the ICC's public code library, codes.iccsafe.org.
  • IBC 1011 — the commercial equivalents, including the 4 in minimum riser and occupant-load width triggers.
  • American Wood Council DCA 6 (Prescriptive Residential Wood Deck Construction Guide) — cut-stringer practice: 2x12 stock and a minimum 5 in throat behind the notches.

The riser, tread, and headroom constants live in a versioned data file last verified against those sections on 2026-06-04; if a new edition moves a limit, the data file changes and every number here updates with it. What no calculator can check is local amendments — some states raise the maximum riser to 8-1/4 in, others enforce older editions — so confirm the adopted edition with your building department before cutting.

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.

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.
How long a 2x12 do I need for a stair stringer?
Longer than the run suggests, because the stringer is the diagonal. A 9-foot floor-to-floor (108 inches) at 15 risers and 10.5-inch treads has a 147-inch run, so the stringer is √(108² + 147²) ≈ 182.4 inches, plus about 12 inches for the top plumb cut and bottom attachment — roughly 194 inches, or 16.2 feet. That's longer than a 16-foot board, so you special-order an 18-footer or break the flight with a landing.
How many stringers does a 48-inch-wide stair need?
Four. Three stringers carry a stair up to 36 inches wide; past that, add one for each additional 16 inches of width — 48 − 36 = 12 extra inches rounds up to one more board. Keeping stringers at 16 inches on center or tighter stops 1-inch and 5/4 treads from flexing underfoot; wide deck stairs are where builders most often skimp.
How much wood must remain after notching the stringer?
The American Wood Council's deck guide (DCA 6) calls for at least 5 inches of solid wood — the throat — between the notch corner and the back edge of a cut stringer. A 2x12 is actually 11-1/4 inches wide, and a 7.2-inch riser with a 10.5-inch tread removes a notch about 5.9 inches deep measured square to the edge, leaving roughly a 5.3-inch throat. The same notch in a 2x10 (9-1/4 inches) leaves under 3.5 — which is why the 2x12 is the standard stringer board.
When does a stair need a landing?
When a single flight rises more than 151 inches (12 ft 7 in) under the IRC (R311.7.3), or more than 12 feet under the IBC (1011.8), it must be broken with an intermediate landing — at least 36 inches deep in the direction of travel under IRC R311.7.6. A standard 9-foot floor-to-floor fits in one flight; a walk-out basement with a 13-foot rise does not.