Deck Stair Calculator

Enter the total rise from ground to deck surface and get step count, riser height, treads and stringers — material quantities only.

Please check your inputs — values must be within the allowed ranges.

—
Steps
—
Riser height
—
Treads
—
Stringers

Material estimates only — this tool does not design stairs and does not confirm code compliance. Stair structure, stringer span and attachment details must follow your local building code.

How to calculate stair rise and run

  1. Measure total rise — from the ground (finished grade) to the top of the finished deck surface, in inches.
  2. Step count = total rise ÷ 7.5 in, rounded up. (7–7¾ in per step is the comfortable and code-typical range.)
  3. Actual riser height = total rise ÷ step count — every riser must match this exactly; uneven risers are the #1 trip hazard.
  4. Treads = steps − 1. The top "step" is the deck surface itself.
  5. Comfort check: 2 × riser + tread depth should land between 24 and 25 in.

Example — 42-in total rise, 10.5-in treads: 42 ÷ 7.5 = 5.6, so 6 steps at 7.0-in risers each. Comfort check: 2 × 7 + 10.5 = 24.5 in ✓. That means 5 treads, and a 4-ft-wide stair needs 4 stringers and 10 tread boards.

deck surface = top step ground total rise 42 in total run = 5 treads × 10½ in = 52½ in riser 7 in × 6 tread 10½ in × 5 (two boards per tread) stringer (sloped carrier board)
Side view drawn to scale (1 in = 6 px) for the example above: a 42-in rise gives 6 risers × 7 in and 5 treads × 10½ in (two boards per tread); the deck surface itself is the top step. The stringer is the sloped board the treads and risers attach to. Illustration only — not a construction plan.

Code reference chart

Published limits from the IRC (International Residential Code), section R311.7. Reference only — your local code has the final word:

DimensionIRC limit (residential)Your result
Riser height≤ 7¾ in (uniform)—
Tread depth≥ 10 in—
Stairway width≥ 36 in above the handrail—

Guards and handrails have separate requirements — ask your building department what applies to your deck.

Stringer layout basics

A stringer is the notched side board that carries the treads — the sawtooth frame your steps sit on. Stringers are typically cut from 2x12 lumber, and code expects them spaced 16 in apart or less, center to center, with one at each end.

Two practical notes from the calculator's math:

Cutting the notches themselves is layout work best done with a framing square and the riser/tread numbers above — measure twice, cut one stringer first, and use it as the template for the rest.

Material shopping list

Stringer length depends on the stair's total run and angle — most lumber yards stock 16-ft 2x12s that cover typical 4–6 step stairs with room to spare.

Sources & assumptions

Deck stair FAQs

Total rise ÷ 7.5 in, rounded up = steps. Total rise ÷ steps = actual riser height. Treads = steps − 1, with a 10–11 in depth. Check 2 × riser + tread lands between 24 and 25 in for comfortable stairs.
The IRC sets 7¾ in as the maximum riser and 10 in as the minimum tread for residential stairs — and all risers must be uniform within 3/8 in. Local codes can be stricter; confirm before you cut.
One per 16 in of width plus one at each edge — a 4-ft stairway needs 4, and 3 is the practical minimum. Narrower spacing is needed for thin tread material.
The deck surface itself is the top "step." That's why treads = steps − 1: a 6-step stair has 5 installed treads plus the deck boards you already have.
Estimates only. This tool counts stair materials; it does not confirm code compliance or structural adequacy. Always check your local building code and have required inspections scheduled before building.