Stair Stringer Calculator

Calculate riser count, tread count, stringer length, and stair angle from your total rise. Built around the 24-25 carpenter's rule.

Stair Inputs

1. Required
2. Tread

Preset auto-fills tread thickness & depth. Pick Custom to enter your own.

3. Optional — code checks

All dimensions in inches. The calculator assumes US conventions (IRC residential / IBC commercial code references).

What the inputs mean

Five measurements drive every stringer. Enter them above to generate a cut sheet and diagram.

upper floor A Total rise floor to floor F Riser height one step T Tread depth / cut Tread thickness (board thickness) Stringer board size (board width — e.g. 2×12 = 11¼″) All dimensions in inches · US conventions

How Stair Stringer Math Works

A stair stringer is the diagonal board that supports each step. Cutting one correctly comes down to three measurements: total rise (floor to floor), riser height (each step's vertical face), and tread depth (each step's horizontal walking surface). Get those right and the stringer length, total run, and stair angle all fall out of basic right-triangle math.

The workflow

  1. Measure the total rise — finished floor to finished floor.
  2. Pick a target riser height (most residential codes cap at 7¾ inches).
  3. Divide total rise by target riser, round to a whole number — that's your number of risers.
  4. Divide total rise by the rounded riser count to get the actual riser height. Every riser must be identical (variance ≤ ⅜" per code, but practically should be exact).
  5. Number of treads = number of risers − 1 (the top step is the upper floor).
  6. Total run = treads × tread depth. Stringer length = √(rise² + run²).

The 24-25 rule (Blondel's stride formula)

A reliable comfort check: 2 × riser + tread should land between 24 and 25 inches. This empirical rule, credited to French architect François Blondel in 1675, keeps stride length comfortable for typical adults. A 7" riser with 11" tread = 25, a classic combination. A 6" riser with 12" tread = 24, equally good. Stairs that violate this often feel either cramped or stretched.

US Building Code Requirements (IRC vs IBC)

Two model codes govern stair construction in the United States. The International Residential Code (IRC) covers one- and two-family homes and townhouses up to three stories. The International Building Code (IBC) covers commercial buildings, multi-family residential (4+ units), and most public spaces. Local jurisdictions adopt and amend these codes — always confirm with your local building department before pulling permits.

Requirement IRC (Residential) IBC (Commercial / Multi-family)
Maximum riser height 7¾ in (196 mm) 7 in (178 mm)
Minimum riser height No minimum 4 in (102 mm)
Minimum tread depth 10 in (254 mm) 11 in (279 mm)
Riser/tread variation within flight ⅜ in (9.5 mm) max ⅜ in (9.5 mm) max
Minimum stair width 36 in (914 mm) above the handrail 44 in (1118 mm); 36 in if occupant load < 50
Minimum headroom 6 ft 8 in (2032 mm) 6 ft 8 in (2032 mm)
Handrail height 34–38 in above nosing 34–38 in above nosing
Handrails required One side, when 4+ risers Both sides on most flights
Max vertical rise per flight 12 ft 7 in (147 in) before landing 12 ft (144 in) before landing
Tread nosing projection ¾ in to 1¼ in (required if tread < 11 in) ¾ in to 1¼ in
Open riser opening 4 in sphere can't pass through 4 in sphere can't pass through
Code reference IRC 2021 § R311.7 IBC 2021 § 1011

The yellow "Code compliance check" row in the calculator's results panel above flags whether your inputs (assumed in inches) clear the IRC and IBC riser/tread thresholds. It's a fast first-pass check, not a substitute for a permit review. Other code requirements — width, headroom, handrails, landings — depend on the surrounding architecture and need separate verification.

Worked example: code-compliant residential basement stair

You're building a basement stair with a finished floor-to-floor rise of 108 inches (9 feet — typical for a basement with 8' ceilings + 12" of joist/subfloor). Target a comfortable 7½" riser.

numRisers = round(108 / 7.5) = 14
actual riser = 108 / 14 = 7.714" ✓ (under IRC 7¾" max)
numTreads = 14 − 1 = 13
tread depth = 10" ✓ (meets IRC 10" min)
total run = 13 × 10 = 130"
stringer = √(108² + 130²) = √(11664 + 16900) = √28564 ≈ 169.0"
angle = arctan(108 / 130) ≈ 39.7°
Blondel: 2 × 7.714 + 10 = 25.43" — slightly above 25, acceptable

Order a stringer board at least 14 ft (168 in) long — round up to 16 ft to allow for plumb cuts at the top, level cuts at the bottom, and waste. Standard 2×12 stringers in pressure-treated SYP or LVL are typical for residential.

Worked example: deck stair (lower rise)

A backyard deck sits 36 inches above grade. You want a comfortable garden-friendly stair.

Try riser = 6" → numRisers = 6 → actual riser = 6.0"
numTreads = 5, tread = 11" (use 2×6 + 2×6 deck boards = 11¼" net)
total run = 55"
stringer = √(36² + 55²) ≈ 65.7"
angle ≈ 33.2° (very comfortable for outdoor)
Blondel: 12 + 11 = 23 — below 24, slightly stretched but acceptable for outdoor

Headroom, landings, and width

The calculator handles the geometry of the stair itself, but a code-compliant stair also requires:

  • Headroom — 6 ft 8 in (80 in) minimum, measured vertically from the leading edge of any tread (the nosing) up to the lowest obstruction (a beam, ceiling, or upper landing edge). Tight basement stairs frequently fail this.
  • Landings — minimum 36" deep (or as wide as the stair, whichever is larger), required at top and bottom. Required mid-flight every 12 ft of vertical rise (IBC) or 12 ft 7 in (IRC).
  • Width — 36" minimum for residential, 44" for most commercial. Measured above the handrail height — handrails can project 4½" maximum into the required width.
  • Nosing — ¾" to 1¼" projection beyond the riser face. Required when tread depth is less than 11" (IRC). Eases foot placement and reduces tripping.

Cutting the stringer

Once you know your riser height (R) and tread depth (T), laying out the stringer is straight framing-square work:

  1. Set the framing square with R inches on the tongue and T inches on the body, both aligned to the top edge of your stringer board (typically a 2×12).
  2. Mark each step. Slide the square down the board by exactly one step (R units down, T units along), and repeat. Use stair gauges (small clamps that lock onto the square) for repeatability.
  3. Adjust for the bottom step. The bottom riser must be reduced by the thickness of one tread board. If your treads are 1″ thick decking, cut 1″ off the bottom of the first riser — otherwise the first step ends up taller than the rest by the tread thickness.
  4. Cut the top plumb cut and bottom level cut — these connect the stringer to the upper rim and the lower floor/concrete.

Common mistakes to avoid

  • Forgetting to subtract tread thickness from the bottom riser. The most common DIY error — leaves the first step taller than the rest, which is both uncomfortable and a code violation.
  • Measuring rise to subfloor instead of finished floor. Account for finish flooring (tile, hardwood, carpet pad) on both upper and lower floors when measuring total rise.
  • Mixing riser heights. All risers within a flight must be within ⅜" of each other. The simplest way: divide total rise by an integer number of risers and use that exact value for every step.
  • Picking tread depth before riser height. Always solve for risers first (driven by total rise), then choose tread depth. Tread depth has more flexibility — you can pick any value from the code minimum upward based on available run.
  • Not checking headroom early. Calculate the headroom under the upper-floor framing before you commit to the stair location. Tight basements often need a steeper stair (more risers, less run) to clear a beam.

Related calculators

Frequently Asked Questions

How do I calculate the number of risers in a staircase?

Divide the total rise (floor-to-floor height) by your target riser height (typically 7–7¾ inches in U.S. residential code), then round to the nearest whole number. Then divide the total rise by that number of risers to get the actual riser height — every riser must be the same.

What's the difference between treads and risers?

Risers are the vertical faces between treads. Treads are the horizontal stepping surfaces. There's always exactly one fewer tread than riser, because the top step is the upper floor itself, not an additional tread.

What is the 24-25 rule for comfortable stairs?

An old carpenter's rule: 2 × riser + tread should fall between 24 and 25 inches for a comfortable stair. So a 7" riser with 11" tread = 25 — perfect. A 6" riser with 12" tread = 24 — also fine. This rule keeps the stride natural at typical walking speeds.

How long should a stair stringer be?

Stringer length is the hypotenuse of a right triangle with total rise and total run as legs: stringer = √(rise² + run²). Round up and add a few inches for the bottom and top connections. This calculator gives you the exact theoretical length.

What angle should stairs be?

Most residential code allows stairs between roughly 30° and 38°. The most comfortable range is around 32–35°. Steeper than that feels like a ladder; shallower wastes floor space. Code typically caps riser height at 7¾" and requires tread depth of at least 10".

Are these dimensions code-compliant?

This calculator's results panel shows an IRC/IBC compliance check (assuming inches). IRC (residential): riser ≤ 7¾", tread ≥ 10". IBC (commercial / multi-family): 4" ≤ riser ≤ 7", tread ≥ 11". A green check on the badge means the riser/tread thresholds clear the code, but width, headroom, handrail, and landing rules still need separate verification. Always confirm with your local building department before cutting stringers.

What is the maximum riser height for residential stairs?

Per the 2021 IRC § R311.7, the maximum riser height for one- and two-family residential stairs is 7¾ inches (196 mm). The minimum tread depth is 10 inches (254 mm). The IBC, which governs commercial and multi-family residential (4+ units), is stricter: 7" max riser, 11" min tread.

How many stairs do I need for an 8-foot ceiling?

An 8' ceiling typically means a floor-to-floor rise of about 105–110 inches once you add joist depth and finish floor. For 108 inches of rise: 14 risers at 7.71" each, with 13 treads at 10" minimum = 130" of total run, stringer ≈ 169" (about 14 ft). Always measure your specific floor-to-floor rise — don't assume 8 feet.

Can riser heights vary within the same staircase?

No more than ⅜ inch variation between any two risers in a flight (per both IRC and IBC). Practically, you should aim for zero variation: divide the total rise by an integer number of risers and use that exact dimension for every step. Inconsistent risers are a serious tripping hazard and a common code-violation flag during inspections.

What is the minimum headroom for a staircase?

Both IRC and IBC require a minimum of 6 ft 8 in (80 inches / 2032 mm) of headroom, measured vertically from the leading edge of any tread (the nosing) up to the lowest obstruction (ceiling, beam, or upper landing edge). Tight basement stairs frequently fail this if the upper floor framing isn't planned carefully.

Learn More About Trigonometry

View all articles

Deepen your understanding of triangles and trigonometry with our guides and tutorials: