DIY Stair Stringer Calculator: Rise, Run & Layout
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This DIY stair stringer calculator works out the number of treads, the exact rise and run per step, and the total stringer length you need to cut for a straight flight of stairs. You enter the total rise (floor-to-floor height), total run (horizontal distance available), and your desired tread depth and riser height, and it returns the precise cuts for your stringers, including the top and bottom adjustments. It uses the standard building formula for stair geometry, so you can lay out a safe, code-friendly set of stairs before you touch a saw.
Formula
The calculator uses the fundamental stair geometry: the number of risers is the total rise divided by your desired riser height, rounded to the nearest whole number. Then the actual riser height is the total rise divided by that number of risers. The number of treads is always one less than the number of risers (the top tread is the upper floor). The actual tread depth is the total run divided by the number of treads. Finally, the stringer length is the diagonal of the right triangle formed by the total rise and total run, using the Pythagorean theorem:
Stringer length = √(total rise² + total run²)
Where:
- Total rise – vertical distance from the finished floor below to the finished floor above (inches or mm).
- Total run – horizontal distance from the face of the bottom riser to the face of the top riser (inches or mm).
- Riser height – vertical distance between two consecutive treads.
- Tread depth – horizontal depth of each step (from nosing to nosing).
Worked Example
Using the default values: total rise = 105 in, total run = 120 in, desired riser height = 7 in, desired tread depth = 10 in.
- Number of risers = round(105 / 7) = round(15) = 15.
- Actual riser height = 105 / 15 = 7.00 in.
- Number of treads = 15 – 1 = 14.
- Actual tread depth = 120 / 14 = 8.57 in (rounded to 2 decimals).
- Stringer length = √(120² + 105²) = √(14400 + 11025) = √25425 ≈ 159.5 in.
The calculator shows: 15 risers, 7.00 in riser, 14 treads, 8.57 in tread, and a stringer length of 159.5 inches. This matches the block output.
Why Accurate Stringer Math Matters
Stringers are the sloped boards that support the treads and risers. If the rise and run are off, every step feels uneven, which is both uncomfortable and a tripping hazard. Building codes in most regions set maximum riser height (typically 7.75 in) and minimum tread depth (typically 10 in, sometimes 11 in with nosing). A calculator like this helps you check those numbers before cutting. Even a 1/8-inch error per step multiplies across a flight – over 14 steps that’s nearly 2 inches of drift, which can make the top or bottom step land awkwardly.
How to Use the Calculator for Real Projects
Measure the total rise from the finished floor of the lower level to the finished floor of the upper level – not from subfloor to subfloor. For the total run, measure the horizontal distance from the edge of the upper floor (where the top riser will be) to the point where the bottom riser will land. If you’re building a deck or porch, include the thickness of the tread material and the height of any landing. Then enter your desired riser height (often 7 in for comfort) and tread depth (10-11 in). The calculator gives you the exact numbers to mark on a 2×12 board. Use a framing square with stair gauges to lay out the notches, and remember to subtract the tread thickness from the bottom riser cut.
Common Mistakes and How to Avoid Them
- Forgetting to subtract tread thickness – the bottom riser must be shortened by the thickness of the tread material so the first step isn’t taller than the rest.
- Mixing units – always use the same unit (inches or mm) for rise and run. The calculator assumes consistent units.
- Rounding too early – don’t round the number of risers to a whole number until you’ve divided the total rise by your desired riser height; rounding first can throw off the actual riser height.
- Ignoring nosing – if you add a nosing (overhang), it adds to the effective tread depth, so adjust your total run accordingly.
- Not checking code – local codes may have specific maximum riser and minimum tread dimensions; verify before cutting.
Limitations of the Formula
This calculator assumes a straight flight with uniform steps and no landings, winders, or open risers. It also assumes the stringer is a simple triangle – it doesn’t account for the actual thickness of the stringer board, which affects the cut length slightly. For a 2×12 stringer, the length you cut is close to the diagonal, but you’ll need to mark the actual notches along the board. The formula also doesn’t include the top and bottom adjustments for tread thickness, so you must apply those manually. For complex stairs (curved, spiral, or with landings), consult a professional or use specialized software.
Frequently Asked Questions
How many stringers do I need?
For a typical residential stair, you need at least three stringers: one on each side and one in the middle. For wider stairs (over 36 inches), add a stringer every 16 to 24 inches across the width. The calculator gives you the length and cut layout for each stringer, but the number depends on the width of your stair.
What is the ideal riser height and tread depth?
Comfortable stairs generally have a riser height between 7 and 7.5 inches and a tread depth of 10 to 11 inches. The sum of two risers plus one tread should be around 25 inches (the “rule of thumb� for comfortable stride). Check local codes for maximum riser (often 7.75 in) and minimum tread (often 10 in).
Can I use this calculator for deck stairs?
Yes, but you must measure the total rise from the deck surface to the ground (or landing) and subtract the thickness of the tread material from the bottom riser. Also, the total run should be measured from the deck edge to the point where the bottom step lands, accounting for any landing pad.
What if my total run is too short for the desired tread depth?
If the calculated tread depth is less than the minimum code requirement (usually 10 in), you need to increase the total run (move the bottom of the stairs further out) or reduce the number of treads by increasing the riser height (but stay within code). The calculator will show the actual tread depth, so you can adjust your inputs.
How do I mark the stringer cuts?
Use a framing square with stair gauges set to the actual riser height and tread depth. Place the square on the 2×12 board so the gauges align with the edge, then trace the triangle. Repeat along the board, then cut with a circular saw (stop at the corners and finish with a handsaw or jigsaw). Always double-check the first stringer against the others.
Does the stringer length include the top and bottom cuts?
No, the stringer length is the diagonal distance between the top and bottom points of the stair triangle. The actual board length you need will be slightly longer because the top and bottom cuts are angled. Mark the notches and then trim the ends to fit – the diagonal length is a good starting point.
Related
Formula used
in total_rise | Total rise | in | 105 | 0 in total_run | Total run | in | 120 | 0 in riser_h | Desired riser height | in | 7 | 0 in tread_d | Desired tread depth | in | 10 | 0 out num_risers | Number of risers | - | round(total_rise / riser_h) | 0 out actual_riser | Actual riser height | in | total_rise / num_risers | 2 out num_treads | Number of treads | - | num_risers - 1 | 0 out actual_tread | Actual tread depth | in | total_run / num_treads | 2 out stringer_len | Stringer length (diagonal) | in | sqrt(total_run^2 + total_rise^2) | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.