Home / Stair Calculator

Stair Calculator

A 36-inch total rise works out to 5 steps with 7.2-inch risers, a 40-inch total run, and a stringer about 4.48 feet long.

Stair specs

Your stair numbers

Number of steps--
Actual riser height--
Total run--
Stringer length--

Estimates only.

How it works

The calculator divides your total rise by the ideal riser height, rounds to the nearest whole number of steps, then back-calculates the exact riser. Total run is (steps minus 1) times tread depth. Stringer length comes from the Pythagorean theorem on the rise and run triangle.

The riser and tread limits above come straight from the IRC stairway section cited below, not a rounded approximation.

Under the IRC, risers cap at 7-3/4 inches and treads run at least 10 inches deep. Those two limits set how steep a residential stair can be, so size your step count to stay inside them.

Formula: Steps = round(Total Rise / Ideal Riser). Actual Riser = Total Rise / Steps. Total Run = (Steps - 1) x Tread Depth. Stringer = sqrt(Rise² + Run²) / 12 (to convert inches to feet).

A worked example

Say the total rise from one finished floor to the next is 36 inches. Aim for a 7 inch riser: 36 divided by 7 is 5.14, which rounds to 5 steps. Divide back and your actual riser is 7.2 inches, comfortably under the 7-3/4 inch ceiling. With a 10 inch tread, the run is 4 spaces (steps minus 1) times 10, or 40 inches. The stringer is the hypotenuse: the square root of 36 squared plus 40 squared is about 53.8 inches, a little under 4.5 ft. Cut your stringer stock longer than that and trim to fit.

What the code requires

The International Residential Code sets the safety limits most jurisdictions follow. Maximum riser height is 7-3/4 inches (R311.7.5.1). Minimum tread depth is 10 inches (R311.7.5.2). Within a single flight, risers and treads have to be uniform: the largest and smallest cannot differ by more than 3/8 inch. That last rule matters more than people expect, because the odd shallow step at the top or bottom is exactly where falls happen. Always confirm against your local amendments before you cut.

Code limits at a glance

RequirementIRC limit
Max riser height7-3/4 in (R311.7.5.1)
Min tread depth10 in (R311.7.5.2)
Riser/tread uniformitywithin 3/8 in across a flight
Comfortable target riserabout 7 to 7.5 in

Common mistakes

Forcing a tall riser to save a step is the classic error. It puts the stair over code and makes the climb feel steep. The fix is to add a step and let the riser drop. The other trap is uneven steps where the slab or subfloor was not where you measured, so check your total rise off the finished surfaces, not the rough framing. And give yourself enough run: a stair needs floor space at the bottom, so confirm the total run fits the room before you commit the stringers.

Sources: ICC IRC R311.7.5 (stairways), riser and tread limits.

More stair math

Good to know

Stair questions people ask

How do I calculate how many stairs I need?

Divide the total rise in inches by your target riser height (typically 7 inches), then round to the nearest whole number. For example, a 36-inch rise divided by 7 gives 5.14, which rounds to 5 steps.

What is the 7-11 rule for stairs?

The 7-11 rule is a common building guideline: risers should be no more than 7 inches tall and treads should be at least 11 inches deep. This ratio keeps staircase pitch comfortable and safe for most users.

What is the 25 rule for stairs?

Some codes reference a combined riser-plus-tread rule of 17 to 18 inches (riser + tread = 17-18 in) rather than 25. Always check your local building code for the exact allowable riser and tread dimensions.

How long of a stringer do I need for 7 steps?

Measure the total rise and total run for your staircase, then apply the Pythagorean theorem: stringer = sqrt(rise squared + run squared). A 42-inch rise with a 60-inch run gives a stringer of about 73 inches (6.1 ft).

What is the maximum riser height by code?

The IRC caps residential risers at 7-3/4 inches (R311.7.5.1). Aim for about 7 inches for a comfortable climb and stay inside that limit.

What is the minimum tread depth?

10 inches under the IRC (R311.7.5.2), measured nosing to nosing. Deeper treads feel safer underfoot but eat more floor run.

Do all my steps have to be the same height?

Within a single flight, yes, close to it. The IRC allows no more than 3/8 inch difference between the tallest and shortest riser or tread. Uneven steps are a trip hazard.

How many steps for a 9 foot ceiling?

A 9 ft floor-to-floor rise is about 108 inches. Divided by a 7.2 inch riser that is 15 steps, which keeps each riser comfortable and under code.