Stair Stringer Calculator
From total rise and target riser height, get the number of steps, exact riser height, total run, stringer length and angle, with US code limits flagged. Free.
Stair Stringer Calculator
Lay out a staircase from a single measurement. Enter the total rise (floor-to-floor height) and your target step height, and this works out the number of steps, the exact riser height, the total run, and the stringer length to cut — and checks it against building-code limits.
How to Use the Stair Stringer Calculator
Measure the total rise
The vertical distance from the lower finished floor to the upper finished floor — the single most important measurement. Get it exact, including any flooring thickness, because every riser depends on it.
Set a target riser height
A comfortable step is around 7–7.5 inches. The calculator divides the total rise by your target and rounds to a whole number of risers, then recomputes the exact riser height so every step is identical — which is what code requires.
Choose the tread depth
The horizontal run of each step, typically 10–11 inches. Deeper treads make a gentler, longer staircase; the calculator multiplies it by the number of treads to give the total horizontal run you'll need.
Cut the stringer
The stringer length is the diagonal board the steps are cut into, found with the Pythagorean theorem from the rise and run. Use it to buy stock and lay out the cuts with a framing square. Confirm the code check passes before you cut.
Laying Out a Staircase the Right Way
From One Measurement to a Whole Staircase
A staircase is one of the most satisfying carpentry layouts because it all flows from a single number: the total rise, the finished-floor-to-finished-floor height. Divide that by a comfortable target riser height — around 7 to 7.5 inches — and round to the nearest whole number, and you have your count of risers. Crucially, you then divide the total rise back by that whole number to get the actual riser height, so that every step is exactly equal. This matters because building codes are strict that all risers in a flight be uniform (within about 3/8 of an inch), and because the human body is remarkably sensitive to an odd step — a single riser that's off by half an inch is the classic cause of trips. The number of treads is always one less than the number of risers (the top "step" is the landing), and multiplying the tread depth by that tread count gives the total horizontal run the staircase will occupy. Finally, the stringer — the sawtooth-cut board the treads rest on — is the hypotenuse of the rise-and-run triangle, found with the Pythagorean theorem.
Comfort and safety live in the relationship between riser and tread, not either one alone. Carpenters have used rules of thumb for centuries to keep stairs comfortable: one popular guide is that two risers plus one tread should total about 24–25 inches, and another that riser plus tread should be around 17–18 inches. A staircase with tall risers and shallow treads is steep and tiring to climb and dangerous to descend; one with short risers and deep treads sprawls and wastes floor space. The code limits exist precisely to keep stairs in the safe, comfortable band — in the US, the International Residential Code caps the riser at 7¾ inches and requires a minimum 10-inch tread, with limits on how much risers and treads may vary within a flight. This calculator flags when your inputs breach those headline limits, but the full code also governs handrails, guards, headroom, and nosing, which vary by jurisdiction.
"The whole staircase unfolds from the total rise: divide for the step count, divide back for the exact riser so every step is equal, and the Pythagorean theorem gives the stringer. One measurement, one triangle, a flight of stairs."
Building It, and Where Code Takes Over
With the numbers in hand, the stringer is laid out with a framing square, marking each rise and run step down the board, then cut — usually three stringers for a standard residential stair (one each side and one in the middle) to support the treads without flexing. A subtlety many first-timers miss is the bottom-riser adjustment: the bottom stringer is trimmed by the thickness of one tread so that, once treads are installed, the first and last steps end up the same height as the rest. Material choice matters too — stringers are typically cut from 2×12 stock so enough wood remains after the sawtooth cuts. Beyond the geometry, stairs are one of the most code-regulated parts of a house because falls are a leading cause of home injury, so the layout this tool produces is the starting point, not the final word. Required handrail height and graspability, guards on open sides, minimum headroom (commonly 6 feet 8 inches), tread nosing, and landing dimensions are all governed by your local building code, which you must check and which may require an inspection. Outside North America the geometry is identical but the limits differ — UK Building Regulations, for instance, set their own maximum pitch and rise figures — so measure in your units, run the layout, and verify the specific rules where you build before cutting a board.
10 Facts About Stair Layout
Risers = round(total rise ÷ target riser); the whole staircase flows from the total rise.
Divide rise back by the riser count so every step is exactly equal.
Treads = risers − 1 (the top step is the landing).
The stringer is the hypotenuse: √(rise² + run²).
US IRC caps the riser at 7¾″ and requires a tread ≥ 10″.
All risers must be within 3/8″ of each other — uniformity prevents trips.
A comfort rule: 2 × riser + tread ≈ 24–25″.
The bottom stringer is trimmed by one tread thickness so steps end up equal.
Stringers are usually cut from 2×12 stock, three across for support.
Code also governs handrails, guards, and headroom (often ≥ 6′8″).
Frequently Asked Questions
- Divide the total rise (finished floor to finished floor) by a target riser height of about 7–7.5 inches and round to a whole number — that's your number of risers. Divide the total rise back by that number for the exact, equal riser height. Treads equal risers minus one; total run is treads times the tread depth. The stringer length is the diagonal, found with √(rise² + run²). This calculator does all of it and checks code limits.
- A riser of about 7 to 7.5 inches paired with a tread (run) of 10 to 11 inches is comfortable for most people. Carpenters use rules of thumb to check the balance: two risers plus one tread should total roughly 24–25 inches, or riser plus tread should be about 17–18 inches. Stairs that are too steep (tall riser, shallow tread) are tiring and dangerous; too shallow and they waste space. The calculator lets you adjust both to find a comfortable, code-compliant combination.
- Because the body climbs and descends stairs on autopilot, expecting every step to be the same. A single riser that's even half an inch different breaks that rhythm and is a leading cause of trips and falls. Building codes require all risers in a flight to be within about 3/8 of an inch of each other for exactly this reason. That's why the calculator divides the total rise by a whole number of risers to give one exact, uniform riser height rather than leaving an odd step at the top or bottom.
- Under the International Residential Code, the maximum riser height is 7¾ inches and the minimum tread depth is 10 inches, with risers and treads within a flight kept uniform (about 3/8 inch tolerance). Minimum headroom is generally 6 feet 8 inches, and there are rules for handrails, guards, and nosing. The calculator flags the headline riser and tread limits, but codes vary by jurisdiction and edition, and commercial stairs differ — always confirm the requirements with your local building department.
- The stringer length the calculator gives is the straight-line diagonal of the rise and run — the minimum board length before the sawtooth cuts. In practice, buy stock a bit longer to allow for the top and bottom connection cuts and any waste. Stringers are typically cut from 2×12 lumber so enough solid wood remains below the step cuts for strength. A standard residential stair uses three stringers across the width to keep the treads from flexing.
- When you cut a stringer, the steps are laid out to equal riser heights — but once you add the treads, the thickness of the tread material would make the first step taller and the last step shorter than the rest. To fix this, the bottom of the stringer is trimmed by the thickness of one tread. This classic adjustment ensures that, after the treads are installed, every step including the first and last is the same height. Forgetting it is one of the most common stair-building mistakes.
- Codes require a landing at the top and bottom of a flight, and often an intermediate landing for tall staircases — typically where vertical rise would exceed about 12 feet, or to change direction. Landings must meet minimum dimensions (commonly at least as deep as the stair is wide, often 36 inches). This calculator handles a single straight flight; for a staircase with a landing, calculate each flight's rise separately. Check your local code for the landing rules that apply to your project.
- The stair angle is the slope of the staircase, found from the arctangent of the total rise over the total run. Comfortable residential stairs typically fall between about 30 and 37 degrees; steeper than the high 30s becomes tiring and feels ladder-like, while shallower stairs eat a lot of floor space. The calculator shows the angle so you can sanity-check the feel of your design. Adjust the riser and tread to bring the angle into the comfortable range if it's too steep.
- Yes — the geometry is identical for deck, porch, and outdoor stairs. Measure the total rise from the lower surface (ground or pad) to the deck surface and proceed as normal. Outdoor stairs often use slightly different tread materials and may have their own code considerations (drainage, frost-depth footings for the landing pad, and graspable handrails), so check the requirements for exterior stairs in your area. The riser, tread, run, and stringer math the calculator provides applies the same way.
- The geometry is universal — work in inches or convert to millimetres. The code limits differ: UK Building Regulations, for example, set their own maximum rise (around 220 mm for domestic stairs), minimum going, and a maximum pitch of about 42 degrees, and many countries have their own rules. The calculator's riser/tread/stringer math is correct everywhere, but the flagged limits are the US IRC figures, so confirm your local building regulations and verify before cutting wherever you build.
Related News
You may be interested in these recent stories from our newsroom.
No related news yet for this tool. Our editorial team publishes new pieces every week.
Browse all news →75 more free tools
Calculators, converters, security tools — no signup.