Stair Stringer Calculator: Risers, Treads & Code Check
Measure the total rise, from the ground or finished floor where the stairs will land up to the top surface they reach, and this stair calculator works out the rest: how many steps, the exact riser height, total run, stringer length, and whether the design passes the usual US residential code limits. It also draws the stringer to scale and gives you the numbers to set on a framing square for the layout.
How the calculator works
Risers = total rise ÷ max riser height, rounded up. Rounding up keeps every step at or below your maximum. Then the exact riser height is the total rise divided by that number of risers, so every step is identical. Code allows no more than 3/8 inch difference between the tallest and shortest riser, and a step that's even slightly off is the one people trip on.
Treads = risers - 1. The top step is the deck or landing itself, so a stair with 5 risers has 4 treads cut into the stringer. Total run = treads × tread run.
Stringer length = the diagonal of total rise and total run (the Pythagorean theorem). The calculator adds a foot for the top and bottom cuts and rounds up to the next standard lumber length, so you know which boards to buy.
Throat = board depth minus the notch depth. Each notch cuts into the board by (riser × run) ÷ the diagonal of one step. What's left under the notches is the throat, and it's what carries the load. Most guides want at least 3-1/2 inches, and 5 inches is better. If the throat comes out too thin, use a 2x12 instead of a 2x10 or make the steps shallower.
The code rules (US residential)
These are the International Residential Code (IRC) limits most US towns adopt. Your local code can differ, so check with your building department before you build.
| Rule | IRC limit |
|---|---|
| Riser height | 7-3/4 in maximum |
| Tread depth (run) | 10 in minimum, measured nosing to nosing |
| Riser/tread variation | No more than 3/8 in between the largest and smallest in a flight |
| Stair width | 36 in minimum |
| Headroom | 6 ft 8 in minimum, measured from the line of the nosings |
| Handrail | Required on at least one side with 4 or more risers, 34-38 in above the nosings |
| Nosing | 3/4-1-1/4 in on solid-riser stairs where tread is less than 11 in |
The calculator also checks the comfort rule: two risers plus one tread should add up to about 24-25 inches. That's a normal walking stride, and it's why a 7-1/2 inch riser feels right with a 10 inch tread while a 5 inch riser needs a much deeper one. Outdoor stairs are often built a bit shallower and deeper (around 7 inch risers with 11 inch treads) because they're easier to walk on in boots and on wet wood.
How to lay out and cut a stringer
- Mark the steps with a framing square. Clamp stair gauges (small clips) on the square at the riser height on the tongue (the short arm) and the tread run on the blade (the long arm). The calculator gives both numbers. Starting at one end of the board, trace along the square, slide it along the edge to where the last mark ended, and repeat for every step.
- Drop the stringer. Cut the tread thickness off the bottom of the stringer. Treads sit on top of the stringer and add their thickness to every step, but the bottom step would end up taller than the rest if you skipped this. Trimming the bottom evens it out.
- Cut with a circular saw, and finish with a handsaw. Stop the circular saw at the lines, because running past them weakens the throat. Finish each inside corner with a handsaw or jigsaw.
- Use the first stringer as a template. Test it in place, check it with a level, then trace it onto the other boards so every stringer is identical.
- Space the stringers. 16 inches on center is a safe default for 5/4 decking treads; thicker 2x treads can span more, so check the tread maker's span or your local code. A 36 inch wide stair usually gets three or four stringers.
For outdoor stairs, use pressure-treated lumber rated for ground contact where the stringers sit near the soil, rest them on a concrete pad rather than bare ground, and seal the cut ends. Once the stairs are built, make them non-slip, and when it's time to finish them the deck stain calculator works out how much you need.
Frequently Asked Questions
How many steps do I need for a 3 foot rise?
For 36 inches of rise and a 7-1/2 inch maximum riser, you need 5 risers of 7.2 inches each, which means 4 treads cut into the stringer. With 10-1/2 inch treads, the total run is 42 inches.
How many steps for a 4 foot deck?
48 inches ÷ 7.5 = 6.4, so round up to 7 risers of about 6.86 inches, with 6 treads. With 10-1/2 inch treads, the stairs run 63 inches out from the deck.
What size lumber do I need for stair stringers?
2x12 is the standard for stringers, because it leaves enough wood under the notches after cutting. A 2x10 only works for short flights with shallow steps. Check the throat depth in the calculator: at least 3-1/2 inches, ideally 5.
How far apart should stair stringers be?
16 inches on center is a safe default for 5/4 decking treads. Thicker 2x treads can span farther, but check the tread maker's span or your local code. For a 36 inch wide stair, that's 3 or 4 stringers.
Why is my bottom step taller than the others?
The stringer wasn't dropped. The treads add their thickness to every step, but the bottom one gets the full amount while the top doesn't. Cut the tread thickness off the bottom of the stringer before installing it.
Related tools
Figuring out the lumber for the whole project? The lumber calculator and the board foot calculator handle the order. For finishing indoor stairs, see how to sand stair spindles.