What is the stair stringer formula for deck builders?
Updated · 3 min read
Deck stair layout starts with the finished height difference, not a guess about how many steps look right. The stair calculator converts total rise, desired riser height, and tread depth into a consistent layout you can review before marking lumber.
Use the deck stair calculator as a geometry check, not as a structural design or permit approval. The tool assumes the upper deck serves as the final walking surface. Local amendments, landing conditions, tread thickness, and attachment details can change the construction plan.
Try the Stair Calculator
Enter your own numbers. Nothing you type leaves your device.
Separate total rise from individual riser height
Measure vertically from the finished lower landing to the finished deck surface. Include the landing material and decking thickness in your finished elevations. Measuring from bare soil or unfinished framing can leave the bottom or top step different from the others once construction is complete.
The calculator rounds total rise divided by your desired riser height to a whole riser count. It then divides total rise by that count to obtain equal risers. Because it rounds rather than always rounding upward, examine the returned height and its code check before accepting the layout.
Apply the rise, run, and diagonal formulas
For a 35-inch rise with a desired 7-inch riser, 35 divided by 7 produces five risers. With the deck as the top walking surface, there are four treads. Four times an 11-inch tread depth gives a horizontal run of 44 inches. The diagonal is the square root of 35 squared plus 44 squared.
That diagonal is 56.22 inches, and the modeled stair angle is 38.50 degrees. The comfort expression, twice the riser plus the tread, equals 25 inches. This comfort check is a layout heuristic, not an independent building-code approval or a substitute for the required dimensions.
Compare common deck heights
The table uses a desired 7-inch riser and an 11-inch tread for every row. All dimensions describe the calculator geometry. The diagonal is not a finished lumber shopping length because top bearing, bottom bearing, end cuts, and connector details still need to be resolved.
Do not copy the middle row simply because your deck looks similar. Even a modest elevation difference changes the actual riser height when the riser count stays fixed. Remeasure after the lower landing location and finished height are established, especially on a sloped site.
| Total rise | Risers | Treads | Run | Diagonal |
|---|---|---|---|---|
| 28 | 4 | 3 | 33 | 43.28 |
| 35 | 5 | 4 | 44 | 56.22 |
| 42 | 6 | 5 | 55 | 69.20 |
Check the IRC limits and local adoption
For ordinary residential stairs, the 2021 IRC R311.7.5.1 limits riser height to 7 3/4 inches. R311.7.5.2 generally requires at least 10 inches of tread depth. The greatest and smallest riser heights within a flight may not differ by more than 3/8 inch; tread-depth uniformity also matters. Verify the adopted edition and amendments with your building department.
The broader R311.7 provisions cover more than rise and run, including width, headroom, landings, and handrails. Nosing requirements can depend on tread geometry. Guards and deck connections involve additional provisions. A green calculator check does not evaluate every requirement or prove that a proposed stairway is safe.
Turn the geometry into a buildable stair plan
Resolve tread thickness before marking the bottom cut so the finished first riser matches the remaining risers. Confirm how the upper end bears and connects to the deck. Check every finished rise, not just the repeated marks on a framing square, before making irreversible cuts.
Stringer species, grade, spacing, remaining wood at notches, span, and connectors are structural choices beyond this formula. Follow approved plans and local code, and hire a qualified licensed professional when needed. Never remove extra material from a stringer just to make an incorrectly measured layout fit.
Frequently asked questions
No. The diagonal is a geometric estimate. Allow for the actual bearing, connector arrangement, and cuts specified by your construction plan.