DeckMath
Stair · Pythagorean cut length

Stair Stringer Length Calculator

Pythagorean cut length for stair stringers — hypotenuse² = rise² + run². Add cut allowance + auto-recommend next-stock-up lumber length (8/10/12/14/16/20 ft). Flags angle outside the residential comfort envelope (30-37° sweet spot, IRC max 50°). 2×12 / 2×10 / 2×8 sizing with 2026-Q1 pricing per stringer. Pairs with Number of Steps + Stair Rise & Run + Stair Stringer Calculators.

Pythagorean mathStock-up logicIRC R311.7.4
·Hypotenuse math
30-37°·Comfort angle
Auto·Stock size up
$/stringer·Cost included

Inputs

in

in

in

Stringer · 2x12
10 ft93.8″ cut · 31.5° angle
Hypotenuse
centerline cut length
Stock to buy
2x12 lumber
Angle
comfort 30-37°
Cost/stringer
$4.85/lf

IRC compliance + sizing

Stair angle 31.49° — comfort range

Residential design literature

Within residential design comfort envelope (30-37°). 35° is sweet spot for 7″ rise × 10″ tread.

Buy 10ft 2x12 per stringer · ~$48.50 each

2026-Q1 retail

Hypotenuse 93.8″ + 6″ cut allowance = 99.8″ stock needed. Next stock size up is 10ft.

Pythagorean hypotenuse + next-up stock length. IRC R311.7.4 angle envelope. Pair with Number of Steps + Stair Rise & Run + Stair Stringer Calculators for full design.

How to use

Three steps. Permit-ready output.

  1. 01

    Enter total rise + run

    Rise = grade-to-deck (typically 30-60″). Run = horizontal distance from stair start to deck edge (typically 60-120″).

  2. 02

    Set cut allowance

    6″ default — covers waste cuts at both ends + a touch of overhang. Bump to 12″ for first-time DIY (forgiveness for miscuts). 0″ if you're cutting tight + experienced.

  3. 03

    Pick stringer lumber

    2×12 is the standard for deck stairs (10.25″ effective depth handles 6-9 risers). 2×10 OK for 4-6 risers + short runs. 2×8 only for very low decks (3-4 risers max).

  4. 04

    Read stock length to buy

    Calculator finds the smallest stock lumber length that covers the hypotenuse + cut allowance. Lumber yards stock 8/10/12/14/16/20 ft — anything over 20 ft is custom-order.

How we calculate

The math, fully transparent.

The Stringer Length Calculator computes the cut length of stair stringers using Pythagoras: hypotenuse² = rise² + run². Inputs: total rise (grade → deck) + total run (horizontal stair length) + cut allowance + stringer lumber (2×12 standard, 2×10/2×8 for short runs). Output: hypotenuse + stock length to buy + stair angle. Auto-recommends next stock lumber size up. Flags shallow stairs (<30° comfort minimum) and steep stairs (>37° comfort max, >50° ladder territory).

IRC references

  • IRC R311.7.4 — Stair geometry standards
  • IRC R311.7.5.2 — Tread depth min 10″
  • ANSI A14 — max-safe-stair angle 50°

IRC 2021 R311.7.4 stair geometry. ANSI A14 ladder code for max-safe-angle reference.

Hypotenuse (stringer centerline)
hyp = √(rise² + run²)

Pythagorean theorem — exact cut length for the stringer. 49″ rise + 80″ run = √(2401 + 6400) = √8801 = 93.81″ stringer centerline.

Stock length
stock = hyp + cut_allowance

Hypotenuse + waste allowance. 93.81″ + 6″ = 99.81″ → buy a 10ft (120″) stringer. Lumber yard stock sizes only — round up to next available.

Stair angle
angle = atan(rise / run) × 180 / π

Angle from horizontal. IRC allows 50° max but comfortable range is 30-37°. Outside that envelope, stairs feel either steep (>37°) or excessively long (<30°).

Save your plan

Don’t lose this estimate.

Your inputs are preserved in the URL — email it to yourself or copy the link so you can compare with contractor bids later. No account needed.

Frequently asked

Questions, answered.

Embed this calculator

One line. Any site. Free.

Drop the snippet into your contractor site, blog, or marketing page. Theme matches the parent site automatically.

<!-- Drop into any HTML, WordPress, Webflow, or contractor site -->
<script src="https://embed.deckmath.com/v1.js"
        data-deckmath-calc="stringer-length-calculator"
        data-theme="auto"
        async></script>