Calculate stair dimensions including risers, treads, stringers, and check building code compliance
IRC max: 7.75", recommended: 7-7.5"
IRC min: 10", recommended: 10-11"
Enter your total rise (vertical distance from floor to floor) and desired dimensions
| Parameter | Typical Range | Code Intent |
|---|---|---|
| Riser Height | 7.0-7.75 in | Comfortable climb with safe cadence |
| Tread Depth | 10-11 in | Adequate foot placement and stability |
| Nosing | 0.75-1.25 in | Improved edge visibility and grip |
| Stair Width | >= 36 in (residential) | Clear passing and emergency egress |
The relationship between riser height and tread depth is at the heart of stair design. An ancient rule of thumb known as the 2R+T formula (two risers plus one tread equals 24 to 25 inches) has guided carpenters and architects for centuries because it encodes the natural biomechanics of human walking. When risers are tall, your leg lifts high at each step and you want a shorter tread to maintain stride rhythm; when risers are low and you have more horizontal travel per step, the formula balances comfort naturally. Deviating too far from this range — with very tall risers and deep treads, or shallow risers and narrow treads — produces stairs that feel awkward and tiring to use.
The International Building Code (IBC) has codified optimal riser height between 4 and 7 inches for commercial construction, while the International Residential Code (IRC) allows up to 7¾ inches for private dwellings. The practical sweet spot most builders target is 7 to 7½ inches — tall enough to reduce total step count but not so steep that users must exert significant leg effort. For elderly users or those with mobility limitations, risers of 6 to 6½ inches are noticeably more comfortable and less fatiguing over repeated daily use.
Tread depth — measured from the front edge (nosing) of one tread to the back of the same tread, or equivalently from nosing to nosing minus the nosing projection — should be a minimum of 9 inches under IRC, with 10 to 11 inches representing best practice. A tread too shallow forces the heel off the back edge of the step during descent, reducing stability and increasing fall risk. Most adults feel most secure on treads of at least 10 inches, which allows the full length of a typical foot to land flat on the surface.
The stair angle — typically 30° to 37° for comfortable residential stairs — is a direct result of the rise-run relationship. Steeper stairs above 45° become ladder-like and require handholds rather than handrails for safe descent. Shallower stairs below 20° become ramp-like and consume substantial floor space. The stringer — the diagonal structural member that supports the treads and risers — must be cut precisely using the rise and run dimensions you calculate, and its length is found by applying the Pythagorean theorem: stringer = √(total rise² + total run²).
Handrail requirements are another critical design consideration. The IRC mandates a continuous graspable handrail on at least one side of any stair with four or more risers, positioned 34 to 38 inches above the stair nosing. The handrail profile must be graspable — typically a round or oval section no larger than 2 inches in diameter — so users can wrap their fingers around it for a secure grip. Handrails mounted too high force the arm into an awkward extended position; those mounted too low cause users to bend and lose balance.
Building codes for stairs exist because stair falls are one of the leading causes of accidental injury in residential and commercial settings. The International Building Code (IBC) and the International Residential Code (IRC) set minimum standards that local jurisdictions adopt, often with additional amendments. Before beginning any stair construction project, verify your local requirements with your municipality's building department, since some jurisdictions have stricter rules than the base codes.
Commercial and residential stair standards diverge in several important ways. Commercial stairs under the IBC must have minimum 44-inch clear width (60 inches for high-occupancy assembly areas), risers no taller than 7 inches, treads at least 11 inches deep, and continuous handrails on both sides. Residential stairs under the IRC require only 36-inch minimum width, allow risers up to 7¾ inches, and mandate treads of at least 10 inches. These differences reflect the more frequent and varied use of commercial stairs, including emergency egress by large numbers of people.
Headroom clearance is a critical safety dimension that prevents head injuries. The IRC requires a minimum of 6 feet 8 inches (80 inches) of vertical clearance measured from the stair nosing to the ceiling or soffit above. This measurement must be maintained at all points along the stair run, including beneath any structural members, ductwork, or platform edges. Insufficient headroom is a common design error in basement stairs where the floor structure above limits available height.
Landings are required at both the top and bottom of every stairway, and between flights when the total vertical rise exceeds 12 feet. Each landing must be at least as wide as the stairway itself, and at least 36 inches deep in the direction of travel. Landings serve the vital safety function of providing a stable platform where users can pause, recover balance, and change direction without risk of tumbling down additional steps.
Riser consistency is one of the most important yet overlooked code requirements. The IRC mandates that no two consecutive risers may differ by more than ⅜ inch, and the maximum difference between the tallest and shortest riser in the entire flight is also ⅜ inch. This seemingly small tolerance matters because humans unconsciously calibrate their step height to the pattern they establish on the first few steps. An unexpectedly tall or short riser mid-flight causes a stumble even on familiar stairs — a well-documented fall risk that the ⅜-inch rule specifically addresses. Always measure actual floor-to-floor height precisely before cutting stringers.
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.
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.
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.
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.
| 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.
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.
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.
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.
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.
Solve right triangle problems using a² + b² = c² with step-by-step solutions and visual triangles.
Calculate lumber volume in board feet for woodworking projects. Supports thickness formats like 4/4 and unit toggles.
Calculate volume in cubic feet from length, width, and height with unit conversions to cubic yards, gallons, and liters.
Calculate the slope of a line between two points using the slope formula with step-by-step solutions.