Deck Stair Calculator

How many steps from your deck to the ground?

Enter the total rise — deck surface to ground — and get the number of steps, riser height, total run, stringer length, and stair angle. Checked against IRC building code limits.

Deck Stair Calculator

Calculate steps, rise, run, and stringer dimensions.

inches (floor to deck surface)
inches (36" min for code)
for stringer + tread cost
IRC R311.7 compliant
Free, no sign-up
No data collected

How to Calculate Deck Stairs

Deck stairs are the one part of a deck build where getting the math wrong is immediately obvious — and potentially dangerous. Uneven risers cause trips. Risers that are too tall violate building code. Stairs that are too steep feel unsafe. The calculations aren't difficult, but they require precision.

The starting point is the total rise: the vertical distance from the ground to the top of the deck surface. Everything else flows from that number.

The top "step" is the deck surface itself, which is why you always have one fewer tread than risers. The stringer length uses the Pythagorean theorem — the stringer is the hypotenuse of the right triangle formed by the total rise and total run.

IRC Building Code Requirements

The International Residential Code (IRC Section R311.7) sets the following requirements for residential stairs. Most U.S. jurisdictions adopt these directly, though some have stricter local amendments:

RequirementIRC LimitNotes
Maximum riser height7.75"R311.7.5.1
Minimum tread depth10"R311.7.5.2
Riser uniformity≤ 3/8" variationBetween any two risers in the same flight
Minimum stair width36"Clear width between handrails
Handrail required4+ risersOn at least one side
Handrail height34"–38"Measured from stair nosing

The Comfort Rule

Beyond code compliance, there's a widely used rule of thumb: riser height plus tread depth should equal approximately 17 to 18 inches. This ratio produces stairs that feel natural to walk on. A 7-inch riser with a 10.5-inch tread gives 17.5 inches — right in the sweet spot. This calculator flags results that fall outside this comfort range.

Stringer Construction

Stringers are the diagonal boards that support the treads. They're typically cut from 2×12 lumber. The number of stringers depends on stair width: two stringers for narrow stairs (up to 24 inches), three for standard 36-inch stairs, and four for wider stairs. Building code requires that the unsupported span between stringers not exceed 36 inches.

When cutting stringers, the key dimension is the "effective depth" — the narrowest point of the stringer after the step notches are cut. This must be at least 3.5 inches for a 2×12 stringer. If your rise/run combination leaves less than 3.5 inches of solid wood at the narrowest point, the stringer won't pass inspection.

Measuring Total Rise Accurately

The most common mistake in stair building is measuring the total rise incorrectly. Don't measure from the deck framing — measure from the finished deck surface to the finished ground level where the bottom of the stairs will land. If you're pouring a concrete pad at the base (recommended), include the pad thickness in your measurement. Even a half-inch error in total rise compounds across every riser and can push you out of the 3/8-inch uniformity tolerance.

Frequently Asked Questions

A 3-foot (36-inch) deck typically requires 5 risers and 4 treads. That gives you a riser height of 7.2 inches — well within the IRC maximum of 7.75 inches. With 10.5-inch treads, the total horizontal run is 42 inches (3.5 feet) from the deck face to where the stairs land.

The ideal riser height is between 7 and 7.5 inches. This range is comfortably below the IRC maximum of 7.75 inches and produces a natural walking rhythm when paired with a 10 to 11-inch tread. Risers below 6 inches feel too shallow; risers above 7.5 inches start feeling steep. The calculator automatically selects the closest whole number of risers that keeps each riser in this ideal range.

Stringer length depends on both total rise and total run. For a typical 36-inch deck with 10.5-inch treads, stringers are about 66 inches (5.5 feet) long. Always buy 2×12 lumber at least 12 inches longer than the calculated stringer length to allow for the top and bottom seat cuts. Use the calculator to get the exact stringer length for your specific dimensions.

A concrete pad or paver base at the bottom of deck stairs is strongly recommended and required by most codes. The pad prevents the stringer bottoms from sitting in soil (which causes rot) and provides a stable, level surface. A 4-inch thick pad that extends 36 inches out from the bottom riser is standard. Some codes allow a gravel base instead of concrete, but check your local requirements.

The IRC requires a handrail on at least one side of any stairway with four or more risers. The handrail must be between 34 and 38 inches high, measured vertically from the stair nosing. Many local codes also require a graspable handrail profile — meaning your hand must be able to close around it. A flat 2×4 on top of the railing posts doesn't count; you need a round or shaped rail that's 1.25 to 2 inches in cross-section.