mystaircalculator.com logo mystaircalculator.com
  1. Home
  2. Calculators
  3. Stair Types & Styles
  4. Deck Stair Calculator
Stair Types & Styles

Deck Stair Calculator

Enter your deck height above grade and get riser height, tread depth, step count, stringer length and board count — plus checks for ground slope, open risers and the IRC guardrail trigger that indoor calculators skip.

Free to use No sign-up required Formulas verified against IRC 2021 Imperial & metric supported
Riser, tread & angle calculated Stringer & board length included Open-riser & guardrail checks built in Last verified July 2026
Checked line-by-line by our in-house stair-planning team before publishing — figures re-verified July 2026.
in

Measure straight down from the top of the finished decking to the finished grade below — not the joist or framing height.

Open risers let water and debris fall through — common outdoors — but tall open-riser stairs have to pass a gap-size check below.

in

Add this to check whether the stair fits before it hits a patio edge, walkway or property line.

Advanced: tread depth override
Advanced: ground slope, width & headroom
%

Rough slope of the yard where the stair lands. Used to estimate how much the landing pad needs to be excavated or built up to sit level.

inches
inches

Only applies where the stair passes under a deck above, roof overhang or balcony. Leave blank for an uncovered stair.

Side profile diagram of the calculated deck stair, with sloped grade at the base

Results

Riser Height
in
Tread Depth
in
Step Count
steps
Stair Angle
°
Total Run
in
Stringer Length
in
Treads
pcs
Fits Space?
Stringers Needed
pcs
Stringer Board
ea
Landings Needed
Grade Drop Over Run
in
How to measure

Measuring your deck stair before you calculate

Outdoor measurements move around more than indoor ones — grade shifts with the seasons and decking thickness adds up. Get these four right first.

1

Find your total rise

Hold a straight board level from the top of the finished decking out over the edge, then measure straight down to the finished grade below. Use the actual ground level, not the sub-grade before topsoil or mulch goes down.

2

Note your available run

Measure the horizontal space you actually have before hitting a patio, walkway, fence line or property boundary. This tells the calculator whether your ideal stair will physically fit.

3

Check the yard slope at the base

Most yards aren't perfectly flat where a stair lands. Estimate the slope as a percentage — a level line held out from the bottom of your rise, with the drop measured a few feet out, gives you a rough grade percentage to enter.

4

Decide open or closed risers

Open risers (no riser board) are common on decks for drainage and a lighter look. Closed risers block wind-driven rain and debris. Pick one — it changes which code check applies to your stair below.

The math

The four formulas behind every result

Nothing on this page is a black box. Here's exactly what runs when you change a number.

Step Count

n = round( Total Rise ÷ Target Riser )

Total rise divided by your target riser height, rounded to the nearest whole step — you can't build a fractional stair.

Actual Riser Height

R = Total Rise ÷ n

The rounding above means your real riser is rarely the exact target. This is the number you cut every riser to, uniformly.

Tread Depth (2R+T rule)

T = 25 − 2R  (min. 10")

A standard comfort formula: twice the riser plus the tread should land near 24–25 inches. Floored at the 10" IRC minimum.

Stair Angle & Stringer

θ = atan(R ÷ T)  ·  L = √(Rise² + Run²)

Angle from the riser-to-tread ratio; stringer length from the Pythagorean triangle formed by total rise and total run.

Worked example

Walking through a real 40" deck rise

Same four formulas, filled in step by step, for a deck that sits 40" above grade — the default this calculator loads with, chosen because it's just tall enough to trip more than one check at once.

1

Step count

40" total rise, targeting a 7.5" riser: 40 ÷ 7.5 = 5.33, which rounds to 5 steps. You can't cut a fractional step, so the calculator always rounds to the nearest whole number here.

2

Actual riser height

Re-divide the total rise by that whole step count: 40 ÷ 5 = 8.0" per riser. That's over the 7.75" IRC maximum — the riser chip fails. This is the single most common surprise on a deck stair: the total rise rarely divides evenly, and rounding down to 5 steps instead of up to 6 is what pushes it over.

3

Tread depth — and the cascade

Using the 2R+T rule on that 8.0" riser: 25 − (2 × 8.0) = 9", which is already below the 10" IRC minimum, so it floors at exactly 10". The oversized riser from step 2 directly caused the tread to hit the code floor — one failed check feeding the next.

4

Angle, and why it fails too

4 treads at 10" gives a total run of 40". The angle works out to atan(8.0 ÷ 10) ≈ 38.7° — steeper than the 30–37° comfort range, a direct knock-on from the floored tread. Stringer length is √(40² + 40²) ≈ 56.6".

The fix: switch to 6 steps instead of 5. At 40 ÷ 6 = 6.67" per riser, you're back under the 7.75" max, the 2R+T tread comes out to 25 − 13.33 = 11.67" (comfortably over minimum), and the angle drops to a much gentler ≈29.8°. One extra step turns three failing checks into three passing ones — this is exactly why the compliance strip below is worth reading past the headline numbers, not just glancing at.

Comfort rules

Comfort formulas compared

Code sets the outer limits. These three rules of thumb decide whether a code-legal stair also feels good to climb — indoors or out.

RuleFormulaTargetWhat it optimizes for
7-11 RuleR = 7", T = 11"R+T ≈ 18"Simple carpenter's rule of thumb, slightly conservative on tread depth.
2R + T Rule2R + T = 24–25"≈ 24.5"The industry-standard comfort formula; used as this page's Auto default.
Blondel's Formula2R + T = 63–65 cm≈ 24–25.6"The 19th-century architectural origin of the 2R+T rule, in metric.

Want all three run against the same inputs side by side? Use the Stair Comfort Formula Calculator.

Code reference

IRC residential stair & guard code, quick reference

This calculator checks your result against the limits below. The bottom three rows are the ones that trip up deck stairs specifically, since indoor stairs rarely reach a height where they apply.

ElementResidential (IRC)Notes
Max riser height7.75"Same limit indoors and out.
Min tread depth10"Same limit indoors and out.
Riser variance across a flight3/8"Every riser in the run must stay within this of the others.
Max rise per flight before a landing147" (12'-3")Rare on decks, but tall walk-out or sloped-lot stairs can hit it.
Min landing depth (direction of travel)36"At the top and bottom of the flight.
Guardrail required when open side is> 30" above gradeMeasured at any point within 36" horizontally of the open edge.
Open-riser gap limit above 30" rise4" sphereBelow 30" above grade, open risers are generally unrestricted.

Reference only — always confirm against your local jurisdiction's adopted code before building. Some municipalities set a lower guardrail trigger than 30", and coastal or high-wind jurisdictions often add fastening requirements this table doesn't cover.

Beyond rise and run

Ground slope, guardrails & open risers

A deck stair can nail every riser and tread number and still fail inspection — or just work badly — on the three things this section covers, none of which an indoor rise-and-run calculator needs to think about.

Grade drop over the run

Drop = Total Run × (Slope % ÷ 100)

A rough estimate of how much the ground falls (or rises) across the stair's horizontal footprint. Use it to plan how deep to excavate, or how thick to pour, the landing pad at the base — not as a substitute for on-site story-pole measurements, since real yards are rarely a uniform slope.

When a guardrail is required

Guardrail required if Total Rise > 30"

IRC R312.1.1 requires a guard on the open sides of a stair once the walking surface is more than 30" above grade at any point within 36" horizontally of the edge. This is exactly why a 40" deck stair needs a guard down its full open side, even though the bottom step is only inches off the ground — the trigger is based on the highest point within reach, not the average.

Open riser gap limit

Opening ≤ 4" sphere, once rise > 30"

Once any part of an open-riser stair rises more than 30" above grade, the gap between treads can't allow a 4"-diameter sphere to pass. A typical 7–8" riser opening fails this outright — the usual fix is closing in the risers on the lower portion of a tall flight, or switching to closed risers for the whole run.

Footings & ground-contact lumber

Footing depth = [VERIFY: local frost depth]

Stringer posts and landing footings generally need to reach below the local frost line, which varies by climate zone — a few inches in the Gulf Coast, 4+ feet in northern climates. Any framing member within roughly 6" of grade, or embedded in concrete, needs lumber rated for ground contact, not just above-grade treatment. [VERIFY: minimum clearance distinguishing above-grade treated lumber from ground-contact-rated lumber in your jurisdiction.] Check footing sizing with the Stair Footing Size Calculator.

These are planning-stage estimates, not a stamped structural design. A wide stair, a steep slope, or a tall flight may need an engineer's sign-off regardless of what this calculator shows.

Avoid these

Common mistakes when planning deck stairs

Most deck stair inspection failures trace back to one of these five, not to bad carpentry.

📏

Measuring to the framing, not the decking surface

Total rise has to start from the top of the finished decking boards, not the joist. A 1"–1.5" decking thickness at the top, and whatever the landing pad adds at the bottom, both shift the number.

⛰️

Ignoring the slope at the base

A stringer cut for a perfectly flat landing will sit unevenly — or leave the bottom riser oversized or undersized — on a sloped yard. Plan for a level, compacted landing pad before cutting stringers.

🪜

Choosing open risers on a tall stair without checking the gap rule

Above 30" of rise, an open-riser gap has to pass a 4" sphere. Most standard risers don't — this is the single most common code conflict specific to deck stairs.

🛡️

Skipping the guardrail check on a "short" deck

40" feels low, but it's well past the 30" IRC trigger. Confirm your local threshold before assuming a deck under waist height is guard-free.

🌧️

Using interior-grade lumber or the wrong treatment rating

Stringers and posts need lumber rated for outdoor exposure, and anything near or in the ground needs ground-contact-rated treatment — not just standard above-grade treated lumber.

Who uses this

When to use a deck stair calculator

Deck stair planning shows up any time a deck, porch or elevated platform needs a way down to grade.

🌳

New Deck Builds

Laying out stringers before cutting lumber for a brand-new deck.

🔨

Replacing Rotted Deck Stairs

Rebuilding an existing stringer set to current code, not the original's.

🏡

Walk-Out Basement Decks

Elevated decks off a walk-out level, often tall enough to trigger the guardrail check.

🏊

Pool Deck Access

Stairs from a raised deck down to a pool patio, where slope and landing space are tight.

🏔️

Sloped-Yard Lots

Decks on grade that drops away quickly, where the ground-slope check matters most.

📋

Permits & Inspection Prep

Confirming riser, tread, guard and open-riser numbers before a plan check.

FAQ

Common questions

How is total rise measured for a deck stair?
From the top surface of the finished decking down to the finished grade below — not the joist framing, and not the sub-grade before topsoil or a landing pad goes in. Both ends of that measurement can shift the number by an inch or more.
Do deck stairs need a landing pad at the bottom?
Most jurisdictions require a landing at least 36" deep in the direction of travel at the base of the stair, typically a concrete pad, paver base, or compacted gravel set level. This matters even more on a sloped yard, where an unlevel landing throws off the bottom riser height.
When do deck stairs need a guardrail?
Per IRC R312.1.1, a guard is required on the open sides of a stair once the walking surface is more than 30" above grade at any point within 36" horizontally of the open edge. A deck as low as 31"–36" already triggers this on the stair, even before the deck surface itself needs a guard.
Can deck stairs have open risers?
Yes, and it's common outdoors for drainage. But once any part of the stair rises more than 30" above grade, the gap between treads can't allow a 4"-diameter sphere through — a standard 7"–8" riser opening fails that test, so tall open-riser flights usually need the lower risers closed in.
What's the maximum riser height for deck stairs?
7.75" under the IRC, same as indoor stairs. The tricky part outdoors is that total rise from deck to grade rarely divides evenly — as the worked example above shows, rounding down a step count is a common way to accidentally exceed this.
Do deck stair stringers need to be pressure-treated?
Yes — exterior stringers need lumber rated for outdoor exposure at minimum, and any part of the structure near or embedded in the ground needs ground-contact-rated treatment specifically, which is a different rating than standard above-grade treated lumber.
How do I handle a sloped yard at the bottom of deck stairs?
Enter your rough grade slope in the Advanced panel to estimate how much the ground drops across the stair's run — that tells you roughly how much to excavate or build up for a level landing pad. For anything beyond a gentle slope, confirm the final cut on-site with a story pole rather than relying on an estimated percentage.
How many stringers does a deck stair need?
Stringers are commonly spaced no more than 16" on center, so the count depends on stair width — a typical 36" wide deck stair uses three. Set your width in the Advanced panel to see the calculated count, and check span capacity with the Stringer Spacing Calculator.
What size footing do deck stair posts need?
It depends on the load and your local frost depth, which varies widely by climate — footings generally need to bear below the frost line so seasonal freeze-thaw doesn't heave them. Use the Stair Footing Size Calculator and confirm frost depth with your local building department.
Can I use composite decking for deck stair treads?
Yes — composite treads generally need the same or tighter stringer spacing than wood because the material flexes more, and manufacturers often publish their own maximum span. Check the Composite Decking Stair Calculator for board count and fastener spacing specific to composite.
Do deck stairs need a permit?
In most jurisdictions, yes, if the stair is attached to a permitted deck structure — but permit thresholds vary by height, size and locality. [VERIFY: local permit threshold for deck and deck-stair construction.] Check with your local building department before starting work.
How much extra should I add for the birdsmouth cut on a deck stringer?
Roughly 14" beyond the calculated straight-line stringer length, then round up to a standard stocked lumber length. The Stringer Board result above already does this rounding for you.