How to build deck stairs that pass code

Measure the rise, solve the riser and tread layout, cut and space the stringers, and set a footing at the bottom, worked through for a 40-inch-high deck.

Deck stairs look simple: a couple of notched boards and some treads. They’re also where most deck inspections fail, and where most deck falls happen. One step taller than the rest catches toes, and a stringer notched too deep cracks. Stringers resting on bare soil sink unevenly until the bottom step is a different height from the others.

Every one of those problems is decided before you cut anything, in the layout. This guide works through that layout in order, then builds one set of stairs from measurement to material list.

The code limits you’re designing to

Most US homes fall under the International Residential Code (IRC). The 2024 edition sets these limits for a residential stair. Your town may have adopted an older edition or local amendments, so confirm with your building department before you build.

Dimension IRC residential limit Comfortable target
Riser height 7¾ in maximum 7–7½ in
Tread depth 10 in minimum 10–11 in
Riser-to-riser variation ⅜ in maximum within a flight As uniform as possible
Stair width 36 in minimum 36 in or more
Handrail Required at 4 or more risers, 34–38 in above the nosings —

The variation limit is the one that catches DIY builds. Every riser in the flight, including the first step off the ground and the last one onto the deck, must be within ⅜ inch of the others. That’s why you can’t just pick 7 inches and start cutting.

Step 1: Measure the total rise

Total rise is the vertical distance from the top of the deck surface down to the ground where the bottom step will land. It’s not the height at the deck’s edge directly below, because the ground usually slopes away from the house. Here’s how to find it:

  1. Estimate where the stairs will end. With 7-inch risers and 11-inch treads, figure roughly 1½ inches of horizontal run for every inch of rise.
  2. Run a straight board or a string line level out from the deck surface to that spot.
  3. Measure straight down from the level line to the ground, or to the top of the pad you’ll pour.

If the ground at the landing spot is lower than at the deck, the rise grows, and the stairs get longer. Re-measure once you know where the bottom lands. Measure to finished surfaces too. Decking boards, or a pad that sits above grade, change the rise.

Step 2: Solve the risers and treads

Divide the total rise by your target riser height (about 7 inches) and round to the nearest whole number. That’s the number of risers. Then divide the total rise by that count to get the exact riser height, which will rarely be a round number. With a standard mount, where the top step is the deck itself, you have one fewer tread than risers.

Check the comfort rule before you commit. 2 × riser + tread should land between 24 and 25 inches. Steps outside that range feel either choppy or steep even when they pass code. The stair calculator runs this and checks every code limit as you type.

Step 3: Lay out and cut the stringers

The stringer is the sawtooth board that carries the treads. For cut (notched) stringers:

  • Use 2x12 stock. Notching removes a triangle at every step. The wood left below the notches, called the throat, carries the load, and it should be at least 5 inches deep. A notched 2x10 rarely keeps that much, while a 2x12 (11¼ inches actual depth) does. Outdoors, use pressure-treated lumber rated for ground contact near the bottom.
  • Mark with a framing square. Set stair gauges on the square at the exact riser height on one arm and the tread depth on the other, then step the triangle down the board once per riser.
  • Shorten the bottom riser. Cut the first step down by the thickness of one tread. When the treads go on, every finished step comes out equal. If you skip this, the bottom step is too tall.
  • Cut one, test it, then copy it. Hold the first stringer in place and check it with a level before you use it as a template for the rest.

Spacing. Put a stringer under each side, then add more so no gap is wider than your tread material can span. Deck builders commonly use 12 inches on center for 5/4 deck boards and composite treads. Code allows up to about 16 to 18 inches only for stiffer treads. Composite decking makers publish their own stair spans, so check the product.

Span. Prescriptive deck guidance (the American Wood Council’s DCA 6) limits a cut stringer’s horizontal span between supports to about 6 feet. Longer stairs need a support partway down or a landing.

Step 4: Give the bottom something solid to sit on

Never rest stringers on soil. Ground settles and heaves unevenly, so one stringer drops and the bottom riser height changes. Pour a concrete pad or footings for the stringers to bear on, set level and at the height you measured the rise to. A pad wide enough for the stairs and deep enough to stand on makes a proper landing as well.

Step 5: Treads, risers, and railings

Fasten treads with structural screws or the hidden fasteners your decking specifies. Closed risers are optional on most residential deck stairs. If you leave them open, the gap must not let a 4-inch sphere through. A handrail is required once a flight has four or more risers. Where the open side of the stairs or the deck is more than 30 inches above the ground, guards are required too. The baluster calculator spaces the infill so it passes the 4-inch rule.

Worked example: a 40-inch-high deck

The stairs are 48 inches wide and built in pressure-treated lumber. The total rise, measured to the top of a new concrete pad, is 40 inches. These figures come from the same math the stair and stair stringer calculator run.

Result
Risers 40 ÷ 7 = 5.7, rounded to 6 risers at 6⅔ in (6.667 in)
Treads 5 treads, 11 in deep (standard mount)
Total run 5 × 11 = 55 in
Comfort check 2 × 6.667 + 11 = 24.3 in, inside the 24–25 in range
Angle About 36°
Stringer diagonal √(55² + 40²) = 68 in, so buy 8 ft 2x12s
Throat left after notching 5.55 in, which passes the 5 in minimum
Stringers 5 at 12 in on center (4 at 16 in if the treads allow it)
First-step cut 6.667 − 1 in tread = 5⅔ in at the bottom of each stringer

Landing pad. A 5 × 2 ft pad, 4 inches thick, is 3.3 cubic feet of concrete. With 10 % extra, that’s 7 bags of 80 lb mix, small enough to mix by hand. Size your own with the concrete calculator.

Railing. Six risers means a handrail is required, 34–38 inches above the nosings. A 40-inch drop at the deck edge also means the deck needs a guard. Plan both before you order lumber.

What the example shows: a 40-inch deck needs about 4½ feet of run beyond the deck edge, and more than 6 feet once you add the 2-foot landing pad. That surprises a lot of people planning stairs into a tight side yard. Measure the space before you settle on a location.

Common mistakes

  1. Forcing a 7-inch riser. The rise has to divide evenly. Round the riser count and let the height fall where it does.
  2. Measuring rise at the deck edge. Measure where the bottom step will actually land, and to finished surfaces.
  3. Forgetting the first-step cut. If the bottom of the stringer isn’t shortened by one tread thickness, the bottom step comes out tall and fails the ⅜-inch rule.
  4. Notching 2x10s. Use 2x12s for cut stringers, or solid stringers with tread brackets.
  5. Stringers on dirt. Use a pad or footings, or the stairs will move.

Calculators used in this guide

Sources

Spotted a figure that doesn't match your supplier or your local code? Tell us through thecontact page and we'll check it and correct the guide.