Skip to main content
Home ImprovementFree · no sign-up

Stair Calculator

Rise, run and stringer length from a floor-to-floor height, against the code limits.

Updated

108 in
7.50 in
10 in

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.

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.

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 floorRisersRiser heightTreadsTotal run at 10 inStringer length
96 in (8 ft)137.385 in12120 in153.67 in
100 in137.692 in12120 in156.20 in
104 in147.429 in13130 in166.48 in
108 in (9 ft)147.714 in13130 in169.01 in
112 in157.467 in14140 in179.29 in
117 in167.313 in15150 in190.23 in
120 in (10 ft)167.500 in15150 in192.09 in
126 in177.412 in16160 in203.66 in
132 in (11 ft)187.333 in17170 in215.23 in
Computed August 2026 from the engine this page runs. Risers are the total rise divided by the target and rounded to a whole number; the riser height is then the rise divided by that count, so the flight lands exactly on the upper floor. Treads are always one fewer than risers.

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.
International Residential Code R311.7.5, as reported by Fine Homebuilding, Residential Stair Code Basics, October 2024

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.

The default 108 inch flight against both rules
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.

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
Stair rise, run and stringer lengthA 108 inch floor-to-floor height divides into 14 risers of 7.71 inches. That leaves 13 treads at 10 inches, a total run of 130 inches, and a stringer of 169 inches by Pythagoras.RISE, RUN, STRINGER108 intotal run 130 instringer √(rise² + run²)14 risers, 13 treads108 IN FLOOR TO FLOOR÷ 14 risers7.71 in13 treads × 10 in130 inIRC max riser 7.75 inwithinstringer169 in
Total rise, total run, and the stringer that is the hypotenuse of the two.
A 108 in floor to floor at a 7 1/2 in target, 10 in treads
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.

Questions people ask

Sources

Where the constants and formulas on this page come from. Each line names the figure it backs.

  1. 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 BasicsFine 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.