Deck Stairs Calculator

WOODWORKING & CARPENTRY

Enter the total height from the ground to the top of your deck, and this lays out the staircase — number of steps, exact riser height, total run, and the stringer length to cut.

—Steps
—Riser height
—Total run
—Stringer length
Enter the total rise to calculate.

Most codes require risers of 4 to 7.75 in and treads of at least 10 in. Always check your local building code.

See the How to Build a Deck guide and the Deck Footing Chart.

Laying out deck stairs

Deck stairs are designed from the total rise — the vertical distance from the ground to the top of the deck. Divide that rise by a comfortable step height (codes commonly cap riser height around 7¾ inches) and round to a whole number of steps; the actual riser height is then the total rise divided by that number. Each step's run (tread depth) is typically at least 10–11 inches, and a common rule of thumb is that rise plus run lands near 17–18 inches for comfortable stairs.

The number of treads is one less than the number of risers, and the stringer length follows from the rise and total run by the Pythagorean theorem. Codes also govern handrails, graspable rail dimensions, and maximum riser variation (steps must be uniform, since uneven risers cause trips). Use this calculator to lay out the geometry, then check the specifics against your local code.

How the steps are laid out

The total rise is divided by a target riser height to find the number of steps, and the result is rounded to a whole number so that all the risers come out exactly equal. The run is the number of treads times the tread depth, and the stringer length follows from the rise and the run using the Pythagorean theorem.

Safety and code

Uneven risers are a common cause of falls, so keep every riser the same height, within a very small tolerance. Building codes limit the maximum riser height and set a minimum tread depth, and typically require handrails once there are several steps, so check the rules for your area. Remember to account for the thickness of the tread when cutting the bottom step.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.