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.
| Risers | Maximum legal total rise (in) |
|---|---|
| 11 | 85.25 |
| 12 | 93.00 |
| 13 | 100.75 |
| 14 | 108.50 |
| 15 | 116.25 |
| 16 | 124.00 |
| 17 | 131.75 |
| 18 | 139.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.
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) | Risers | Riser height (in) | Result |
|---|---|---|---|
| 108.000 | 14 | 7.714 | Passes |
| 108.250 | 14 | 7.732 | Passes |
| 108.500 | 14 | 7.750 | Passes, exactly at the limit |
| 108.625 | 14 | 7.759 | Fails |
| 108.750 | 15 | 7.250 | Passes |
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.
Rounding to the nearest is not rounding to the legal
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 rises | Rises tested |
|---|---|---|
| 7.00 | 0 | 225 |
| 7.25 | 0 | 225 |
| 7.50 | 6 | 225 |
| 7.75 | 107 | 225 |
| 8.00 | 204 | 225 |
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.
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) | Risers | Actual riser (in) | Treads | Run (in) | Stringer (in) |
|---|---|---|---|---|---|
| 7.50 | 14 | 7.714 | 13 | 130 | 169.01 |
| 7.00 | 15 | 7.200 | 14 | 140 | 176.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.