The Inspector Said "These Are Coming Out"
The building inspector looked at my deck stairs, pulled out a tape measure, and said "These are coming out." I'd spent an entire weekend building them — cutting stringers by hand, leveling each tread, even staining the wood before installation because I wanted them to look finished from day one.
His tape measure told a different story. My risers were 8½ inches tall. The International Residential Code (IRC Section R311.7.5.1) caps riser height at 7¾ inches. Not 8. Not "close enough." Exactly 7¾ inches maximum.
Three-quarters of an inch. That's what separated a passing inspection from tearing out two days of work.
Where I Went Wrong (The Eyeball Method)
My deck sat 38 inches above grade. I figured four steps would get me down. Quick mental math: 38 divided by 4 is 9.5 inches per step. That felt tall, so I added a fifth step. 38 divided by 5 is 7.6 inches. Under the limit. Done.
Except I forgot about the deck board thickness. And the landing pad. And the fact that "grade" isn't perfectly level — the ground sloped about 2 inches across the stair width. My actual total rise from the deck surface to the landing was closer to 42.5 inches, not 38.
42.5 divided by 5 steps = 8.5-inch risers. Failed.
The inspector didn't care about my weekend. He cared about the number on his tape measure.
The Math That Would Have Saved Me $400 in Lumber
Stair math is two divisions. That's the whole thing. But you need the right starting number — your true total rise, measured from the finished deck surface to the finished landing surface. Not the framing height. Not the joist-to-ground distance. The surfaces people actually step on.
My corrected total rise: 42.5 inches. The IRC says each riser should be between 4 inches and 7¾ inches, with 7 to 7.5 inches being the comfort sweet spot. Here's the formula:
Six risers. Then the actual rise per step:
7.08 inches per riser. Well within code. Comfortable to walk. And it would have passed inspection the first time.
The 7-11 Rule: Why Some Stairs Feel Wrong
Building code sets the legal limits. But comfort has its own math. The "7-11 rule" says the ideal stair has a 7-inch rise and an 11-inch run (tread depth). The relationship between rise and run follows a simple constraint:
2 × Rise + Run = 24 to 25 inches. This formula, used by builders for centuries, matches the average adult stride on an incline. A 7-inch rise with an 11-inch run gives 25. A 7.5-inch rise with a 10-inch run gives 25. Both feel natural.
My original 8.5-inch risers with 10-inch treads? That's 27 inches — too steep. You'd feel like you were climbing a ladder. The inspector wasn't just enforcing code. He was saving someone from tripping.
IRC Stair Code Requirements at a Glance
| Dimension | IRC Minimum | IRC Maximum | Comfort Sweet Spot |
|---|---|---|---|
| Riser height | 4" | 7¾" | 7" – 7½" |
| Tread depth | 10" | — | 10" – 11" |
| Stair width | 36" | — | 36" – 42" |
| Headroom | 6' 8" | — | 7'+ |
| Riser variation | — | ⅜" max | 0" |
That last row is the one that catches DIYers. Every riser must be within ⅜ inch of every other riser. If your first step is 7.1 inches and your last step is 7.6 inches, you fail — even though both are individually within code. Consistency matters as much as the number itself. Uneven risers are a trip hazard, and your feet expect each step to be the same height.
The Pythagorean theorem shows up here too — the stringer length (the diagonal board that supports the steps) is the hypotenuse of a right triangle formed by the total rise and total run.
The Rebuild: Getting It Right
I tore out the old stairs on a Tuesday evening. Measured the true total rise three times: 42.5 inches from deck surface to landing pad surface. Calculated 6 risers at 7.08 inches each. Cut new stringers with a framing square and stair gauges — no eyeballing.
The inspector came back Thursday. Measured every riser. 7.1, 7.1, 7.0, 7.1, 7.1, 7.1. Maximum variation: 0.1 inches. He checked the box and moved on.
Total cost of the redo: about $400 in new lumber and a bruised ego. Total cost if I'd used a stair calculator first: $0. Same lesson as my gravel miscalculation — measure twice, calculate once, build once.
Frequently Asked Questions
How many stairs do I need for a specific height?
Divide your total rise (in inches) by 7.5 for a comfortable step height, then round up. A 36-inch deck needs 5 risers (36 ÷ 7.5 = 4.8, round to 5, actual rise = 7.2" each). A 48-inch deck needs 7 risers (48 ÷ 7.5 = 6.4, round to 7, actual rise = 6.86" each). Always measure the true total rise from finished surface to finished surface.
What is the maximum riser height allowed by code?
The IRC (International Residential Code) sets the maximum riser height at 7¾ inches (7.75") and the minimum tread depth at 10 inches. Local codes may be stricter — always check with your building department before construction. The maximum variation between any two risers is ⅜ inch.
What are comfortable stair dimensions?
The comfort sweet spot is a 7-inch rise with an 11-inch run. The classic builder's rule: 2 × rise + run should equal 24-25 inches. This matches the average adult stride on an incline. Steeper stairs (higher rise, shorter run) feel like climbing; shallower stairs (lower rise, longer run) feel like walking a ramp.