Deck Stair Stringer Calculator: Rise, Run & Cuts
- Number of steps
- count
- Result
- Stringer length
- in
- Result
- Cut length per stringer
- in
- Result
This deck stair stringer calculator works out the number of steps, the exact rise and run for each tread, and the total stringer length you need to cut for a set of deck stairs. You enter the total rise from the deck surface to the ground, the desired tread depth (run), and the thickness of your tread boards, and it returns the individual step rise, the number of risers, and the stringer length. The result is the critical layout information you need before you mark and cut your first stringer.
Formula
The calculator uses the standard stair geometry that carpenters rely on. The key formulas are:
- Number of risers (steps):
n = ceil(total rise / 7.75)– this divides the total rise by the maximum comfortable riser height (7.75 inches is a common code limit) and rounds up to the next whole number. - Actual step rise:
r = total rise / n– this evenly distributes the total rise across all steps so every riser is exactly the same height. - Stringer length (hypotenuse):
L = √((n × tread run)² + total rise²)– this is the straight-line length of the stringer from the top to the bottom, measured along the slope. - Cut length:
L + tread thickness– because the stringer sits on the ground at an angle, the bottom end needs extra length to account for the tread board thickness so the top of the tread lands at the correct height.
All measurements are in inches. The ceil() function rounds up to the nearest whole number, which is essential because you cannot have a fraction of a step.
Worked Example
Let’s use the default values from the calculator: total rise = 30 inches, tread run = 10 inches, tread thickness = 1.5 inches.
- Number of steps: 30 / 7.75 = 3.87, rounded up to 4.
- Step rise: 30 / 4 = 7.50 inches.
- Stringer length: √((4 × 10)² + 30²) = √(40² + 30²) = √(1600 + 900) = √2500 = 50.0 inches.
- Cut length: 50.0 + 1.5 = 51.5 inches.
So for a 30-inch rise, you need 4 steps, each riser is 7.5 inches, and the stringer is 50 inches long along the slope (51.5 inches with the tread thickness adjustment).
How to Read the Results
The step rise is the vertical height between the top of one tread and the top of the next. It must be identical for every step – if it varies, the stairs become a tripping hazard. The number of steps tells you how many risers you need, which also equals the number of treads (except the top tread is often the deck surface itself). The stringer length is the measurement along the slope of the stringer, but when you buy lumber, you need the cut length, which includes the extra bit at the bottom for the tread thickness.
For example, if your deck is 30 inches above the ground, the calculator says you need 4 steps. That means you’ll cut 4 notches (or use a solid stringer with brackets) and you’ll have 3 visible treads plus the deck surface as the top step. Many people expect 3 steps because they count the deck as a step – but the riser count is what matters for the stringer layout.
Common Mistakes and How to Avoid Them
- Forgetting the tread thickness: The stringer sits at an angle, so the bottom cut must be longer than the theoretical hypotenuse. If you cut exactly to the hypotenuse, the top of the bottom tread will be too low by the tread thickness. Always add the tread thickness to the bottom end.
- Mixing units: If you measure the rise in inches and the run in feet, your numbers will be wildly wrong. Keep everything in inches (or convert to the same unit).
- Rounding the rise too early: Always calculate the step rise as a decimal and round only at the very end. If you round 7.5 to 7 or 8, your steps will be uneven.
- Ignoring the maximum riser height: Local building codes often limit riser height to 7.75 inches (some to 7.0 inches). If your total rise is 40 inches, you cannot use 4 steps at 10 inches each – you must use 6 steps at 6.67 inches.
Choosing the Right Tread Run
The tread run (depth) is a separate decision from the rise. Building codes typically require a minimum tread depth of 10 inches, and a comfortable range is 10 to 11 inches. The ratio between rise and run matters for comfort: a good rule of thumb is that rise + run should be between 17 and 18 inches. For example, a 7.5-inch rise with a 10-inch run gives 17.5, which is comfortable. If you prefer a shallower tread (say 9 inches), you might need a slightly smaller rise to keep the ratio comfortable.
When you change the tread run, the stringer length changes because the horizontal distance changes. The calculator uses the tread run you enter, so if you want a 10.5-inch tread, just enter that number.
Stringer Material and Layout
Stringers are typically cut from 2×12 lumber (which is actually 1.5 inches by 11.25 inches). A 2×12 gives enough material to cut the triangular notches without leaving a weak point. The notch depth (the vertical cut) equals the step rise, and the notch width (the horizontal cut) equals the tread run. The remaining thickness of the 2×12 after the notch must be at least 3.5 inches to maintain structural integrity – this is why 2×12 is the standard choice rather than 2×10.
For a 30-inch rise with 10-inch run, each notch is 7.5 inches deep and 10 inches wide. On a 2×12 (11.25 inches wide), the remaining wood below the notch is 11.25 – 7.5 = 3.75 inches, which is safe. If your step rise were 9 inches, the remaining wood would be only 2.25 inches – too thin, and you’d need a different stringer design (like a solid stringer with metal brackets).
Frequently Asked Questions
How many stringers do I need for my deck stairs?
For a typical deck, you need one stringer every 16 inches on center. So for a 36-inch-wide stairway, you would need 3 stringers (at 0, 18, and 36 inches). For a 48-inch-wide stairway, you would need 4 stringers. Always check your local code – some require stringers at 12 inches on center for wider stairs.
What is the maximum riser height allowed by code?
Most residential building codes limit riser height to a maximum of 7.75 inches, and some jurisdictions use 7.0 inches. The minimum is usually 4 inches. This calculator uses 7.75 inches as the default maximum, but you should verify your local code before building.
Do I need to add the tread thickness to the stringer length?
Yes, but only if you are cutting the stringer to sit on the ground. The bottom of the stringer needs to be longer than the hypotenuse because the tread board adds height at the bottom. If you are mounting the stringer on a concrete pad and using metal brackets, you may not need the extra length – but for a ground-bearing stringer, always add the tread thickness.
Can I use this calculator for interior stairs?
Yes, the math is the same, but interior stairs often have different code requirements (e.g., minimum tread depth of 10 inches, maximum riser height of 7.75 inches, and a minimum headroom of 6 feet 8 inches). The calculator gives you the geometry, but you must check local codes for your specific situation.
Why does the calculator round up the number of steps?
Because you cannot have a partial step. If the total rise is 30 inches, you could have 3 steps at 10 inches each, but 10 inches is too high for comfort and code. The calculator rounds up to 4 steps to keep each riser within the 7.75-inch maximum. Rounding up always gives a riser height that is ≤ 7.75 inches.
Related
Formula used
in rise | Total rise | in | 30 | 0 in run | Tread run | in | 10 | 0 in tread | Tread thickness | in | 1.5 | 0 out step_rise | Step rise | in | rise / ceil(rise / 7.75) | 2 out steps | Number of steps | count | ceil(rise / 7.75) | 0 out stringer_len | Stringer length | in | sqrt((steps * run)^2 + rise^2) | 1 out cut_len | Cut length per stringer | in | stringer_len + tread | 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.