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.

Inputs

Enter the total rise

in
Finished floor to finished floor. A standard 9 ft floor height is about 108 to 109 in.
in
Treated as a ceiling, not an average. The step count is rounded up so the actual riser always comes out at or below this figure, and therefore under the 7.75 in IRC maximum.
in
in
Required for the dimensional comparison. 2021 IRC R311.7.1 generally requires at least 36 in at and below the handrail height, subject to listed exceptions and local adoption.

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 riseNumber of steps (risers)Actual riser height (in)Stringer length (in)
96 in (8 ft)137 3/8163 3/16Use →
105 in147 1/2177 7/16Use →
108 in (9 ft)157 3/16188 1/8Use →
112 in157 7/16190 7/16Use →
120 in (10 ft)167 1/2204Use →
144 in (12 ft)207 3/16253 13/16Use →

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?
Divide the total rise (floor to floor, in inches) by your target riser height and round up to the next whole number. A 108 inch rise with a 7.5 inch target is 108 ÷ 7.5 = 14.4, rounded up to 15 risers, giving an actual riser height of 108 ÷ 15 = 7.2 inches. Round up rather than to the nearest: rounding 14.4 down to 14 would give 7.71 inch risers, taller than the target you asked for. There is always one fewer tread than riser.
What is the maximum riser height for stairs?
The 2021 IRC R311.7.5.1 sets 7.75 inches for stairs in its residential scope. The adopted edition and local amendments control. This calculator compares dimensions only and does not certify the whole stair.
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 15 risers and therefore 14 treads, at an actual riser height of 7.2 inches. At an 11 inch tread depth the total run is 154 inches, and the stringer is about 188 inches before adding stock for the cuts.

Sources and references

These references and structured source records support the method and material data used on this page.

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/?utm_source=embed&utm_medium=referral&utm_campaign=calculator-embed" rel="nofollow">Calcnaut</a></p>