Deck Stair Calculator
Equal-rise risers, code-compliant tread runs, stringer hypotenuse, and a full bill of materials sized to your deck height. Every dimension PASS/FAIL-checked against IRC 2021 R311.7 the moment you change an input. Side-elevation diagram with rise + run + stringer dimension lines, optional bottom landing pad sizing, and step-lighting cost compare.
Inputs
Don't forget to include the decking thickness on top of the joists.
IRC R311.7.1 requires 36″ minimum. 42-48″ is most comfortable.
4′-6″ stringer · 3′-4″ total run · handrail required
Compliance · IRC 2021 R311.7
Riser height 7.20″ within IRC max 7.75″
IRC R311.7.5.1Each of the 5 risers is exactly 7.20″ — IRC R311.7.5.1 caps risers at 7-3/4″ and requires every riser equal within 3/8″.
Tread run 10″ ≥ IRC min 10″
IRC R311.7.5.2Each tread is 10″ deep with 0.75″ nosing on closed-riser stairs. IRC R311.7.5.2 requires 10″ minimum — most deck stairs use 10-12″ for comfort.
Width 42″ ≥ IRC min 36″
IRC R311.7.1Clear stair width must be at least 36″ between handrails (R311.7.1). Most deck stairs use 36-48″.
Handrail required and included — 5 risers
IRC R311.7.8IRC R311.7.8.1 requires a graspable handrail when there are 4 or more risers. Mounted at 36″ above the nosing line (within IRC's 34-38″ range).
Stair landing > 30″ above grade — guard required
IRC R312.1When the walking surface (deck or stair landing) is more than 30″ above grade, a 36″+ guard is required (IRC R312.1). The deck guard at the top of the stair satisfies this.
5 risers @ 7.20″ · 4 treads @ 10″
5 equal risers at 7.20″ each (IRC max 7.75″) · 4 treads at 10″ run · 4′-6″ stringer · handrail required (≥ 4 risers).
Bill of materials · $599
Material prices reflect 2026-Q1 Home Depot / Lowe's national-median retail. Labor is a flat rate for typical residential deck stair installation.
Build the full deck plan
The Deck Material Calculator turns your dimensions + this stair detail into a complete bill — joists, beams, posts, footings, decking, plus IRC compliance checks at every level.
Dimensions pulled from IRC 2021 R311.7 — the same code your inspector reads. Always confirm with your local Authority Having Jurisdiction (AHJ). This calculator is not a substitute for a licensed inspector or structural engineer.
How to use
Three steps. Permit-ready output.
- 01
Measure total rise
From the top of the finished decking surface straight down to the ground or finished landing pad — including the thickness of the bottom step. A 36-inch deck height typically needs 5 risers at 7-1/4″ each. The most common error here is forgetting to include the decking thickness on top.
- 02
Pick stair width
Clear width between stringers. IRC R311.7.1 requires 36″ minimum. Most deck stairs use 36-48″; wider stairs are more comfortable but require more stringers (one every 16″ on cut stringers, every 24″ on solid). The calculator auto-sizes the stringer count.
- 03
Pick stringer style
Cut (notched) is the most common DIY choice — saw notches into the stringer for each tread + riser. Solid stringers (no notches, treads bolted to metal cleats) are stronger and use less wood, but require more skill and hardware. Cut stringers waste ~15% of the lumber to the notches.
- 04
Pick tread material
Pressure-treated 2× lumber matches most decks and is cheapest. Composite (Trex, TimberTech) matches composite-decked decks. Hardwood (Ipe, Cumaru) is high-end. The calculator prices each option per linear foot.
- 05
Read the result
Number of risers + per-riser height + run per tread + stringer hypotenuse length, plus PASS/FAIL on every IRC R311.7 dimension. The side-elevation diagram below the result visualizes every dimension. Below that, the BoM breaks down stringers + treads + risers + handrail + landing pad + labor with per-line cost.
How we calculate
The math, fully transparent.
The Deck Stair Calculator answers the most common deck-build follow-up question: how do I get from the deck surface down to the ground in code-compliant stairs? Inputs are total rise (deck height to ground) and stair width. Output: number of equal-height risers, run per tread, stringer hypotenuse length, IRC R311.7 compliance check on every dimension, full bill of materials for stringers + treads + risers + handrail + bottom landing pad, and a side-elevation diagram showing every dimension. The calculator splits a non-uniform total rise across equal risers automatically (IRC R311.7.5.1 requires every riser within 3/8″ of the others), surfaces handrail requirements (IRC R311.7.8.1 — required at 4+ risers), and quantifies concrete bag count for the bottom landing pad most jurisdictions require.
IRC references
- IRC 2021 R311.7.1 — Stair width (36″ minimum)
- IRC 2021 R311.7.5.1 — Riser height (7-3/4″ max, ≤ 3/8″ variation)
- IRC 2021 R311.7.5.2 — Tread depth (10″ minimum)
- IRC 2021 R311.7.5.3 — Nosing projection (3/4″ on closed-riser stairs)
- IRC 2021 R311.7.6 — Landings (top + bottom required)
- IRC 2021 R311.7.8 — Handrails (required ≥ 4 risers, 34-38″ height)
- IRC 2021 R312.1 — Guards (required when walking surface > 30″ above grade)
Stair dimensions and compliance from IRC 2021 R311.7. Material pricing reflects 2026-Q1 Home Depot / Lowe's national-median retail. Always confirm with your local Authority Having Jurisdiction (AHJ).
IRC R311.7.5.1 caps individual riser height at 7-3/4″ AND requires every riser within 3/8″ of the others. The calculator divides total rise by 7.75″, rounds UP to get the riser count, then divides total rise by that count to get the actual per-riser height. For 36″ total: ceil(36 / 7.75) = 5 risers, each 7.20″.
The top of every flight ends at the deck edge (no tread at the top), so tread count is always one less than riser count. A 5-riser flight has 4 treads.
Each tread is 10″ deep (the IRC R311.7.5.2 minimum and the calculator's default). 4 treads × 10″ = 40″ total horizontal run from the first riser to the landing edge. Tread run can be increased to 11-12″ for comfort but never decreased.
The stringer is the diagonal lumber that supports the treads + risers — sized as the hypotenuse of the right triangle formed by total rise + total run. For 36″ rise + 40″ run: sqrt(36² + 40²) = 53.85″ ≈ 4.5 ft. The calculator rounds up to the next stock-length board (8/10/12/16/20 ft).
Handrail follows the same slope as the stringer (IRC R311.7.8 mounts it 34-38″ above the nosing line — the line tangent to every tread leading edge). Length is therefore equal to the stringer hypotenuse, plus a small 6-12″ overhang at top and bottom (most contractors order one extra foot).
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="deck-stair-calculator"
data-theme="auto"
async></script>Related