Stair types
Deck stair calculator: rise and run, stringers and the code for three deck heights
Deck stair calculator: measure the rise to grade, size the risers, treads and stringers to the IRC and DCA 6, with 30, 48 and 72 in decks worked out.
A deck stair is a straight stair that lands on the ground
Deck stairs follow the same arithmetic as any straight stair: a total rise split into equal risers, and a tread depth repeated once per step. Two things make them harder. The bottom lands on ground that is rarely flat, so the total rise is only known once you know where the stair ends. And the stair lives outside, so the stringers, the footing at the bottom and the treads have to survive rain, frost and decades of use.
This guide follows the International Residential Code (IRC 2021, section R311.7), which most US jurisdictions have adopted for decks, and the American Wood Council’s DCA 6, the prescriptive deck guide many building departments hand out with a deck permit. Figures are in inches first, with centimetres in brackets.
The rules: IRC R311.7 and DCA 6
The IRC treats a deck stair like an indoor stair. DCA 6 adds the framing: what the stringers are cut from, how far they can span and what they stand on. Your local code may amend any of these numbers, so check the edition your building department enforces.
- Riser height: 7¾ in (19.7 cm) at most, and no riser in a flight more than ⅜ in (9.5 mm) taller than the smallest (R311.7.5.1).
- Tread depth: 10 in (25.4 cm) at least, measured nosing to nosing (R311.7.5.2). With solid risers and treads under 11 in, each tread needs a nosing of ¾ to 1¼ in (19 to 32 mm).
- Open risers: allowed, but on a stair more than 30 in (76 cm) high a 4 in (10.2 cm) ball must not pass through the gap between treads.
- Width: 36 in (91.4 cm) clear at least (R311.7.1). DCA 6 asks for the same.
- Headroom: 6 ft 8 in (2.03 m) above the nosing line (R311.7.2), which matters when the stair runs under a second deck or a roof.
- Handrail: on at least one side once the stair has four or more risers, 34 to 38 in (86 to 97 cm) above the nosings, graspable and continuous from the lowest riser to the highest (R311.7.8).
- Guards: on the open sides of a stair wherever it is more than 30 in (76 cm) above the grade below (R312.1.1).
- Stringers (DCA 6): 2×12 at least, at least three cut stringers on a 36 in stair, and no more than 18 in (45.7 cm) apart on wider stairs.
- Stringer span (DCA 6, Figure 28): a cut stringer spans 6 ft (1.83 m) horizontally at most; a solid stringer, with the treads hung on cleats, up to 13 ft 3 in (4.04 m).
- Stair height: DCA 6 requires an intermediate landing, built as a freestanding deck, once the stair climbs more than 12 ft (3.66 m).
- Light: a light at the top that illuminates every step, switched from inside the house or by a motion sensor (DCA 6, after IRC R303).
Measure the total rise to grade, where the stair will land
The total rise is the height from the top of the deck boards to the surface the bottom step lands on. Measuring straight down from the deck edge only works on flat ground. On a slope, the ground a few feet out, where the stair actually ends, can be several inches lower or higher, and that error lands entirely on the bottom riser: the one step people trip on.
Measure where the stair ends, not where it starts. Run a straight board or a taut string from the deck surface out past where the stair will land, level it, and measure from it down to the ground there. Then estimate the run (the next section), move the measuring point to the new end of the stair and measure again. Two rounds are usually enough: on a slope of 1 in 10, being off by a foot of run changes the rise by about 1.2 in.
If the ground slopes away, the stair grows longer and the rise grows with it. Rather than chase the slope, many builders level a landing pad at the bottom first, a gravel or concrete pad at least as wide as the stair and 36 in (91 cm) deep, and measure to its finished surface. That fixes the total rise before anything is cut.
Work out the risers and the treads
Divide the total rise by 7¾ in and round up: that is the number of risers. Divide the total rise by that number for the exact riser height. The deck itself is the top step, so there is one tread fewer than risers. Multiply the number of treads by the tread depth for the total run, and the stringer is the hypotenuse of the total rise and the total run.
The examples below use a 10½ in (26.7 cm) unit run. Two 2×6 or 5/4×6 deck boards with a ¼ in gap make an 11¼ in tread, which leaves the ¾ in nosing the code asks for. The comfort check is the step formula: twice the riser plus the run should land between 24 and 25½ in (61 to 65 cm).
| Deck height | Risers | Riser height | Treads × run | Total run | Stringer length | Pitch |
|---|---|---|---|---|---|---|
| 30 in (76.2 cm) | 4 | 7.5 in (19.1 cm) | 3 × 10½ in | 31.5 in (80.0 cm) | 43.5 in (110.5 cm) | 35.5° |
| 48 in (121.9 cm) | 7 | 6.86 in (17.4 cm) | 6 × 10½ in | 63 in (160.0 cm) | 79.2 in (201.2 cm) | 33.1° |
| 72 in (182.9 cm) | 10 | 7.2 in (18.3 cm) | 9 × 10½ in | 94.5 in (240.0 cm) | 118.8 in (301.8 cm) | 34.4° |
What the three examples tell you
The 30 in deck needs four risers of 7.5 in: twice 7.5 plus 10.5 gives 25.5 in, at the steep end of comfortable but within the code. Four risers also means a handrail. The stair is 30 in high, not more, so no guard is needed on its sides.
The 48 in deck has seven risers of about 6⅞ in. Six would give 8 in, over the limit. The low riser makes a gentle stair (24.2 in on the step formula). The total run of 63 in stays under the 6 ft span of a cut stringer, so three 2×12 stringers resting on the footing at the bottom need no support in between. The stair is more than 30 in high, so it needs a guard on any open side, and open risers must be closed down to a 4 in gap.
The 72 in deck has ten risers of 7.2 in (about 7³⁄₁₆ in) and a run of 94.5 in, almost 8 ft. That is past the 6 ft a cut stringer may span, so either add a 4×4 post on its own footing under each stringer, bolted to it as DCA 6 shows, or switch to solid stringers with the treads on cleats or hangers. The stringers are each almost 10 ft long, so buy 12 ft 2×12s: the plumb cut at the top and the level cut at the bottom eat about a foot of board.
Lay out and cut the stringers
Set a framing square on the 2×12 with stair gauges at the riser height on the tongue and the unit run on the blade, and mark each notch in turn. A cut stringer must keep at least 5 in (12.7 cm) of solid wood between the inside corner of each notch and the bottom edge, measured square to the edge; over-cutting the corners with a circular saw eats into it, so finish the corners with a hand saw.
Drop the stringer at the bottom: cut the first riser short by the thickness of one tread, so the bottom step comes out the same height as the others once its tread is on. Cut the first stringer, check it against the deck and the landing, then use it as the pattern for the rest.
The top and the bottom of the stair
At the top, the stringers hang from the deck’s rim joist or a header with metal connectors made for stair stringers, fastened as the maker specifies. Toe-nailing the stringers to the rim or resting them on a ledger strip is the usual defect inspectors flag.
At the bottom, DCA 6 does not let the stringers sit on a patio slab or a precast block. The stringers bear on a 2×4 bearing block screwed to posts, and the posts stand on footings at least 12 in below undisturbed ground or below the frost line, whichever is deeper. A concrete pad can sit under the bottom step as a landing, but the stringers do not bear on it unless it is founded at that depth.
Deck stair railing: the handrail and the guards
A deck stair railing does two jobs, and the IRC treats them separately. The handrail is what you hold: from four risers up, on at least one side, 34 to 38 in above the line of the nosings, continuous over the whole flight, and graspable. A round rail is 1¼ to 2 in across; a 2×6 laid flat is not graspable, so a flat cap needs a separate grip rail fixed to the posts (R311.7.8).
The guard is what stops a fall off the open side. It is required wherever the stair is more than 30 in above the ground beside it, at least 34 in high measured from the nosings on the stair, and its balusters must stop a 4⅜ in sphere (R312). The top of a guard can serve as the handrail if it is between 34 and 38 in and graspable.
The posts carry the loads, 200 lb on the rail in any direction. Bolt them through the stringers or block them between the stringers as DCA 6 shows; posts notched and nailed to the outside face are the other defect inspectors flag.
Treads and the last checks
With cut stringers 18 in apart, DCA 6 accepts 2×4 or 5/4 deck boards as treads in Southern Pine, Douglas Fir, Hem-Fir, SPF, redwood or cedar. Solid stringers span the full width with the treads, so the treads need to be 2×8 or larger, 2×10 in redwood or cedar (DCA 6, Table 6). Fasten each tread board to every stringer and leave a gap so water drains.
Before you cut, check the plan against the list: each riser within 7¾ in, each tread at least 10 in, the whole stair 36 in wide, a handrail from four risers up, guards above 30 in, cut stringers no longer than 6 ft in plan, and the bottom on a footing below frost. The straight stair calculator and the editor run the same arithmetic in either inches or centimetres and draw the stringer for you.
Sources
- International Residential Code 2021, section R311.7 Stairways (and R312 Guards). Riser, tread, nosing, width, headroom, handrail and guard requirements.
- American Wood Council, DCA 6: Prescriptive Residential Wood Deck Construction Guide. Stair requirements, Figures 27 to 34 and Table 6: stringers, spans, landings, footing, treads, lighting (2015 IRC basis).
- JLC, Common defects in deck stairs. The 5 in remaining depth of a cut stringer and the 6 ft span of a 2×12 cut stringer.
Put this into practice
Open the editor and test these numbers on your own staircase, with live drawings and a comfort score. No account needed.
Related guides
Stair types
U-shaped stairs (half-turn): plan, dimensions and a worked example
How to plan a U-shaped (half-turn) stair: the three layouts, footprint worked out step by step for a 2.70 m floor height, landing size, winders and headroom.
Stair types
Space-saving stairs: alternating tread, ship’s ladder or a stair that turns
Space-saving stairs for a loft or mezzanine: alternating tread stairs, ship’s ladders, steep and turning stairs compared on one 2.50 m example, with the rules.
Stair types
Winder stairs: balancing the steps around a turn, explained
What balanced winders are, why the going must stay constant on the walkline, how many steps to balance, and the narrow-end width to keep at the turn.