Deck Stairs Calculator
Enter the height from ground to deck and the stair width. We'll size the steps, stringers, and material list — code-compliant rise/run included.
Advanced options
- Actual riser height
- 0 in
- Total run length
- 0 in
- Stringer count
- 0
- Stringer length (each)
- 0 in
- Treads needed
- 0
- Riser boards needed
- 0
- Estimated cost
- —
How the deck stair calculator works
A 36-inch drop from deck to ground takes 5 steps at a 7.2-inch riser, with 4 treads, 4 riser boards, and 4 stringers for a 4-ft-wide stair. The total run is 44 inches at an 11-inch tread depth, which makes each 2×12 stringer about 57 inches on the diagonal. A 7.2-inch riser and 11-inch tread are comfortably inside IRC limits of 7¾ inches max rise and 10 inches min tread.
The math: number of steps = total rise ÷ target riser height, rounded to the nearest whole number. The actual riser height is then total rise ÷ steps (so all risers are equal — code requires this to within ⅜").
Total run = (steps − 1) × tread depth. Stringer length = √(total rise² + total run²) for the diagonal cut. We round up to the next standard stringer length (12 ft / 3.6 m or 16 ft / 4.8 m for taller sets).
Code requirements (IRC, US residential)
- Riser height: 4" minimum, 7¾" maximum. All risers within ⅜" of each other.
- Tread depth: 10" minimum from front edge to back of nosing.
- Stair width: 36" minimum.
- Handrail: required on at least one side for 4+ risers; 34"–38" above tread nosing.
- Headroom: 6'8" minimum measured vertically from any tread.
The governing section is IRC R311.7, the stairway provisions of the International Residential Code, which most US jurisdictions adopt with local amendments. The numbers below are the ones an inspector will actually measure with a tape. Your local amendment may be stricter — a few jurisdictions still enforce an older 8¼" riser or have adopted a 7" / 11" requirement outright — so confirm with your building department before you cut lumber, not after.
| Dimension | IRC R311.7 limit | What gets measured | Common failure |
|---|---|---|---|
| Maximum riser height | 7¾" | Vertical, nosing to nosing | Dividing total rise by too few steps |
| Minimum riser height | 4" | Same | A single shallow "bonus" step at the bottom |
| Riser variance within one flight | ≤ ⅜" between tallest and shortest | All risers compared | Forgetting to drop the stringer by one tread thickness at the bottom |
| Minimum tread depth | 10" | Nosing to nosing, horizontally | Using a single 2×10 (9¼" actual) as a tread |
| Tread depth variance | ≤ ⅜" between deepest and shallowest | All treads compared | Inconsistent nosing overhang |
| Nosing projection (solid risers) | ¾"–1¼", required when tread is under 11" | Overhang past the riser face | Flush-cut treads on a 10" run |
| Minimum stair width | 36" clear above the handrail height | Between finished surfaces | Handrails eating into a stair framed at exactly 36" |
| Handrail height | 34"–38" above nosing line | Vertical from a line across nosings | Measuring from the tread surface instead of the nosing line |
| Handrail required | At 4 or more risers | Riser count, not height | Assuming a short flight is exempt |
| Guard required | Walking surface more than 30" above grade | Height at the worst point | Measuring at the deck rather than at the drop-off |
| Guard opening | 4" sphere must not pass (6" at the tread triangle) | Baluster gaps | Balusters spaced by eye |
| Headroom | 6'8" minimum | Vertical from the nosing line | Stairs under a deck or a soffit |
The ⅜" variance rule deserves special attention because it fails more inspections than the maximum riser does. Your risers are mathematically identical when the stringers are cut — the calculator makes sure of that — but the first riser and the last riser are the ones that shift in the real world. The bottom riser ends up short by exactly one tread thickness unless you drop the stringer, and it ends up tall if the landing pad settles or if you set the stringers on a pad you later pour thicker. Measure the finished flight before the inspector does.
Stringer count
One stringer per ~16" of stair width is the residential standard. A 36" wide stair gets 3 stringers; a 60" wide stair gets 4 or 5. Use the same lumber dimension as your deck joists (typically 2×12) to ensure proper notch depth without weakening the cut.
| Stair width | Stringers (this calculator, 16" OC) | Practical minimum | Note |
|---|---|---|---|
| 36" (3 ft) — code minimum | 4 | 3 | Three is common and passes; four gives a firmer tread with 5/4 decking |
| 42" (3.5 ft) | 4 | 3 | Comfortable for two-way traffic on a main entry stair |
| 48" (4 ft) — typical deck stair | 4 | 4 | The default on this page |
| 60" (5 ft) | 5 | 4 | Five keeps 2× treads from flexing underfoot |
| 72" (6 ft) — wide entry | 6 | 5 | Consider a cut-stringer plus solid outer carriages for looks |
The calculator deliberately rounds generously: it takes the stair width in inches, divides by the stringer spacing, and adds one, because the outermost stringers sit at the edges rather than at a spacing interval. Drop to 12" OC spacing — which the Advanced options let you do — for composite treads, which flex far more than wood over the same span, and for any stair over about 5 feet wide.
Landings, footings, and what the stairs land on
A set of stairs is only as sound as the thing under the bottom step. IRC R311.7.6 requires a landing at the top and bottom of every stairway, at least as wide as the stair and at least 36" deep in the direction of travel. On a deck, the top landing is usually the deck itself; the bottom landing is the part people skip, and a stair that dumps straight onto lawn or bare soil is both a code violation and a maintenance problem — the stringers wick moisture and rot from the bottom up.
- Concrete pad — the durable answer. Minimum 36" deep by the stair width, 4" thick over 4" of compacted gravel, sloped away from the house at about ¼" per foot. Our concrete calculator will size the pour.
- Precast pads or pavers on compacted base — acceptable in many jurisdictions and far easier for a DIY build; use our gravel calculator to size the base.
- Footings below frost depth — required in cold climates wherever the stair is attached to the deck rather than free-standing, otherwise the stair heaves in winter and tears at its connection.
- Never bury a stringer end. Keep the bottom cut on a treated bearing plate or a metal stringer connector, above the pad surface, so it drains.
At the top, the stringers hang from the deck's rim joist — never toe-nailed. Use a rated stringer hanger or a properly sized ledger block with through-bolts. This connection carries the entire live load of everyone on the stairs, and it is the one people improvise.
Worked example: a tall stair off a 57-inch deck
Enter total rise 57 inches, stair width 4 ft, target riser 7.5", tread 11", stringers 16" OC. Steps = round(57 ÷ 7.5) = round(7.6) = 8 steps. Actual riser = 57 ÷ 8 = 7.13", comfortably under the 7¾" ceiling. Total run = (8 − 1) × 11 = 77 inches, and the stringer diagonal is √(57² + 77²) = √9,178 = 95.8 inches — just under eight feet, so a 2×12×10 gives you cutting room without an awkward splice.
Stringer count: 48" width ÷ 16" = 3, plus one = 4 stringers. You need 7 treads and 7 riser boards, because the eighth "step" is the deck surface itself. At 4 ft wide with two 2×6 boards per tread, that is 14 tread boards at 4 ft each — 56 linear feet, so five 12-footers. Handrail is mandatory here (8 risers), and a guard is mandatory too, because 57 inches of drop is well past the 30" threshold.
Worked example: a wide 45-inch entry stair
Total rise 45 inches, stair width 5 ft, same 7.5" target and 11" tread. Steps = round(45 ÷ 7.5) = 6 steps, and the actual riser lands on exactly 7.50". Total run = 5 × 11 = 55 inches; stringer diagonal = √(45² + 55²) = √5,050 = 71.1 inches, so a 2×12×8 is plenty.
Width drives the stringers: 60" ÷ 16" = 3.75, rounded up to 4, plus one = 5 stringers. That is 5 treads and 5 risers, and at 5 ft per tread with two boards each you need 50 linear feet of tread stock. Notice the trade-off against the previous example — a 45" rise needs the same handrail and the same guard, but a shallower flight, a shorter stringer, and one extra stringer purely because the stair is a foot wider.
Failure modes and safety limits
Stairs are the most dangerous thing an amateur builds on a house. The mechanism behind most stair falls is simple: a step that is not where the foot expects it to be. People climb stairs by rhythm, not by looking, and the rhythm is set by the first two risers. Three failure modes account for most of it:
- The uneven first or last riser. A rise that differs by even half an inch from the ones above it will catch someone. This is why the ⅜" variance rule exists and why you drop the bottom of every stringer by exactly one tread thickness before you set it.
- A stringer notched too deep. Cutting the rise-and-run notches out of a 2×12 leaves a diagonal "throat" of remaining wood. Anything under about 5 inches of throat and the stringer is a row of cantilevered teeth waiting to split along the grain. If your run is deep enough to eat the board, use a wider stringer, add stringers, or switch to a solid carriage with cleats.
- A connection that was never rated. Toe-nailed stringers, a handrail lag-screwed into a single 2× post, guard posts notched at the base — all of them look fine and all of them fail under a lateral load. Use rated connectors and through-bolts.
When to call a pro
Be direct about this: hire a licensed contractor or a structural engineer if the total rise exceeds about 12 feet (the IRC requires an intermediate landing at 12 ft of vertical rise), if the stair turns — winders and landings change the geometry and the code that applies to it — if the stair carries a required means of egress from a bedroom or basement, or if you cannot get the flight inside the riser and tread limits without an awkward compromise. Also hire out anything that needs a permit you are not comfortable pulling. Inspectors are not the enemy on stairs; a rejected framing inspection costs a weekend, and a failed stair costs considerably more.
Common questions
What's the "ideal" stair?
The IRC magic number is a 7" rise + 11" tread. Walks comfortably, fits most decks, gives an exact 18" "rise + run" total which is the ergonomic sweet spot. If your rise/run combo lands close to this, you've designed well.
Can I make stringers DIY or buy pre-cut?
Both work. Pre-cut stringers from Lowe's/Home Depot come in 3-step, 4-step, 5-step, and 6-step versions. They're factory-sized for code-compliant 7¾" × 10" stair geometry — only useful if your total rise is an exact multiple of 7.75". Otherwise cut your own from 2×12.
Do I need risers or open-back stairs?
Code requires risers if there's a gap larger than 4" — that prevents a child from getting stuck. So below ~5" riser height you can leave them open; above that, you must close them. Most decks use closed risers regardless for the cleaner look.
How do I measure total rise correctly?
Measure vertically from the finished deck surface down to the finished landing surface — not to the dirt you are standing on today. Run a straight board out from the deck, level it, and measure down at the point where the bottom of the stair will land. If you are pouring a concrete pad later, measure to where the top of that pad will be. Getting this wrong by the thickness of a pad is exactly how a first riser ends up out of tolerance.
Why does the calculator round the step count instead of always rounding up?
Because rounding to the nearest whole number lands you closer to your target riser height in both directions. A 36" rise at a 7.5" target rounds to 5 steps and a 7.2" riser; forcing a round-up to 5 would give the same answer here, but a 34" rise would round up to 5 steps and a cramped 6.8" riser instead of the more natural 4-step, 8.5" flight — which the code check would then correctly flag as too tall. The calculator gives you the closest sensible flight and then tells you whether it passes; if it flags TOO TALL, lower the target riser and it will add a step.
Why is my tread count one less than my step count?
Because the top step is the deck. A five-step flight climbs five risers but only lays four physical treads — you step off the fourth tread onto the deck surface itself. This trips up almost every first-time builder, usually in the direction of buying one tread too many, which is the harmless direction to be wrong in.
What lumber should the treads be?
Two 2×6 boards per tread is the standard on a 4-ft-wide stair: 11" of depth with a gap for drainage, and 2× stock will not flex over a 16" stringer spacing. A single 2×12 gives 11¼" and looks cleaner but cups badly outdoors. Avoid 5/4 decking on treads at 16" OC — it feels springy underfoot even though it is fine on the deck itself. Composite treads are widely available but almost always require 12" OC stringer spacing; check the spec sheet the same way you would for deck boards.
For the deck surface itself, see the deck board calculator. For stain protection, the stain calculator.
Planning the full project?
These calculators usually get run in the same afternoon.