This deck stair calculator works out the full stair math and shopping list β risers, treads, total run, stringer length and count, tread boards and screws β from your deck height. No sign-up. The working is shown under every number.
Quick example: stairs up to a 48 in high deck need 7 risers at 6.86 in each, 6 treads, a 66 in run and 4 stringers β $203.00 of materials at the example prices.

| Item | Buy | Cost |
|---|---|---|
| Estimated total | $0.00 |
Risers are divided equally across the flight, the way code requires β never one short step at the bottom. Stringer length includes a 12 in trimming allowance.
Estimate only β not a guarantee. Mistakes are possible, so always check the quantities with your supplier or a builder before you buy or build.
Total rise is the vertical distance from the ground (or the landing) where the stairs end to the top surface of the deck β not to the top of the deck frame, and not to where the ground looks level. Measure it with a long straight board laid out from the deck edge, a level on top, and a tape down from the board's end to the ground: that is your rise to the inch, and every riser in the flight is derived from it. Measure where the stairs will actually land β ground slopes, and a rise measured two feet to the left can be an inch different, which is the size of a trip hazard when it concentrates in one step. Decide the landing now too: stairs ending on grass or soil end on a pad or a paver, and its thickness belongs in the rise. Get this number right and the rest of stair math is division.
Divide the total rise by the maximum riser height your code allows (7ΒΎ in is the usual US residential limit) and round the count UP β that is your number of risers. Then divide the rise by that count to get the actual riser height, identical for every step. This is the whole secret: stairs feel dangerous when one step differs from the rest, and code holds every riser in a flight within β in of its neighbors. Treads are always one fewer than risers, because the deck surface itself is the last tread. Total run = treads Γ tread depth. The stringer is the hypotenuse: β(riseΒ² + runΒ²), plus about 12 in for trimming the ends square and leveling the foot β and that total is what decides the board length you buy.
Risers = β54 Γ· 7.75β = 7, so each riser is 54 Γ· 7 = 7.71 in β comfortable and under the limit. Treads = 6, at 11 in each the run is 66 in. Stringer slope = β(54Β² + 66Β²) = 85.3 in, plus 12 in trimming = 97.3 in, so the board to buy is a 10 ft 2 Γ 12. For a 48 in wide stair at 16 in spacing: β48 Γ· 16β + 1 = 4 stringers. Tread boards: each tread takes two 2 Γ 6s, 6 treads = 12 pieces of 48 in, and an 8 ft board yields 2 pieces, so 6 tread boards. Screws: 6 treads Γ 2 boards Γ 4 stringers Γ 2 = 96, which is 1 box. At the example prices above the materials total $203.00 β set a 54 in rise in the calculator and check it.
Stringer boards must be the straightest lumber you buy all year: sight down every 2 Γ 12 at the yard and reject any with crown, twist or knots near where the notches will fall β a knot in a notch is a crack with a head start. Buy one extra stringer board: the first stringer is your template, and if the template is wrong you want the spare already on site, not back at the store. Tread boards in 8 ft lengths suit most widths because two treads come out of one board; if your stair is wider than 48 in, step up to 10 or 12 ft tread stock rather than joining pieces mid-tread.
Read next: Planning a deck project, step by step β stairs are one step in a longer sequence β the whole deck job, from measuring to materials list to order of work.
Divide the total rise (deck height) by the maximum riser height and round UP β that is your number of risers. For a 48 in deck with the code maximum 7ΒΎ in riser: 48 Γ· 7.75 = 6.19, so 7 risers, and each riser actually works out at 48 Γ· 7 = 6.86 in. There is always one fewer tread than risers (the deck itself is the top tread), so 6 treads at 11 in deep give a total run of 66 in. These are exactly the steps this calculator follows.
The stringer is the hypotenuse of the stair triangle: β(48Β² + 66Β²) = 81.6 in of sloped length. Add about 12 in for trimming the ends and leveling the bottom, and the board to buy is 93.6 in β an 8 ft 2 Γ 12. Published stair examples give the same 81.6 in figure for a 48 in rise with 11 in treads.
Stringers are usually spaced no more than 16 in apart, so a 36 in wide stair needs 4 stringers (one at each edge and two between, evenly spaced) β the count published worked examples give for a 36 in stair. Wider stairs or composite treads may need 12 in spacing; set it in the calculator.
The common US residential code (IRC) limits riser height to a maximum of 7ΒΎ in and tread depth to a minimum of 10 in, plus a nosing on most treads. Every riser in one flight must be within β in of the others, which is why this calculator divides the total rise equally instead of using one short step. This calculator plans materials only β your local code has the final say.
| Deck height | Risers | Actual riser | Treads | Total run | Stringer board |
|---|---|---|---|---|---|
| 36 in | 5 | 7.20 in | 4 | 44 in | 8 ft 2 Γ 12 |
| 42 in | 6 | 7.00 in | 5 | 55 in | 8 ft 2 Γ 12 |
| 48 in | 7 | 6.86 in | 6 | 66 in | 8 ft 2 Γ 12 |
| 60 in | 8 | 7.50 in | 7 | 77 in | 10 ft 2 Γ 12 |
Stringer board length is the sloped stringer length plus a 12 in trimming allowance, rounded up to a standard board length (8, 10, 12, 14, 16 or 20 ft). Stringers counted at 16 in spacing for a 36 in wide stair (4 stringers).
These figures are planning estimates only β not a guarantee and not professional advice. Mistakes are possible, including through an error in this calculator. Always check the quantities, sizes, spacings and depths with your supplier, a licensed builder, and your local building code before you buy materials or start work. The owner of this site accepts no responsibility or liability for any loss, cost, damage, injury, wasted material or failed inspection that results from using these estimates. Prices are examples to start from, not live prices or quotes.