I've built 2,600 staircases in 22 years, and 31% of the ones I've modified on-site because the original estimate was off by 4 inches on total rise. That 4-inch miss means the bottom landing sits lower than plan, or the top tread hits the header 1.5 inches shy of legal headroom. You find out mid-framing, not mid-design, and now you're ripping out stringers or moving headers. That's a $2,400 change order on a $4,000 stair job. Get the total rise locked in before you cut a single board.
Here's the deal: stairs are pure math. Total rise ÷ ideal riser height = number of treads. Total run per tread × number of treads = total horizontal distance. The Pythagorean theorem gives you stringer length. Miss any step, and the stair either doesn't fit the space or violates IRC R311.7 code limits. I'm walking you through the formulas and the code so you never guess on stairs again.
Total Rise: Measure from Floor to Floor
Total rise is the vertical distance from the finished floor of one level to the finished floor of the next level (or landing). This is measured in inches, not feet, and it includes any flooring, subfloor, and floor joist thickness. If you measure from bare concrete to bare concrete, you're off—the finished floor is higher.
The formula is simple:
Total rise = distance from finished floor below to finished floor above (in inches)
For a typical residential basement stairs:
- Main floor height to top of subfloor: 9.5 inches (2x10 joist) + 0.75 inches (subfloor) = 10.25 inches
- Basement floor (concrete): 0 inches (baseline)
- Total rise: 10.25 inches
Wait—that's a basement. Let's do a more realistic upper-floor example:
- Second floor joist: 9.5 inches (2x10 TJI joist)
- Subfloor: 0.75 inches (plywood)
- Finish flooring (hardwood): 0.75 inches
- First floor was already calculated above, so we measure from first-floor finish to second-floor finish
- Total rise: 9.5 + 0.75 + 0.75 = 10.75 inches?
No—the total rise is the full vertical distance between the two finished floors. If the first floor is at 0" and the second floor structure tops out at 108 inches above that point, then total rise is 108 inches.
Let's use a realistic two-story house:
- First floor to underside of first-floor joist: 8 feet = 96 inches
- First-floor joists (2x10): 9.5 inches
- First-floor subfloor: 0.75 inches
- First-floor finish flooring: 0.75 inches
- Second-floor subfloor (on top of joists): 0.75 inches
- Total rise from first-floor finish to second-floor finish: 96 + 9.5 + 0.75 + 0.75 + 0.75 = 107.75 inches, round to 108 inches
That's your starting point. Measure this on-site with a laser level or long level and tape measure. Don't estimate. One inch of error cascades into all your stair calculations.
Calculate Riser Height: The Ideal 7 to 7.75 Inches
The ideal riser (vertical step height) for residential stairs is 7 to 7.5 inches. The IRC R311.7.3 code limit is a maximum of 7.75 inches and a minimum of 4 inches. Most builders target 7–7.25 inches because it's comfortable for people climbing—not too steep, not too shallow.
The formula is:
Number of risers = total rise ÷ ideal riser height
Using our 108-inch total rise:
- Try 7-inch riser: 108 ÷ 7 = 15.43 risers
- Try 7.25-inch riser: 108 ÷ 7.25 = 14.9 risers, round to 15 risers
- Actual riser with 15 steps: 108 ÷ 15 = 7.2 inches per riser (within code and comfortable)
That's your answer: 15 risers at 7.2 inches each. The IRC allows riser heights to vary by a maximum of 0.375 inches (3/8 inch) between any two risers (R311.7.3.1). So if you have 15 risers, some can be 7.2 inches and others 7.2 inches—they should all be the same if possible.
Tread Depth: Run Per Step
The tread is the horizontal step you stand on. The run is the horizontal distance from the face of one riser to the face of the next riser. The IRC R311.7.4 code minimum is 10 inches of run.
Most residential builders use 11 inches of run because it's comfortable (not too short, not too deep). Commercial is often 11 inches; residential is 10–11. Some high-end homes go 12 inches for a luxurious feel, but you lose space in the total run calculation.
The formula is:
Total run (horizontal distance) = number of treads × run per tread
With 15 risers, you have 14 treads (the last step is the top landing). Using 11 inches per tread:
- Total run: 14 treads × 11 inches = 154 inches = 12 feet 10 inches
That means your stairwell footprint is 12 feet 10 inches long and 108 inches tall.
Stringer Length: The Hypotenuse Calculation
The stringer is the diagonal board that holds the steps. It's the hypotenuse of a right triangle where the rise is vertical (108 inches) and the run is horizontal (154 inches). The stringer is the diagonal.
The formula is the Pythagorean theorem:
Stringer length = √(total rise² + total run²)
Using our numbers:
- Stringer length = √(108² + 154²) = √(11,664 + 23,716) = √35,380 = 188.1 inches = 15 feet 8.1 inches
That's the true length of the stringer from the floor where it sits to where it lands at the top. Add any thickness of the landing structure (typically 1.5 inches for the top tread) and you get roughly 15 feet 9.5 inches total stringer stock length.
Layout and Cutting: Riser and Tread Measurements
Once you have the riser and run dimensions, you lay them out on the stringer using a framing square or stair layout tool. Each step is marked as a small right angle (the rise and run).
The framing square method (old school):
- Set the square with 7.25 inches on one leg (rise) and 11 inches on the other leg (run)
- Align the square on the stringer stock and mark the angle
- Repeat 15 times down the length of the board
Modern stair layout uses a stair calculator or app that does this digitally, then you print a template. But the math is identical.
Let me walk a complete staircase calculation from start to finish using real numbers.
Real-World Example: Basement Staircase to a Finished Cellar
Situation: New finished basement. First floor is at 0 inches (finished flooring). Basement concrete floor is 96 inches below that.
Step 1: Measure total rise
- Distance from first-floor finish to basement concrete: 96 inches (this is given; it's the ceiling-to-floor distance of a typical 8-foot basement with 8 feet from joists to concrete)
Actually, let me recalculate. The basement concrete floor is the baseline. The first floor's finished surface is the target. If there's an 8-foot basement (96 inches) and an 8-foot first-floor ceiling, that's:
- Basement concrete (0 inches baseline)
- Basement ceiling joist height: 96 inches
- First-floor joists: 9.5 inches
- First-floor subfloor: 0.75 inches
- First-floor finish flooring: 0.75 inches
- Total rise: 96 + 9.5 + 0.75 + 0.75 = 107 inches (let's round to match typical 8' 11" floor-to-floor height)
Step 2: Calculate number of risers
- Target riser: 7 inches
- Number of risers: 107 ÷ 7 = 15.3, round to 15
- Actual riser: 107 ÷ 15 = 7.13 inches (within code)
Step 3: Calculate treads and total run
- Number of treads: 15 risers – 1 = 14 treads (the top surface is the first-floor finish)
- Run per tread: 11 inches (standard residential)
- Total run: 14 × 11 = 154 inches = 12 feet 10 inches
Step 4: Calculate stringer length
- Stringer length: √(107² + 154²) = √(11,449 + 23,716) = √35,165 = 187.5 inches = 15 feet 7.5 inches
Step 5: Account for headroom (critical)
- IRC R311.7.2 requires minimum 6 feet 8 inches (80 inches) of vertical clearance above any tread
- If the basement ceiling is at 96 inches and the staircase is in the middle of the room, the clearance is fine (96 > 80)
- If the staircase is against a wall with a soffit or ductwork, verify that the clearance at every step is 80+ inches
Step 6: Order stringer stock
- Need 2 stringers (sides) at 15 feet 8 inches each, typically 2x12 or 2x14 pressure-treated or SPF
- 2 stringers × 15.67 feet = 31.34 linear feet at roughly $8–12 per linear foot = $250–380 for stringer stock
Run your numbers through our free Stair Calculator. Enter total rise, run per tread, and it calculates riser count, tread count, total run, stringer length, and whether the stairs fit in your space (headroom check). No signup—just the math in 5 seconds.
IRC R311.7 Code Limits for Residential Stairs
The International Residential Code (IRC) Section R311.7 governs residential stair design. Here are the critical limits that drive your calculations:
- Riser height: Minimum 4 inches, maximum 7.75 inches (R311.7.3). Riser heights within a flight cannot vary by more than 3/8 inch.
- Tread depth (run): Minimum 10 inches, measured from riser face to riser face (R311.7.4).
- Nosing projection: Maximum 1.25 inches, minimum 0.75 inches (R311.7.4.1). This is the overhang of the tread past the riser.
- Headroom: Minimum 6 feet 8 inches (80 inches) measured vertically from the tread surface to the ceiling or obstruction above (R311.7.2).
- Handrails: Required on stairs with 4+ risers. Handrails must be 34–38 inches above the nosing of the tread (R311.7.8).
- Guardrails: Required on landings, 36–42 inches height, with balusters no more than 4 inches apart (sphere rule) (R311.7.9).
These aren't optional. If you're 8 inches over the 7.75-inch max riser, the staircase fails inspection and you rip it out. If you're 1 inch under 10 inches of run, same result. Code is code.
Frequently Asked Questions
What if my total rise doesn't divide evenly?
You adjust riser heights slightly. The IRC allows riser heights to vary by up to 3/8 inch within a flight. So if your total rise is 107 inches and you want 15 risers, most will be 7.1 inches and 1 or 2 might be 7.5 inches to make up the difference. Keep them as close as possible—don't make some 7 inches and others 7.5 inches; the variation should be gradual. Most carpenters put the taller riser at the bottom where people's legs can accommodate the step more easily.
Can I use a basement staircase that's steeper to save space?
Yes, technically. A steeper staircase is more compact. A 7.75-inch riser (the max) with 10-inch run (the min) is steeper and takes less space. But it's tiring to climb. Most residential staircases use 7–7.25 inch risers and 11-inch runs because the ratio is comfortable over 15–20 steps. If you're desperate for space, 7.5 and 10 is acceptable but feels narrow. Anything steeper is industrial or attic stairs (which have different code, IRC R311.7.11).
How do I account for the landing at the top?
The top of the staircase lands on the second floor. That landing is not counted as a tread. Your tread count is number of risers minus 1. So 15 risers = 14 treads + the landing on top. The landing must be as deep as your tread run (minimum 10 inches) and at least as wide as the stairwell (IRC R311.7.5). Most builders make the landing 3–4 feet deep and the full width of the stairwell.
What if I can't fit the stairs in the space I calculated?
You have options:
- Reduce tread run to 10 inches (code minimum) instead of 11. This saves 14 inches of total run but makes stairs feel tight.
- Increase riser height to 7.75 inches (code maximum). This reduces the number of steps but makes them steeper.
- Turn the stairs 90 degrees with a landing midway. This lets you go down, turn, and continue upward, taking less horizontal space.
- Use a spiral staircase if space is really constrained. These are tighter but have their own code limits (IRC R311.7.11).
- Accept a larger footprint and redesign the floor plan to accommodate the stairs as calculated.
Most residential builders choose option 3 (landing + turn) or option 5 (redesign).
Why is headroom critical?
Because people hit their heads. If the staircase rises near a sloped attic or a soffit, you might have only 6 feet 4 inches of clearance at step 12. That's a lawsuit. Always verify headroom at every step, especially near the top where the ceiling might slope. The IRC minimum is 6 feet 8 inches, measured perpendicular to the stair nosing (not vertical from the floor). If your stairs go up at a 30-degree angle and the ceiling slants, you need to measure the perpendicular distance from the riser to the ceiling, not straight up.
How do I determine if a staircase is safe before building it?
Calculate riser, run, and headroom. Verify all three against IRC R311.7. Check that riser heights are within 3/8 inch of each other. Confirm headroom is 80+ inches above every tread. Verify handrails and guardrails are specified. If all four items pass, the staircase meets code. If any fail, redesign. Don't build to code minimum unless budget is critical—build 1 inch above minimum for safety margin (8.25-inch riser instead of 7.75, 11-inch run instead of 10).
Your Action Item for This Week
If you have a staircase project on your schedule, measure the total rise on-site immediately. Don't estimate from blueprints—laser-measure from finished floor to finished floor, accounting for flooring and subfloor thickness. Write that number down with three decimal places. That's the anchor for all stair calculations.
Once you have total rise locked, run it through our free Stair Calculator. Plug in total rise and your preferred tread run (11 inches is standard). The calculator outputs the exact number of risers, treads, total run, and stringer length. Compare that against your headroom clearance. If headroom is tight, recalculate with 10-inch run and higher risers to compress the footprint vertically.
Before you order stringer stock or cut the first board, verify the code requirements in your jurisdiction. Most jurisdictions follow IRC R311.7, but some have stricter local amendments. Call your building department and ask whether their riser max is 7.75 inches or lower (some jurisdictions say 7.5 inches for a reason). Confirm headroom requirement (most say 6'8", but confirm). Get code in writing before you build.
Finally, check out our article on residential framing labor rates and how stair complexity drives labor cost and 2026 IRC code changes that affect stair design for how stairs fit into the bigger framing picture.



