Stair Stringer Calculator
Calculate stringer length, riser height, tread depth, and board length for deck stairs and interior staircases. Includes IRC R311.7 code compliance checks for riser height, tread depth, and net stringer depth.
Stair Layout
Stringers and Lumber
Affiliate link - we may earn a commission at no cost to you.
Affiliate link - we may earn a commission at no cost to you.
How to Use the Stair Stringer Calculator
Start with total rise. This is the finished vertical distance from the lower walking surface to the upper walking surface, not the rough framing height and not the height of a deck ledger alone. If flooring, decking, tile, or a landing surface will be added before final inspection, include that finished thickness in the measurement. A stringer layout is only as accurate as the rise measurement because every riser in the flight is derived from that one number.
| Input | What it controls | Field note |
|---|---|---|
| Total rise | Number of risers and actual riser height | Measure finished floor to finished floor |
| Tread depth | Total run and walking comfort | IRC minimum is 10 inches |
| Stair width | Recommended stringer count | 36 inches is the common residential minimum |
| Board size | Net stringer depth check | 2x12 is standard for most stairs |
SpecMath divides total rise by a 7-inch target riser height and rounds up to a whole number of risers. It then divides the total rise evenly by that riser count so every step lands at the same height. The IRC code panel checks maximum riser height, minimum riser height, minimum tread depth, and net stringer depth so you can spot common inspection problems before lumber is cut.
How to Calculate Stair Stringer Length
A stair stringer is the diagonal board that carries the stair treads and risers. Its length is based on a right triangle: total rise is the vertical side, total run is the horizontal side, and the stringer is the hypotenuse. After the structural length is known, you still need extra board length for layout, attachment, and field adjustment.
| Step | Calculation | Result |
|---|---|---|
| Risers | ceil(42 / 7) | 6 risers |
| Actual riser | 42 / 6 | 7.0 inches |
| Treads | 6 - 1 | 5 treads |
| Total run | 5 x 10.5 | 52.5 inches |
| Stringer length | sqrt(42^2 + 52.5^2) | 67.2 inches, or 5.60 ft |
| Board to buy | ((67.2 + 5.0) x 1.10) / 12 | 6.6 ft, so buy an 8 ft board |
The important detail is that treads are one fewer than risers. The top landing is already a walking surface, so a 6-riser stair normally has 5 treads. Counting 6 treads for that layout would make the stair too long and would change the stringer angle and board length.
IRC Stair Code Requirements (R311.7)
Residential stair rules are mostly about repeatability and safe footing. A stair that feels fine for one step can become dangerous if riser heights drift, tread depth is short, or the stringer loses too much material at the notches. The table below summarizes the code checks most relevant to the calculator. Local amendments can be stricter, especially for decks, exterior stairs, and stairs serving sleeping areas.
| Requirement | IRC Standard | Notes |
|---|---|---|
| Maximum riser height | 7.75 inches | IRC R311.7.5.1 - residential stairs |
| Minimum riser height | 4 inches | Very open risers may need guard railing |
| Minimum tread depth | 10 inches | IRC R311.7.5.2 - measured nose to nose |
| Riser consistency | Max 3/8 inch variation per flight | Most commonly failed inspection point |
| Minimum stairway width | 36 inches clear | Clear width above the handrail height |
| Net stringer depth | 3.5 inches minimum | IRC R311.7.4.1 - remaining after cuts |
| Handrail height | 34 to 38 inches | Measured vertically from tread nosing |
What Lumber Should You Use for Stair Stringers?
A 2x12 is the standard board for most residential stair stringers because it leaves the most solid wood after the tread and riser cuts are made. A nominal 2x12 is usually 11.25 inches deep, which gives the layout more room than a 2x10. That extra depth matters because stringer notches remove material exactly where the board needs strength.
| Board | Actual depth | Best use |
|---|---|---|
| 2x12 | 11.25 inches | Standard residential deck and interior stair stringers |
| 2x10 | 9.25 inches | Only low-rise layouts where the net depth check passes |
| 3x12 | 11.25 inches | Heavy duty work where additional thickness is specified |
Exterior deck stringers need lumber rated for the exposure condition. If the stringer touches concrete, soil, or sits within 6 inches of grade, use pressure-treated lumber suitable for ground-contact conditions. Pick straight, knot-free stock whenever possible. A large knot near a notch can become the weakest point in the entire stair because the notch already concentrates stress.
The Most Common Stair Stringer Mistakes
Most stair layout problems happen before the saw is plugged in. The math is unforgiving because a small error repeats across every step, and inspectors look closely at riser consistency. Before cutting expensive 2x12s, walk through the common failure points below.
- Measuring rough framing instead of finished floor to finished floor.
- Forgetting that treads equal risers minus one because the top landing is not a tread.
- Using 2x10 lumber when the net depth calculation does not leave 3.5 inches of solid wood.
- Forgetting tread thickness, which can require trimming the bottom riser to keep finished rises equal.
- Ordering exact stringer length instead of adding attachment allowance and waste.
- Letting a 1/4 inch layout error compound across the flight and exceed the 3/8 inch variation limit.
The safest habit is to mark one master stringer, verify it against the actual site, then use it as the template for the remaining stringers. Do not cut the full set until the first one fits the landing and lower bearing point correctly.
Professional Tips for Cutting and Installing Stair Stringers
Use a framing square with stair gauges for repeatable layout. Stair gauges are small clamps that lock the square to the exact rise and run, so every mark lands in the same place. Lay out from the bottom up and keep the pencil line consistent. When cutting, stay on the waste side of the line; cutting into the structural side changes the finished rise or run.
| Field habit | Why it helps |
|---|---|
| Use stair gauges | Keeps rise and run marks consistent across every step |
| Mark one master stringer first | Lets you test fit before duplicating errors |
| Account for tread thickness | Keeps the first finished riser equal to the rest |
| Support the stringer while marking | Prevents board flex and crooked pencil lines |
| Cut waste side only | Protects the exact calculated layout dimensions |
Stair Stringer Calculator FAQ
How do I calculate stair stringer length?
Use the Pythagorean theorem: stringer length equals the square root of total rise squared plus total run squared. For a stair with 42-inch total rise and 5 treads at 10.5 inches each, the total run is 52.5 inches and the stringer length is 67.2 inches, or 5.6 feet. Add attachment allowances and 10% waste, then round up to the next standard lumber length.
How many risers do I need for my stair height?
Divide your total rise in inches by 7 and round up to the nearest whole number. A 42-inch total rise divided by 7 equals exactly 6 risers, so the actual riser height is 7.0 inches. The number of treads is always one less than the number of risers because the top landing acts as the final step surface.
What is the IRC maximum riser height for stairs?
The International Residential Code sets the maximum residential stair riser height at 7.75 inches and the minimum riser height at 4 inches. Riser consistency also matters: no individual riser can vary more than 3/8 inch from another riser in the same flight. This variation limit is one of the most common reasons site-built stairs fail inspection.
How many stringers do I need?
A stair up to 36 inches wide needs at least two stringers, while stairs from 36 to 48 inches wide typically need three stringers. Wider stairs usually need four or more stringers so the treads do not flex under load. The calculator shows a width-based suggestion, but local code and tread material can require closer spacing.
What size lumber should I use for stair stringers?
Use 2x12 lumber for most residential stair stringers because it leaves the most solid wood after the tread and riser notches are cut. The IRC requires at least 3.5 inches of solid stringer depth to remain after notching. Exterior deck stairs should use pressure-treated lumber rated for the exposure condition, especially where the stringer is near soil or concrete.