Free Construction Tool

Stair Calculator – Risers, Treads & Stringer Length

Reviewed and updated: August 2026

Calculate your staircase dimensions from total rise: number of risers, actual riser height, total run, stringer length, and lumber needed. Includes an automatic IRC building code check to flag violations before you start cutting.

in
in
in
in
$
Enter values above
YOUR STAIRCASE
Risers
—
Actual riser height
—in
Total run
—ft
Stringer length
—ft
IRC Code —
—

Calculate your staircase dimensions from total rise: number of risers, actual riser height, total run, stringer length, and lumber needed. Includes an automatic IRC building code check to flag violations before you start cutting.

How to Calculate Stair Dimensions

Measure your total rise: the vertical distance from finished floor to finished floor. Enter that in inches. The calculator divides it into equal risers near your desired height, and calculates stringer length using the Pythagorean theorem: √(total rise² + total run²). Getting total rise right is the foundation of the whole calculation, since every other number (riser count, riser height, run, and stringer length) is derived directly from it.

Worked example: a total rise of 108 inches (9 ft, a common floor-to-floor height) targeting a 7-inch riser. 108 ÷ 7 = 15.43, rounded to 15 risers. True riser height = 108 ÷ 15 = 7.2 inches, comfortably under the 7¾" code maximum. At a 10-inch tread depth, total run = 15 × 10 = 150 inches (12.5 ft). Stringer length = √(108² + 150²) ÷ 12 = √(11,664 + 22,500) ÷ 12 = √34,164 ÷ 12 ≈ 15.4 ft. Add roughly 2 ft of buffer for the cut and order 18 ft stock (or splice two shorter boards if 18 ft isn't available locally).

RISE, RUN & STRINGER LENGTH Total rise Total run Stringer = √(rise² + run²)

What is the IRC Code for Stairs?

IRC requires: maximum riser height of 7-3/4 inches, minimum tread depth of 10 inches, minimum stair width of 36 inches. All risers must be within 3/8 inch of each other. Our calculator automatically flags any violations.

How Many Stringers Do I Need?

Stairs up to 36 inches wide use 2 stringers. Stairs 36–48 inches wide require 3. Wider stairs need additional stringers every 16–18 inches.

Headroom, Handrails & Guardrails: The Other Code Requirements

Riser height and tread depth are the two numbers this calculator checks, but a stair inspection covers more than just those two dimensions. These are the other IRC requirements worth planning for before you build:

ElementIRC Minimum/MaximumNotes
Headroom6 ft 8 in minimumMeasured vertically from the tread nosing line to any ceiling or header above
Handrail height34 to 38 in above the nosingRequired on at least one side for stairs with 4+ risers
Guardrail height36 in minimumRequired on open sides of stairs and landings more than 30 in above grade
Guardrail openingLess than 4 in spherePrevents a small child from passing through or getting stuck
Tread nosing3/4 to 1-1/4 in projectionRequired when tread depth is less than 11 in
Winder tread depth10 in minimum at the walk lineApplies to curved or angled stair sections

Headroom is the most common framing-stage mistake: it's easy to design a stair on paper that meets the riser and tread requirements but ends up with insufficient headroom once you account for the floor framing and any ductwork above. Check headroom clearance before framing the floor opening, not after, since fixing a headroom shortfall after the floor is framed usually means cutting into structural framing or redesigning the stair layout entirely.

Open vs. Closed Stringers

The stringer style affects both material choice and finish work:

This calculator's stringer length and lumber estimate applies directly to cut (open) stringers, the standard approach for most residential stairs. Closed stringer and mono stringer designs require different material takeoffs specific to the housing or steel fabrication involved.

Common Stair Building Mistakes

Local code sometimes differs from the base IRC requirements used in this calculator: some jurisdictions have adopted amendments with stricter riser/tread rules, especially for exterior or commercial stairs. Always verify with your local building department before finalizing a permitted staircase design.

Planning a related project? See our rafter calculator and materials estimation guide.

Frequently Asked Questions
How do I calculate the number of stairs? ▾
Divide your total rise (in inches) by your desired riser height (typically 7 inches) and round to the nearest whole number. Then divide total rise by that count to get your true riser height.
What is the maximum riser height for stairs? ▾
The IRC maximum riser height is 7-3/4 inches. Most builders target 7 to 7.25 inches for comfortable stair climbing.
What lumber do I use for stair stringers? ▾
Stair stringers are typically cut from 2×12 lumber. For exterior stairs, always use pressure-treated 2×12. The minimum remaining depth after notching must be at least 3.5 inches.
How much headroom do I need above a staircase? ▾
IRC requires a minimum of 6 ft 8 in of headroom, measured vertically from the tread nosing line (an imaginary line connecting the front edge of each tread) to any ceiling, header, or ductwork above. This is one of the most common stair defects found in remodels and additions, since it's easy to calculate riser and tread dimensions correctly on paper but overlook a floor joist or duct run that intrudes into the headroom path once framing begins. Verify headroom clearance before cutting the floor opening for a new staircase.
Do I need a landing if my stairs are long? ▾
Yes. IRC limits a single flight of stairs to a maximum vertical rise of 12 feet between landings. A landing must be at least as wide as the stairs and a minimum of 36 inches in the direction of travel. If your total rise exceeds 12 feet, split the run into two or more flights connected by a landing rather than building one continuous run.
Why do my calculated risers not divide evenly? ▾
Total rise rarely divides evenly by a whole riser height, which is exactly why this calculator rounds to the nearest whole number of risers and then recalculates the true riser height. For example, a 100-inch total rise at a 7-inch target doesn't divide evenly (100 ÷ 7 = 14.3), so the calculator rounds to 14 risers and recalculates: 100 ÷ 14 = 7.14 inches per riser. All risers in a flight must be within 3/8 inch of each other, so this even redistribution across all risers, rather than one odd-sized riser at the top or bottom, is both code-compliant and the standard construction practice.