Stair Calculator
✓ Riser height within the common 7.75" max.
✓ Tread depth meets the common 10" min.
⚠ Stair angle outside the common 30-37° range.
Risers = round(total rise ÷ target riser); guidance only, not a substitute for your local code.
A stair calculator turns the vertical distance a staircase needs to climb into a full layout: riser height, tread depth, total run, the number of steps, and the resulting stair angle, all checked against IRC residential limits. This page explains how the stair calculator works, walks through a worked example, and covers the common mistakes that lead to an uncomfortable or non-compliant staircase.
What a Stair Calculator Solves
Designing a staircase starts with one fixed number, the total rise between two floor levels, and everything else has to be worked out to fit comfortably within that constraint. A stair calculator takes that total rise, along with any available run, and returns a riser height and tread depth that split the climb into even, code-compliant steps. Because riser height and tread depth are inversely related, a taller riser lets stairs fit in less horizontal space but feels steeper, while a shorter riser needs more floor space but feels easier to climb. It balances that trade-off automatically instead of leaving you to guess.
How to Use the Stair Calculator
Enter the total rise, measured as the exact vertical distance between the two finished floor levels the staircase connects, into the stair calculator. If you know the available horizontal run, enter that too so the tool can check whether your space actually fits a code-compliant design. The stair calculator returns the riser count, riser height, tread depth, total run, and stair angle in one pass, and flags a warning if the riser height would exceed the 7¾-inch code maximum. Measure total rise from finished floor to finished floor, not from subfloor to subfloor, since flooring thickness on either level changes the true rise by a meaningful amount.
Stair Formula and Worked Example
The stair calculator divides total rise by a target riser height near 7 inches, rounds to the nearest whole number of risers, then divides rise by that count to get the exact riser height. For a total rise of 96 inches, 96 ÷ 7 ≈ 13.7, so round to 14 risers, giving a riser height of 96 ÷ 14 = 6.86 inches. With 14 risers there are 13 treads, and using a common design rule of riser plus tread equaling 17 to 18 inches, a comfortable tread depth here is about 10.5 inches, for a total run of 13 × 10.5 = 136.5 inches, or about 11 feet 4 inches. The stair angle from that layout is arctan(6.86 ÷ 10.5) ≈ 33 degrees, a comfortable, code-compliant slope.
Common Stair Layouts
| Total Rise | Risers | Riser Height | Tread Depth | Angle |
|---|---|---|---|---|
| 84" | 12 | 7.00" | 10.5" | 33.7° |
| 96" | 14 | 6.86" | 10.5" | 33.1° |
| 108" | 15 | 7.20" | 10.5" | 34.4° |
| 120" | 17 | 7.06" | 10.5" | 33.9° |
Use this table alongside the stair calculator when you want a quick sanity check on whether a design falls within a typical, comfortable range.
Interior vs. Exterior Stairs
Interior stairs generally use the maximum allowed riser height to save floor space, since the climate-controlled environment makes a slightly steeper stair less of a safety concern. Exterior stairs, by contrast, are often designed with a shorter riser and deeper tread than code strictly requires, since rain, ice, and reduced visibility make a gentler slope meaningfully safer outdoors. Running both sets of numbers through this tool separately, rather than assuming one layout works for both, catches this difference before construction starts. Outdoor stringers and treads should also use pressure-treated or naturally rot-resistant lumber regardless of what the tool returns for dimensions.
Mistakes to Avoid
The most common error feeding a stair calculator is entering total rise measured from the ground rather than from the finished floor surface, which is especially easy to get wrong on a deck or porch project. Ignoring the code-mandated consistency rule, that no riser in a flight can differ from another by more than 3/8 inch, leads to stairs that feel fine on paper but trip people in practice. Skipping headroom clearance is another blind spot, since a stair calculator focuses on riser, tread, and run but does not check the vertical clearance above the stair nosing, which residential code sets at a 6-foot-8-inch minimum. Finally, treating the calculator's total run as optional and cramming a staircase into a shorter space produces steps that fail the tread depth minimum.
From Layout to Stringers
Once a stair calculator confirms a riser and tread combination that fits the available space, the next step is laying out and cutting the stringers that physically support the treads. A dedicated stair stringer calculator takes the same riser height and tread depth and returns the stringer board length and notch layout needed to make the cuts. Keeping the numbers consistent between the stair calculator and the stringer layout avoids a mismatch where the stringers are cut for a different riser height than the treads were ordered for.
Related Calculators
A stair calculator is often just one part of a larger build. If the staircase leads to an exterior deck or landing, size the footings with the concrete yard calculator, and check gravel needs for drainage under the footings with the gravel calculator. If the project also involves roof framing, the rafter calculator and roof pitch calculator use the same rise-and-run logic that powers the stair calculator, keeping every measurement on the job consistent from foundation to roofline.
FAQ
What does a stair calculator return?
A stair calculator returns the number of risers and treads, the exact riser height and tread depth, the total run needed on the floor, and the stair angle, all sized to fit within IRC residential code limits.
What is a comfortable stair angle?
Most residential stairs land between 30 and 35 degrees. A stair calculator that returns an angle steeper than about 37 degrees is usually signaling that the available run is too short for the total rise.
How is total run different from tread depth?
Tread depth is the depth of a single step, while total run is tread depth multiplied by the number of treads, which is the full horizontal floor space the staircase needs. This tool reports both.
Do interior and exterior stairs use the same formula?
The riser and tread math is the same, but exterior stairs typically use a slightly shorter riser and deeper tread for safety in wet or icy conditions, so run exterior numbers through the stair calculator separately from interior ones.