Calculate rise, run, and number of steps for your deck stairs. IRC code-compliant.
How to Use This Deck Stair Calculator
Measure the total rise, the vertical distance from the ground to the top of your deck surface. Enter your maximum riser height (7-3/4" is the IRC maximum; 7" is more comfortable). Choose your desired tread depth. The calculator determines the number of risers and treads, exact riser height, and total horizontal distance the stairs will extend from the deck.
The formula is: Number of Risers = Total Rise ÷ Max Riser Height (rounded up). Exact riser height = Total Rise ÷ Number of Risers. Treads = Risers - 1. Total run = Treads × Tread Depth.
How to Build Code-Compliant Deck Stairs
Deck stairs are one of the most regulated parts of residential construction, and for good reason. A poorly built set of stairs is a safety hazard for your family and a liability risk. This guide covers the IRC requirements and practical tips.
Key IRC Requirements (2024)
- Maximum riser height: 7-3/4 inches. All risers within a flight must not vary by more than 3/8 inch between the tallest and shortest.
- Minimum tread depth: 10 inches (measured nose-to-nose). If you omit stair nosings, you must provide a full 11-inch tread.
- Minimum stair width: 36 inches clear width. If your deck is wider than 36 inches, match the stair width to the door or landing.
- Handrails: Required on at least one side for stairs with 4 or more risers. Must be 34-38 inches high measured from the stair nosing.
- Landing: A level landing at least 36 inches deep is required at the bottom of the stairs. The landing must be the same width as the stairs.
Comfort Rule
Carpenters use the comfort formula: 2 × Riser Height + Tread Depth = 24 to 25 inches. A 7-inch riser with an 11-inch tread gives 2(7) + 11 = 25, right in the sweet spot. A 7.75-inch riser with a 10-inch tread gives 25.5, which is steeper but still code-compliant.
Quick Reference: Steps by Deck Height
Use this table for a fast estimate of how many steps common deck heights require, using the ideal 7.5-inch riser and 11-inch treads. Always verify with the calculator above for your exact measurements.
| Deck Height (Total Rise) | Risers | Exact Riser Height | Treads | Total Run |
|---|
| 24" | 4 | 6.00" | 3 | 33" |
| 36" | 5 | 7.20" | 4 | 44" |
| 48" | 7 | 6.86" | 6 | 66" |
| 60" | 8 | 7.50" | 7 | 77" |
| 72" | 10 | 7.20" | 9 | 99" |
| 96" | 13 | 7.38" | 12 | 132" |
Note: decks taller than 12 feet or stairs with more than one flight require an intermediate landing per IRC, no single flight may rise more than 12 feet (147 inches) vertically between landings.
How to Cut Stringers
Use pressure-treated 2×12 lumber for stringers. Mark each rise and run with a framing square and stair gauges. Cut precisely with a circular saw, finishing the corner with a handsaw, never overcut with a circular saw as this weakens the stringer. Stringers should be spaced no more than 16 inches on center for stability.
Stringer Layout: Two Methods
The most intimidating part of stair building is laying out the stringer, the diagonal board with notches that supports the treads and risers. Two methods are commonly used:
- Framing square with stair gauges (traditional): Clamp two brass stair gauges to a framing square at the rise and run dimensions. Slide the square along the stringer board, marking each notch. This is the fastest method once you're set up, but requires precise gauge placement.
- Calculated layout (modern): Mark the first plumb cut at the top, then use a tape measure to step off each tread location along the board's edge. Connect the dots with a straightedge. More accurate for beginners, but slower. Essential for long stringers where cumulative error from repeated gauge placement becomes a problem.
Always cut one stringer and test-fit it against the deck and landing before cutting the remaining stringers. A single mis-marked stringer can be used as a template for the others once it's correct.
Material Options for Deck Stairs
- Pressure-treated pine (PT): Standard and cheapest. Use ground-contact rated (0.40 retention) for stringers near soil. Allow PT lumber to dry for 2-3 weeks before staining or sealing.
- Cedar: Natural rot resistance, lighter weight, and takes stain beautifully. About 2x the cost of PT. Softer than PT, predrill all screw holes to prevent splitting.
- Composite decking (Trex, TimberTech): For treads only (not structural stringers). Zero maintenance, won't splinter. Heavier than wood, stringers must be spaced 12" OC maximum instead of the standard 16" to prevent sagging.
- IPE / Hardwood treads: Premium tropical hardwood, extremely dense and durable. Requires hidden fasteners and predrilling. Very expensive ($8-12/linear foot) but lasts decades with minimal maintenance.
Common Deck Stair Mistakes
- Forgetting to subtract the first riser height: The top tread is the deck surface itself. When calculating total rise, measure from the ground to the top of the deck, then the first "step down" is one riser below the deck. Many DIYers miscount and end up with the top step flush with the deck instead of one step down.
- Not sloping treads for drainage: Outdoor stair treads should slope 1/8" to 1/4" per foot away from the house. Without this slight pitch, water pools on treads, accelerating wood rot and creating icy patches in winter.
- Using interior-grade fasteners: Deck stairs are fully exposed to weather. Use ACQ-approved stainless steel or hot-dipped galvanized screws and hardware. Standard deck screws will corrode within 2-3 years from the tannins in pressure-treated wood.
- Omitting a graspable handrail: Code requires handrails to be graspable, circular cross-section between 1-1/4" and 2" diameter, or non-circular with a perimeter between 4" and 6-1/4". A 2×4 on edge is NOT graspable and will fail inspection.