terican

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.

FreeInstantNo signupOpen source

Inputs

Stringer Length

Explain my result

0/3 free

Get a plain-English breakdown of your result with practical next steps.

Stringer Lengthin

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

Frequently asked questions

What is a stair stringer and why does its length matter?
A stair stringer is the diagonal structural board — typically a 2x12 — that runs from the lower floor to the upper floor and supports all treads and risers. Its length determines how much lumber to purchase and where the staircase lands horizontally. An incorrect stringer length causes misaligned landings, uneven risers that fail inspection, or a board that is too short to reach the upper connection point.
How do I calculate the number of risers for my staircase?
Divide the total rise (floor-to-floor height in inches) by the target riser height, then round to the nearest whole number. For example, a 108-inch total rise with a 7-inch target riser gives 108 ÷ 7 = 15.43, which rounds to 15 risers. The actual riser height then becomes 108 ÷ 15 = 7.2 inches — well within the IRC 2021 maximum of 7.75 inches. Always use the rounded riser count, never the decimal.
What does IRC code require for riser height and tread depth?
IRC 2021 Section R311.7 sets the maximum riser height at 7.75 inches (196.85 mm) and the minimum tread depth at 10 inches (254 mm) for residential stairways. No single riser in a flight may deviate from any other by more than 3/8 inch. Violating either limit typically results in a failed building inspection and requires dismantling and rebuilding the affected stair flight.
How much stringer allowance should I add for different connection methods?
The stringer allowance varies by connection type. A bottom kickplate or bearing plate resting on a concrete pad adds approximately 3.5 inches (one 2x4 thickness). A top ledger board or rim-joist notch connection typically adds 3.5 to 5.5 inches. Metal joist hangers and post-base hardware vary by manufacturer specification. Always measure the actual installed hardware and confirm the allowance value before cutting any lumber to length.
What lumber size is best for stair stringers?
A 2x12 dimensional lumber board is the standard choice for residential stair stringers. After notching for each tread and riser, the net remaining section depth at the thinnest point — the effective depth — must remain at or above 3.5 inches per most adopted building codes. A 2x10 board typically leaves insufficient effective depth after notching a standard 7-inch rise and 10-inch run layout, making it unsuitable for most residential applications.
Does this stairs calculator work for both interior and exterior staircases?
Yes. The stringer length formula is purely geometric — total rise, tread depth, and connection allowance — and applies equally to interior and exterior stair flights. However, exterior staircases require pressure-treated or naturally rot-resistant lumber and may be subject to additional local code amendments covering tread nosing profiles, handrail heights, and ground clearance. Always cross-reference the calculated dimensions with the local building department before purchasing materials or beginning construction.