Stair Stringer Calculator: Risers, Treads and Stringers

Find out how many steps your deck or porch stairs need, the exact riser height, the total run, and the stringer length. Enter the total rise and the layout updates as you type.

Side view of deck stairs showing total rise, total run, riser height, tread depth and the stringerTotal riseTotal runRiserTreadStringer
Total rise

From the ground or landing to the top of the deck or floor.

in

The height of each step. Most U.S. codes allow up to 7 3/4 in.

in

At least 10 in. Two 5 1/2 in deck boards make 11 in.

in

36 in is a common minimum.

0
risers
0
in per riser

Your stairs

ItemAmountEst. cost
Treads (steps)00
Total run00
Stringer length00
Stringers, 2 × 1200
Tread boards00
Total00

Change prices

Example prices only. Enter what your store or supplier charges.

$
$

How this calculator works

  1. Risers: total rise ÷ the highest riser you want, rounded up. Then the total rise is split evenly, so every step is the same height.
  2. Treads: one fewer than the risers, because the deck or floor is the top step.
  3. Total run: treads × tread depth.
  4. Stringer length: the diagonal of the total rise and run (Pythagorean theorem). The board size adds at least 1 ft for the top and bottom cuts.
  5. Stringers: enough to keep them no more than 18 in apart across the stair width.
  6. Tread boards: 5 1/2 in wide deck boards, as many as fit each tread depth, cut to the stair width from 16 ft boards.

Stair code basics

Most U.S. towns use the International Residential Code (IRC). Typical limits:

RuleTypical limit
Riser height7 3/4 in or less
Tread depth10 in or more
Difference between steps3/8 in or less
Stair width36 in or more
Handrail4 or more risers; 34 to 38 in high
Stringer spacing (decks)18 in apart or less

Your local code is the final word. Many towns need a permit for deck stairs.

Example: deck stairs with a 3 ft rise

  1. 36 in ÷ 7.5 in = 4.8, so 5 risers
  2. 36 ÷ 5 = 7.2 in per riser
  3. 5 − 1 = 4 treads × 11 in = 44 in of total run
  4. Stringer: √(36² + 44²) = 56.9 in, about 4.7 ft, so buy 8 ft 2 × 12s
  5. A 36 in wide stair needs 3 stringers

Quick reference: common deck heights

With risers up to 7 1/2 in and 11 in treads.

Total riseRisersTreadsTotal run
1 ft 6 in3 × 6.00 in21.83 ft
2 ft 6 in4 × 7.50 in32.75 ft
3 ft5 × 7.20 in43.67 ft
4 ft7 × 6.86 in65.50 ft
5 ft8 × 7.50 in76.42 ft
6 ft10 × 7.20 in98.25 ft

Before you buy

  • Measure the rise where the stairs will land. Ground slopes, so measure straight down from the deck at the spot where the bottom step will sit.
  • Plan the landing. The bottom of the stringers needs a solid, level base, such as a concrete pad or pavers. Use the Concrete Calculator for a pad.
  • Pick straight boards. Sight down each 2 × 12 and skip any that are bowed, twisted or have big knots near the edge.
  • Use treated lumber outdoors. Deck stringers need pressure-treated lumber rated for exterior use, plus hangers or brackets at the top.

Common mistakes

  • Uneven first or last step. Cut the bottom of the stringer down by the tread thickness, or the first step ends up taller than the rest.
  • Measuring rise on sloped ground. Measure where the stairs will land, not next to the deck.
  • Cutting too deep. Stop the saw at the corner of each notch and finish with a hand saw so the stringer isn't weakened.
  • Too few stringers. Treads sag and bounce when stringers are more than 18 in apart.

Common questions

How many stairs do I need for my height?

Divide the total rise by your highest allowed riser, usually 7 3/4 inches or less, and round up. That's the number of risers. A 36 inch rise with risers up to 7 1/2 inches needs 5 risers of 7.2 inches and 4 treads.

What is the standard riser height and tread depth?

Most U.S. codes allow risers up to 7 3/4 inches and treads at least 10 inches deep. Many builders aim for about 7 to 7 1/2 inch risers and 10 to 11 inch treads.

How long should a stair stringer be?

Use the diagonal of the total rise and total run, then add at least a foot for the cuts. For a 36 inch rise and 44 inch run the diagonal is about 4.7 feet, so an 8 foot 2 × 12 works.

How many stringers do I need?

Keep stringers no more than 18 inches apart. A 36 inch wide stair needs 3 stringers, and a 48 inch wide stair needs 4.

When do stairs need a handrail?

Most codes need a handrail on at least one side when there are 4 or more risers, set 34 to 38 inches above the tread nosings.

Code limits from the International Residential Code (R311.7) as summarized in city stair guides such as White Bear Lake, MN. Stringer spacing from the American Wood Council's DCA 6 deck guide. Follow your local code. Reviewed November 2026.