Deck stair calculator
Enter the total rise from the top of the decking down to the landing, and the total run if the site fixes it. The calculator returns the riser count, the rise and run of each step, the total run, the stringer length, and the stair angle. It then checks the layout against the IRC and marks each row pass or fail. It runs the same math as the CutOnce app, against the same IRC limits as an interior stair.
By Scott Brady
Software engineer in Seattle and DIY builder who builds the CutOnce construction calculator.
Updated
Type it the way your tape reads: 3 ft 9 in, 45, or 3′ 9″
Leave blank for the ideal tread. Enter the run you have and the tread depth comes from it.
- Risers
- 6
- Riser height
- 7-1/2 in
- Treads
- 5
- Tread depth
- 10 in
- Total run
- 4 ft 2 in
- Stringer length
- 5 ft 7-1/4 in
- Stair angle
- 36.9°
IRC code check
Every row this page can check passes the IRC default.
| Check | Limit | This stair | Section | Result |
|---|---|---|---|---|
| Riser height | max 7-3/4 in | 7-1/2 in | IRC R311.7.5.1 | Pass |
| Tread depth | min 10 in | 10 in | IRC R311.7.5.2 | Pass |
| Rise between landings | max 12 ft 7 in | 3 ft 9 in | IRC R311.7.3 | Pass |
| Nosing | 3/4 in to 1-1/4 in, treads under 11 in | not checked with open risers | IRC R311.7.5.3 | Note |
| Headroom | min 6 ft 8 in | in the app | IRC R311.7.2 | App |
| Riser variation | max 3/8 in | 0 in, equal risers | IRC R311.7.5.1 | Note |
| Guard triangle, open side | 6 in sphere | in the app | IRC R312.1.3 | App |
Every riser here is the same height, so designed variation is zero; keep the built risers within 3/8 in of each other. Headroom and the guard triangle need the stairwell opening, floor thickness, and rail height, so the CutOnce app checks those. The app also runs every check in metric.
What the calculator works out
A deck stair is laid out from one measurement: the total rise from the top of the decking to the landing. A deck 3 ft 9 in above its landing takes 6 risers of 7-1/2 in and 5 treads of 10 in. The bottom riser sits 4 ft 2 in out from the deck, and each stringer measures 5 ft 7-1/4 in along the diagonal.
What to enter and what you get back
Inputs
- Total rise
- The vertical distance from the top of the finished decking to the top of the landing. Type it the way the tape reads. The next section covers where to measure it.
- Total run (optional)
- How far the stair reaches out from the deck, measured level from the top riser to the bottom riser. Leave it blank and the calculator sizes the tread from a comfort rule. Enter it when a walkway, a patio edge, or a property line limits the reach, after taking the landing's depth off the space you have.
- Nosing
- How far each tread overhangs the step below it. The calculator checks it only when open risers is unchecked, and the box is disabled while it is checked.
- Open risers
- Checked when the page opens, because most deck stairs have no riser boards. Uncheck it if you are closing the risers, and the nosing check turns on.
Results
- Risers
- The number of steps up, counting the last step onto the deck.
- Riser height
- The total rise divided evenly by the riser count. Every riser is the same height.
- Treads
- One fewer than the risers, because the deck surface is the top step.
- Tread depth
- The run of one step, measured level from one riser to the next. The tread boards are wider than this by the nosing.
- Total run
- Tread depth times tread count. The bottom riser sits this far out from the deck, and the landing starts there.
- Stringer length
- The diagonal of the flight, from the total rise and total run. Use it to pick a stock length.
- Stair angle
- The slope of the stair from level, taken from one riser and one tread.
- IRC code check
- A table that compares the riser height, tread depth, rise between landings, and nosing with the IRC limits and marks each row pass or fail.
Measure the total rise
The ground usually falls away from a deck, so the drop at the rim is shorter than the drop where the stair lands. Measuring at the rim is the usual reason a bottom riser comes out tall.
- 01
Set the landing height first
The total rise is measured to the top of the landing, so decide what the stair lands on before you measure: a concrete pad, pavers on compacted gravel, or a framed landing. If the pad is not built yet, drive a stake and mark its finished height.
- 02
Mark where the stair lands
The stair lands one total run out from the deck. For a first pass, take the run from the chart below for your approximate deck height and mark that distance out from the rim.
- 03
Level out and measure down
Lay a straight board on the decking with a level on it, extend it over the mark, and measure plumb from the underside of the board to the landing. Keep the tape plumb. A tape that follows the slope of the ground reads long.
- 04
Run the number and check the mark
Enter the rise. If the calculator returns a different run than the one you marked, move the mark and measure again. At 1/2 in of fall per foot, the ground 4 ft 2 in out from the deck is 2-1/16 in lower than the ground at the rim, enough to change every riser.
A worked example
The decking sits 3 ft 9 in above the landing pad. The table shows the whole stair and where each number comes from.
| Total rise | 3 ft 9 in | given, decking to landing |
| Risers | 6 | round(45 / 7.5) = 6, cap check ceil(45 / 7.75) = 6 |
| Riser height | 7-1/2 in | 45 / 6 |
| Treads | 5 | 6 - 1, the deck is the top step |
| Tread depth | 10 in | 25 - 2 x 7.5, never under 10 |
| Total run | 4 ft 2 in | 5 treads x tread depth |
| Stringer | 5 ft 7-1/4 in | sqrt(rise squared + run squared) |
| Angle | 36.9° | atan(riser / tread) |
The stringers carry 5 treads, and the step onto the deck is the sixth riser. The 10 in tread is the comfort rule's answer for a 7-1/2 in riser and also the IRC minimum, so this stair cannot be made shorter without failing the tread check.
How the layout is derived
- 01
Pick the riser count
Divide the total rise by a 7-1/2 in riser and round to the nearest whole number. Then check that count against the code: if it leaves the risers over 7-3/4 in, add one. The larger count is used.
- 02
Divide the rise evenly
Total rise divided by the riser count is the riser height. The IRC holds the tallest and shortest riser in a flight within 3/8 in of each other, so the remainder is spread across every step and never left in the last one.
- 03
Count the treads
The stringers carry one fewer tread than there are risers. The top riser ends at the deck surface, so it needs no tread.
- 04
Set the tread depth
With the run blank, the tread is 25 in minus two risers, and it is held at 10 in if that comes out smaller. With a run entered, the tread is that run divided by the tread count.
- 05
Multiply out the run and the stringer
Tread depth times tread count is the total run. The stringer length is the diagonal of the flight: the square root of total rise squared plus total run squared.
Deck stair chart by deck height
The chart runs the same solver on total rises from 1 ft to 10 ft, with the run left blank. Use it to rough out how far a stair will reach before the landing is in.
| Total rise | Risers | Riser height | Treads | Tread depth | Total run | Stringer |
|---|---|---|---|---|---|---|
| 1 ft | 2 | 6 in | 1 | 13 in | 1 ft 1 in | 1 ft 5-11/16 in |
| 1 ft 6 in | 3 | 6 in | 2 | 13 in | 2 ft 2 in | 2 ft 7-5/8 in |
| 2 ft | 4 | 6 in | 3 | 13 in | 3 ft 3 in | 3 ft 9-13/16 in |
| 2 ft 6 in | 4 | 7-1/2 in | 3 | 10 in | 2 ft 6 in | 3 ft 6-7/16 in |
| 3 ft | 5 | 7-3/16 in | 4 | 10-5/8 in | 3 ft 6-3/8 in | 4 ft 7-5/8 in |
| 3 ft 6 in | 6 | 7 in | 5 | 11 in | 4 ft 7 in | 5 ft 9-3/16 in |
| 4 ft | 7 | 6-7/8 in | 6 | 11-5/16 in | 5 ft 7-11/16 in | 6 ft 11 in |
| 4 ft 6 in | 7 | 7-11/16 in | 6 | 10 in | 5 ft | 6 ft 8-3/4 in |
| 5 ft | 8 | 7-1/2 in | 7 | 10 in | 5 ft 10 in | 7 ft 8-3/16 in |
| 6 ft | 10 | 7-3/16 in | 9 | 10-5/8 in | 7 ft 11-3/8 in | 9 ft 11-1/2 in |
| 7 ft | 11 | 7-5/8 in | 10 | 10 in | 8 ft 4 in | 10 ft 10-5/8 in |
| 8 ft | 13 | 7-3/8 in | 12 | 10-1/4 in | 10 ft 2-3/4 in | 12 ft 11-7/8 in |
| 9 ft | 14 | 7-11/16 in | 13 | 10 in | 10 ft 10 in | 14 ft 1 in |
| 10 ft | 16 | 7-1/2 in | 15 | 10 in | 12 ft 6 in | 16 ft 1/16 in |
Total rise is the height of the decking above the landing, which is usually more than the height of the deck at the rim. A stair with four or more risers needs a handrail. An open side needs a guard where it is more than 30 in above the ground at any point within 36 in out from the edge, so on a slope the drop is not measured straight down only.
Riser heights and tread depths are shown to the nearest 1/16 in. Do not step off a rounded riser, because the rounding adds up over the flight. Mark each step at its running height instead: the step number times your measured total rise, divided by the riser count.
When the run is limited
A walkway, a patio edge, or a property line often limits how far a deck stair can reach. The stair needs 36 in of landing past the bottom riser, on new or existing paving, so take 36 in off the clear distance to the obstruction or to the far edge of the paving. Enter what is left as the total run. The calculator divides it by the tread count and checks the tread it gets.
The 3 ft 9 in example needs 5 treads. In a 4 ft run each tread is 9-5/8 in, under the 10 in minimum, and the tread depth row fails. The shortest run that passes is 5 treads at 10 in, or 4 ft 2 in.
Extra room makes an easier stair. In a 4 ft 7 in run the same 6 risers get 11 in treads, the angle drops from 36.9° to 34.3°, and the stringer grows to 5 ft 11-1/16 in.
When a straight stair will not fit, turn it. Run it along the side of the deck, or break it at a landing and turn 90 degrees. Each flight is then laid out from its own rise.
Stringer stock, span, and count
The layout sizes one stringer. The board it is cut from, how far it can span, and how many the stair needs depend on the stair's width and the tread material.
- Cut stringers from 2x12s
- Each notch takes a triangle out of the board. With the example's 7-1/2 in riser and 10 in tread the notch is 6 in deep, which leaves a 5-1/4 in throat in a 2x12 (11-1/4 in) and 3-1/4 in in a 2x10 (9-1/4 in). The app warns when the throat drops under 3-1/2 in, a common-practice floor. The AWC deck guide, DCA 6, requires 2x12 stringers and details cut ones with a 5 in minimum throat.
- Check the span
- DCA 6 limits a cut stringer to a 6 ft span, measured level. On the chart above, a 5 ft rise has a 5 ft 10 in run and fits. A 6 ft rise has a 7 ft 11-3/8 in run and does not. A longer stair needs a post under each stringer to shorten the span, a landing that splits the flight, or solid stringers, which DCA 6 allows to span 13 ft 3 in.
- Seal the notches
- Notching a pressure-treated board exposes wood the treatment did not reach. IRC R317.1.1 requires field-cut ends and notches to be treated in the field to AWPA M4, so brush a copper naphthenate preservative on every cut before the treads go on.
How many stringers
Stringer spacing is set by what the treads can span. DCA 6 puts cut stringers no more than 18 in on center under 2x or 5/4 lumber treads, with at least three where every stringer is cut. Composite and PVC treads go in to the maker's instructions (IRC R507.2.2.5), and their published stair spacing is commonly 12 in or less. The table counts stringers for a stair width at each spacing.
| Stair width | 18 in on center | 16 in on center | 12 in on center |
|---|---|---|---|
| 36 in | 3 | 4 | 4 |
| 48 in | 4 | 4 | 5 |
| 60 in | 5 | 5 | 6 |
Count from the spacing your tread material allows, and confirm it against the maker's published stair span before you cut. A stringer count from this table is a starting point for a straight stair with a stringer under each edge.
Treads from deck boards
Most deck treads are two deck boards. Two 5-1/2 in boards with a 1/8 in gap measure 11-1/8 in front to back. On the example's 10 in tread they overhang the step below by 1-1/8 in. Two boards give an overhang of 3/4 in or more only on treads from the 10 in minimum to 10-3/8 in deep. On a deeper tread they come up short: the 11-5/16 in tread of a 4 ft rise is 3/16 in deeper than the two boards. For a tread like that, add a ripped third board, or enter a total run that brings the tread back into that range.
With open risers, the opening between treads is the riser height minus the tread thickness. On the example that is 7-1/2 in minus 1-1/2 in for 2x treads, or 6 in, and 6-1/2 in under 1 in thick 5/4 boards. IRC R311.7.5.1 does not allow an open riser more than 30 in above the ground below it to pass a 4 in sphere. With level ground under the example, its top 2 openings reach more than 30 in above the landing, so they need riser boards or filler strips, and most builders close every step to match. On a slope, measure each opening to the ground directly below it. A stair that never gets more than 30 in above the ground can stay fully open.
For treads under 11 in deep, IRC R311.7.5.3 calls for a nosing of 3/4 in to 1-1/4 in, and the 1-1/8 in overhang above is inside that range. The calculator runs the nosing check only for solid risers: uncheck open risers, enter your overhang in the nosing box, and it marks the row pass or fail. With open risers checked it skips that row, so compare your overhang with the range yourself.
The top and the bottom of the stair
- The landing
- The IRC requires a floor or landing at the top and bottom of a stair, at least as wide as the stair and 36 in deep in the direction of travel. The deck is the top landing. At the bottom, bare ground settles and washes out, which changes the bottom riser, so build a concrete pad or set pavers on compacted gravel, pitched slightly to shed water. The example's stair and landing together reach 7 ft 2 in out from the deck.
- The top connection
- Hang the stringers from the rim joist with metal stair stringer hangers, or from a hanger board bolted to the rim, with the fasteners the hanger maker lists. IRC R311.5 requires a stair to be positively anchored and rules out toenails and nails loaded in withdrawal. Set the top tread notch one riser height plus one tread thickness below the deck surface, so the top riser matches the others once the treads are on.
- The bottom cut
- Each tread adds its thickness to the step it sits on, and nothing is added to the landing. Cut the bottom of every stringer short by one tread thickness. Left uncorrected, 1-1/2 in treads make the example's bottom riser 9 in and its top riser 6 in, a 3 in spread against a 3/8 in limit.
- The bottom anchor
- Fasten a ground-contact pressure-treated kicker to the pad, notch the stringer bottoms over it, and fasten them to it. The kicker keeps the foot of the stair from sliding out. Where the ground freezes, check the detail with the building department first: DCA 6 attaches the stringers to guard posts on footings below frost depth and does not let them bear on a pad that is shallower.
For the build sequence, from the pad to the handrail, see How to build deck stairs.
What the code requires
Deck stairs follow the same IRC stair rules as any other stair. The limits below are the 2021 IRC residential provisions, and the last column says where each one gets checked. The calculator checks the rows marked this page. The nosing row is checked when open risers is unchecked. Every riser and tread it lays out is the same size, so variation is zero by design. Headroom and the guard triangle need the stairwell and rail details, so the app checks those. The rest are measured on site. Your jurisdiction can amend any of them, so confirm locally before you cut.
| Requirement | Limit | Section | Checked |
|---|---|---|---|
| Maximum riser height | 7-3/4 in | IRC R311.7.5.1 | This page |
| Minimum tread depth | 10 in | IRC R311.7.5.2 | This page |
| Maximum rise between landings | 151 in | IRC R311.7.3 | This page |
| Nosing, treads under 11 in | 3/4 in to 1-1/4 in | IRC R311.7.5.3 | This page |
| Maximum riser variation in a flight | 3/8 in | IRC R311.7.5.1 | By design |
| Minimum headroom | 6 ft 8 in | IRC R311.7.2 | In the app |
| Guard triangle under the bottom rail | blocks a 6 in sphere | IRC R312.1.3 | In the app |
| Open riser more than 30 in above grade | blocks a 4 in sphere | IRC R311.7.5.1 | On site |
| Minimum stair width | 36 in | IRC R311.7.1 | On site |
| Landing at top and bottom | as wide as the stair, 36 in min deep | IRC R311.7.6 | On site |
| Handrail, 4 or more risers | 34 to 38 in above the nosings | IRC R311.7.8 | On site |
| Guard on an open side | required over 30 in above grade, measured within 36 in out from the edge | IRC R312.1.1 | On site |
| Guard height on a stair | 34 in min above the nosing line | IRC R312.1.2 | On site |
| Guard opening on a stair | blocks a 4-3/8 in sphere | IRC R312.1.3 | On site |
Common mistakes
- Measuring the rise at the rim
- The stair lands one total run away from the deck, and the ground is usually lower there. Measure plumb at the landing.
- Cutting stringers before the landing is set
- The landing's finished height is the bottom of the total rise. A pad poured an inch high or low after the stringers are cut changes the bottom riser by that inch.
- Stepping off a rounded riser
- A riser shown as 6-7/8 in may be 6.857 in. Repeating the rounded figure seven times moves the last step by 1/8 in. Mark each step at its running height from the bottom.
- Skipping the tread-thickness drop
- A stringer cut to the bare layout finishes with a tall bottom riser and a short top riser once the treads are on. Take one tread thickness off the bottom and hang the top to match.
- Overcutting the notches
- A circular saw run past the corner of a notch cuts into the throat. Stop at the line and finish the corner with a handsaw.
- Spacing stringers for deck joists
- Composite and PVC boards rated for 16 in joist spacing on the deck are often limited to 12 in or less as stair treads. Space the stringers with the tread maker's stair figure, not its decking figure.
Common questions
- Do I measure the rise to the grade at the deck or out where the stair lands?
- Out where the stair lands. The ground usually falls away from a deck, so the drop at the rim is shorter than the drop where the bottom step sits. Level out to the foot of the stair, then measure straight down to the landing surface. That vertical is the total rise.
- How many steps does a 4 ft high deck need?
- A 4 ft total rise takes 7 risers of 6-7/8 in and 6 treads of 11-5/16 in. The stair reaches 5 ft 7-11/16 in out from the deck and the stringers are 6 ft 11 in on the diagonal. Measure your own rise at the landing first, because a deck that is 4 ft high at the rim is usually higher than that above the landing.
- How many stringers does a deck stair need?
- Enough that the treads never span farther than they are rated for. At the DCA 6 maximum of 18 in on center for cut stringers under lumber treads, a 36 in wide stair takes 3. Composite treads often need 12 in on center or less, which makes it 4 or more. Use the tread maker's published stair spacing.
- Can I cut deck stair stringers from 2x10s?
- Not for a typical stair. The example's 7-1/2 in by 10 in notch leaves only 3-1/4 in of solid wood in a 2x10, under the 3-1/2 in floor the app warns at and well under the 5 in minimum in DCA 6. A 2x12 leaves 5-1/4 in.
- Can deck stairs have open risers?
- Yes, and most do. IRC R311.7.5.1 does not allow an open riser more than 30 in above the ground below it to pass a 4 in sphere. A 7-1/2 in riser under a 1-1/2 in tread leaves 6 in open, so any opening that high needs a riser board or a filler strip. A stair that never gets more than 30 in above the ground can stay fully open.
- Why is my tread depth exactly 10 in?
- With the run box blank, the tread is at the IRC minimum. Once the risers reach 7-1/2 in, the comfort rule of two risers plus one tread at 25 in leaves a tread of 10 in or less, so the calculator holds it at 10 in and does not return a stair that fails. Enter a longer total run for a deeper tread.
- Is the stringer length the board I should buy?
- It is the diagonal of the flight, which is close to the length of board the notches use. Allow for squaring the ends and cutting past any splits, then buy the next stock length up. The example's 5 ft 7-1/4 in stringer comes out of an 8 ft 2x12.
- How far out from the deck will the stairs land?
- By the total run. The example's bottom riser sits 4 ft 2 in out from the deck. Add the 36 in landing and the stair needs 7 ft 2 in of clear ground. A longer run with deeper treads reaches farther.
- When do deck stairs need a handrail or guards?
- Under the 2021 IRC a stair with four or more risers needs a handrail on at least one side, 34 to 38 in above the tread nosings. Guards are required on open sides that are more than 30 in above the ground at any point within 36 in out from the edge (R312.1.1), so a stair beside a slope can need them sooner than the drop at its edge suggests. Many jurisdictions amend both, so check locally.
- What is a comfortable rise and run for deck stairs?
- The calculator aims at a 7-1/2 in riser and sizes the tread so two risers plus one tread come to 25 in. Outdoor stairs are easier to walk with a lower riser and a deeper tread, so if there is room, enter a longer total run. The steepest stair the IRC allows, 7-3/4 in on 10 in, sits at 37.8°.
- Does a deck with one or two steps need a stringer layout?
- A total rise of 7-3/4 in or less is one riser and no treads: a single step down to the landing. From there up to 15-1/2 in the layout is two risers and one tread, which is often built as a box step. The riser limit and the 3/8 in variation limit still apply.
Cut the whole deck, not just the stair
This page lays out the stair. The app does more of the deck: decking board counts, railing posts and baluster spacing, plus a printable stair cut plan with the notches marked.
CutOnce runs this stair math on the jobsite, checks it against IRC R311.7 in imperial or metric, and tracks the throat left in the stringer.
See also
