How to Calculate Deck Stairs
Deck stairs are the one part of a deck build where getting the math wrong is immediately obvious — and potentially dangerous. Uneven risers cause trips. Risers that are too tall violate building code. Stairs that are too steep feel unsafe. The calculations aren't difficult, but they require precision.
The starting point is the total rise: the vertical distance from the ground to the top of the deck surface. Everything else flows from that number.
Actual riser height = Total Rise ÷ Number of risers
Number of treads = Risers − 1
Total run = Treads × Tread depth
Stringer length = √(Total Rise² + Total Run²)
The top "step" is the deck surface itself, which is why you always have one fewer tread than risers. The stringer length uses the Pythagorean theorem — the stringer is the hypotenuse of the right triangle formed by the total rise and total run.
IRC Building Code Requirements
The International Residential Code (IRC Section R311.7) sets the following requirements for residential stairs. Most U.S. jurisdictions adopt these directly, though some have stricter local amendments:
| Requirement | IRC Limit | Notes |
|---|---|---|
| Maximum riser height | 7.75" | R311.7.5.1 |
| Minimum tread depth | 10" | R311.7.5.2 |
| Riser uniformity | ≤ 3/8" variation | Between any two risers in the same flight |
| Minimum stair width | 36" | Clear width between handrails |
| Handrail required | 4+ risers | On at least one side |
| Handrail height | 34"–38" | Measured from stair nosing |
The Comfort Rule
Beyond code compliance, there's a widely used rule of thumb: riser height plus tread depth should equal approximately 17 to 18 inches. This ratio produces stairs that feel natural to walk on. A 7-inch riser with a 10.5-inch tread gives 17.5 inches — right in the sweet spot. This calculator flags results that fall outside this comfort range.
Stringer Construction
Stringers are the diagonal boards that support the treads. They're typically cut from 2×12 lumber. The number of stringers depends on stair width: two stringers for narrow stairs (up to 24 inches), three for standard 36-inch stairs, and four for wider stairs. Building code requires that the unsupported span between stringers not exceed 36 inches.
When cutting stringers, the key dimension is the "effective depth" — the narrowest point of the stringer after the step notches are cut. This must be at least 3.5 inches for a 2×12 stringer. If your rise/run combination leaves less than 3.5 inches of solid wood at the narrowest point, the stringer won't pass inspection.
Measuring Total Rise Accurately
The most common mistake in stair building is measuring the total rise incorrectly. Don't measure from the deck framing — measure from the finished deck surface to the finished ground level where the bottom of the stairs will land. If you're pouring a concrete pad at the base (recommended), include the pad thickness in your measurement. Even a half-inch error in total rise compounds across every riser and can push you out of the 3/8-inch uniformity tolerance.