DeckMath
Structural · IRC 2021 R311.7

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.

IRC R311.7Equal risers (3/8″ rule)Cut + solid stringers3 tread materialsAuto handrail checkLanding pad sizedFree forever
R311.7·IRC checked
7¾″·Max riser
10″·Min tread
<1s·Live calc

Inputs

in

Don't forget to include the decking thickness on top of the joists.

in

IRC R311.7.1 requires 36″ minimum. 42-48″ is most comfortable.

5 risers at 7.20 inches each. 4 treads at 10 inches. Stringer 4′-6″. Passes IRC R311.7. Total cost $599.
IRC R311.7 stair check · 3′ rise
PASS5 risers @ 7.20″ · 4 treads @ 10

4′-6″ stringer · 3′-4″ total run · handrail required

Risers
≤ 7-3/4″ each
Treads
0.75″ nosing
Stringer
4 × 8′ stock
Total cost
materials + labor

Compliance · IRC 2021 R311.7

Riser height 7.20″ within IRC max 7.75″

IRC R311.7.5.1

Each 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.2

Each 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.1

Clear 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.8

IRC 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.1

When 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.

Stair elevation · side view

5 risers @ 7.20″ · 4 treads @ 10

Stringer 4′-6″PASS
DeckConcrete padRise 3′Run 3′-4″7.20″10″Stringer 4′-6″

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

2 × 12 pressure-treated stringers
4 stringers × 8′ stock · notched-cut · 53.8″ hypotenuse needed
4 each
$131
Tread material (pt-lumber)
4 treads × 42″ wide · 15% cut waste
16.1 lf
$47
Riser boards (1×8 PT)
5 risers × 42″ wide · closed-riser
17.5 lf
$32
Graspable handrail + brackets
4.5 lf · 36″ above nosing line · IRC R311.7.8 required at 4+ risers
4.5 lf
$25
Stringer fasteners + brackets
Joist hangers / ledger lag bolts / structural screws — 4 stringers
4 set
$34
Bottom landing concrete pad (3′ × 3′ × 4″)
6 × 80lb pre-mix bags · 3 cu ft total · 5% waste
6 bag
$45
Stair labor (cut + assemble + install)
Flat rate for typical residential deck stair — 5 risers × 42″ wide
1 set
$285
Total project
$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.

Open

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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).

Equal-rise calculation
num_risers = ceil(total_rise / max_riser_height)

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″.

Tread count
num_treads = num_risers - 1

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.

Total horizontal run
total_run = num_treads × tread_run

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.

Stringer hypotenuse
stringer_length = sqrt(total_rise² + total_run²)

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 length (slope-following)
handrail_length = stringer_length

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>