Home Improvement

Deck Stairs Code Requirements: Complete Guide for Homeowners

Deck stairs cause more inspection failures than almost any other part of a deck, because the code numbers are precise and the tolerances are tight. Getting the deck stairs code requirements right means nailing specific figures for riser height, tread depth, stair width, handrails, guards, and footings, and being consistent within a fraction of an inch from step to step. A stair that varies too much in riser height is not just a code violation, it’s the classic tripping hazard. This guide walks through each requirement so you can build deck stairs that pass inspection the first time and hold up safely for years.

Riser Height and Tread Depth

The two most-checked numbers are riser height and tread depth. Under the International Residential Code, the maximum riser height is 7.75 inches, measured vertically from the top of one tread to the top of the next. Tread depth, the horizontal walking surface, must be at least 10 inches deep, measured from nosing to nosing.

Consistency is as important as the numbers themselves. The greatest riser height in a flight may not exceed the smallest by more than 3/8 inch, and the same tolerance applies to tread depths. That’s why laying out stringers carefully matters: eyeballing it produces uneven steps that inspectors reject and that people trip on. Calculate your total rise, divide into equal risers under 7.75 inches, and cut every stringer identically.

Stair Width and Headroom

Deck stairs must be at least 36 inches wide, measured between the inside faces of the railings or the outer edges of the stringers where no rail is present. That 36-inch minimum lets a person pass comfortably and allows for safe use; wider stairs of 42 to 48 inches feel more generous and are common on larger decks.

While headroom is more of a concern for enclosed stairs, code requires at least 6 feet 8 inches of clearance above the stair walking line. On an open exterior deck stair this is rarely an issue, but if your stairs run beneath a pergola, a second-story deck, or any overhead structure, verify the clearance so no one has to duck.

Stringers, Treads, and Structural Support

Stringers, the notched or solid boards that carry the treads, must be sized and spaced to support the load. Cut (notched) stringers are typically made from 2×12 lumber, and code limits spacing between stringers, generally no more than 18 inches on center for composite treads and around 36 inches maximum for standard 2x lumber treads, though many builders use closer spacing for stiffness.

Composite and lower-density decking often needs stringers as close as 12 inches on center, so always follow the decking manufacturer’s span chart. Treads should overhang or meet code for nosing, and open risers, the gaps between treads, must not allow a 4-inch sphere to pass through where the total rise exceeds 30 inches. Attach stringers securely to the deck framing with proper hangers or brackets rather than toe-nailing alone.

Handrails on Deck Stairs

Any deck stair with four or more risers requires a graspable handrail on at least one side. The handrail must sit 34 to 38 inches above the tread nosing, run continuously the full length of the flight, and be graspable, a round rail 1.25 to 2 inches in diameter, or a comparable non-circular profile within the code perimeter limits.

The handrail must return to the guard or post at its ends so a sleeve or bag strap can’t catch on an open end, and it needs at least 1.5 inches of clearance from any wall or surface behind it. This is where a lot of deck builders slip up: they build a wide 2×6 top cap and call it a handrail, but a flat cap you can’t wrap your hand around does not satisfy the graspable-rail requirement and will fail inspection.

Need help with your decking project? Get a free quote by phone.
📞 Call (888) 268-1507
Free, no-obligation quote · Connect with a local pro

Guardrails on Elevated Stairs

When deck stairs are elevated, guards come into play. If the stairs or landing are more than 30 inches above the grade below, an open-sided guard is required. On the stairs themselves, the guard must be at least 34 inches high measured from the tread nosing; on the deck and landings it must be at least 36 inches, and some jurisdictions require 42 inches on decks.

Guard infill follows the sphere rules: a 4-inch sphere must not pass through the guard, while the triangular opening at the base of each stair formed by tread, riser, and bottom rail allows up to a 6-inch sphere. Space balusters accordingly, generally about 4 inches on center or less, and keep cable railings tensioned and closely spaced to prevent deflection.

Footings and the Bottom Landing

Stairs need a solid base, and code requires a landing at the bottom of the flight. The landing must be at least 36 inches deep in the direction of travel and at least as wide as the stairs, giving a firm, level surface to step onto, whether that’s a concrete pad, pavers, or a compacted stone landing.

The stringers and any support posts should bear on proper footings, not simply rest on soil that will shift and heave. In cold climates, footings for stair-supporting posts must extend below the frost line, commonly 36 to 48 inches deep, to prevent frost heave from pushing the stairs out of alignment each winter. A stair that sinks or lifts a season after you build it usually traces back to a skipped or shallow footing.

Laying Out Stringers Without Errors

The math you do before cutting is what makes or breaks the whole flight. Measure the total vertical rise from the top of the deck surface to the finished landing, then divide by your target riser height, staying under the 7.75-inch maximum, to find the number of risers; round to a whole number and recalculate the exact riser height so every step is identical. A total rise of 42 inches, for example, divides into six risers of exactly 7 inches each.

From there, the number of treads is always one fewer than the risers, and each tread depth of at least 10 inches sets your total run. A classic layout error is forgetting that the top of the stairs is the deck itself, which changes the top riser height once decking thickness is added, so account for the tread and decking material when marking the stringer. Cut one stringer, test-fit it, and only then use it as a template for the rest so a small error doesn’t repeat across the whole flight.

Attachment, Materials, and Fasteners

Code cares not just about geometry but about how the stairs connect and what holds them together. Stringers must be fastened to the deck framing with approved hardware, typically metal stringer hangers or connectors rated for the load, rather than a couple of nails toe-driven into the rim joist, which can pull loose over time. The connection at the top of the stringer carries the entire live load of everyone on the stairs, so it deserves proper brackets.

Use exterior-rated materials throughout: pressure-treated lumber for stringers, and hot-dipped galvanized or stainless fasteners and connectors, since standard steel corrodes fast outdoors and especially reacts with the copper in treated wood. For composite treads, follow the manufacturer’s fastener and stringer-spacing spec exactly, because using the wrong screws or spacing voids the warranty and can leave treads that flex. These material details are part of the deck stairs code requirements and are checked on any thorough inspection.

Building Stairs That Pass and Last

Pull the whole picture together before you cut a single stringer: risers no taller than 7.75 inches and consistent within 3/8 inch, treads at least 10 inches deep, stairs at least 36 inches wide, a graspable 34-to-38-inch handrail on flights of four or more risers, guards where the drop exceeds 30 inches, and a solid landing on proper footings. Always confirm your local building department’s amendments, since some regions adopt stricter numbers or newer code editions.

Meeting the deck stairs code requirements isn’t bureaucratic box-checking, it’s the difference between stairs that feel solid underfoot for decades and stairs that trip people or shift with the seasons. Lay them out carefully, build to the numbers, and schedule the inspection with confidence.

Get Free Deck Building Quotes from Local Pros