Deck 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 deck stringer calculator works out the exact rise and run for each stair step on a deck, plus the number of stringers you need and the total length of each stringer board. You enter the total rise (deck height), total run (horizontal distance), desired step height, and stringer spacing, and it returns the individual step rise, step run, number of steps, and stringer length. It uses the standard stair geometry formula so you can cut stringers with confidence.
Formula
The core formula is the Pythagorean theorem applied to the stair triangle. Each step has a vertical rise (R) and a horizontal run (T). The stringer is the hypotenuse of that triangle, and the total stringer length is the hypotenuse of the full stair triangle:
Stringer Length = √(Total Rise² + Total Run²)
Where:
- Total Rise (in inches) – vertical distance from the ground to the deck surface.
- Total Run (in inches) – horizontal distance the stairs cover, from the deck edge to the landing point.
- Step Rise (in inches) – vertical height of each step, calculated as Total Rise ÷ Number of Steps.
- Step Run (in inches) – horizontal depth of each step (tread depth), calculated as Total Run ÷ Number of Steps.
- Number of Steps – the smallest whole number that makes the step rise ≤ your maximum allowed rise (often 7.75 inches).
All measurements are in inches because that’s the standard for stair framing in the US. If you work in metric, convert to inches first (1 inch = 25.4 mm) or use centimeters consistently.
Worked Example
Using the default values: Total Rise = 30 in, Total Run = 36 in, Max Rise = 7.75 in, Stringer Spacing = 16 in.
- Number of steps = ceil(30 / 7.75) = ceil(3.87) = 4 steps.
- Step rise = 30 / 4 = 7.5 in.
- Step run = 36 / 4 = 9 in.
- Stringer length = √((7.5 × 4)² + (9 × 4)²) = √(30² + 36²) = √(900 + 1296) = √2196 ≈ 46.86 in.
- Number of stringers (for a 48-in wide deck) = ceil(48 / 16 + 1) = ceil(4) = 4 stringers.
The calculator returns Step Rise = 7.50 in, Step Run = 9.00 in, Number of Steps = 4, Stringer Length = 46.86 in, Number of Stringers = 4.
How to Use the Results
The step rise and step run tell you the exact dimensions to mark on a 2×12 board. The stringer length is the board’s minimum length before cutting – you’ll want a bit extra for the top and bottom connections. The number of stringers tells you how many boards to cut. For a typical residential deck, stringers are spaced 16 inches on center, but if you have a wide stairway or heavy use, 12 inches is safer. The step run is the horizontal depth of the tread; most building codes require at least 10 inches, but the calculator lets you input your own total run to match your space.
Common Mistakes and Misconceptions
- Mixing units: Always use inches for all inputs. If you measure the deck height in feet, multiply by 12 before entering.
- Forgetting the landing: The total run should include the landing depth if the stairs end on a concrete pad. Measure from the deck edge to the far edge of the landing.
- Rounding too early: Round the step rise to the nearest 1/16 inch only after you calculate the number of steps. Rounding before can create a cumulative error.
- Ignoring the top step: The top step is often the deck surface itself. Make sure your total rise is measured from the ground to the top of the decking, not the top of the joists.
Limitations of the Formula
The Pythagorean formula gives the hypotenuse length, but it doesn’t account for the thickness of the treads or the angle of the stringer cut. In practice, you’ll need to subtract the tread thickness from the bottom step or adjust the top step. Also, the formula assumes a straight run of stairs with no landings or turns. For L-shaped or U-shaped stairs, you need to break the run into segments. The calculator also doesn’t enforce building code minimums for tread depth or maximum riser height – you must check your local codes, which typically cap riser height at 7.75 inches and require tread depth of at least 10 inches. The number of stringers is a minimum estimate; for wide stairs (over 36 inches), you may need extra stringers to prevent bounce.
Alternative Methods
If you don’t have a calculator, you can use the “square method” with a framing square: set the square to the step rise and step run, then mark the board repeatedly. That’s the traditional method and still works. Another option is to use online calculators or apps, but they all use the same math. For complex staircases, a CAD program or stair design software can generate stringer layouts with angles and cuts. However, for a simple straight run, the calculator here gives you the core dimensions quickly.
Frequently Asked Questions
What is the standard rise and run for deck stairs?
Most building codes allow a maximum rise of 7.75 inches and a minimum run of 10 inches. Many builders use a 7-inch rise and an 11-inch run for comfort. The calculator lets you set your own maximum rise, but you should verify with your local code.
How many stringers do I need for a 6-foot wide stair?
For a 72-inch wide stair with 16-inch spacing, you’d need ceil(72/16 + 1) = 6 stringers. If you use 12-inch spacing, you’d need 7. Always round up to ensure support.
Can I use the stringer length as the board length?
The stringer length is the hypotenuse of the stair triangle, but you need a bit extra at the top and bottom for connections. A 2×12 board is usually 8 feet long, so for most decks, one board is enough. Always measure the actual board before cutting.
What if my total run is longer than the deck?
That’s fine – the stairs can extend beyond the deck footprint. Just measure the horizontal distance from the deck edge to the landing point, not the deck’s own width. The calculator uses the total run you enter.
Why does the calculator give a step rise that isn’t exactly what I wanted?
The calculator divides the total rise by the number of steps (rounded up) to keep each step equal. If you want a specific rise, you may need to adjust the total rise or accept a slightly different rise. For example, a 30-inch rise with 4 steps gives 7.5 inches, not 7.75.
Does the formula work for metric measurements?
Yes, but you must be consistent. If you enter centimeters for rise and run, the step rise and run will be in centimeters, and the stringer length will be in centimeters. The number of steps and stringers are unitless. Just don’t mix units.
Related
Formula used
in total_rise | Total rise (deck height) | in | 30 | 0 in total_run | Total run (horizontal) | in | 36 | 0 in max_rise | Max step rise | in | 7.75 | 0 in spacing | Stringer spacing | in | 16 | 0 out step_rise | Step rise | in | total_rise / ceil(total_rise / max_rise) | 2 out step_run | Step run | in | total_run / ceil(total_rise / max_rise) | 2 out num_steps | Number of steps | - | ceil(total_rise / max_rise) | 0 out stringer_len | Stringer length | in | sqrt((step_rise * num_steps)^2 + (step_run * num_steps)^2) | 2 out num_stringers | Number of stringers | - | ceil((deck_width / spacing) + 1) | 0
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.