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
Result
Adjust the inputs to see your result.
Recommended gear
Recommended for this job
This block contains affiliate links. As an Amazon Associate, we earn from qualifying purchases. Prices and availability are set by the vendor.
- View on Amazon (opens in a new tab)
Framing square + stair gauges
The stair gauges clamp to the square so you scribe identical riser/tread cuts down the whole stringer.
- View on Amazon (opens in a new tab)
2x12 stringer board
The standard stringer stock. Buy boards at least as long as the cut length this calculator returns.
- View on Amazon (opens in a new tab)
Stair tread brackets
Hidden angle brackets fasten each tread to the stringers without face-nailing through the tread.
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
- 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.
- Actual riser = total rise ÷ risers. One division for the whole flight keeps every step identical.
- Treads = risers − 1; total run = treads × tread depth.
- Stringer length = √(rise² + run²) + 12 in for the top plumb cut and bottom attachment.
- 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:
| Requirement | IRC R311.7 (residential) | IBC 1011 (commercial) |
|---|---|---|
| Maximum riser height | 7-3/4 in | 7 in |
| Minimum riser height | none stated | 4 in |
| Minimum tread depth | 10 in | 11 in |
| Riser/tread uniformity | 3/8 in max variation | 3/8 in max variation |
| Minimum headroom | 6 ft 8 in | 6 ft 8 in |
| Minimum clear width | 36 in | 44 in (36 in under 50 occupants) |
| Max rise between landings | 151 in (12 ft 7 in) | 12 ft |
| Handrails | one side, flights of 4+ risers | both 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