Stair Calculator

Lay out a staircase from a single measurement, the total rise floor to floor. Enter it with your target riser height and tread depth, and the calculator returns the number of steps, the exact riser height, the total run, the stringer length and the stair angle, then checks it against the IRC residential code. The formula is shown so you can verify every number before you cut a stringer.

Inputs

Enter the total rise

in
Finished floor to finished floor. A standard 9 ft floor height is about 108 to 109 in.
in
in
in
IRC minimum is 36 in. Leave 0 to skip the width check.

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 your dimensions and the result updates instantly. A waste allowance is included so you order slightly over rather than running short mid-pour, and ready-mix is rounded up to the nearest quarter yard, which is how it is sold.

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, Stair width 36 in. Result: 14 .

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 riseNumber of steps (risers)Actual riser height (in)Stringer length (in)
96 in (8 ft)137.385163.22Use →
105 in147.5177.41Use →
108 in (9 ft)147.714179.2Use →
112 in157.467190.42Use →
120 in (10 ft)167.5204.02Use →
144 in (12 ft)197.579244.83Use →

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 to the nearest whole number of risers. The actual riser height is then the total rise divided by that whole number of risers, and you confirm it stays under the 7.75 inch code maximum. If it comes out over, add one more riser, which lowers each one.

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 result is checked against the International Residential Code, IRC section R311.7. For residential stairs the riser height must not exceed 7.75 inches, the tread depth must be at least 10 inches, and the stair width at least 36 inches. The code also requires consistency: the tallest and shortest risers in a flight cannot differ by more than 3/8 inch, which is why the math must be exact, an inspection fails on a quarter-inch error. For comfort, aim for a riser plus tread sum near 17 to 18 inches, or the classic rule that two risers plus one tread falls between 24 and 25 inches. Commercial stairs follow the stricter IBC (7 inch riser, 11 inch tread), so always confirm the code that applies with your local building department.

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?
Divide the total rise (floor to floor, in inches) by your target riser height and round to the nearest whole number. A 108 inch rise with a 7.5 inch target is 108 ÷ 7.5 = 14.4, rounded to 14 risers, giving an actual riser height of 108 ÷ 14 = 7.71 inches. There is always one fewer tread than riser, and you confirm the actual riser stays under the 7.75 inch code maximum.
What is the maximum riser height for stairs?
The IRC residential code (R311.7.5.1) sets a maximum riser height of 7.75 inches and a minimum tread depth of 10 inches. The risers in a single flight must not differ by more than 3/8 inch. Commercial stairs under the IBC are stricter, with a 7 inch riser and 11 inch tread.
How do I calculate stringer length?
Use the Pythagorean theorem on the total rise and total run: stringer length is the square root of (total rise squared plus total run squared). For a 108 inch rise and a 130 inch run, that is the square root of 28,564, about 169 inches. Buy the board 6 to 12 inches longer for the end cuts.
What is the most comfortable rise and run for stairs?
Aim for a riser plus tread that sums to about 17 to 18 inches, or use the rule that two risers plus one tread should fall between 24 and 25 inches. A 7 inch riser with an 11 inch tread is widely considered the most comfortable, while the code minimum of 7.75 by 10 is steeper.
How many treads for a 9 foot ceiling?
A 9 foot floor height is about 108 inches of total rise. With a 7.5 inch target riser you get 14 risers and therefore 13 treads. At an 11 inch tread depth the total run is 143 inches, and the stringer is about 179 inches before adding stock for the cuts.

References

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.

CiteStair Calculator. Calcnaut. https://calcnaut.com/stair-calculator/
Embed<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/" rel="nofollow">Calcnaut</a></p>