Stair Calculator · https://calcnaut.com/stair-calculator/
Stair Calculator
Lay out a straight residential stair from the total rise, target riser and tread depth. The result compares riser height, tread depth and clear width with three 2021 IRC limits. It does not check every stair requirement or replace the code adopted in your jurisdiction.
This is an estimate, not professional advice. Check your inputs and verify the result against your plans and local building code before you build or order. See terms and disclaimer.
How this calculator works
Number of risers = ceiling( Total rise ÷ Target riser )Actual riser height = Total rise ÷ Number of risersNumber of treads = Number of risers − 1Total run = Treads × Tread depthStringer length = √( Total rise² + Total run² )Stair angle = arctan( Total rise ÷ Total run )Enter the total rise and the result updates instantly. There is no waste allowance here: this is a geometry layout, not a materials count. Buy the stringer 6 to 12 in longer than the calculated length for the plumb and seat cuts.
Worked example
A 9 ft floor height (108 in total rise) with a 7.5 in target riser and 11 in tread. Inputs: Total rise (floor to floor) 108 in, Target riser height 7.5 in, Tread depth (run) 11 in, Clear stair width 36 in. Result: 15 .
Stairs for common floor heights
With a 7.5 in target riser and 11 in tread. Tap a row to load it in the calculator above.
| Total rise | Number of steps (risers) | Actual riser height (in) | Stringer length (in) | |
|---|---|---|---|---|
| 96 in (8 ft) | 13 | 7 3/8 | 163 3/16 | Use → |
| 105 in | 14 | 7 1/2 | 177 7/16 | Use → |
| 108 in (9 ft) | 15 | 7 3/16 | 188 1/8 | Use → |
| 112 in | 15 | 7 7/16 | 190 7/16 | Use → |
| 120 in (10 ft) | 16 | 7 1/2 | 204 | Use → |
| 144 in (12 ft) | 20 | 7 3/16 | 253 13/16 | Use → |
Method & assumptions
A staircase is laid out from one controlling measurement: the total rise, the vertical distance from the lower finished floor to the upper finished floor. You cannot pick the riser height freely, because the risers must divide the total rise into equal parts. So you start from a target riser, divide the total rise by it, and round up to the next whole number of risers. The actual riser height is then the total rise divided by that whole number. Rounding up is not a detail, it is what keeps the result legal: adding a riser always lowers each one, so the actual riser lands at or below your target and therefore under the 7.75 inch code maximum, while rounding to the nearest can push it over. A 96 inch rise with a 7.75 inch target rounds to 12 risers of exactly 8 inches, which fails inspection; rounded up it is 13 risers of 7.38 inches, which passes.
There is always one fewer tread than riser, because the upper floor itself serves as the final step, so a flight with 14 risers has 13 treads. The total run is the number of treads times the tread depth (the run). The stringer, the diagonal board the steps are cut from, is the hypotenuse of the right triangle formed by the total rise and total run, found with the Pythagorean theorem: stringer length is the square root of rise squared plus run squared. Add 6 to 12 inches of extra stringer stock for the plumb cut at the top and the seat cut at the bottom.
The comparison uses three provisions from the 2021 International Residential Code: general clear width in R311.7.1, maximum riser height in R311.7.5.1 and minimum tread depth in R311.7.5.2. Passing these three checks is not full code compliance. The calculator does not check the permitted variation within a built flight, landings, headroom, nosings, handrails, guards, winders, illumination, structural capacity or local amendments. Confirm the adopted edition and complete stair design before cutting material.
Pro tips and common mistakes
- Measure total rise to the finished floors. Include the thickness of the flooring at the top and bottom, not just the subfloor. A half-inch error here throws off every riser and can fail inspection.
- Round risers up, not to nearest. Dividing the total rise and rounding up keeps the actual riser at or below your target, so it stays under the 7.75 inch code maximum. Rounding down can push the riser over the limit.
- Keep every riser equal. Code allows no more than 3/8 inch difference between the tallest and shortest riser in a flight. Mark your stringer from the calculated height, do not eyeball the last step.
- Add stock for the stringer cuts. Buy the stringer 6 to 12 inches longer than the calculated length to allow for the plumb cut at the top and the seat cut at the bottom where it meets the floor.
- Aim for comfort, not just code. The minimums are legal, not necessarily pleasant. A 7 inch riser with an 11 inch tread (rise plus run of 18) walks far better than the tightest 7.75 by 10 allowed.
Frequently asked questions
How do I calculate the number of stairs?
What is the maximum riser height for stairs?
How do I calculate stringer length?
What is the most comfortable rise and run for stairs?
How many treads for a 9 foot ceiling?
Sources and references
These references and structured source records support the method and material data used on this page.
- Stairs (Wikipedia)
- 2021 IRC R311.7.1: Width
- 2021 IRC R311.7.5.1: Risers
- 2021 IRC R311.7.5.2: Treads
- Pythagorean theorem (Wikipedia)
Related calculators
Cite or embed this calculator
Using this in an article or on your own site? Copy a citation, or embed the live calculator for free.
Stair Calculator. Calcnaut. https://calcnaut.com/stair-calculator/<iframe src="https://calcnaut.com/stair-calculator/embed/" width="100%" height="640" loading="lazy" style="border:1px solid #e5e7eb;border-radius:14px" title="Stair Calculator"></iframe>
<p style="font:13px/1.5 sans-serif;text-align:center;color:#555">Powered by <a href="https://calcnaut.com/stair-calculator/?utm_source=embed&utm_medium=referral&utm_campaign=calculator-embed" rel="nofollow">Calcnaut</a></p>