Deck Stair Calculator
Plan steps from a deck down to the yard. The calculator accounts for ground that slopes away from the deck, a landing pad, and treads made from deck boards, and shows where the bottom step will land.
Worked example: edit any value
Deck stair
Actual rise 3 ft 5 1/8 in Going 10 1/2 in Tread depth 11 1/4 in Angle 33.1° Stringers 3 Tread boards 10
At the landing the ground is 1 1/8 in lower than at the deck, so the real rise is 3 ft 5 1/8 in, not 3 ft 4 in. Same riser count, different riser height.
The deck is more than 30 in above grade. In the IRC that usually means guards on the deck and the open sides of the stair (IRC 2024 R321.1.1; 2021: R312.1.1).
How this result was calculated
- Going from the deck boards
2 × 5.5 + 1 × 0.25 gap − 0.75 overhang = 10.5 inThe boards overhang the riser below by the nosing, so the going is the tread depth minus the overhang. - Where the stair lands
landing distance = treads × going = 5 × 10.5 = 52.5 inMeasured horizontally from the deck face to the face of the bottom riser. - Ground change at the landing
2.08 % × 52.5 = 1.0938 inGround falls away from the deck, so the stair is taller than the deck height. - Actual total rise
deck height + ground change = 40 + 1.0938 = 41.0938 in - Risers: smallest count that keeps every riser at or under your maximum at the actual landing point
R = 6; h = 41.0938 ÷ 6 = 6.849 inEach riser count lands the stair at a different spot, so the calculator tests counts from 1 upward and keeps the first that works there. - Treads
T = R − 1 = 5 (the deck is the top step)
Informational checks (IRC 2024 / 2021 values)
Not a compliance decision. Deck stairs follow your locally adopted code.
- Within referenceRiser height. 6 7/8 in against a reference of at most 7 3/4 in. IRC 2024 R318.7.5.1 (2021: R311.7.5.1)
- Within referenceTread depth (going, nosing to nosing). 10 1/2 in against a reference minimum of 10 in. IRC 2024 R318.7.5.2 (2021: R311.7.5.2)
- Within referenceNosing projection. 3/4 in against a reference of 3/4 in to 1 1/4 in. Stairs with open risers may have larger projections under this reference. IRC 2024 R318.7.5.3 (2021: R311.7.5.3)
- Within referenceRise of a single flight. 41 1/8 in is within the 151 in reference for one flight between floors or landings. IRC 2024 R318.7.3 (2021: R311.7.3)
- CheckHandrail. 6 risers: this reference calls for a handrail on at least one side of flights with 4 or more risers. Handrail height and grip rules also apply. IRC 2024 R318.7.8 (2021: R311.7.8)
- CheckUniformity as built. This plan assumes every riser and tread is identical. Finished floors added later change the first and last risers, so plan for the final flooring before cutting. This reference allows at most 3/8 in (9.5 mm) between the largest and smallest riser, and between the largest and smallest tread, in a flight (IRC 2024 R318.7.5.1–.2).
Materials and dimensions (table)
| Item | Value | Note |
|---|---|---|
| Deck height (as measured) | 3 ft 4 in | Deck surface to ground at the deck edge |
| Actual total rise | 3 ft 5 1/8 in | Deck surface to ground at the landing |
| Risers | 6 | |
| Riser height | ≈ 6 7/8 in | 6.849 in |
| Treads | 5 | |
| Going | 10 1/2 in | |
| Landing distance from deck | 4 ft 4 1/2 in | Deck face to bottom riser face |
| Ground change at landing | 1 1/8 in | Lower than at the deck |
| Stringers | 3 | at ≤ 18 in on centre |
| Deck boards for treads | 10 pieces | each 36 in long, before overhang |
| 2x12 stringer: first riser cut | ≈ 5 7/8 in | Riser minus tread thickness |
| 2x12 stringer: shortest board | 5 ft 2 1/8 in | Before trimming allowance |
Why deck stairs need their own calculator
Indoors, the floor at the bottom of a stair is level, so the height you measure is the height you build. Outside, it usually is not. Yards slope away from houses for drainage, so the ground where the stair lands is lower than the ground under the deck edge. A stair measured at the deck comes out short: the bottom riser ends up taller than the others, which is exactly the step people trip on.
The trouble is circular. Where the stair lands depends on how many treads it has, and how many treads it needs depends on how high the deck is above the landing. This calculator solves it directly: for each possible riser count it finds the landing point, works out the ground height there, and keeps the fewest risers that respect your maximum at that spot.
Worked example: when the slope adds a step
A deck is 46 1/2 in above the ground at its edge. Treads are two 5 1/2 in deck boards with a 1/4 in gap and a 3/4 in overhang, so the going is 2 × 5.5 + 0.25 − 0.75 = 10.5 in. The maximum riser is 7 3/4 in.
- On level ground: 46.5 ÷ 7.75 = exactly 6 risers of 7 3/4 in, 5 treads, landing 52 1/2 in from the deck.
- On ground that falls 2 in over 8 ft: at 52 1/2 in out the ground is 1.09 in lower, so the real rise is 47.59 in, and six risers would be 7.93 in each, over the limit. Seven risers land 63 in out, where the ground is 1.31 in lower: 47.81 in ÷ 7 = 6.83 in per riser.
Measured only at the deck, that stair would have been built with six risers and a bottom step about 1 in taller than the rest. Both cases are automated test fixtures (D3 on the methodology page).
Measuring a deck for stairs
- Measure from the top of the decking straight down to the ground at the deck edge where the stair starts.
- To find the slope, rest a straight board level on the deck-edge ground (or stretch a level string line) out past where the stair will land, about 6 to 8 ft. Measure down from the board to the ground at the far end: that is the drop over that distance.
- If the stair will land on a concrete pad or pavers, enter the pad's height above the ground. The pad top becomes the bottom finished surface.
- Then check the landing spot with a tape before you dig footings. The result tells you where the face of the bottom riser lands, measured from the deck face.
For a deeper walkthrough, including indoor stairs, see how to measure total rise.
Deck stair details that are easy to miss
- Guards and handrails. Under the IRC, flights with four or more risers need a handrail on at least one side (2024 R318.7.8), and open sides more than 30 in above grade within 36 in horizontally need guards (2024 R321.1.1). Section numbers were R311.7.8 and R312.1.1 in the 2021 edition.
- Bottom landing. The IRC calls for a landing at the bottom of each flight, at least 36 in deep in the direction of travel on a straight run (2024 R318.7.6), with exceptions. A level pad is easier to build to than sloping soil.
- Stringers. AWC's prescriptive deck guide (DCA 6, 2015) asks for stringers of at least 2x12, three or more when only cut stringers are used, and an intermediate landing when the total height exceeds 12 ft. Use the stringer calculator for cut layout and board length.
- Bearing at the bottom. The same guide has stringers bear on blocking attached to posts on footings, not simply resting on soil. Footing depth depends on your frost line.
These are references, not your local rules. Many jurisdictions amend the IRC or use their own deck details.
Questions people ask
What is the ideal rise and run for deck stairs?
There is no single ideal, but there are limits and good habits. Where the IRC applies, risers may be at most 7 3/4 in and treads at least 10 in. Two 5 1/2 in deck boards with a 1/4 in gap and a 3/4 in overhang give a 10 1/2 in going, and risers near 7 in make a comfortable outdoor stair. Most important outdoors: make every riser the same, measured at the spot where the stair lands, not at the deck.
How many steps for a 24 inch rise on a deck?
On level ground, 24 ÷ 7.75 = 3.1, so 4 risers of 6 in and 3 treads (the deck is the top step). With 10 1/2 in goings the stair lands 31 1/2 in from the deck. If the ground slopes or a pad is added, enter those in the calculator, because the rise at the landing changes.
How many steps for a 27 inch rise?
4 risers of 6 3/4 in and 3 treads. Three risers would be 9 in each, over the IRC's 7 3/4 in maximum. With 10 1/2 in goings the stair is 31 1/2 in long.
How to build exterior deck stairs?
- Measure the deck height and the ground slope where the stair will land; plan a level landing pad.
- Plan the stair with the calculator above (risers, treads, landing point) and check it against your local code.
- Lay out and cut 2x12 stringers with the stringer calculator, dropping the bottom by the tread thickness.
- Attach the stringers to the deck framing with the connection your local rules require, and support the bottom on blocking, posts or a pad as specified.
- Fit treads and risers, then add handrails (four or more risers) and guards where the sides are more than 30 in above grade.
Get spans, connections and footings approved locally; this site checks geometry only.
Related tools and guides
- Stair Stringer Calculator Notch layout, bottom drop, throat depth and minimum board length for a cut stringer.
- Stair Calculator Risers, treads, total run, angle and a to-scale side view from one height.
- How to measure total rise Reference points, tools and the mistakes that make every riser wrong.
- Stair code requirements Which rulebook covers which stair, with edition-correct section numbers.