How to Calculate Stair Rise and Run (Step-by-Step Formula Guide)
Learn how to calculate stair rise and run with simple formulas, a worked example, and the code limits each number has to fall within.
Every staircase depends on two numbers: stair rise and run. Rise is how far up you climb. Run is how far forward you travel to get there. Once you know these two numbers, the rest of the layout follows simple math. This guide shows you how to calculate stair rise and run by hand, step by step, with two worked examples, plus what to do when the floor is uneven or the numbers come out awkward.
The six steps below walk through a real layout: 108 inches of total rise, 14 risers, a 7.71-inch riser height, 130 inches of total run, and a 169-inch stringer. A second example at 96 inches of total rise shows how the same math adapts to a different floor height.
Tools and Materials for Measuring Stair Rise and Run
You do not need fancy gear. A tape measure, a 4-foot level, and a pencil handle most layouts. A laser level earns its keep on long flights and uneven floors, since it projects a dead-level reference line across the whole distance. A straight 2x4 or steel straightedge works when the laser is not available.
Gather a few extras before you start: a calculator, graph paper or a notebook, a framing square for laying out stringers later, and painter's tape for marking the floor. Note the thickness of your finished flooring materials now, because every measurement must use finished floor to finished floor.
Step 1: Measure Total Rise
Total rise is the exact vertical distance from the bottom floor to the top floor or landing. Measure after the flooring is installed, not from bare subfloor. Use a laser level, or a straight board and a level if the floor is not built yet. A half-inch error here throws off every step above it.
Step 2: Find the Number of Risers
Divide total rise by your target riser height. Most codes cap riser height at 7-3/4 inches. Builders typically aim for 7 to 7-1/4 inches instead, for extra comfort.
Number of risers = Total rise / Target riser height
Round the result to the nearest whole number. You cannot build a fractional step. Example: 108 inches of total rise divided by 7.5 inches equals 14.4. Round that to 14 risers.
Step 3: Recalculate the Exact Riser Height
Divide total rise by your rounded riser count. This gives the real, exact riser height every step must share.
Exact riser height = Total rise / Number of risers
108 in. / 14 = 7.71 in. per riser
Uniform risers matter more than hitting a specific target number. The IRC allows no more than 3/8 inch of variance between the tallest and shortest riser in a flight. Inconsistent steps cause most stair trips.
Step 4: Calculate Total Run
Total run equals the number of risers minus one, multiplied by tread depth. There is always one fewer tread than risers, because the top landing acts as the final step.
Total run = (Risers - 1) x Tread depth
(14 - 1) x 10 in. = 130 in.
Step 5: Get the Stringer Length
The stringer is the diagonal board that carries the treads. It forms the hypotenuse of your rise and run triangle, so it follows the Pythagorean theorem.
Stringer length = sqrt(Total rise^2 + Total run^2)
sqrt(108^2 + 130^2) = sqrt(28,564) = about 169 in.
Step 6: Check the Comfort Rule
Builders have used a simple comfort check for centuries. Multiply riser height by two, then add tread depth. The result should land between 24 and 25 inches. Our example checks out: (2 x 7.71) + 10 = 25.4 inches. That feels comfortable to climb, which confirms your stair rise and run numbers are dialed in.
Worked Example 2: 96 Inches of Total Rise
Floor heights vary, so run the math again with a different number. Suppose the total rise is 96 inches and you target a 7.25-inch riser.
Risers = 96 / 7.25 = 13.24, round to 13
Exact riser height = 96 / 13 = 7.38 in.
Total run = (13 - 1) x 10 in. = 120 in.
Stringer = sqrt(96^2 + 120^2) = sqrt(23,616) = about 154 in.
Comfort check = (2 x 7.38) + 10 = 24.76 in.
The comfort result of 24.76 inches lands inside the 24 to 25 inch sweet spot. The 7.38-inch riser also sits under the 7-3/4 inch code maximum. This layout passes both checks. Notice how the same six steps produce a complete layout from any total rise measurement.
Measuring Total Rise on Uneven Floors
Floors are rarely perfectly level. A slab can slope a half inch across the stair footprint, and an old house floor can vary even more. Measure at the exact spot where the stringer will sit, not three feet to the side. Mark the stringer location on both floors first, then measure between those marks.
Take three readings if the floor slopes: at the left, center, and right of the stringer path. If they differ, use the measurement that matches your stringer layout and recheck the others. A laser level set to shoot a horizontal line across the opening removes guesswork. Record the finished floor thickness on both levels and add or subtract it from your subfloor reading before you do any division.
For basement stairs landing on bare concrete, measure to the finished surface that will exist, not the rough slab. If tile or thick hardwood goes in later, include its thickness now. The top riser shrinks and the bottom riser grows by every fraction you skip, and the 3/8-inch variance limit does not forgive flooring you forgot.
What to Do When the Math Gives an Awkward Riser Height
Sometimes the exact riser height lands in a bad spot. A 7.9-inch riser breaks the 7-3/4 inch maximum, and a 6.2-inch riser wastes tread comfort. You have three levers to pull.
First, change the riser count by one. Adding a riser shrinks each riser; removing one grows each. Re-run Steps 2 and 3 with the new count and see where the exact height lands. Second, adjust the tread depth. A deeper tread pairs with a taller riser under the comfort rule, so going from 10 to 11 inches of tread can rescue a layout whose risers feel too tall. Our Rise and Run Optimizer tests these combinations for you and flags the comfortable ones. Third, re-check the total rise measurement itself. If an 8.1-inch riser appears, a quarter inch of measurement error may be hiding in the total rise. Re-measure before you cut lumber.
Never round the riser height to a convenient number and move on. The exact recalculated height is the number you cut to. If two adjacent riser counts both fail the comfort rule, the stair probably needs a landing to split the flight, and that is a redesign, not a rounding problem.
Example Layouts Compared
The table below puts both worked examples side by side and adds a third common case, so you can see how total rise drives every other number.
Total rise | Risers | Riser height | Tread depth | Total run | Comfort check (2x riser + tread) |
|---|---|---|---|---|---|
108 in. | 14 | 7.71 in. | 10 in. | 130 in. | 25.4 in. (comfortable) |
96 in. | 13 | 7.38 in. | 10 in. | 120 in. | 24.8 in. (comfortable) |
120 in. | 16 | 7.50 in. | 10 in. | 150 in. | 25.0 in. (comfortable) |
All three stay under the 7-3/4 inch maximum riser height and inside the 24 to 25 inch comfort band. Longer total rise simply means more risers and a longer total run. The math scales cleanly.
Before You Cut Checklist
Run through this list with your numbers in hand, before the saw touches the stringer board.
Total rise measured from finished floor to finished floor, at the stringer location.
Riser count is a whole number, and exact riser height is recalculated from it.
Exact riser height is at or below 7-3/4 inches, or your local code maximum.
Total run fits the available floor space, including the landing and swing clearance of any doors.
Tread depth is at least 10 inches (or your local code minimum).
Comfort check (2 x riser + tread) lands between 24 and 25 inches.
Stringer length is calculated, and you know which calculator to verify with: the Standard Stair Calculator checks the layout, and the Stringer Calculator lays out each cut.
Numbers are written down twice, in two places, so a lost paper does not end the day.
Common Mistakes With Stair Rise and Run
Most calculation errors start with measuring at the wrong point. Always measure total rise from finished floor to finished floor, not subfloor to subfloor. Skipping the recalculation in Step 3 is another common mistake. Builders sometimes use the rough target riser height instead of the exact recalculated number. That single shortcut creates one uneven step in the flight.
Other frequent errors: counting one tread too many by forgetting the top landing acts as the final step, which inflates the total run; measuring total rise at a random spot instead of at the stringer location on a sloped floor; and trusting the target riser height for the stringer layout instead of the exact height. Run the numbers twice before you cut a single stringer. Doing the six steps by hand once is also the fastest way to understand what the Standard Stair Calculator checks for you every time after.
Frequently Asked Questions
What is a comfortable riser height for stairs?
Aim for 7 to 7-1/4 inches. Code sets 7-3/4 inches as the maximum, not the target.
Why does my calculation give a decimal number of risers?
Total rise rarely divides evenly by your target riser height. Round to the nearest whole number first. Then recalculate the exact riser height from that rounded count. That final number is what you build to.
Do I need to do this math by hand?
No. Our Standard Stair Calculator runs all six steps instantly and flags anything outside IRC limits. Doing the math once by hand still helps, since it shows you exactly what the calculator checks.
What if my exact riser height exceeds 7-3/4 inches?
Add one more riser and recalculate. That shrinks every riser in the flight. If the riser height then drops too low for comfort, adjust the tread depth and re-check the 24 to 25 inch comfort rule. Keep adjusting the riser count and tread depth until the riser height and comfort check both pass.
Local codes vary. Some jurisdictions set tighter riser and tread limits than the numbers used here. Check with your local building department before you finalize a layout or cut lumber.
Try These Calculators
Put this guide into practice with our free online tools: