Skip to content
Measured Yard

Stair and Stringer Calculator

Measure from the ground to the top of the deck or floor. You get the number of steps, the exact riser height, the run, the stringer length and angle, and the boards to buy.

Your project

Measure plumb from the spot where the bottom step lands to the top of the deck or floor.

in

The US code (IRC) allows up to 7 3/4 in. Risers of 7 to 7.5 in are easier to climb.

in

At least 10 in under the IRC. 11 in feels better outdoors.

in

At least 36 in (91 cm) for most stairs under the IRC.

ft
Fine tune

Two 5.5 in deck boards make one tread of about 11 in. A 2x12 makes a single tread.

You need

5steps

Risers (steps up)

Each riser
7.2 in
Treads
4
Total run
40 in
Stringer length
53.8 in
Stair angle
35.8 degrees
Stringers
4
Tread boards
8

Stairs with four or more risers need a handrail on at least one side (IRC R311.7.8), 34 to 38 in (86 to 97 cm) above the tread nosings.

Shopping list

  • Stringer boards, 8 ft long4 boards · 2x12
  • Tread boards, cut 3 ft long8 boards · 5.5 in

Counts are rounded up so you are never short.

Stairs: common sizes at a glance

Worked out with the calculator above, including its default waste allowance. Your own numbers go in the calculator.

ProjectRisers (steps up)What to buy
24 in4 steps4 boards (2x12) · 6 boards (5.5 in)
36 in5 steps4 boards (2x12) · 8 boards (5.5 in)
48 in7 steps4 boards (2x12) · 12 boards (5.5 in)
60 in8 steps4 boards (2x12) · 14 boards (5.5 in)
96 in13 steps4 boards (2x12) · 24 boards (5.5 in)

How to calculate stairs

  • Risers: divide the total rise by the highest riser you allow and round up.
  • Riser height: divide the total rise by the number of risers, so every step is the same.
  • Treads: one less than the risers, because the deck or floor is the top step.
  • Total run: treads × tread depth.
  • Stringer length: the diagonal, √(rise² + run²).

A deck 36 in above the ground: 36 ÷ 7.75 = 4.6, so 5 risers of 7.2 in (just over 7 3/16 in). Four treads of 10 in make a 40 in run, the stringer is √(36² + 40²) = 53.8 in long and the stair climbs at 35.8 degrees.

Total riseRisersRiser heightTreadsRunStringer
18 in36 in220 in26.9 in
24 in46 in330 in38.4 in
30 in47.5 in330 in42.4 in
36 in57.2 in440 in53.8 in
48 in76.86 in660 in76.8 in
60 in87.5 in770 in92.2 in
72 in107.2 in990 in115.3 in
96 in137.38 in12120 in153.7 in

The table uses a 7 3/4 in maximum riser and 10 in treads. In metric, a 90 cm rise with 19 cm risers gives 5 risers of 18 cm, 4 treads of 28 cm and a 112 cm run.

Stringers and treads

  • Stringers: cut from 2x12 lumber, spaced no more than 16 in (40 cm) apart. A 36 in stair takes 4, a 60 in stair 5. Some composite tread makers ask for 12 in: check the install guide.
  • Stringer stock: buy boards longer than the stringer length. 2x12s are usually sold from 8 ft in 2 ft steps.
  • Treads: boards cut to the stair width. Two 5.5 in boards with a small gap make an 11 in tread; one 2x12 makes a single tread.

Measure the rise where the bottom step will actually land, not at the house. On sloped ground the rise changes, and the IRC allows only 3/8 in of difference between the tallest and the shortest riser in a flight.

Code limits at a glance

Rule (IRC, US homes)LimitMetric
Riser height7 3/4 in max19.7 cm
Tread depth10 in min25.4 cm
Stair width36 in min91 cm
Headroom6 ft 8 in min2.03 m
Rise between landings12 ft 7 in max3.84 m
Handrail4 or more risers, 34 to 38 in high86 to 97 cm

Other countries use similar limits. A common comfort check anywhere: two risers plus one tread should add up to about 24 to 25 in (61 to 64 cm).

Questions people ask

How many steps do I need for a 3 ft rise?

Five risers of 7.2 in and four treads, because the deck itself is the top step. With 10 in treads the stair runs 40 in out from the deck.

How long is a stair stringer?

The diagonal of the rise and the run: √(rise² + run²). For a 36 in rise and a 40 in run that is 53.8 in, so an 8 ft 2x12 makes one stringer.

How many stringers do I need?

Enough to keep them no more than 16 in apart: 4 for a 36 in or 48 in wide stair, 5 for 60 in. Composite treads often need them 12 in apart.

What is a good stair angle?

Between 30 and 37 degrees. Risers of 7 in with 11 in treads give 32.5 degrees, an easy outdoor stair. The IRC maximum riser on a minimum tread is close to 38 degrees.

Sources and data

  • International Residential Code 2021, Section R311.7 (stairways)
  • Comfort rule for stairs: two risers plus one tread of about 24 to 25 in (61 to 64 cm)

Last reviewed November 16, 2026 · How we calculate

Next steps in your project