Deck Stair Riser Calculator: Formula & Guide
- Actual riser height
- in
- Result
- Total run (horizontal)
- in
- Result
- Total rise (deck height)
- 30 in
- You entered
This calculator works out the number of risers (vertical steps) and their individual height for a set of deck stairs. You enter the total rise (height from the ground to the deck surface) and the desired riser height or the number of steps, and it returns the exact riser height, the number of risers, and the total run (horizontal length) using standard building proportions. It uses the common 7-inch (178 mm) riser and 11-inch (280 mm) tread rule of thumb, but you can adjust for your own comfort or local code.
Formula
The core formula is simple: Number of risers = ceil(Total rise ÷ Desired riser height), where ceil rounds up to the nearest whole number (you can’t have a fraction of a step). Then the actual riser height is Total rise ÷ Number of risers. The total run (the horizontal distance the stairs cover) is (Number of risers – 1) × Tread depth, because the top tread is the deck itself. All measurements are in inches (or the same unit you use for both rise and run).
Worked Example
Using the default values: total rise = 30 inches, desired riser = 7 inches.
- Number of risers = ceil(30 ÷ 7) = ceil(4.2857) = 5
- Actual riser height = 30 ÷ 5 = 6.00 inches
- Total run = (5 – 1) × 11 = 44 inches
So with a 30-inch deck height, you get 5 risers at exactly 6 inches each, covering 44 inches horizontally (assuming an 11-inch tread).
Why Riser Height Matters
The riser height is the vertical distance from the top of one tread to the top of the next. It’s the most critical dimension for comfort and safety. If risers are too tall, you’ll strain your knees; too short, and you’ll feel like you’re shuffling. Most building codes in the US limit riser height to between 4 and 7.75 inches (100–197 mm), with a maximum variation of 3/8 inch (9.5 mm) between the tallest and shortest riser on a single flight. The 7-inch rule comes from the old “7-11� guideline, which pairs a 7-inch riser with an 11-inch tread—a proportion that fits the natural stride of most adults.
How to Measure Total Rise
Total rise is measured vertically from the ground (or the surface the stairs rest on) to the top of the deck floor—not to the top of the rim joist, but to the finished walking surface. If your deck has a board on top, measure to the top of that board. Use a straightedge and a level to transfer the height down to the ground, then measure from the ground to the straightedge. Always measure at the exact point where the stairs will land; if the ground is sloped, you may need to excavate or build a landing to level it. For a floating deck, the total rise is simply the deck height above grade.
Common Mistakes and Misconceptions
One frequent error is forgetting to subtract the thickness of the treads. If you use 1.5-inch thick treads, the bottom riser must be shorter by that amount so that the bottom step ends up at the same height as the others. Another mistake is using the number of treads instead of the number of risers in the run calculation—there is always one more riser than treads. Also, don’t round the riser height to the nearest inch; you need to keep at least two decimal places to stay within the 3/8-inch code tolerance. Finally, remember that the total run is measured from the face of the bottom riser to the face of the top riser, not including any nosing overhang.
How to Choose Your Desired Riser Height
Start with the standard 7 inches, then adjust based on your total rise. If your total rise is 30 inches, 7 inches gives 5 risers (as in the example). If your total rise is 35 inches, 7 inches gives 5 risers too, but the actual riser becomes exactly 7 inches. For a more comfortable, shallower stair, you might choose 6.5 inches, which would give 6 risers (ceil(35/6.5)=6) and an actual riser of 5.83 inches. The key is to pick a desired height that results in a whole number of risers, or let the calculator round up for you. If you have a specific number of steps in mind (e.g., 4 steps for a low deck), you can work backwards: riser height = total rise ÷ number of risers.
Safety and Code Considerations
Always check your local building code before building. Most codes require a minimum tread depth of 10 inches (254 mm) and a maximum riser height of 7.75 inches (197 mm). The variation between adjacent risers must not exceed 3/8 inch (9.5 mm). Also, stairs wider than 36 inches (914 mm) typically need a handrail on at least one side, and if the total rise exceeds 30 inches, a guardrail is usually required. This calculator gives you the geometric dimensions, but it does not replace an engineer’s or inspector’s approval. For outdoor decks, consider that wet wood can be slippery; use slip-resistant treads or add grip strips.
Alternatives and Related Calculators
If you’re building stairs for an interior, the same formulas apply, but you might use a different tread depth (e.g., 10 inches) or a steeper riser (up to 8 inches for attic stairs). For a spiral staircase, the calculations are more complex because the treads taper and the rise is distributed around a central column. For a ramp instead of stairs, the slope is typically 1:12 (one inch of rise per foot of run) for wheelchair access. This calculator only handles straight flights; if you need a landing or a 90-degree turn, you’ll need to break the rise into multiple segments and calculate each separately.
Frequently Asked Questions
How many risers do I need for a 36-inch deck?
Using a 7-inch desired riser, you divide 36 by 7 to get 5.14, round up to 6 risers. The actual riser height becomes 36 ÷ 6 = 6 inches. So you’ll have 6 steps, each 6 inches high.
What is the maximum riser height allowed by code?
Most US building codes cap riser height at 7.75 inches (197 mm) for residential stairs. Some older codes allowed 8 inches, but the modern standard is 7.75 inches. Always verify with your local authority, as some municipalities adopt stricter limits.
Do I count the deck as a step?
No, the deck surface is the top landing, not a step. You count only the risers that go down from the deck to the ground. The top tread is the deck itself, which is why the total run uses (number of risers – 1) treads.
How do I account for the thickness of the tread boards?
If your treads are 1.5 inches thick, you need to shorten the bottom riser by 1.5 inches so that the bottom step’s top surface is exactly one riser height above the ground. For example, if your calculated riser is 6 inches, the bottom riser board should be cut to 4.5 inches, and the tread on top brings it to 6 inches.
Can I use this calculator for metric measurements?
Yes, as long as you use the same unit for total rise, riser height, and tread depth. The calculator accepts any unit; just enter your numbers in centimeters or millimeters. The formulas are unit-agnostic.
What if my desired riser height gives a fraction?
You can’t have a fraction of a step, so you round up to the next whole number. The actual riser height will then be slightly less than your desired value. For example, if you wanted 7 inches but the total rise is 30 inches, you get 5 risers at 6 inches each—not 4 risers at 7.5 inches, which would be too steep and uncomfortable.
Related
Formula used
in rise | Total rise (deck height) | in | 30 | 0 in r | Desired riser height | in | 7 | 0 out n | Number of risers | - | ceil(rise / r) | 0 out rh | Actual riser height | in | rise / n | 2 out run | Total run (horizontal) | in | (n - 1) * 11 | 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.