Start calculating

Deck Stair Calculator

Last reviewed: November 2, 2026. Formulas checked against standard industry conversions. How we calculate.

Quick answer: For a typical 42-inch-high deck, you need 6 risers at 7 inches each, 5 treads, and about 55 inches of total run. Enter your deck height and this calculator works out the riser height, tread count, run and stringer length.

Deck Stair Calculator

Enter your measurements below. Results update when you change a value, or press Calculate.




Number of risers: 6

Actual riser height: 7.00 inches

Number of treads: 5

Total run: 55 inches (4 ft 7 in)

Stringer length (minimum): 69.2 inches (5.8 ft)

Stringers needed: 3

Note: A 2×12 board is the standard stringer stock. The stringer length above is the minimum straight length before cuts, so buy boards longer than this figure to allow for the top and bottom cuts and for trimming.

Estimates are for planning. Check local code before building.

How the Deck Stair Calculator Works

Deck stairs are worked out from the total rise, the height from the finished deck surface down to the ground or landing. Start with that one measurement and the rest follows in plain steps.

  1. Measure the total rise in inches, from the finished deck surface to the ground or landing where the bottom step will land.
  2. Divide the total rise by 7.75 inches, the maximum riser height under residential code, and round up. That gives the number of risers. For example, 42 divided by 7.75 is 5.42, which rounds up to 6 risers.
  3. Divide the total rise by the number of risers to get the actual riser height. All risers must be equal, so this single height is used for every step.
  4. Subtract one from the number of risers to get the number of treads. There is one fewer tread than riser because the deck surface itself acts as the top step.
  5. Multiply the number of treads by the tread depth to get the total run, the horizontal distance the stairs will cover.
  6. Work out the minimum stringer length with the diagonal formula: the square root of total rise squared plus total run squared. That is the straight length before the stair cuts are made.
  7. Work out stringers from the stair width. The calculator uses one stringer at each edge plus one for each full 16 inches of width, which is floor(width divided by 16) plus 1, with a minimum of 2 stringers. For a 36-inch-wide stair that gives 3 stringers.

Code notes: riser height must not exceed 7.75 inches under residential code, tread depth must be at least 10 inches under residential code, and all risers in a flight must be equal. The default tread depth of 11 inches meets the 10-inch minimum and gives a comfortable step. Always check your local code, since local rules can differ.

Planning the rest of the deck? Use our Deck Calculator for boards, joists and cost, and see how many deck boards you need for the deck surface itself.

Worked Examples

Example 1: A 42-inch-high deck

Total rise 42 inches, tread depth 11 inches, stair width 36 inches. Number of risers is 42 divided by 7.75, rounded up, which is 6 risers. Actual riser height is 42 divided by 6, which is 7.00 inches. Number of treads is 6 minus 1, which is 5 treads. Total run is 5 times 11, which is 55 inches. Stringer length is the square root of 42 squared plus 55 squared, which is 69.2 inches, about 5.8 feet. Stringers needed: 3, using a 2x12 board as standard stringer stock.

Example 2: A 28-inch-high deck

Total rise 28 inches, tread depth 11 inches, stair width 36 inches. Number of risers is 28 divided by 7.75, rounded up, which is 4 risers. Actual riser height is 28 divided by 4, which is 7.00 inches. Number of treads is 4 minus 1, which is 3 treads. Total run is 3 times 11, which is 33 inches. Stringer length is the square root of 28 squared plus 33 squared, which is 43.3 inches, about 3.6 feet. Stringers needed: 3, using a 2x12 board as standard stringer stock.

Frequently Asked Questions

How many steps do I need for a 3-foot deck?

A 36-inch deck needs 5 risers at 7.2 inches each and 4 treads. That is 36 divided by 7.75, rounded up to 5 risers, then 36 divided by 5, which is 7.2 inches per riser. With 11-inch treads, the total run is 4 times 11, which is 44 inches.

How do I measure total rise for deck stairs?

Measure straight down from the finished deck surface to the ground or landing where the bottom step will land. Use the finished surfaces, not the framing, so the finished deck boards and the finished landing surface are both included.

What size board should I use for deck stair stringers?

Use a 2x12 board for deck stair stringers. It is the standard stringer stock because it leaves enough solid wood below the stair cuts to carry the load. Buy boards longer than the minimum stringer length shown by the calculator.

How far apart should deck stair stringers be?

Space stringers about 16 inches apart, with one stringer at each edge of the stair. For a 36-inch-wide stair, that gives 3 stringers. Wider stairs need more stringers so no span between stringers is left unsupported.

Do deck stairs need a landing?

Often, yes, but the requirement varies by code, stair height and location, so check your local code before building. Where a landing is required, it must be level, firm and at least as wide as the stair.

Related Calculators

Related calculators

Also use the deck joist calculator and the deck footing calculator.

Ready to calculate?

Start with your measurements and get a material estimate in seconds.

Explore all calculators