Skip to content

How to Calculate Stair Stringer Length

The exact math behind a stringer length — the staircase triangle and Pythagoras — plus how to choose board size, keep the throat strong, and buy a little long.

A stringer is the hypotenuse of the staircase triangle

A whole staircase is one big right triangle. The vertical leg is the total rise, the horizontal leg is the total run, and the stringer — the diagonal board the treads sit on — is the hypotenuse. So the length of the stringer is exactly what the Pythagorean theorem gives you: stringer = √(total rise² + total run²). That is the entire formula. Everything else is getting the two legs right and adding a little for the cut and the fit.

The two legs come from your steps, not from a guess. The total rise is the floor-to-floor height. The total run is (number of treads) × (tread run) — note that the number of treads is one less than the number of risers, because the upper floor is the top step. For the canonical example flight the rise is 9′-7″ and the run is 13′-8¾″, which makes the stringer about 16′-9″ long. Generate your own rise and total run first with the stair rise and run calculator, then the stringer length is a single square-root away.

Work the formula by hand

  1. Get the total rise (floor to finished floor) and the total run ((treads) × (run)) from the stair rise and run calculator.
  2. Square each: total rise² and total run².
  3. Add them together.
  4. Take the square root of the sum — that is the diagonal stringer length, corner to corner.
  5. Add a few inches for the top and bottom plumb cuts and a margin to trim to fit.

A worked example, step by step

Take the example flight: total rise 9′-7″ (2.921 m) and total run 13′-8¾″ (4.185 m). Square the rise — about 8.53 m² — and the run — about 17.51 m². Add them for roughly 26.04, and the square root is about 5.10 m, or 16′-9″. That diagonal is the bare geometric length of the stringer, edge to edge along the slope.

It is worth noticing how much longer the stringer is than either floor dimension: nearly seventeen feet of board for a stair that is under ten feet tall and under fourteen feet long. That is why a stringer almost always has to be cut from a single long 2×12 (or two scarfed together for very tall flights) and why ordering the board too short is such a common, costly mistake. The stair stringer calculator runs this exact formula for you and reports the length, so you can buy the right board the first time.

The board has to be deeper than the diagonal

The diagonal length tells you how long the board is, but not how wide it has to be. Notching the steps removes material from one edge, and the strip of solid wood left behind the deepest notch — the throat — is what actually carries the load. Cut the throat too thin and the stringer cracks. The throat works out to: throat = board width − (rise × run) ÷ √(rise² + run²), and you want to keep at least 3½″ of it.

In practice this is what decides 2×10 versus 2×12. A 2×12 (about 11¼″ of real width) leaves a healthy throat at typical rise-and-run; a 2×10 may not once you notch a deep step. Steeper stairs make the throat worse, not better: a taller rise and a longer run both cut deeper into the board, so a flight that is steep enough to feel like a ladder is also the flight most likely to leave a dangerously thin throat. The stair stringer calculator computes the throat for your exact numbers and flags when it is getting thin, which is your signal to step up a board size rather than cutting deeper into a board that is too narrow. When even a 2×12 cannot leave a safe throat, the answer is a solid (housed) stringer — where the steps slot into routed grooves and nothing is removed from the load path — rather than forcing a deeper notch.

Don’t forget the cuts at each end

The √-formula gives the corner-to-corner diagonal of the step triangles, but a real stringer needs a little more board than that at both ends. The bottom gets a plumb cut and a seat cut where it meets the floor or footing, and the top gets a plumb cut where it hangs off the framing — and you also drop the bottom by one tread thickness so the finished risers come out equal (the bottom-riser drop covered in the cutting-stringers guide). None of that is in the bare hypotenuse, so add a few inches of length when you buy.

The cardinal rule with stringers: buy long and trim to fit. A board cut an inch short is firewood, while a board cut an inch long is a thirty-second pass with a saw. Order to the calculated diagonal plus a margin for the end cuts and a safety trim, and confirm the figure with the stair stringer calculator before you head to the lumber yard.

Pitch, comfort, and why the legs matter

The same two legs that set the stringer length also set the stair angle: angle = atan(rise ÷ run). A steeper stair (more rise per run) has a shorter total run, a shorter stringer, and a smaller footprint — but a steeper, less comfortable climb. A shallower stair eats more floor and a longer stringer but walks easier. The example flight lands at 9′-7″ over 13′-8¾″, a pitch of 33.2°, squarely inside the comfortable 30–37° band.

So before you lock in a stringer length, make sure the rise and run that feed it are themselves comfortable and legal. Check the pitch with the stair angle calculator and the steps with the stair rise and run calculator; for an outdoor flight off a deck, the deck stairs calculator runs the same stringer math with pressure-treated material and footing notes built in.

From length to a finished stringer

Once you have the length, the width (board size), and a comfortable pitch, the rest is layout and cutting — stepping off each rise and run with a framing square, keeping the throat, dropping the bottom riser, and cutting the notches clean. Our companion guide on cutting stair stringers walks that layout in full, and the stair stringer calculator prints a full-scale template you can lay straight on the 2×12 and trace.

Plan three stringers for a standard 36″-wide flight, four if you go wider or use thinner tread stock. Then price the boards, treads, and fasteners with the stairs cost calculator so the lumber order — the right length and the right count — is settled before you buy.

Run your numbers

Stair Stringer Calculator Get the exact stringer length, throat depth, recommended board size, and a step‑by‑step cut layout with framing‑square settings — then print a full‑scale template.

Related stair calculators

Written by the Stairs Calc editorial team. Methodology and code references: see our methodology.

Built and maintained by builders, drafters and engineers who plan stairs for a living — every code limit is transcribed from the published standard and cited to its exact section.

Last reviewed 2026-06-21 against IRC 2021/2024

Stairs Calc gives accurate geometry and checks it against published building-code limits, but results are estimates for planning. Codes are adopted and amended locally and change over time. Always confirm dimensions against your local adopted code and a licensed professional before you build.