Stair Calculator
Rise, run and stringer length from a floor-to-floor height, against the code limits.
Updated
You need
14risers
each exactly 7.714 in, so the flight lands on the floor
- Riser height vs IRC R311.7.5.1
- 7.714 in / max 7.75 in
- Tread depth vs IRC R311.7.5.2
- 10.00 in / min 10 in
- Treads
- 13
- Total run
- 130.00 in
- Stringer length
- 169.01 in
- Fewest legal risers
- 14
Within the model IRC limits. Your jurisdiction may have amended them, and width, headroom, handrails and landings are separate requirements, so check the adopted code before you cut.
Advertisement
In short
How do I calculate stair risers and stringer length?
Divide the floor to floor rise by the riser height you want and round to a whole number. A 108 in rise at a 7 1/2 in target gives 14 risers of exactly 7.714 in, 13 treads, a 130 in total run at 10 in treads, and a stringer of 169 in by Pythagoras. That riser is inside the IRC maximum of 7 3/4 in.
The tool checks the model IRC limits and flags a flight that fails them. It does not approve anything: your jurisdiction may have amended those limits, and width, headroom, handrails, guards and landings are separate requirements you still have to meet.
How to use the stair calculator
Everything starts with one measurement, and it is the one most often taken wrongly. Total rise is finished floor to finished floor: from the surface you will walk on downstairs to the surface you will walk on upstairs. If either floor covering is not down yet, add its thickness now rather than discovering it later.
That number is not negotiable, and it is why the calculator solves for risers rather than letting you choose the riser height directly. A flight has to arrive exactly at the upper floor, so the rise divides into a whole number of equal risers and the riser height is whatever that division produces.
14
Risers for a 108 in rise
at a 7 1/2 in target
7.714 in
Each riser, exactly
inside the 7 3/4 in IRC maximum
169 in
Stringer length
about 14 ft 1 in of stock
The target riser height nudges the division rather than setting the answer. Ask for 7 1/2 inches on a 108 inch rise and you get 14 risers at 7.714 inches, because 14.4 rounds to 14. Ask for 7 inches and you get 15 risers at 7.2 inches instead. The rise never changed; only how finely you sliced it.
Advertisement
Tread depth is the other half of the geometry and it behaves quite differently, because it is a free choice within limits rather than a division. Deeper treads make an easier stair and a longer one. At 10 inch treads that 108 inch rise consumes 130 inches of floor; at 11 inch treads it consumes 143.
Note that treads always come out one fewer than risers. The upper floor itself is the last tread, so a 14 riser flight has 13 treads. Getting that backwards is the classic way to end up with a stair one full step too long for the opening it has to fit.
Pricing hardwood treads for the finished stair
Stair treads in oak, maple or walnut are sold by the board foot rather than by the piece, which is a different sum from the framing lumber underneath them.
Open the board foot calculator →The stringer length is straight Pythagoras on the total rise and the total run, and it is what you take to the lumber yard. A 108 inch rise with a 130 inch run gives 169 inches, a little over 14 feet, so the stock has to be longer than that before you have cut anything or allowed for how the stringer meets the floor at either end.
Do
- Measure from finished floor to finished floor, including any covering still to be laid.
- Keep every riser in a flight equal, which is what the division is for.
- Check both code rows before you cut anything, not after.
- Confirm the total run fits the opening and lands clear of doors.
- Ask your building department which code edition they have adopted.
Don't
- Absorb a leftover fraction into one taller step at the top or bottom.
- Count treads and risers as the same number, because treads are one fewer.
- Treat the 18 inch and 25 inch rules of thumb as code requirements.
- Buy stringer stock at the calculated length with nothing left over.
- Assume the model IRC figures are the ones your jurisdiction enforces.
Common floor to floor heights divided into equal risers at a 7 1/2 inch target, with 10 inch treads. Every riser height in this table sits inside the model IRC maximum of 7 3/4 inches, and the stringer column is the raw Pythagoras length before any cutting allowance.
| Floor to floor | Risers | Riser height | Treads | Total run at 10 in | Stringer length |
|---|---|---|---|---|---|
| 96 in (8 ft) | 13 | 7.385 in | 12 | 120 in | 153.67 in |
| 100 in | 13 | 7.692 in | 12 | 120 in | 156.20 in |
| 104 in | 14 | 7.429 in | 13 | 130 in | 166.48 in |
| 108 in (9 ft) | 14 | 7.714 in | 13 | 130 in | 169.01 in |
| 112 in | 15 | 7.467 in | 14 | 140 in | 179.29 in |
| 117 in | 16 | 7.313 in | 15 | 150 in | 190.23 in |
| 120 in (10 ft) | 16 | 7.500 in | 15 | 150 in | 192.09 in |
| 126 in | 17 | 7.412 in | 16 | 160 in | 203.66 in |
| 132 in (11 ft) | 18 | 7.333 in | 17 | 170 in | 215.23 in |
The IRC limits, and who they actually bind
Two figures do most of the work in residential stair code. Under IRC R311.7.5.1 the maximum riser height is 7 3/4 inches, and under R311.7.5.2 the minimum tread depth is 10 inches. Between them they set how steep a stair in a dwelling is allowed to be.
A third rule in R311.7.5.1 is the one that catches real builds. The greatest riser height within a flight may not exceed the smallest by more than 3/8 inch. That is a uniformity requirement, and it is why this calculator divides the rise into equal risers instead of letting you pick a round riser height and stuff the remainder into the last step.
“Maximum riser height 7 3/4 in, minimum tread depth 10 in, and rise, run and nosing projections uniform within 3/8 in throughout a flight.”
The important caveat is that the IRC is a model code, and what binds you is whatever your jurisdiction has adopted and amended. The differences are not cosmetic: 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 materially steeper stair than the model code allows.
So treat the pass and fail flags here as a first filter. A flight that fails the model limits is very unlikely to pass anywhere. A flight that passes them still has to satisfy the code your building department enforces, along with the separate requirements for stairway width, headroom, handrails, guards and landings that this page does not attempt to quote.
The rules of thumb that are not code
Two old carpentry formulas circulate alongside the code figures and are regularly mistaken for them. One says rise plus run should land near 17 to 18 inches. The other says twice the rise plus the run should land near 24 to 25 inches. Neither appears in the IRC, and neither is enforceable.
They are still useful, because they encode something the code limits do not: comfort. A stair can satisfy every dimensional requirement and still feel wrong to climb, usually because the tread is generous while the riser is short, or the reverse. The rules of thumb are a rough measure of whether the two are in proportion.
- Riser height
- 7.714 in
- Tread depth
- 10 in
- Rise plus run
- 17.71 in
- Twice rise plus run
- 25.43 in
Both land inside the traditional target ranges, which is what a conventional main stair looks like. These are carpentry guidance, not requirements, and no inspector will measure them.
Where the rules of thumb earn their keep is on the stairs the code barely governs. A steep utility stair to a basement or a shallow flight of exterior steps can meet the dimensional limits and still be unpleasant, and running the two sums is a fast way to notice that before the stringers are cut.
Advertisement
Full guide
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.
Read the full guide →The formula, worked line by line
A stair is a division problem with one hard constraint: the flight must arrive exactly at the upper floor. That is why you cannot simply choose a riser height. You choose a target, the rise divides into the nearest whole number of risers, and the actual riser height is whatever that division gives back.
Doing it that way makes the risers equal by construction, which is not a nicety. IRC R311.7.5.1 caps the spread between the tallest and shortest riser in a flight at 3/8 inch, and equal risers are the only way to be certain of clearing that with room to spare.
The rest follows. Treads are one fewer than risers, because the upper floor is the final tread. Multiply the treads by the tread depth for the total run, and the stringer is the hypotenuse of the triangle formed by the total rise and the total run.
risers = total rise ÷ target riser height, rounded to the NEAREST whole number
riser height = total rise ÷ risers [exact, no remainder]
treads = risers − 1
total run = treads × tread depth
stringer length = √(total rise² + total run²)
code check: riser height ≤ 7.75 in AND tread depth ≥ 10 in- Risers
- 108 ÷ 7.5 = 14.4, so 14
- Riser height
- 108 ÷ 14 = 7.714 in
- Treads
- 14 − 1 = 13
- Total run
- 13 × 10 = 130 in
- Stringer
- √(108² + 130²) = √28,564
- Stringer length
- 169.01 in
Both code checks pass: 7.714 inches is under the 7 3/4 inch maximum, and 10 inch treads meet the minimum exactly. The traditional sums come out at 17.71 and 25.43 inches, both inside the ranges carpenters aim for, which is what an ordinary main stair looks like.
Rounding to the nearest whole riser rather than always up is the right call, and it can go either way. On a 108 inch rise a 7 1/2 inch target rounds down to 14 risers and produces a slightly taller riser than you asked for. Ask for 7 inches on the same rise and it rounds down to 15, giving 7.2 inches.
That is why the tool also reports the fewest risers that keep the flight legal. On a 108 inch rise that is 14, because 108 divided by 7.75 is 13.94 and you cannot have a fraction of a riser. Push the same target onto a 130 inch rise and the legal floor rises to 17.
Finally, remember what this page deliberately does not do. It checks two dimensions against two model code limits. Stairway width, headroom, handrail height and graspability, guard heights, landing sizes and nosing projection are all separate requirements in the same part of the code, and they are the reason a stair passes or fails an inspection just as often as rise and run.
Advertisement
Questions people ask
What is the maximum riser height for stairs?
Under section R311.7.5.1 of the International Residential Code the maximum riser height for a stairway serving a dwelling is 7 3/4 inches, and the same section requires that the greatest riser height within a flight not exceed the smallest by more than 3/8 inch. The IRC is a model code, though, and what binds you is whatever your jurisdiction has adopted and amended. Michigan Administrative Code R 408.30519, for one, permits a maximum riser of 8 1/4 inches. Ask your building department which edition and which amendments apply before you cut stringers.
Covered in depth in How Many Stairs Do I Need? Risers, Treads and the Code Edge →
How many stairs do I need for a 9 foot ceiling?
A 9 foot floor to floor height is 108 inches, and at a 7 1/2 inch target that divides into 14 risers of exactly 7.714 inches each, which is inside the 7 3/4 inch model IRC maximum. That gives 13 treads, because the upper floor is itself the last tread. At 10 inch treads the flight consumes 130 inches of floor, and the stringer works out at 169 inches, a little over 14 feet. Note that floor to floor is not the same as ceiling height: it includes the floor structure above, so measure it rather than assuming.
How do I calculate stringer length?
The stringer is the hypotenuse of the right triangle formed by the total rise and the total run, so it is the square root of the rise squared plus the run squared. For a 108 inch rise and a 130 inch run, that is the square root of 11,664 plus 16,900, which is the square root of 28,564, or 169 inches. Buy stock longer than that. The calculated figure is a straight line between two points, whereas a real stringer is cut at both ends to meet the floor and the header, and cutting the sawtooth into it removes material as well.
Is the 18 inch rule for stairs a code requirement?
No. The idea that rise plus run should come to around 17 to 18 inches, and the related rule that twice the rise plus the run should come to around 24 to 25 inches, are traditional carpentry guidance rather than anything in the IRC. No inspector will measure them. They are still worth running, because they capture comfort rather than compliance: a stair can meet every dimensional limit in the code and still feel wrong underfoot when the tread and the riser are out of proportion with each other.
Why do I have one fewer tread than risers?
Because the upper floor is the last tread. Every riser lifts you from one walking surface to the next, and the final riser lifts you onto the floor above rather than onto another tread, so a flight with 14 risers has 13 treads. This is the single most common arithmetic error in stair layout, and it matters because the total run is figured from the tread count. Getting it backwards adds a full tread depth to the run, which is how a stair ends up projecting further into a room than the drawing said it would.
Sources
Where the constants and formulas on this page come from. Each line names the figure it backs.
The residential limits this tool checks against: a 7 3/4 inch maximum riser, a 10 inch minimum tread, and rise and run uniform within 3/8 inch across a flight.
Residential Stair Code Basics — Fine Homebuilding, 2024 IRC, published October 2024
Shop stair layout tools on Amazon
Browse current options and prices directly on Amazon — we don’t list products here.
As an Amazon Associate we may earn from qualifying purchases.
Related guides
Home Improvement
How to Connect a Portable Generator to Your House
One decision picks your method: are you powering things, or powering circuits? Everything else follows from that, including whether you need an electrician at all.
August 26, 2026 · 14 min read
Home Improvement
How Much Grass Seed Do I Need? Rates by Grass Type
The rate for every grass type, the half rate for overseeding, and the seeding window that decides whether any of it works.
August 26, 2026 · 7 min read
Home Improvement
How Much Yeast Is in a Packet? Seven Grams, and Three Quarters of a Tablespoon
The teaspoon answer is everywhere. The tablespoon answer is the one people actually need, because a whole tablespoon is a third too much.
August 23, 2026 · 11 min read