FramersMath

FramersMath › Stairs

Stair Stringer Calculator

Enter the total rise and your target tread depth. You get riser count, exact riser height, total run, stringer length and angle, checked against the residential building code.

Common sizes:

Stair layout

Measurements
Finished floor to finished floor
Nosing to nosing, not board width
Optional
Optional
IRC: 7 3/4"
IRC: 10"
Risers—
Riser height —
Treads —
Total run—
Stringer length (diagonal)—
Stair angle—
Comfort, 2R + T —
Clear width —
Headroom —
2021 IRC R311.7 (one- and two-family homes): max 7¾" riser, min 10" tread, min 36" clear width, min 6'-8" headroom, no more than ⅜" variation between risers in a flight, handrail on flights with 4 or more risers. Local amendments vary.

Run a lumber yard, contractor or DIY site? Embed this calculator free: open “Embed this calculator on your site” at the bottom of this page and paste the code.

⚠ Check all math and verify with a licensed engineer and your local building department before cutting or building. Results are estimates.

Sources: Stairs

  1. 2021 International Residential Code, Chapter 3 (Building Planning)International Code CouncilSection R311.7: max 7¾" riser, min 10" tread, min 36" width, min 6'-8" headroom.
  2. 2021 Seattle Residential Code, Chapter 3 (PDF reprint of the IRC text)City of SeattleCopy of the 2021 IRC R311.7 text the limits were checked against.
  3. Right-triangle geometry (Pythagorean theorem and trigonometry)Standard mathStringer length = √(rise² + run²).
  4. Comfort rule 2 × riser + tread ≈ 24–25"Traditional stair design rule of thumb, not a code requirementThe comfort flag.
  5. Norma Técnica Complementaria para el Proyecto Arquitectónico (Gaceta Oficial del D.F., 8 Feb 2011)Gobierno de la Ciudad de MéxicoMetric mode (Spanish page): Tabla 4.3-B, riser 10–18 cm, min tread 25 cm, max 2.70 m between landings, max 1 cm riser variation; Tabla 4.3, house stair width 0.90 m between walls (0.75 m with a wall on one side).

Code tables are copied from the documents above and checked against a second copy where noted. Your local code, its edition and amendments govern. Check all math and verify with a licensed engineer and your building department. See the terms & disclaimer.

How to use the stair calculator

  1. Measure total rise from the top of the finished lower floor to the top of the finished upper floor. If the flooring isn't down yet, add its thickness (or the difference between the two floors) now. A finish-floor mistake is the most common reason the first or last step comes out a different height.
  2. Enter a tread depth. This is the horizontal run of each step, nosing to nosing, not the width of the tread board. 10" to 11" is typical.
  3. Read the risers. The calculator divides total rise by the max riser and rounds up, so every riser is equal and under the limit. A flight always has one fewer tread than risers, because the upper floor acts as the last step.
TOTAL RUN TOTAL RISE STRINGER LENGTH RISER TREAD
Total rise is split into equal risers. The tread count is one less than the riser count.

Worked example

A basement stair with 108" total rise and a 10¼" tread:

Laying out the stringer

Set stair gauges (or clamps) on a framing square at the riser height on the tongue and tread depth on the blade, then step the pattern down the board. Two adjustments people forget:

The comfort rule

Two risers plus one tread should land between about 24" and 25". It's an old rule of thumb that matches a normal walking stride. The calculator flags flights that come out steep or shallow, but they can still meet code.

FAQ

How do I calculate how many stairs I need?

Divide the total rise (finished floor to finished floor) by the maximum riser height, 7¾" under the IRC, and round up. That gives the number of risers. The number of treads is one less.

What is the maximum stair riser height?

The 2021 International Residential Code allows a maximum riser of 7¾" and a minimum tread of 10" for houses. Commercial stairs under the IBC are stricter: 7" max riser and 11" min tread. Local codes can amend these.

How long should a stair stringer be?

The stringer is the diagonal of the total rise and total run, √(rise² + run²). Buy stock at least a foot longer than that number to allow for the top and bottom cuts.

Why is my bottom step a different height?

Usually because the stringer was not dropped by the tread thickness, or because finished flooring was not included in the total rise. Measure finished floor to finished floor, and cut the bottom of the stringer down by one tread thickness.

How much can stair risers vary?

Under the IRC, the tallest and shortest riser in a flight can differ by no more than ⅜". The same limit applies to tread depths.

How do I calculate stairs with a landing?

Treat each flight as its own stair. Measure the rise from the lower floor to the top of the landing, and from the landing to the upper floor, and run each through the calculator. Keep the riser height the same on both flights. The 2021 IRC limits one flight to 151" of rise and requires landings at least 36" deep in the direction of travel.

Quick answers and printable charts

Embed this calculator on your site

Free for contractor, lumber yard and DIY sites. Paste this into your page HTML:

Disclaimer: Results are estimates for planning and layout only. Check all math yourself and verify with a licensed engineer and your local building department before cutting or building. FramersMath is not a substitute for engineered plans, span tables or code review. See the full disclaimer.