Stair Stringer, Riser & Tread Code Calculator
Design code-compliant stairs with total rise, number of steps, exact riser height, tread depth, and stringer length.
All formulas and computation matrices for this calculator execute directly in your browser with zero latency. Enter your parameters to see instant results.
Who Uses This Calculation & Why Accuracy Matters
Carpenters, deck builders, framing contractors, architects, building code inspectors, and DIY builders use this calculator to determine stair stringer length, number of steps, exact riser height, tread run depth, stringer throat depth, and total incline angle following International Residential Code (IRC) and IBC standards.
A deck builder connecting a 60-inch high deck surface (total rise = 60 in) down to a concrete patio slab.
A framing carpenter installing a staircase with total vertical rise of 106.5 inches.
An architect designing a commercial staircase requiring strict IBC commercial riser maximums (7.0 inches max rise, 11.0 inches min tread).
International Residential Code (IRC) & IBC Stair Building Standards
Official building code dimensions and safety thresholds for residential and commercial stairs.
| Stair Dimension / Feature | IRC Residential Code Rule | IBC Commercial Code Rule | Standard Comfortable Dimension | Code Compliance Purpose |
|---|---|---|---|---|
| Maximum Riser Height | 7.75 inches (197 mm) | 7.00 inches (178 mm) | 7.0 – 7.5 inches | Prevents tripping; limits step vertical lifting effort |
| Minimum Tread Run Depth | 10.00 inches (254 mm) | 11.00 inches (279 mm) | 10.5 – 11.5 inches | Ensures adequate ball-of-foot support during descent |
| Blondel's Rule (2R + T) | 24.0 to 25.0 inches | 24.0 to 25.0 inches | Exact 24.5 to 25.0 inches | Optimizes natural human walking stride cadence |
| Riser Height Variation | Max 0.375 in (3/8") delta | Max 0.375 in (3/8") delta | Zero tolerance (Identical risers) | Prevents rhythmic foot stumbling on staircase |
| Minimum Headroom | 80.0 inches (6 ft 8 in) | 80.0 inches (6 ft 8 in) | 84.0 inches (7 ft 0 in) | Prevents head collision with upper ceiling header |
| Handrail Height | 34.0 – 38.0 inches | 34.0 – 38.0 inches | 36.0 inches | Ergonomic hand grasp during loss of balance |
* International Code Council (ICC): International Residential Code (IRC 2024 Section R311.7).
Stair Trigonometry & Stringer Geometry Equations
Calculates riser count by dividing total rise by the target riser height (typically 7.5 in), then solves for stringer hypotenuse using the Pythagorean theorem.
Exact vertical distance from finished lower floor to finished upper floor.
Must not exceed 7.75 inches under IRC residential code.
Must be at least 10.0 inches under IRC residential code.
Step-by-Step Worked Examples with Real Numbers
Worked Example 1: 60-Inch Deck Stair Stringer Layout
8 equal risers.
Riser height.
Horizontal footprint.
Requires 8-ft 2x12 stringer lumber.
Optimal stair comfort.
Worked Example 2: Uneven 100-Inch Total Rise
13 risers.
Valid residential rise.
Run span.
Assumptions, Edge Cases & Common Calculation Mistakes
ℹ Underlying Algorithm Assumptions
- Assumes finished upper and lower floor surfaces are installed before measuring total rise.
- Assumes 2x12 pressure-treated lumber for exterior stair stringers (minimum 3.5-inch throat depth remaining after cutouts).
- Assumes stringers spaced maximum 16 inches on center (or 12 inches for composite decking).
⚠ 3 Common Mistakes to Avoid
- Forgetting to drop the stringer bottom: The bottom of the stringer must be trimmed by the thickness of the tread material (e.g. 1.0 inch) so that the first step and last step have identical riser heights.
- Over-cutting stringer throat depth with a circular saw past the layout marks, creating stress fractures that cause stairs to collapse under load.
- Violating the 3/8-inch maximum variation rule: Having one step that is 1/2 inch taller than the others is the leading cause of residential stair tripping lawsuits.
Frequently Asked Questions
Why must you "drop the stringer" at the bottom step?
When you place a 1-inch tread board onto the stringer cutouts, it elevates every step by 1 inch. To keep the bottom step at the same height as all other steps, you must cut off the thickness of one tread (e.g., 1.0 inch) from the bottom foot of the stringer.
What is Blondel's Comfort Rule for stair design?
Formulated by French architect François Blondel in 1675, the rule states that: (2 × Rise) + Tread = 24 to 25 inches. This matches the natural human walking stride, ensuring ascending and descending feel effortless and safe.
What is the maximum allowed riser height under residential building code (IRC)?
Under the International Residential Code (IRC R311.7.5.1), the maximum riser height is 7.75 inches (197 mm), and the minimum tread depth is 10.0 inches (254 mm).
What is the "throat depth" of a wooden stair stringer?
The throat depth is the uncut portion of the 2x12 lumber remaining between the inner notch corners and the back edge of the board. Building codes require a minimum throat depth of at least 3.5 inches to provide adequate structural load-bearing capacity.
What is the maximum incline angle for a safe residential staircase?
A comfortable and code-compliant residential staircase has an incline angle between 34 and 37 degrees. Angles exceeding 42 degrees resemble ladders and are unsafe for standard descent.