Stringer length · angle · board to buy

Stair Stringer Formula (With Worked Examples)

Stringer length = √(total rise² + total run²). Enter your rise and tread depth to see the length, the angle and the board to buy, with every step worked out.

Dimensions

Results only. Fractions are rounded to the nearest 1/16 in, like a tape measure. Type values in the boxes below as decimals (10.5 for 10½).
Finished floor to finished floor.
The calculator picks the whole number of risers closest to this.
Leave on if the stair ends flush with the upper floor. Turn off to build a full tread at the top (treads = risers).

Treads and risers

Also shortens the first riser cut so every finished riser comes out equal.
How far the tread projects past the riser face.

Stringer

Loading 3D preview…
Drag: rotate · Wheel or pinch: zoom · Right-drag or two fingers: move
–
–
–
–
–
–
–
–
Printing and saving as PDF are free too. In the print window, choose “Save as PDF” as the destination.

Based on the 2021 IRC. Local codes may be stricter; confirm with your building department before building.

The formulas

risers = round( total rise ÷ target rise )
riser height = total rise ÷ risers
treads = risers − 1
total run = treads × tread depth
stringer length = √( total rise² + total run² )
angle = atan( riser height ÷ tread depth )

The first four lines are the same ones used in the stair rise and run calculator. The last two come from the right triangle the stair makes: rise is one leg, run is the other, and the stringer is the long side.

Worked example 1: a 108 in rise

Worked example 2: a short exterior stair

A porch step 30 in above the ground, with a 7 in target riser:

For an outdoor stair like this one, the deck stair stringer calculator starts from the deck height and adds the cutting steps.

Why the board you buy is not the same as the stringer

The diagonal is the length of the stair's slope line. A board has square ends, and the stringer has angled ends, so the shortest rectangular board that holds the whole stringer is slightly different from the diagonal. In example 1 the diagonal is 174.1 in, and the shortest board is 173.4 in. Close, but that is the minimum with no room for error, and boards come in 2 ft steps, so you buy a 16 ft length.

The throat matters as much as the length. On a 2×12 in example 1 it is 5 1/16". Notch depth is also why a stringer cut from a 2×10 needs a lower riser, as the tables in the stair stringer calculator show.

Material variants

Quick reference: rise to stringer length

These rows use a 7½ in target riser, 10½ in treads, a 2×12 and the same functions as the calculator above.

Total riseRisersRunStringer (diagonal)Shortest boardBuy
30 in 4 31 1/2" 43 1/2" 42 1/2" 8 ft
42 in 6 4' 4 1/2" 5' 7 1/4" 5' 6 7/16" 8 ft
60 in 8 6' 1 1/2" 7' 10 7/8" 7' 10 1/8" 8 ft
80 in 11 8' 9" 11' 0" 10' 11 5/16" 12 ft
96 in 13 10' 6" 13' 2 3/8" 13' 1 11/16" 14 ft
108 in 14 11' 4 1/2" 14' 6 1/16" 14' 5 3/8" 16 ft
120 in 16 13' 1 1/2" 16' 6" 16' 5 5/16" 18 ft

For code limits on the riser and tread, see the IRC stair code page, and for typical values by ceiling height, standard stair dimensions.

Frequently asked questions

How long is a stringer for a 9 ft rise?

For a 108 in rise with 7½ in risers and 10½ in treads, the diagonal is 14' 6 1/16". The shortest square-ended board that holds the stringer is 14' 5 3/8" on a 2×12, so you buy a 16 ft board.

What angle is a standard stair?

Between about 30° and 37°. A 7½ in riser with a 10 in tread is 36.9°, and a 7½ in riser with a 10½ in tread is 36.3°. The pitch is arctan of the riser height divided by the tread depth.

Do I need a 2×12 for stringers?

Often, yes. A 2×10 leaves less wood under the notch, so it only works for smaller risers. The throat for the board you choose is shown in the calculator, and the tables in the stair stringer calculator list the largest riser each board allows.

How do I calculate the board length to buy?

Find the shortest board that holds the whole stringer, then round up to the next standard length: 8, 10, 12, 14 or 16 ft (and longer for tall stairs). The calculator shows that minimum length. Leave a little extra if you are cutting your first stringer, so a slip does not cost a whole board.

What is the throat of a stringer?

The throat is the wood left under the deepest notch, measured straight down to the bottom edge of the board. It is where a stringer is weakest. Many builders want at least 3½ in indoors and about 5 in outdoors, as rules of thumb rather than code numbers.

Related stair pages

These formulas plan the layout. They do not size a stringer for a load. Confirm the details with your local building department before you cut.