Deck Stair Calculator

Deck Stair Calculator

Popular AI Skill PRO

Enter Calculation

Formula

L=R2+T2where{N=⌈Total RiseRiser Height⌉R=Total RiseT=(N−1)·Run per Step\begin{gathered} L = \sqrt{R^{2} + T^{2}} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} N &= \left\lceil \dfrac{\text{Total Rise}}{\text{Riser Height}} \right\rceil \\ R &= \text{Total Rise} \\ T &= (N - 1)\cdot \text{Run per Step} \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Deck Stair Calculation
Number of Steps:
6
Actual Riser Height:
6 inches
Total Run:
50 inches
Stringer Length:
61.61 inches
Based on your inputs:
Total Rise: 36 inches
Run per Step: 10 inches
Desired Riser Height: 7 inches

Report an error on this page

What the Deck Stair Calculator Does

This free calculator helps you plan the stairs that connect your deck to the ground. By entering three simple measurements, it works out how many steps you need, the exact height of each step, the total horizontal distance the stairs will cover, and the length of the diagonal stringer board that supports the treads. Measurements are in inches, following common U.S. deck-building conventions.

Side view diagram of deck stairs showing total rise, total run, riser height, tread run, and stringer length
Key deck-stair measurements: total rise, total run, riser height, tread run, and the diagonal stringer.

The Inputs Explained

  • Total Rise (inches): The vertical distance from the top of the deck surface down to the ground or landing where the stairs will rest.
  • Run per Step (inches): The horizontal depth of each tread (how far you step forward on each step). A typical comfortable run is 10–11 inches.
  • Desired Riser Height (inches): The target height of each individual step. Many building codes cap risers around 7.75 inches, so 7 inches is a common goal.

The Formula Behind the Results

The calculator uses straightforward geometry:

  • Number of Steps = round up of \(\left\lceil \dfrac{\text{Total Rise}}{\text{Desired Riser Height}} \right\rceil\). Rounding up ensures no single riser exceeds your target.
  • Actual Riser Height = \(\dfrac{\text{Total Rise}}{\text{Number of Steps}}\). This evens out the height so every riser is identical.
  • Total Run = \((\text{Number of Steps} - 1) \times \text{Run per Step}\). The top step lands on the deck, so there is one fewer tread than risers.
  • Stringer Length = \(\sqrt{\text{Total Rise}^{2} + \text{Total Run}^{2}}\) — the Pythagorean diagonal of the staircase.

$$ L = \sqrt{R^{2} + T^{2}} $$

$$ \text{where}\quad \left\{ \begin{aligned} N &= \left\lceil \dfrac{\text{Total Rise}}{\text{Riser Height}} \right\rceil \\ R &= \text{Total Rise} \\ T &= (N - 1)\cdot \text{Run per Step} \end{aligned} \right. $$

Advertisement
Right triangle diagram relating total rise, total run, and stringer length
The stringer length is the hypotenuse of a right triangle formed by the total rise and total run.

Worked Example

Suppose your deck sits 36 inches above the ground, you want a 10-inch run per step, and a desired riser height of 7 inches.

  • Number of Steps = \(\lceil 36 \div 7 \rceil = \lceil 5.14 \rceil =\) 6 steps
  • Actual Riser Height = \(36 \div 6 =\) 6 inches per riser
  • Total Run = \((6 - 1) \times 10 =\) 50 inches
  • Stringer Length = \(\sqrt{36^{2} + 50^{2}} = \sqrt{1296 + 2500} = \sqrt{3796} \approx\) 61.6 inches

So you would cut a stringer about 61.6 inches long, with six equal 6-inch risers and five 10-inch treads.

Typical Deck Stair Dimensions and Code Limits

The figures below follow the International Residential Code (IRC), which is used in much of the United States for one- and two-family homes. Other countries use different rules, and local jurisdictions often amend the IRC, so check with your local building department before you build.

Item IRC guidance
Maximum riser height 7.75 in
Minimum tread depth (run) 10 in
Variation between adjacent risers or treads No more than 3/8 in
Minimum stair width 36 in
Landing required When the vertical rise exceeds 12 ft 7 in

Other IRC requirements may also apply to your stairs. These include a handrail on at least one side of stairs with four or more risers (typically 34 to 38 in high), guards on open sides of high decks, and minimum headroom. Confirm the details locally.

Comfortable Range

Stairs outside and inside the code limits can feel very different. Most builders aim for a comfortable range of:

  • Riser height: 6.5 to 7.5 in
  • Tread depth: 10 to 11 in

Keep every riser as close to identical as possible. Uneven steps are a common trip hazard and can fail inspection.

Advertisement

Comparing Common Deck Heights

The table uses a desired riser height of 7 in and a run of 10 in per step. The calculator uses these formulas:

$$N = \left\lceil \frac{ \text{Total Rise} }{ \text{Riser Height} } \right\rceil,\quad T = (N-1)\cdot \text{Run},\quad L = \sqrt{R^{2} + T^{2}}$$

Here N is the number of steps (risers). Actual riser height is the total rise divided by N. There is one fewer tread than risers, because the deck surface acts as the top step. All values are in inches.

Total rise (in) Number of steps (N) Actual riser height (in) Total run (in) Stringer length (in)
24 4 6.00 30 38.42
30 5 6.00 40 50.00
36 6 6.00 50 61.61
42 6 7.00 50 65.30
48 7 6.86 60 76.84
60 9 6.67 80 100.00

Example for the 36 in row: \(N = \lceil 36 / 7 \rceil = \lceil 5.14 \rceil = 6\), \(T = (6-1)\cdot 10 = 50\), and \(L = \sqrt{36^{2} + 50^{2}} = \sqrt{3796} \approx 61.61\) in.

Rounding up the number of steps makes each riser shorter than the 7 in target. That keeps you under the 7.75 in code maximum.

Frequently Asked Questions

Why is the actual riser height different from what I entered? Because the number of steps must be a whole number, the total rise is divided evenly across the rounded-up step count, giving a slightly smaller, uniform riser.

Why is the total run based on steps minus one? The uppermost riser meets the deck edge, so there is always one more riser than there are horizontal treads.

Is the stringer length the board I need to buy? It is the diagonal cut line. Buy a board a few inches longer to allow for end cuts and the attachment to the deck and ground.

Last updated:

Most popular in Industry-Specific

View all Industry-Specific calculators