Stairs Calculator
Work out your stair layout from the total rise: number of risers and treads, exact riser height, total run, stair angle, and stringer length.
Stairs Calculator
Results are estimates for planning. Always check your local building code before building — the IRC limits shown are the US residential standard.
Formulas:
Number of risers = Total rise ÷ target riser height, rounded to the nearest whole number
Actual riser height = Total rise ÷ number of risers
Number of treads = Number of risers − 1
Total run = Number of treads × tread run
Stair angle = arctan(Total rise ÷ Total run)
Stringer length = √(Total rise² + Total run²)
What Does a Stairs Calculator Do?
A stairs calculator turns the one measurement you know — the total rise, the vertical distance from one finished floor to the next — into a complete stair layout: how many risers and treads you need, the exact height of each riser, the total horizontal run the stairs will occupy, the angle of the staircase, and the length of the stringers you will have to cut. It also checks the result against the US residential building code, so you know whether the stairs you have planned are legal to build.
The problem it solves is that stairs have to be exact. A staircase with risers that vary by even half an inch is a tripping hazard: people learn the rhythm of the first few steps and then stumble when one step is different. Building codes therefore require all risers in a flight to be equal within 3/8 of an inch, and the same for treads. The calculator divides the total rise evenly, so every riser comes out identical.
How to Use This Calculator
Measure the total rise first: from the top of the finished floor below to the top of the finished floor above, in inches. This is the measurement people get wrong most often, because they measure between subfloors and forget the thickness of the finished flooring — a 3/4-inch hardwood floor on top changes the top and bottom risers if it is not accounted for. Always measure finished floor to finished floor.
Then choose a target riser height. Seven inches is the standard target for comfortable residential stairs; the calculator rounds to the nearest whole number of risers and then recalculates the exact riser height, so the result is usually very close to your target. Finally, choose the tread run — the horizontal depth of each step. Eleven inches is the standard for a comfortable tread; the code minimum is 10 inches.
The Stair Formula, Step by Step
The calculation has four steps. First, divide the total rise by the target riser height and round to the nearest whole number to get the number of risers. A total rise of 105 inches divided by a 7-inch target gives exactly 15 risers. A rise of 108 inches divided by 7.5 gives 14.4, which rounds to 14 risers.
Second, divide the total rise by the number of risers to get the actual riser height. For the 108-inch example, 108 divided by 14 is 7.71 inches — slightly above the 7.5 target, but every riser is exactly the same, which is what matters. Third, the number of treads is always one fewer than the number of risers, because the top "tread" is the upper floor itself: 15 risers need 14 treads.
Fourth, multiply the number of treads by the tread run to get the total run — the horizontal space the staircase occupies. Fourteen treads at 11 inches each give a total run of 154 inches, or 12 feet 10 inches. That is the number to check against the space you have: if the hallway is only 11 feet long, the stairs will not fit at 11-inch treads, and you will need a landing, a turn, or a steeper design.
Stair Angle and the Comfort Rules
The stair angle is the arctangent of the rise divided by the run. For the 105-inch rise over a 154-inch run, the angle is about 34.3 degrees. Residential stairs usually fall between 30 and 40 degrees. Below 30 degrees the stairs feel like a ramp and take up too much floor space; above 40 degrees they feel steep and ladder-like, and building codes limit how steep a main staircase can be.
Builders have used comfort rules for centuries to judge whether a staircase will feel right. The best known is Blondel's formula, from the French architect Francois Blondel in the 17th century: twice the riser height plus the tread run should be between 24 and 25 inches. A 7-inch riser with an 11-inch tread gives 2 times 7 plus 11, or 25 inches — right at the top of the comfortable range. A related rule says the riser plus the tread should be 17 to 18 inches: 7 plus 11 is 18, again in range. These rules are guides, not code requirements, but a staircase that satisfies both almost always feels comfortable to climb.
Building Code Limits (US Residential)
The International Residential Code (IRC), which most US states and local authorities adopt, sets these limits for residential stairs: the maximum riser height is 7 3/4 inches, the minimum tread run is 10 inches, and the largest riser in a flight may not exceed the smallest by more than 3/8 of an inch — the same 3/8-inch tolerance applies to treads. The minimum headroom above a stair is 6 feet 8 inches, measured vertically from the nosing of each tread. Stairways must be at least 36 inches wide, and a handrail is required on at least one side, mounted 34 to 38 inches above the tread nosings.
Treads also need a nosing — the rounded front edge that overhangs the riser below — of 3/4 inch to 1 1/4 inches, unless the tread run is 11 inches or more, in which case the nosing is not required by the IRC. Local codes can be stricter than the IRC, and commercial stairs follow the International Building Code (IBC) instead, which has different limits. Always check with your local building department before cutting stringers.
Worked Example
Say you are building stairs between two floors with a total rise of 105 inches — 8 feet 9 inches, a typical floor-to-floor height. You want a 7-inch riser and an 11-inch tread. Dividing 105 by 7 gives exactly 15 risers, each exactly 7 inches high. You need 14 treads, and the total run is 14 times 11, or 154 inches (12 feet 10 inches). The stair angle is the arctangent of 105 over 154, about 34.3 degrees. The stringer length — the diagonal from the bottom of the first riser to the top of the last — is the square root of 105 squared plus 154 squared, which is about 186.39 inches, or 15 feet 6 inches. That is the minimum length of lumber you need for each stringer, before allowing for the cuts at the top and bottom. The code check passes: a 7-inch riser is under the 7.75 inch maximum, and an 11-inch tread is over the 10-inch minimum.
Now suppose the same 105-inch rise has to fit in a 10-foot hallway. Fourteen treads at 11 inches need 12 feet 10 inches, which does not fit. Reducing the tread to the 10-inch minimum gives 14 times 10, or 140 inches — 11 feet 8 inches — still too long. The options are a landing halfway with a turn, which splits the run into two shorter flights, or a steeper design with fewer, taller risers — but the riser cannot exceed 7.75 inches, so the minimum number of risers is 14 (105 divided by 7.75 is 13.5, rounded up), giving 13 treads at 10 inches, or 130 inches of run. Even the steepest legal straight flight needs 10 feet 10 inches. The hallway is simply too short for a straight run, and the calculator shows that in seconds.
Tips for Building Stairs
Cut a test stringer first. Mark and cut one stringer, then test-fit it in place before cutting the rest. A mistake in the first stringer is one board wasted; the same mistake repeated across four stringers is a ruined afternoon.
Account for the finished floor. If the lower floor will get 3/4-inch hardwood after the stairs are built, the bottom riser must be 3/4 inch shorter than the others, or it will be 3/4 inch taller than the rest once the flooring goes in. The same applies in reverse at the top. Mark finished-floor levels on the wall before you start.
Use a stair gauge on your framing square. Clamp two small stair gauges to a framing square at the riser and tread marks, and every step you lay out will be identical. Marking freehand is how uneven risers happen.
Common Mistakes to Avoid
The most common mistake is measuring the total rise between subfloors instead of finished floors, which makes the top or bottom riser wrong by the thickness of the flooring. The second is forgetting that the number of treads is one less than the number of risers — ordering 15 treads for 15 risers leaves you with one tread too many and a run that is 11 inches longer than planned.
The third mistake is building to the code minimums instead of the comfort rules. A staircase with 7.75-inch risers and 10-inch treads is legal, but it feels steep and tiring compared with 7-inch risers and 11-inch treads. If you have the space, build the comfortable staircase, not the barely legal one.
Finally, do not skip the headroom check. A staircase that passes under a landing or a low ceiling can easily violate the 6-foot-8-inch headroom rule, and headroom is measured from the nosing of each tread, not from the floor at the bottom of the stairs.
Frequently Asked Questions
How many risers do I need for a 105-inch total rise?
15 risers at 7 inches each, if you target a 7-inch riser (105 / 7 = 15 exactly). You need 14 treads, and the total run at an 11-inch tread is 154 inches (12 ft 10 in).
What is the maximum riser height allowed by code?
7 3/4 inches (7.75 in) under the International Residential Code, which most US states adopt. The minimum tread run is 10 inches, and risers in a flight must not vary by more than 3/8 inch.
Why is the number of treads one less than the number of risers?
Because the top tread is the upper floor itself. A flight of 15 risers has 14 treads to step on, and the 15th step lands you on the floor above.
What is a comfortable stair angle?
Between 30 and 40 degrees for residential stairs. A 7-inch riser with an 11-inch tread gives about 32 to 35 degrees depending on the total rise, which most people find comfortable.
How do I measure total rise for stairs?
Measure vertically from the top of the finished floor below to the top of the finished floor above, in inches. Measure finished floors, not subfloors — forgetting the flooring thickness is the most common stair measurement error.