Skip to main content

How Many Stairs Do I Need? Risers, Treads and the Code Edge

You do not choose the riser height. You choose how many, and the height is whatever the division hands back.

By Mohamed Zakrya

Updated · 9 min read

Share
The height is a remainder, not a choice How many stairs do I need You never pick the riser height. You pick how many, and the height is what is left over. 1 · THE RISE Finished floor to finished floor. Not ceiling height. 108 in Fixed. Nothing moves it. 2 · THE COUNT The target only picks a whole number. 108 ÷ 7.5 = 14.4 round → 14 Nearest, not upward. 3 · THE REMAINDER The height falls out of the second division. 108 ÷ 14 7.714 in Equal by construction. 4 · THE FLIGHT 14 risers 13 treads 130 in run 169.01 in stringer Treads are one fewer. AND THAT WHOLE NUMBER HAS AN EDGE Each count carries a maximum rise No riser may exceed 7 3/4 in, so n risers can carry at most 7.75 × n. Fourteen risers top out at 108.50 in, which leaves the default flight half an inch of room. 108.625 in → still 14 risers → 7.759 in → fails Nothing checks the target Rounding to the nearest count is not rounding to the nearest legal count. Across 225 quarter-inch rises from 84 to 140 in, a 7.75 in target fails 107 times and an 8 in target fails 204. Aim at 7.00 or 7.25 and the sweep fails none. This counts geometry. It certifies nothing. Stairway width, headroom, handrail height and graspability, guard heights, landing sizes and nosing projection are absent here. The IRC is a model code and jurisdictions amend it — Michigan permits an 8 1/4 in riser and a 9 in tread. Ask your building department.
You do not choose the riser height. You choose how many, and the height is whatever the division hands back.

A stair begins with one fixed measurement: the vertical distance from the finished floor below to the finished floor above. The flight has to absorb that entire rise, and it has to arrive exactly at the top.

Riser height is therefore not an independent choice. A target height helps select a riser count, but the actual height is whatever the total rise divided by that whole-number count produces.

That relationship makes riser height a step function. Each riser count covers a band of total rises, and its legal band ends when every riser reaches 7 3/4 inches. A flight can land just past that edge while the arithmetic keeps returning perfectly reasonable dimensions, because the calculator rounds to the nearest riser count rather than the nearest count that stays inside the model-code limit.

The rise is the one number that cannot change

Total rise runs from finished floor to finished floor. It includes flooring or other coverings not yet installed at either end, because those surfaces determine the elevations people will actually step from and onto.

Ceiling height is not a substitute. The upper floor structure lies between the ceiling below and the finished floor above, so measuring only to the ceiling leaves out part of the climb the stair has to make.

Everything else follows from that finished rise. In the stair calculator the default 7.5 inch target does not become the riser height: it suggests a count, that count is rounded to a whole number, and the height falls out of the second division.

108 ÷ 7.5 = 14.4
round(14.4) = 14 risers
108 ÷ 14 = 7.714 inches per riser

Fourteen equal risers absorb the whole 108 inch rise with no leftover to adjust at the top or bottom, and 7.714 inches sits below the 7.75 inch model-code maximum. A flight also has one fewer tread than risers, because the upper floor is the final walking surface, so those 14 risers produce 13 treads and, at 10 inch treads, 130 inches of horizontal run.

Every riser count carries a maximum rise

The model-code edge can be restated as a band limit. If no riser may exceed 7.75 inches, then a flight of n equal risers can carry no more than 7.75 multiplied by n inches of total rise.

maximum legal total rise = riser count × 7.75 inches

That gives every count a hard upper boundary. The count can stay unchanged as the measured rise grows, while each riser quietly gets taller until the boundary is reached.

RisersMaximum legal total rise (in)
1185.25
1293.00
13100.75
14108.50
15116.25
16124.00
17131.75
18139.50

The default flight uses 14 risers, and that band ends at 108.50 inches. Its 108 inch rise therefore has half an inch of room left, which is far less headroom than a riser reading 7.714 against a limit of 7.75 suggests.

The reason the margin is easy to miss is that the two numbers move on different scales. Half an inch of total rise is only 0.036 inch spread across 14 risers, so a change large enough to matter at the floor is almost invisible at the step.

Every riser count has a ceiling Every riser count has a ceiling No riser may exceed 7 3/4 in, so n risers can carry at most 7.75 × n inches of total rise. RISERS MAXIMUM LEGAL TOTAL RISE 12 93.00 in 13 100.75 in 14 108.50 in the default flight lives here 15 116.25 in 16 124.00 in THE 14-RISER BAND 108 108.50 0.50 in of rise left, and the band is over. 0.50 in ÷ 14 risers = 0.036 in per step The two numbers move on different scales. A change big enough to matter at the floor is almost invisible at the step, which is why a riser reading 7.714 against a 7.75 limit looks safer than it is.
Fourteen risers can legally carry 108.50 inches. The default 108 in flight sits half an inch below that edge.

Five eighths of an inch

A small finish-floor change is enough to cross the edge. Holding the 7.5 inch target and 10 inch treads constant, the count stays at 14 while the rise walks through the boundary.

Total rise (in)RisersRiser height (in)Result
108.000147.714Passes
108.250147.732Passes
108.500147.750Passes, exactly at the limit
108.625147.759Fails
108.750157.250Passes

At 108.500 inches every riser is exactly 7.750. Adding one eighth of an inch makes every riser 7.759, which fails, and it is still not enough to make the rounding select 15. Legality changes between 108.500 and 108.750 while the count does not, and only at 108.750 does the nearest-count calculation finally move up and drop the riser height.

The failing measurement is not an exotic one. It is nine feet plus a five-eighths inch finish floor, which is exactly the difference that appears when a rise is measured to the subfloor and the covering is added later.

The calculator publishes the minimum count its model-code check permits, separately from the count the target produced. At 108.625 inches that floor is 15 rather than 14.

108.625 ÷ 7.75 = 14.016
ceil(14.016) = 15 risers
108.625 ÷ 15 = 7.242 inches per riser
15 − 1 = 14 treads
14 × 10 = 140 inches of run
√(108.625² + 140²) = 177.20 inches

Taking the code-floor count adds one tread and 10 inches of floor run, and it moves the straight-line stringer to 177.20 inches. The cost of staying legal on this rise is measured in floor space rather than in material.

The target riser is never checked against the limit Nothing checks what you asked for Every quarter-inch rise from 84 to 140 in — 225 of them — divided at five targets. Bars are the failures. TARGET RISES THAT COME OUT OVER 7.75 IN 7.00 in 0 7.25 in 0 7.50 in 6 7.75 in 107 this target IS the maximum 8.00 in 204 risers = round(rise ÷ target), and round can go DOWN The target is a hint for choosing a count, not a limit on the answer. Aim at 7 or 7.25 and read the published code floor, which is ceil(rise ÷ 7.75) and never rounds down.
Asking for the code maximum of 7.75 inches produces an illegal riser on 107 of 225 rises; asking for 7 produces none.

The count selection uses ordinary rounding. It divides the total rise by the requested target, rounds to the nearest whole number, and never pushes the count upward just because the resulting risers exceed 7.75 inches.

risers = max(1, round(total rise ÷ target riser))
riser height = total rise ÷ risers
minimum risers for code = ceil(total rise ÷ 7.75)

Ordinary rounding can go down. A quotient a little below a half-count boundary selects the lower count even where adding one riser is what would put the actual height under the limit. The target riser is a hint used to choose a count, not a constraint enforced on the answer, and nothing rejects a target that already equals or exceeds the maximum.

Sweeping every quarter-inch rise from 84 through 140 inches gives 225 distinct measurements. Running the same nearest-count calculation at five targets shows how often the result crosses the limit.

Target riser (in)Failing risesRises tested
7.000225
7.250225
7.506225
7.75107225
8.00204225

A 7.50 inch target fails on only six of those rises, and they cluster near count boundaries, which is why the failure is rare enough to be surprising when it happens. A 7.75 inch target fails on almost half, despite naming the maximum itself, and an 8 inch target fails on more than nine in ten. The geometry still comes back complete every time, because calculating a flight and checking it are separate operations.

A 104 inch rise shows the same thing without any fractional ambiguity. Asking for 8 inches selects exactly 13 risers, and every one of them is exactly 8 inches.

104 ÷ 8 = 13 risers
104 ÷ 13 = 8.000 inches per riser
104 ÷ 7.75 = 13.419
ceil(13.419) = 14 risers
104 ÷ 14 = 7.429 inches per riser

The code floor is 14 risers at 7.429 inches. Entering a 7.5 inch target on the same rise selects 14 directly, because there the nearest whole number and the legal minimum agree.

The practical rule is to aim at 7 or 7.25 inches for a flight in this range, since neither target failed anywhere in the sweep, and then read the published code floor against the count you were given. The tread check is independent of all of this: IRC R311.7.5.2 sets a 10 inch minimum tread depth, and a legal riser cannot rescue a tread entered below it.

Equal risers, and why the shortcut fails

IRC R311.7.5.1 limits riser height to 7 3/4 inches for a stairway serving a dwelling, and under the same provision the greatest riser in a flight may not exceed the smallest by more than 3/8 inch. Equal division answers both the landing problem and the uniformity requirement at once, because every riser takes the same share of the measured rise instead of leaving a remainder for one step to absorb.

The classic shortcut is to cut a run of convenient risers and treat the last one as the adjustment. On a 108.625 inch rise, 13 risers cut at a round 7.5 inches consume only 97.5.

13 × 7.5 = 97.5 inches
108.625 − 97.5 = 11.125 inches
11.125 − 7.5 = 3.625 inches of spread
3.625 ÷ 0.375 = 9.67

The final step would stand 11.125 inches tall, a spread of 3.625 inches against the 0.375 the code permits — more than nine and a half times the tolerance. Dividing the same rise equally among 14 risers instead gives 7.7589 inches each, which is uniform but still fails the separate maximum-height test, which is why both checks exist.

People climb familiar stairs on autopilot, having learned the rhythm on the first few steps. An unexpectedly tall or short riser interrupts that learned motion at the moment a foot is already committed, which is what makes the odd step the dangerous one.

The leftover step against the 3/8 inch rule One rise, divided two ways 108.625 in of total rise. Both stacks below are exactly the same height, because both absorb the same rise. 14 EQUAL RISERS 7.7589 in × 14 Uniform — but over the 7.75 in cap. 13 CONVENIENT RISERS, PLUS WHAT IS LEFT 11.125 in 7.5 in × 13 = 97.5, leaving 11.125 Spread 3.625 in. The IRC allows 0.375.
Thirteen risers at a round 7.5 inches leave an 11.125 inch final step: a 3.625 inch spread where the IRC allows 3/8.

What the count costs in floor, and the stringer

Adding a riser lowers every riser height, and it also adds a tread. At a fixed 10 inch tread depth, that extra tread lengthens the flight's footprint by exactly 10 inches, so the trade is paid for in floor rather than in lumber.

Target riser (in)RisersActual riser (in)TreadsRun (in)Stringer (in)
7.50147.71413130169.01
7.00157.20014140176.82
7.714 − 7.200 = 0.514 inches
140 − 130 = 10 inches
√(108² + 130²) = 169.01 inches
√(108² + 140²) = 176.82 inches

Ten more inches of floor buys 0.514 inch off every riser. That is a real difference underfoot, and it has to be settled before nearby walls, doorways or circulation routes fix how much run is available.

The stringer figure is the straight diagonal between two geometric endpoints, taken on the rise and the run as perpendicular legs.

108² = 11,664
130² = 16,900
11,664 + 16,900 = 28,564
√28,564 = 169.01 inches

That diagonal is not a stock length. Real stringers need end cuts where they meet the lower floor and the upper header, and cutting the sawtooth removes material along the board, so the stock has to be meaningfully longer than the calculated line.

Hardwood treads for the finished stair are sold by volume rather than by the piece, which the board foot calculator handles. The framing beneath an exterior flight follows the same one-fewer-than pattern this page keeps running into, worked through in how many deck boards do I need.

What this does not certify

The IRC is a model code rather than a universal approval. IRC R311.7.5.1 supplies the 7 3/4 inch riser maximum and the 3/8 inch uniformity limit for a stairway serving a dwelling, and IRC R311.7.5.2 supplies the 10 inch minimum tread depth.

Adopted rules differ materially. Michigan Administrative Code R 408.30519 permits a maximum riser of 8 1/4 inches and a minimum tread depth of 9 inches, which is a noticeably steeper stair than the model figures this calculator checks against.

That is why the tool flags results rather than approving them. Its two checks are a first filter against stated model limits, and neither a passing flag nor a calculated code floor certifies anything.

A complete stair still has to satisfy the requirements for stairway width, headroom, handrail height and graspability, guard heights, landing sizes, nosing projection, structure and connections. None of those is evaluated or quoted here.

Measure finished surface to finished surface, compare the count you were given against the published code floor, and read both checks before cutting. Then ask the building department which code edition and which amendments they enforce, because that answer, not this arithmetic, is what governs the stair.

Questions people ask

Why can I not just pick the riser height I want?

Because the flight has to arrive exactly at the upper floor, and the total rise is fixed. The only free choice is how many equal risers to divide that rise into, and the height is whatever the division returns. On a 108 inch rise a 7.5 inch target gives 14 risers of exactly 7.714 inches, because 108 divided by 7.5 is 14.4 and that rounds to 14. Ask for 7 inches on the same rise and you get 15 risers of 7.200 inches instead.

What is the tallest rise that 14 risers can legally carry?

Exactly 108.50 inches, because no riser may exceed 7 3/4 inches under IRC R311.7.5.1 and 7.75 multiplied by 14 is 108.50. Every count has its own ceiling on the same arithmetic: 100.75 inches for 13 risers, 116.25 for 15 and 124.00 for 16. That is worth knowing because the default 108 inch flight sits only half an inch below its band, which is a much smaller margin than a riser reading 7.714 against a limit of 7.75 suggests.

Why did adding a finish floor make my stair illegal?

Because the count did not change to absorb it. A 108 inch rise at a 7.5 inch target is 14 risers of 7.714 inches, which passes. Add five eighths of an inch of finish floor and 108.625 inches is still 14 risers, now 7.759 inches, which fails the 7 3/4 inch maximum. The rounding does not move to 15 until 108.75. Measuring finished floor to finished floor, including coverings not yet laid, is what prevents this.

Should I aim for a 7 3/4 inch riser, since that is the maximum?

No, and it is the single riskiest target you can enter. The calculator rounds the rise to the nearest whole count rather than the nearest legal one, and nothing checks your target against the limit first. Across every quarter-inch rise from 84 to 140 inches, 225 in all, a 7.75 inch target produces a riser over the maximum on 107 of them and an 8 inch target on 204. A 7 or 7.25 inch target fails on none of them.

What does one extra riser cost in floor space?

One tread depth, which at 10 inch treads is 10 inches of run. On a 108 inch rise, a 7.5 inch target gives 14 risers of 7.714 inches, 13 treads and a 130 inch run, while a 7 inch target gives 15 risers of 7.200 inches, 14 treads and a 140 inch run. So 10 more inches of floor buys 0.514 inch off every riser. Settle that trade before walls, doorways or circulation routes fix how much run is available.

Can a flight pass both checks here and still fail inspection?

Yes, and it should be treated as a first filter rather than an approval. The two checks are against the model IRC figures, and jurisdictions amend them: Michigan Administrative Code R 408.30519 permits a maximum riser of 8 1/4 inches and a minimum tread depth of 9 inches. Stairway width, headroom, handrail height and graspability, guard heights, landing sizes and nosing projection are separate requirements that this arithmetic does not evaluate at all.

Is it acceptable to make the bottom step a different height?

No. IRC R311.7.5.1 requires that the greatest riser in a flight not exceed the smallest by more than 3/8 inch, and absorbing a remainder into one step blows past that immediately. On a 108.625 inch rise, cutting 13 risers at a convenient 7.5 inches uses 97.5 inches and leaves 11.125 for the last one, a spread of 3.625 inches against a 0.375 inch tolerance. People climb on autopilot, and the odd step is exactly where a foot lands wrong.

How much longer than the calculated stringer should the stock be?

Longer than the figure, though the guide does not put a number on it. The stringer output is the straight diagonal between two geometric points: for a 108 inch rise and a 130 inch run it is the square root of 11,664 plus 16,900, which is the square root of 28,564, or 169.01 inches. A real stringer is cut at both ends to meet the floor and the header, and cutting the sawtooth removes material along the board, so the calculated line is a minimum span rather than a purchase length.