Home › Home & Construction › Staircase Calculator
Staircase Calculator
Stairs are unforgiving: get the riser math wrong by half an inch and every step feels off, and one uneven riser is a trip hazard built into the house. This free staircase calculator takes your floor-to-floor height and works out the riser count, the true riser height, tread depth, total run and stringer length — the full layout, before a single board is cut.
The currency only changes the symbol and formatting of the optional cost estimate — it never converts amounts.
| Number of risers | — |
| Actual riser height | — |
| Number of treads | — |
| Tread depth (going) from 2R + T | — |
| Total run | — |
| Stringer length (diagonal) | — |
| Stair angle | — |
| Estimated step cost | — |
How it works
Every straight flight of stairs is one division problem followed by a comfort check. The division spreads the total height evenly across the steps; the comfort check makes sure the resulting step dimensions match how people actually walk.
The total rise is the finished-floor-to-finished-floor height — not the ceiling height, and not the height to the top of the joists. Measure it with the finished flooring in place (or add the flooring thickness to both levels), because every riser is figured from this one number. In target-riser mode the calculator divides the rise by your target and rounds the count up, so the true riser ends up at or just below your target — never above it. In riser-count mode you fix the number of steps and it reports the riser height that produces.
The tread depth comes from the 2R + T comfort rule: twice the riser plus the tread should fall between 25 and 27 inches. You pick the target inside that band — 25 gives the gentlest climb but needs the most floor space, 27 the most compact — and the calculator shows the going it produces, along with the tread depth the other two band values would give, so you can judge the trade-off. The total run uses one fewer tread than risers, because the upper floor itself serves as the final tread. The stringer length is the diagonal of that right triangle — the minimum board the slope spans.
One warning the numbers deserve: an actual riser above about 7¾ inches, or a tread under 10 inches, falls outside the widely used US residential code limits, and the result line flags it when that happens. Codes differ by city and state, though — always confirm before building.
Worked example
A basement finish has a floor-to-floor height of 108 inches, and the builder is aiming for risers of about 7.5 inches with the comfort target at 26. Step 1: 108 ÷ 7.5 = 14.4, rounded up to 15 risers. Step 2: the true riser height is 108 ÷ 15 = 7.2 inches — comfortably under the 7¾-inch residential limit. Step 3: tread depth from the comfort rule is 26 − (2 × 7.2) = 11.6 inches. Step 4: 15 risers need 14 treads, so the total run is 11.6 × 14 = 162.4 inches (13 feet 6.4 inches). Step 5: the stringer diagonal is √(108² + 162.4²) = 195.0 inches, at a stair angle of about 33.6°. Those are exactly the figures the calculator shows for the default inputs above.
Layout mistakes to avoid
Measuring to the wrong floor. Rise measured to bare subfloor at one end and finished floor at the other bakes a permanent error into the first or last riser — the two steps where people trip most. Measure finished to finished.
Making one riser "absorb" the rounding. Builders are tempted to put the leftover fraction into the bottom step. Don't: spread it evenly, as this calculator does. A flight where every riser matches within a small tolerance is both safer and what codes require.
Forgetting headroom and the stairwell opening. A flight that fits on paper can still leave too little headroom under the floor opening. Check the opening length against the run while you still have the numbers in front of you.
FAQ
How is the number of risers calculated?
Divide the total rise by your target riser height and round UP to the next whole number — a stair cannot have a fraction of a step, and rounding up keeps every riser at or under your target. A 108-inch rise with a 7.5-inch target gives 108 ÷ 7.5 = 14.4, so 15 risers. The actual riser height is then the total rise divided by that count: 108 ÷ 15 = 7.2 inches each.
What is the 2R + T comfort rule?
It is the long-standing rule of thumb that twice the riser height plus the tread depth should total about 25 to 27 inches, which matches an average adult's stride on stairs. At the middle value of 26 with a 7.2-inch riser, the tread comes out at 26 − 14.4 = 11.6 inches. Stairs inside the 25–27 band feel natural to most people; stairs outside it feel steep, shallow, or awkward even when each measurement looks fine alone.
How many treads are there compared to risers?
One fewer. The top riser arrives at the upper floor itself, so the floor acts as the last tread. A flight with 15 risers has 14 treads, and the total run is the tread depth multiplied by 14, not 15 — an easy place to over-order lumber or over-measure a stairwell if you forget it.
What riser height do building codes allow?
Rules vary by place and by building type. The widely used US residential code (IRC) caps riser height at 7¾ inches and requires treads at least 10 inches deep, with all risers in a flight within ⅜ inch of each other. Commercial and public stairs are usually stricter. Treat this calculator as a planning tool and confirm the figures against your local code before you cut anything.
How accurate is the stringer length?
The stringer length shown is the straight diagonal of the stair's side profile — the square root of (total rise squared + total run squared). It is the minimum board length the diagonal spans; in practice you buy a longer board, because the stringer also carries the top and bottom cuts and any extension into the framing. Order with waste in mind.