ThisCalculator

Construction

Deck Stair Calculator: Rise, Run & Stringer Length

Updated · Standard formula, shown below

Number of risers 4
Riser height
7.50 in
Result
Tread run
12.00 in
Result
Stringer length
46.9 in
Result

Deck Stair Calculator: Rise, Run & Stringer Length

A deck stair calculator works out the number of steps, the rise and run of each step, and the total length of the stringer boards you need to build a staircase for your deck. You enter the total rise (deck height), the total run (horizontal distance), and the stair width, and it returns the tread depth, riser height, number of steps, and stringer length. This tool is essential for planning a safe, code-compliant stairway before you buy lumber.

Formula

The core formulas used by a deck stair calculator are:

  • Number of risers = ceil(Total rise / Maximum riser height). Most building codes cap riser height at 7.75 inches (196 mm).
  • Riser height = Total rise / Number of risers. This gives the actual height of each step.
  • Tread run = Total run / (Number of risers – 1). The number of treads is one less than the number of risers because the top step lands on the deck.
  • Stringer length = sqrt(Total rise² + Total run²). This is the hypotenuse of the right triangle formed by the stairs.

Variables: Total rise (in inches or mm) is the vertical distance from the ground to the deck surface. Total run (in inches or mm) is the horizontal distance from the face of the deck to the point where the stairs meet the ground. Tread thickness is the actual thickness of the tread board (usually 1.5 inches for 2×6 or 2×12 lumber).

Worked Example

Using the defaults from the calculator: Total rise = 30 in, Total run = 36 in, Tread thickness = 1.5 in.

  1. Number of risers = ceil(30 / 7.75) = ceil(3.87) = 4
  2. Riser height = 30 / 4 = 7.5 in
  3. Tread run = 36 / (4 – 1) = 36 / 3 = 12 in
  4. Stringer length = sqrt(30² + 36²) = sqrt(900 + 1296) = sqrt(2196) ≈ 46.9 in

So for a 30-inch high deck with a 36-inch horizontal run, you need 4 risers (each 7.5 inches high), 3 treads (each 12 inches deep), and stringers about 47 inches long. The calculator rounds the stringer length to 1 decimal place, giving 46.9 in.

How to Use a Deck Stair Calculator

Using a deck stair calculator is straightforward, but you need accurate measurements. Follow these steps:

  • Measure the total rise from the ground to the top of the deck surface. Use a level and a tape measure.
  • Decide on the total run you want. This is often limited by available space. A common rule is that the sum of two risers and one tread should be between 24 and 25 inches (for example, 7.5 + 7.5 + 10 = 25).
  • Enter the tread thickness if your calculator asks for it. This matters when cutting stringers because the tread is notched out, and the actual rise includes the tread thickness.
  • Read the outputs: number of risers, riser height, tread run, and stringer length.
  • Check that the riser height is between 4 and 7.75 inches and the tread depth is at least 10 inches (per most US codes). If not, adjust the total run.

Common Mistakes and Misconceptions

One big mistake is forgetting that the number of treads is one less than the number of risers. People often cut the same number of treads as risers, which makes the top step too deep or the bottom step too shallow. Another common error is measuring the total rise from the ground to the top of the decking boards, but then subtracting the tread thickness when cutting stringers. The calculator accounts for this if you enter the tread thickness, but if you don’t, your risers will be too tall.

A widespread misconception is that the stringer length is the same as the length of lumber you need to buy. Actually, you need to buy stringer boards longer than the calculated stringer length because you have to cut the notches and leave extra at the top and bottom for attachment. Add at least 6 inches to the calculated length for safety.

Building Code Basics

Most residential building codes in the US follow the International Residential Code (IRC) for stairs. Key requirements include:

  • Maximum riser height: 7.75 inches (196 mm)
  • Minimum riser height: 4 inches (102 mm)
  • Minimum tread depth: 10 inches (254 mm) measured from nosing to nosing
  • Maximum variation between risers or treads: 3/8 inch (9.5 mm)
  • Handrails required if there are 4 or more risers
  • Minimum stair width: 36 inches (914 mm) above the handrail

These are minimums; your local code may be stricter. Always check with your local building department before construction.

Stringer Layout and Cutting

Once you have the rise and run from the calculator, you need to lay out the stringers on a 2×12 board. Use a framing square with stair gauges to mark the notches. The vertical cut is the riser height, and the horizontal cut is the tread run (minus the tread thickness if you’re using a 2×6 tread). A common mistake is to cut the notch too deep, weakening the stringer. The remaining wood at the back of the notch should be at least 3.5 inches thick for a 2×12 stringer. Always use a stringer that is at least 2×12 to have enough material for the notches.

Alternatives to a Calculator

If you don’t have a calculator, you can use the rise/run formula manually. First, divide the total rise by 7.75 and round up to get the number of risers. Then divide the total rise by that number to get the actual riser height. For the tread, use the rule that 2 × riser + tread = 25 inches (or 24-25 range). So tread = 25 – (2 × riser). For example, with a 7.5-inch riser, tread = 25 – 15 = 10 inches. Then multiply the tread by (number of risers – 1) to get the total run. This method works but is more prone to arithmetic errors, especially with irregular measurements.

When to Use a Professional

While a deck stair calculator gives you the basic dimensions, there are situations where you should consult a professional:

  • If the total rise is more than 8 feet, because longer stairs often require a landing mid-way.
  • If the ground is sloped or uneven, requiring custom stringer adjustments.
  • If you are building a curved or spiral staircase.
  • If the deck is more than 30 inches above the ground, because guardrails and handrails have specific requirements.
  • If you are unsure about the structural integrity of the ground or the deck attachment.

Frequently Asked Questions

How many stringers do I need for a deck stair?

For a typical residential deck, you need at least 3 stringers for a stair width of 36 inches. Spacing between stringers should be no more than 18 inches on center. For wider stairs, add more stringers. For example, a 48-inch wide stair would need 4 stringers.

What is the maximum rise for a deck stair?

Most building codes cap riser height at 7.75 inches. This is to ensure comfortable and safe stepping. Some local codes may allow up to 8 inches, but 7.75 is the common standard. Always verify with your local code.

Can I use 2×10 lumber for stair stringers?

Technically, you can, but it’s not recommended. A 2×10 stringer leaves less than 3.5 inches of wood after cutting the notches, which can weaken the stringer. Building codes often require stringers to be at least 2×12. Use 2×12 for safety.

How do I measure the total rise for a deck stair?

Measure from the ground where the stairs will land to the top surface of the deck flooring. Use a level to ensure the measurement is vertical. If the ground is sloped, measure at the point where the front edge of the bottom step will be, and consider excavating to level the landing.

What is the ideal tread depth for a deck stair?

The minimum is 10 inches, but 11 to 12 inches is more comfortable. The formula 2 × riser + tread = 25 inches gives a comfortable ratio. For example, a 7.5-inch riser pairs well with a 10-inch tread, but a 7-inch riser pairs better with an 11-inch tread.

Do I need a landing at the bottom of the deck stairs?

Yes, most codes require a landing at the bottom that is at least as long as the stair width (typically 36 inches). The landing should be level, solid, and drain away from the stairs. This provides a safe transition from the stairs to the ground.

Related

Formula used
in h | Total rise | in | 30 | 0
in r | Total run | in | 36 | 0
in t | Tread thickness | in | 1.5 | 0
out n | Number of risers | - | ceil(h / 7.75) | 0
out riser | Riser height | in | h / n | 2
out run | Tread run | in | r / (n - 1) | 2
out stringer | Stringer length | in | sqrt((h^2) + (r^2)) | 1

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.