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
$
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).
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:
Element
IRC Minimum/Maximum
Notes
Headroom
6 ft 8 in minimum
Measured vertically from the tread nosing line to any ceiling or header above
Handrail height
34 to 38 in above the nosing
Required on at least one side for stairs with 4+ risers
Guardrail height
36 in minimum
Required on open sides of stairs and landings more than 30 in above grade
Guardrail opening
Less than 4 in sphere
Prevents a small child from passing through or getting stuck
Tread nosing
3/4 to 1-1/4 in projection
Required when tread depth is less than 11 in
Winder tread depth
10 in minimum at the walk line
Applies 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:
Cut (open) stringers: notched with a sawtooth profile so treads sit directly on the cut steps; the most common residential style, visible from the side unless boxed in
Closed (housed) stringers: solid boards with treads and risers routed or dadoed into grooves on the inside face; used for a finished look on staircases without a side wall, common in higher-end interior stairs
Mono or center stringers: a single heavy structural stringer down the center, with treads cantilevered on either side; a modern architectural look that requires engineered structural design, not a DIY cut-stringer project
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
Uneven risers: the single most common code violation and the most dangerous. All risers in a flight must be within 3/8 inch of each other; a person's foot expects a consistent rhythm, and an odd riser is a leading cause of stair falls
Guessing at total rise instead of measuring: total rise depends on actual finished floor heights, including flooring material thickness on both levels, not the rough framing dimension. Measure after flooring is installed or account for its thickness in advance
Forgetting nosing on tread depth: a tread with a 1-inch nosing overhang can count part of that overhang toward the minimum 10-inch tread depth requirement in some jurisdictions, but not all; check your local code before relying on nosing to meet minimum depth
Skipping the headroom check: confirm 6'8" of clearance along the full stair run before committing to a floor opening size
Under-sizing stringers for wide stairs: stairs over 36 inches wide need a third (or additional) stringer down the center; skipping this creates a bouncy, under-supported stair
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.
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.