Custom Stair Stringer Calculator: How to Build
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.
A custom stair stringer calculator works out the exact length, angle, and cut layout for a stair stringer based on your total rise, total run, and chosen tread depth. You enter the vertical rise from finished floor to finished floor, the horizontal run (or the space available), and the calculator returns the number of steps, the rise and run per step, and the stringer length and angle. This lets you mark and cut a stringer accurately before you buy lumber, saving material and avoiding the guesswork that leads to uneven steps.
Formula
The calculator uses the standard stair geometry that carpenters apply when laying out a stringer. First, it estimates the number of steps by dividing the total rise by a typical step height (about 7.5 inches) and rounding up to the nearest whole number. Then it calculates the exact rise per step and run per step:
- Number of steps (N) = ceil(Total rise / 7.5) – the smallest whole number that gives a rise per step no larger than 7.5 inches.
- Rise per step (R) = Total rise / N – the vertical distance from one tread surface to the next.
- Run per step (T) = Total run / (N – 1) – the horizontal distance from the nosing of one tread to the nosing of the next. (There are N-1 runs because the top step lands on the upper floor.)
- Stringer angle (θ) = arctan(R / T) – the angle the stringer makes with the horizontal floor.
- Stringer length (L) = sqrt((R × N)² + (T × (N-1))²) – the straight-line distance along the top edge of the stringer from the bottom cut to the top cut.
All measurements are in inches (or the same unit you use for both rise and run). The angle is in degrees.
Worked Example
Using the default values: Total rise = 105 inches, Total run = 120 inches, Tread depth = 10 inches.
- Number of steps: N = ceil(105 / 7.5) = ceil(14.0) = 14 steps.
- Rise per step: R = 105 / 14 = 7.50 inches.
- Run per step: T = 120 / (14 – 1) = 120 / 13 ≈ 9.23 inches.
- Stringer angle: θ = atan(7.50 / 9.23) ≈ atan(0.8125) ≈ 39.1°.
- Stringer length: L = sqrt((7.50 × 14)² + (9.23 × 13)²) = sqrt(105² + 120²) = sqrt(11025 + 14400) = sqrt(25425) ≈ 159.5 inches.
The calculator shows 14 steps, a rise of 7.50 inches per step, a run of 9.23 inches, an angle of 39.1°, and a stringer length of 159.5 inches. That matches the formula output for the defaults.
How to Use the Calculator for Your Project
Start by measuring the total rise: the vertical distance from the finished floor at the bottom to the finished floor at the top. If you’re building a deck, measure from the top of the lower decking to the top of the upper decking. Then decide the total run – the horizontal distance the stairs will cover – or measure the available space. Enter those numbers along with your preferred tread depth (typically 10 inches for residential stairs). The calculator will give you the number of steps, the exact rise and run per step, and the stringer length.
When you cut the stringer, remember that the top cut must be shortened by the thickness of the tread material if you want the top step to land flush with the upper floor. Many carpenters subtract the tread thickness from the top rise. Also, the bottom cut may need adjustment if you’re using a different thickness of tread or a concrete landing.
Common Mistakes and How to Avoid Them
- Mixing units: Always use the same unit for rise and run – inches, feet, or centimeters. If you mix feet and inches, the angle and length will be wrong.
- Forgetting the top step: The number of runs is one less than the number of steps because the top step lands on the upper floor. Using the same number for both will give a run that is too long.
- Ignoring tread thickness: The calculator assumes the tread sits on top of the stringer. If you use thick treads, the top rise must be reduced by the tread thickness to keep the top step level with the floor.
- Rounding too early: Round the rise and run only after all calculations. If you round the per-step values before computing the angle or length, you’ll get a slightly off cut.
- Not checking local codes: Building codes often specify maximum rise (7.75 inches) and minimum run (10 inches) for residential stairs. Your calculated values should fall within those limits; if not, adjust the total run or number of steps.
How to Choose the Right Stringer Layout
The calculator gives you one layout based on your inputs, but you have flexibility. If the rise per step is too high, you need more steps – which means a longer total run. If the run per step is too short, you need a longer total run or fewer steps. For outdoor stairs, a run of 10 to 11 inches and a rise of 7 to 7.5 inches feels comfortable. For steep attic stairs, you might go up to 8 inches rise and 9 inches run, but that is not comfortable for regular use.
Also decide how many stringers you need. For a 36-inch-wide stair, three stringers are typical – one on each side and one in the middle. For wider stairs, add more stringers, spacing them no more than 18 inches apart. The calculator only computes the geometry; you choose the number of stringers based on width and load.
Safety and Building Code Considerations
Stair geometry directly affects safety. A rise that is too high or a run that is too short can cause trips and falls. Most residential building codes in the U.S. require a maximum rise of 7.75 inches and a minimum run of 10 inches, but check your local code because some areas have different limits. Also, all steps must be uniform – the difference between the tallest and shortest rise should be no more than 3/8 inch. The calculator ensures uniformity by dividing the total rise equally, but your actual measurements must be precise when cutting.
Use a framing square with stair gauges to mark the stringer accurately. Clamp the stringer securely and cut with a circular saw, stopping just at the corner and finishing with a handsaw to avoid cutting too deep. Always wear eye protection and follow the saw manufacturer’s safety instructions.
Alternatives to a Custom Stringer Calculator
If you don’t have access to a calculator, you can use the same formulas manually. Or you can buy pre-cut stringers from a lumberyard – they come in standard rise/run combinations (like 7-inch rise, 10-inch run) and are only suitable if your total rise matches a multiple of that rise. Another option is to use a construction calculator app that has stair functions built in, but the math is identical. For complex stairs with landings or winders, you’ll need a more advanced design tool or a professional carpenter.
Frequently Asked Questions
How do I measure total rise correctly?
Measure vertically from the finished floor at the bottom to the finished floor at the top. If you’re building a deck, measure from the top of the lower decking to the top of the upper decking. Use a level and a tape measure, and take the measurement at the location where the stairs will be – not at the house wall, because the ground may slope.
What is the ideal rise and run for stairs?
For residential stairs, a rise of 7 to 7.5 inches and a run of 10 to 11 inches is comfortable and meets most codes. The calculator uses 7.5 inches as a default for the initial step count, but you can adjust the total run to achieve a different run per step.
Why does the calculator show one less run than the number of steps?
Because the top step lands on the upper floor, so the horizontal distance is divided among the remaining steps. If you have 14 steps, there are 13 runs – the 14th step is the floor itself.
How many stringers do I need?
For a 36-inch-wide stair, use three stringers. For wider stairs, add one stringer for every additional 18 inches of width. The stringers should be spaced evenly to support the treads.
Can I use this calculator for outdoor deck stairs?
Yes, the geometry is the same. Just measure the total rise from the top of the lower decking to the top of the upper decking. For outdoor stairs, consider using pressure-treated lumber and a slightly longer run (11 inches) to feel more comfortable when carrying items.
What if my total run is not enough for the calculated steps?
You may need to increase the total run by extending the stairs outward, or you may need to reduce the number of steps by increasing the rise per step (but stay within code limits). If space is tight, consider a different stair layout, such as a switchback or spiral, which requires more complex design.
Related
Formula used
in rise | Total rise | in | 105 | 0 in run | Total run | in | 120 | 0 in tread | Tread depth | in | 10 | 0 out steps | Number of steps | - | ceil(rise / 7.5) | 0 out step_rise | Rise per step | in | rise / steps | 2 out step_run | Run per step | in | run / (steps - 1) | 2 out angle | Stringer angle | deg | atand(step_rise / step_run) | 1 out length | Stringer length | in | sqrt((step_rise * steps)^2 + (step_run * (steps - 1))^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.