How to Calculate and Build Deck Stairs

Building deck stairs is one of the most math-dependent tasks in residential construction. Every measurement connects to the next, and a single miscalculation can produce stairs that feel awkward underfoot, fail a building inspection, or create a genuine safety hazard. The good news is that the math is not complicated once you understand the terminology and the constraints set by building codes. This guide walks you through the entire process, from measuring your deck height to cutting your first stringer.

Why Getting Stair Math Right Matters

Stairs are one of the leading sources of falls and injuries in residential settings. The reason building codes are so specific about stair dimensions is not bureaucratic overreach; it is decades of injury data showing that inconsistent riser heights, shallow treads, and missing handrails directly cause accidents. When every step is exactly the same height, your body establishes a rhythm and your feet land where your brain expects them to. When one riser is even half an inch off, that rhythm breaks and you stumble.

Beyond safety, getting the math right matters for code compliance. In most jurisdictions, deck stairs require a permit and an inspection. If your risers exceed the maximum height, your treads fall short of the minimum depth, or your stairway lacks a proper landing, you will fail the inspection and have to tear out the work. That means wasted materials, wasted time, and the frustration of doing the job twice.

Comfort is the third reason to care about precision. Stairs built within the recommended rise-to-run ratio feel natural and effortless. Stairs that are too steep feel like climbing a ladder. Stairs that are too shallow feel like shuffling across a ramp. The difference between comfortable and uncomfortable stairs is often less than an inch per step, which is why careful calculation matters more than eyeballing.

Finally, accurate calculations help you estimate materials and costs before you buy a single board. Knowing your exact number of steps, stringer length, and total run lets you create a precise materials list, avoid extra trips to the lumber yard, and keep your project on budget.

Key Stair Terminology

Before you pick up a tape measure, you need to speak the language. Here are the essential terms you will encounter in every stair-building guide, code reference, and calculator:

  • Total Rise — The vertical distance from the ground (or landing surface) to the top of the deck surface. This is the single most important measurement for your entire stair calculation.
  • Rise (per step) — The vertical height of each individual step, measured from the top of one tread to the top of the next. Also called unit rise or riser height.
  • Run (per step) — The horizontal depth of each individual tread, measured from the face of one riser to the face of the next. Also called unit run or tread depth.
  • Total Run — The total horizontal distance the staircase covers from the bottom riser to the deck framing. This determines how far out from the deck your stairs will extend.
  • Tread — The horizontal board you step on. On deck stairs, treads are typically made from two 2x6 boards or composite decking.
  • Riser — The vertical face between treads. On deck stairs, risers are often left open (no riser board), though some codes require them for certain heights.
  • Stringer — The notched diagonal board that supports the treads and defines the stair shape. Stringers are the structural backbone of the staircase, typically cut from 2x12 pressure-treated lumber.
  • Nosing — The portion of the tread that overhangs the riser below. Nosing provides a slightly larger stepping surface and is typically between 3/4 inch and 1-1/4 inches.
  • Landing — The flat surface at the top or bottom of a staircase. For deck stairs, the bottom landing is usually a concrete pad, paver surface, or gravel area.

Building Code Requirements

The International Residential Code (IRC) sets the baseline for residential stair construction across most of the United States. Your local jurisdiction may adopt these standards as-is or modify them, so always check with your local building department before starting work. That said, the IRC requirements are the standard most inspectors enforce:

Requirement IRC Standard
Maximum riser height7-3/4 inches (7.75")
Minimum tread depth10 inches
Minimum stair width36 inches
Minimum headroom6 feet 8 inches
Handrail height34 to 38 inches
Maximum riser variation3/8 inch between any two risers
Landing requiredTop and bottom of stairway
Minimum landing depth36 inches (measured in direction of travel)

The maximum riser variation rule is particularly important. It means that if your tallest riser is 7.25 inches, your shortest riser cannot be less than 6.875 inches. In practice, this means every riser should be exactly the same height. Inconsistent risers are the single most common reason deck stairs fail inspection.

Note that handrails are required when there are four or more risers in most jurisdictions. Graspable handrails must have a cross-section that allows a person to wrap their hand around them, which means a standard 2x4 on its edge does not qualify. Purpose-built handrail profiles or round stock between 1-1/4 and 2 inches in diameter are typical solutions.

Step-by-Step Stair Calculation

Let's work through a complete example. Suppose your deck surface is 48 inches above the ground where the stairs will land. Here is how to calculate every dimension you need:

Step 1: Measure the Total Rise

Measure from the ground at the stair location straight up to the top of the deck surface. In our example, the total rise is 48 inches. Measure at the exact spot where the stairs will land, not near the house or at a different point along the deck. Ground is rarely perfectly level, and even an inch of slope changes your calculations.

Step 2: Determine the Number of Risers

Divide the total rise by a target riser height. A good starting point is 7.5 inches, which is comfortably under the 7.75-inch code maximum:

48 / 7.5 = 6.4 risers

You cannot have a fraction of a riser, so you need to round. Let's try rounding down to 6 risers first and see if the math works.

Step 3: Calculate the Actual Riser Height

Divide the total rise by the number of risers:

48 / 6 = 8 inches per riser

This exceeds the 7.75-inch maximum. These stairs would fail inspection. So we try 7 risers instead:

48 / 7 = 6.857 inches per riser (approximately 6-7/8 inches)

This is well within the code maximum of 7.75 inches. Seven risers it is.

Step 4: Calculate the Total Run

The number of treads is always one fewer than the number of risers because the deck surface itself serves as the final step. With 7 risers, you have 6 treads. Using the minimum code-compliant tread depth of 10 inches:

Total run = (7 - 1) x 10 = 60 inches (5 feet)

This means your stairs will extend 5 feet out from the face of the deck. Make sure you have adequate space for this horizontal distance plus the landing pad beyond it.

Step 5: Calculate the Stringer Length

The stringer runs diagonally from the deck to the landing. Use the Pythagorean theorem to find its length:

Stringer length = √(rise² + run²) = √(48² + 60²) = √(2,304 + 3,600) = √5,904 = 76.84 inches (approximately 6 feet 5 inches)

Since stringers are cut from lumber, you need boards at least this long. A standard 8-foot 2x12 provides 96 inches of length, which gives you plenty of material to work with. You can use our stair calculator to run these numbers instantly for any deck height.

The Comfort Rule

Building code tells you the minimum and maximum dimensions, but code-compliant stairs can still feel uncomfortable. The construction industry has long used a comfort rule to fine-tune the relationship between rise and run: the unit rise plus the unit run should equal approximately 17 to 18 inches.

Checking our example: 6.857 + 10 = 16.857 inches. This is very close to the 17-inch target, which means these stairs will feel natural and comfortable underfoot. If the sum falls significantly below 17, the stairs will feel like they have a long, flat reach between steps. If the sum is well above 18, the stairs will feel steep and cramped.

If your initial calculation produces a rise-plus-run that falls outside the 17-18 range, you have a few options. You can adjust the tread depth slightly (going to 10.5 or 11 inches, for instance), or you can try a different number of risers to shift the unit rise. The goal is a combination that satisfies both the building code and the comfort rule.

How to Cut Stringers

Once your calculations are complete, it is time to transfer those numbers onto lumber. Cutting accurate stringers is the most skill-intensive part of building deck stairs, but the right tools make it manageable even for intermediate DIYers.

Tools you need: a framing square, a set of stair gauges (brass clamps that attach to the framing square), a circular saw, a handsaw or jigsaw for finishing cuts, a pencil, and a tape measure.

Select your lumber. Stringers must be cut from 2x12 boards. After notching, the remaining wood above each notch (called the throat) must be at least 3.5 inches thick to maintain structural integrity. Using anything narrower than a 2x12 will not leave enough material.

Check for crown. Sight down the edge of the board and identify the crown, the slight natural bow in the lumber. Orient the crown side up. This way, the weight of foot traffic pushes against the bow rather than with it, helping the stringer stay straight over time.

Set the stair gauges. Clamp one gauge on the framing square's tongue at your unit rise measurement (6-7/8 inches in our example) and the other on the body at your unit run measurement (10 inches). These gauges create a repeatable template that ensures every notch is identical.

Mark the layout. Starting at one end of the board, align the framing square so both gauges contact the board edge. Draw a line along both the tongue and the body. Slide the square along the board so the tongue aligns with the last line you drew, and repeat. You will make this mark once for each riser in your staircase. Mark the plumb cut at the top (where the stringer meets the deck) and the seat cut at the bottom (where it rests on the landing).

Cut the notches. Use a circular saw to cut along your marked lines, but stop each cut short of the inside corner where the two lines meet. Overcutting weakens the stringer. Finish each corner with a handsaw or jigsaw for a clean, precise intersection. Cut your first stringer, test-fit it against the deck, and use it as a template for the remaining stringers.

Materials You Need

With your calculations done and your stringer count determined, here is a complete materials list for a standard set of deck stairs:

  • Stringers: 2x12 pressure-treated lumber. You need a minimum of three stringers for stairs up to 36 inches wide. For wider stairs, add a stringer every 16 inches on center. Our example requires three 8-foot 2x12 boards.
  • Treads: Two 2x6 pressure-treated or composite boards per step, or a single wide tread board designed for stair use. For 6 treads, that means twelve 2x6 boards cut to the stair width (typically 36 inches).
  • Risers (optional): 1x8 boards if your code or design requires closed risers. Many deck stairs leave risers open for drainage and aesthetics.
  • Stringer hangers: Galvanized or stainless steel stringer hangers (also called stair angles) attach the top of each stringer to the deck rim joist. These are structurally superior to toenailing.
  • Fasteners: Stainless steel or coated structural screws rated for pressure-treated lumber. Do not use standard interior drywall screws, which will corrode and lose holding strength within a year or two in exterior applications.
  • Concrete for landing pad: Premixed concrete bags for pouring a landing pad at the base of the stairs. A 36-inch by 36-inch pad that is 4 inches thick requires approximately 3 to 4 bags of 80-pound premixed concrete. Use our concrete calculator to determine the exact quantity for your landing dimensions.
  • Handrail and balusters: Required for stairs with four or more risers in most jurisdictions. Budget for posts, a graspable rail, and balusters spaced no more than 4 inches apart.

Landing Requirements

Every set of deck stairs needs a landing at the bottom. The landing serves two purposes: it provides a stable, level surface to step onto from the last stair, and it supports the base of the stringers so they do not sink into the ground over time.

The IRC requires a minimum landing depth of 36 inches, measured in the direction of travel. The landing must be at least as wide as the stairway it serves. For most deck stairs, a 36-inch by 36-inch concrete pad is the simplest and most durable solution.

Concrete pad option: Pour a 4-inch thick concrete slab on a compacted gravel base. Excavate the area to a depth of about 8 inches, fill the first 4 inches with compacted gravel for drainage, then pour the concrete on top. The pad should be level and positioned so the stringers land on it squarely.

Concrete footing option: In regions with deep frost lines, your building department may require a footing that extends below the frost line to prevent heaving. This typically means digging a hole 36 to 48 inches deep (depending on your local frost depth), filling it with concrete, and placing a pad or pier block on top.

Gravel base option: Some jurisdictions accept a compacted gravel pad for low-rise stairs, particularly where the total rise is less than 30 inches. A 4-inch layer of compacted 3/4-inch crushed stone on a landscape-fabric-lined excavation provides decent drainage and stability. Check with your local inspector before relying on gravel alone.

Regardless of the material, the landing surface must be level. An uneven landing creates an inconsistent final riser height, which is both a code violation and a trip hazard.

Common Mistakes to Avoid

Even experienced DIYers make errors on stair projects. Knowing the most common pitfalls helps you avoid them:

  • Inconsistent riser heights. This is the number one cause of failed stair inspections and the most dangerous defect. It usually results from inaccurate total rise measurement, rounding errors, or failing to account for the thickness of the tread material. Double-check your total rise measurement and verify that your calculated riser height, multiplied by the number of risers, equals the total rise exactly.
  • No landing pad. Setting stringers directly on bare ground or on a few loose pavers is a code violation. The stringers will settle unevenly, the bottom step height will change over time, and the entire staircase will shift. Pour a proper landing pad or install a code-compliant alternative.
  • Wrong lumber. Stringers must be pressure-treated lumber rated for ground contact if any part of the stringer will be near the ground. Standard framing lumber will rot within a few years in exterior applications. Similarly, all fasteners and hardware must be rated for use with pressure-treated wood.
  • Inadequate stringer support. Two stringers might hold weight during a quick test, but they will flex and eventually fail under regular use. Three stringers is the minimum for a 36-inch-wide stairway, and wider stairs need more. The top connection is equally critical. Stringer hangers bolted to the rim joist are far stronger than toenailed connections.
  • Overcutting stringer notches. Running your circular saw past the intersection of the rise and run lines weakens the stringer at that point. Always stop the circular saw short and finish with a handsaw. The extra two minutes per cut is worth the structural integrity.
  • Skipping the permit. Deck stairs almost always require a permit. Building without one can result in fines, required demolition, and complications when you sell your home. The permit process also gives you access to an inspector who can catch problems before they become expensive to fix.

When to Call a Professional

Not every deck stair project is a DIY candidate. Consider hiring a licensed contractor in these situations:

  • Complex configurations. L-shaped stairs, U-shaped stairs, stairs with intermediate landings, or stairs that wrap around corners involve compound angle calculations and custom framing that go beyond basic stringer layout.
  • Code uncertainty. If your local code has specific requirements you do not fully understand, such as frost line footings, engineered stringer specifications, or unusual handrail mandates, a contractor who regularly pulls permits in your area will navigate these efficiently.
  • Structural concerns. If your deck rim joist is rotted, undersized, or improperly attached to the house, adding stairs creates additional load on a compromised structure. A professional can assess the existing framing and make necessary repairs before building stairs.
  • Height and exposure. Stairs descending from second-story decks or decks on steep slopes involve significant fall risks during construction and require robust guardrail systems. The consequences of a structural failure at these heights are severe.
  • Time and confidence. If you are not comfortable with a circular saw, have never used a framing square for stair layout, or simply do not want to invest the learning curve, there is no shame in hiring someone who does this daily. A professional crew can typically build a standard set of deck stairs in a single day.

Frequently Asked Questions

What is the maximum riser height for residential stairs?

The International Residential Code (IRC) sets the maximum riser height at 7-3/4 inches (7.75 inches). This applies to all residential stairs, including deck stairs. Additionally, the variation between the tallest and shortest riser in a single staircase cannot exceed 3/8 inch. Some local jurisdictions adopt stricter limits, so always verify with your local building department before starting construction.

How do I calculate the number of stairs I need?

Measure the total rise, the vertical distance from the ground to the deck surface, in inches. Divide that number by your target riser height (7 to 7.5 inches is a good range). Round the result to the nearest whole number. Then divide the total rise by that whole number to get the exact riser height, and confirm it does not exceed 7.75 inches. The number of treads is one fewer than the number of risers, since the deck surface serves as the top step. You can use our stair calculator to do this math automatically.

Do deck stairs need a permit?

In most jurisdictions, yes. Deck stairs are considered a structural addition and are subject to building codes and inspection requirements. The permit process typically involves submitting a basic plan showing your stair dimensions, materials, and attachment method. The inspection verifies that riser heights, tread depths, handrails, and the landing pad meet code. Building without a permit can result in fines and may create legal complications when selling your home. Contact your local building department to confirm the requirements in your area.