Last verified · v1.0
Calculator · construction
Stair Stringer Length Calculator
Calculate the precise diagonal stringer board length for any staircase using total rise, tread depth, riser count, and connection allowance.
Inputs
Stringer Length
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
How the Stair Stringer Length Calculator Works
Calculating the correct stringer length is one of the most critical steps in stair construction. A stringer — the diagonal structural board that supports the treads and risers — must be cut to a precise length to ensure safe, code-compliant stairs. This calculator applies the Pythagorean theorem combined with IRC-based riser and tread geometry to determine the exact board length needed before a single cut is made.
Core Formula
The stringer length L is derived from:
L = √(Rtotal² + (nT × Td)²) + A
The number of risers and treads are computed first:
- nR = round(Rtotal ÷ Rtarget) — rounds to the nearest whole number of risers
- nT = nR − 1 — one fewer tread than risers, since the upper floor serves as the final landing
Variable Definitions
- Rtotal (Total Rise): The vertical distance in inches from the lower finished floor to the upper finished floor. Measure after flooring is installed to avoid riser height discrepancies.
- Rtarget (Target Riser Height): The desired height of each step. Per IRC 2021 Section R311.7, the maximum allowable riser height is 7.75 inches (196.85 mm). No two risers in the same flight may differ by more than 3/8 inch.
- Td (Tread Depth): The horizontal depth of each step measured from nosing to nosing. IRC 2021 sets a minimum of 10 inches (254 mm). Deeper treads improve safety, particularly during emergency egress as documented by NIST Technical Note 1839.
- A (Stringer Allowance): Extra length added for the connection method at the top or bottom of the stringer — typically 3.5 to 7 inches depending on whether a ledger, hanger, or bearing plate is used.
- L (Stringer Length): The total diagonal board length required, including the connection allowance. This is the minimum lumber length to purchase.
Geometric Derivation
The stringer forms the hypotenuse of a right triangle. The vertical leg equals the total rise Rtotal and the horizontal leg equals the total run nT × Td. Applying the Pythagorean theorem (c = √(a² + b²)) yields the net diagonal length. Adding the stringer allowance A accounts for the material consumed at structural connections.
Worked Example
A deck staircase with a 108-inch total rise (9-foot floor-to-deck), a 7-inch target riser, a 10-inch tread depth, and a 5-inch top-plate allowance calculates as follows:
- nR = round(108 ÷ 7) = round(15.43) = 15 risers
- Actual riser = 108 ÷ 15 = 7.2 inches (within IRC 7.75-inch maximum)
- nT = 15 − 1 = 14 treads
- Total run = 14 × 10 = 140 inches
- Net diagonal = √(108² + 140²) = √(11,664 + 19,600) = √31,264 ≈ 176.8 inches
- Stringer length L = 176.8 + 5 = 181.8 inches (≈ 15.15 feet)
A standard 16-foot 2×12 board accommodates this stringer with comfortable margin for layout and end cuts.
Code Compliance and Safety
IRC 2021 Section R311.7 mandates consistent riser heights and tread depths throughout any residential stair flight. Research from the National Institute of Standards and Technology (NIST TN 1839) on occupant movement during building evacuations confirms that irregular step geometry — even minor variations — significantly increases fall risk. Precision in stringer layout directly reduces this hazard and satisfies inspection requirements.
Practical Cutting Tips
- Use a framing square with stair gauges locked to the actual riser height (not the target) and the chosen tread depth.
- Subtract one tread thickness from the bottom riser cut so all risers remain equal once treads are installed.
- For stair widths over 36 inches, most codes require three stringers — cut all three from the same layout template to ensure uniform geometry.
- Mark the crown of the lumber facing up before cutting to minimize long-term bowing after installation.
Reference