2026-03-21 · CalcBee Team · 7 min read
Stair Rise and Run Formula: Building Code-Compliant Stairs
Stairs are one of the most code-regulated elements in residential construction. Every dimension — riser height, tread depth, headroom, width, and handrail position — is governed by the International Residential Code (IRC) and local amendments. Fail an inspection on stair dimensions and you are tearing out work and starting over. Get the rise and run formula right from the beginning, and your stairs will be safe, comfortable, and compliant.
This guide covers the essential formulas, code requirements, and practical calculation methods for designing stairs that pass inspection the first time.
The Rise and Run Formula Explained
The fundamental stair dimensions are rise (the vertical distance of each step) and run (the horizontal depth of each tread). The relationship between these two numbers determines whether stairs feel comfortable or awkward to climb.
The classic comfort formula, used by builders for centuries, is:
> 2 × Rise + Run = 24 to 25 inches
This formula correlates closely with the natural stride length of an average adult. When the sum falls within this range, each step feels natural and requires minimal effort.
An alternative formula used by some architects is:
> Rise × Run = 70 to 75
Both formulas produce similar results. A riser of 7.5 inches with a tread of 10 inches gives: 2(7.5) + 10 = 25, and 7.5 × 10 = 75. Both fall within the comfortable range.
The IRC (Section R311.7) sets hard limits:
| Dimension | IRC Minimum | IRC Maximum | Ideal Range |
|---|---|---|---|
| Riser height | — | 7-3/4 inches (197 mm) | 7 to 7-1/2 inches |
| Tread depth | 10 inches (254 mm) | — | 10 to 11 inches |
| Riser variation | — | 3/8 inch between any two risers | 0 inches (uniform) |
| Tread variation | — | 3/8 inch between any two treads | 0 inches (uniform) |
| Stair width | 36 inches | — | 36 to 42 inches |
| Headroom | 6 ft 8 in (2032 mm) | — | 7 ft+ recommended |
Note that 7-3/4 inches is the maximum riser height in most jurisdictions, but some local codes reduce this to 7-1/2 or even 7 inches. Always verify with your local building authority before framing.
Calculating the Number of Risers and Treads
Start with the total rise — the vertical distance from the finished floor at the bottom to the finished floor at the top.
Step 1: Measure total rise. Use a level and tape measure at the stair opening. Measure from the surface of the lower finished floor to the surface of the upper finished floor. Include any flooring material that will be installed later. If the lower level will get 3/4-inch hardwood and the upper level already has hardwood, the total rise must account for the difference in finished floor heights.
Step 2: Divide by target riser height. Choose a target riser height within code range — 7.5 inches is a common starting point.
> Number of Risers = Total Rise ÷ Target Riser Height
For a total rise of 108 inches (9 feet): 108 ÷ 7.5 = 14.4 risers. You cannot have a fractional riser, so round to the nearest whole number: 14 risers.
Step 3: Calculate actual riser height. Divide the total rise by the number of risers to get the exact riser height.
108 ÷ 14 = 7.714 inches per riser
That exceeds the 7-3/4-inch maximum (7.75 inches), but just barely. To stay comfortably within code, try 15 risers: 108 ÷ 15 = 7.2 inches per riser. That is well within the comfort zone and code limits.
Step 4: Determine treads. The number of treads is always one fewer than the number of risers — the top riser lands on the upper floor, not on a tread.
15 risers = 14 treads
Step 5: Calculate total run. Multiply the number of treads by the tread depth.
14 treads × 10 inches = 140 inches = 11 feet 8 inches of horizontal run
This is the floor space the stair will consume. Make sure the layout accommodates this distance.
Stringer Layout and Cutting
Stringers are the structural members that support the treads and risers. Most stairs use three stringers — two on the outside edges and one in the center — for a 36-inch-wide stair.
Stringer length calculation: Use the Pythagorean theorem.
> Stringer Length = √(Total Rise² + Total Run²)
For our stair: √(108² + 140²) = √(11,664 + 19,600) = √31,264 = 176.8 inches ≈ 14 feet 9 inches
Stringers are typically cut from 2×12 lumber. After cutting the notches, the minimum remaining wood (the "throat") must be at least 3.5 inches. This is why 2×12 stock (11.25 inches actual width) is standard — it leaves adequate throat depth after notching for a 7.2-inch rise and 10-inch run.
The header size calculator can help determine the structural header needed at the top of the stair opening, especially when the stair passes through a load-bearing wall or floor system.
Headroom and Landing Requirements
Headroom is measured vertically from the nosing line (an imaginary line connecting the front edges of all treads) to the ceiling or header above. The IRC requires a minimum of 6 feet 8 inches of headroom along the entire walk line.
Checking headroom: At the design stage, calculate where the stair passes below the upper floor framing. If the stair well opening is not long enough, the header will encroach on headroom. The solution is either to extend the stair opening (requiring more framing work above) or to increase the total run by using deeper treads, which pushes the stair further from the header.
Landings: The IRC requires a landing at the top and bottom of every stair that is at least as deep as the stair is wide. A 36-inch-wide stair needs a 36-inch-deep landing (measured in the direction of travel). Landings must also be present when stairs change direction. A 90-degree turn needs an intermediate landing; a 180-degree turn (switchback stair) needs a full landing at the turn.
Winder Stairs and Special Configurations
Not every staircase is a straight run. Winders, spirals, and L-shaped stairs each have unique calculation requirements.
Winder stairs replace a landing with pie-shaped treads that turn the stair. The IRC requires that winder treads be at least 10 inches deep at the walk line (12 inches from the narrow end) and at least 6 inches at the narrowest point. The rise must remain consistent with the rest of the stair — you cannot change riser height at the winders.
L-shaped stairs use a flat landing at the turn. Calculate each straight section independently, keeping the riser height identical for both sections. The landing counts as a tread in the upper section and the floor of the lower section.
Spiral stairs have their own code section (IRC R311.7.10.1). The minimum clear width is 26 inches (measured from the outer edge of the center column to the inner edge of the outer railing). Tread depth at the walk line (12 inches from the narrow end) must be at least 7-1/2 inches. Riser height maximum is 9-1/2 inches — more relaxed than standard stairs because spirals serve a different function.
| Stair Type | Min Tread (Walk Line) | Max Riser | Min Width |
|---|---|---|---|
| Standard straight | 10 in | 7-3/4 in | 36 in |
| Winder | 10 in (at 12" from narrow) | 7-3/4 in | 36 in |
| Spiral | 7-1/2 in (at 12" from narrow) | 9-1/2 in | 26 in |
Practical Tips for Accurate Stair Construction
Even with perfect calculations, stairs can go wrong during construction. These tips prevent the most common problems.
Measure total rise after subfloor is installed. If you calculate stairs before the upper subfloor is in place, you will be off by the subfloor thickness (typically 3/4 inch for plywood). This 3/4-inch error distributed across 15 risers means each riser is off by 0.05 inches — individually insignificant, but it makes the top or bottom riser noticeably different if you do not account for it.
Account for finished floor materials. If the lower level gets tile (3/8-inch mortar + 3/8-inch tile = 3/4 inch) and the upper level gets carpet (1/2 inch), the total rise changes by 1/4 inch. Adjust before cutting stringers. Alternatively, cut the bottom riser shorter by the exact difference.
Use a framing square with stair gauges. Stair gauges (brass clamps that attach to a framing square) ensure every notch cut is identical. Set one gauge at the rise dimension on the tongue and another at the run dimension on the blade. Trace each step without resetting.
Test-fit the first stringer. Cut one stringer completely, set it in position, and check the rise and run at the top, middle, and bottom. Verify headroom. Only after the first stringer checks out should you use it as a template to cut the remaining stringers.
Use construction adhesive. In addition to screws or nails, run a bead of construction adhesive on each stringer notch before setting the treads. This prevents squeaks — the number-one complaint about new stairs.
The joist hanger selection calculator can help you choose the right hardware for attaching stringer tops to the upper floor framing, ensuring a solid structural connection at the critical top landing.
Stair construction combines precise math with careful carpentry. Run the numbers through the formulas above, verify against your local code, and measure twice before cutting. A well-built stair is something you walk on every day without thinking — and that invisible quality is the mark of a job done right.
Category: Construction
Tags: Stairs, Building code, Rise and run, Stair design, Construction math, IRC code, Stair formula