Most deck stairs die from one of two things: rot at the ground, or math that was never right to begin with. Stringers sitting on soil, tread boards butted tight so water can't escape — three years later a screwdriver goes straight through. Or risers that aren't equal, a bottom step an inch taller than the rest, and the staircase feels wrong every time you use it.
Both are avoidable. Deck stairs are one of the most approachable framing projects for a DIYer, as long as the layout is done right and the structure sits on something that won't move or rot. This guide walks through the entire job — measuring, math, materials, cutting stringers, installation, railings, and the code numbers an inspector will check.
Should you DIY this? A straight run of stairs from a deck to a patio or yard is squarely in DIY territory. You'll need a circular saw, patience, and a willingness to measure twice. Multi-landing switchback stairs, curved stairs, or stairs that have to tie into tricky existing framing are a different animal — if you're not confident laying out a landing and keeping two runs aligned, that's a reasonable place to call a pro.
Planning & Measuring: The Total Rise
Everything in stair layout flows from a single number: the total rise. That's the vertical distance from the finished surface at the bottom to the finished surface at the top. Finished to finished — not the subfloor, not the current grass level if you're about to pour a concrete pad. The height of your landing pad counts, so decide what the bottom surface will be before you measure.
To measure: set a long, straight board on the deck surface, level it, and measure straight down to the lower finished surface. Write that number down in inches. For this guide, we'll work with a common scenario: a deck surface 48 inches above a concrete patio. Total rise: 48".
Now pick a target riser height. Code allows up to 7¾ inches, but taller risers feel steep — especially outdoors, where steps get wet and icy and get climbed with an armload of groceries. A 7 to 7¼ inch riser is noticeably more comfortable. We'll target 7.5".
The riser math is three steps:
Divide total rise by target riser height: 48 ÷ 7.5 = 6.4 steps.
Round to a whole number — but round up when rounding down would push you over the 7¾" code maximum. 6.4 rounds to 6 risers at exactly 8" each — which is over code. So we go to 7 risers instead.
Re-divide: 48 ÷ 7 = 6.86" (about 6⅞") per riser. Every riser identical, comfortably under the 7¾" max, and in that sweet spot for comfort.
So: 7 risers at 6.86" each. That's the whole game — code requires riser heights to be uniform within ⅜ inch, but you want them dead even. The human foot notices a quarter-inch variation on the way down, usually at the worst possible moment.
This rounding logic matters. The lazy shortcut — divide, round to the nearest whole number, accept whatever falls out — is how stairs end up with 8-inch risers that fail inspection. When in doubt, add a riser and keep every step short. Short steps never fail an inspection; tall ones do.
Choosing Tread Depth
Code minimum tread depth is 10 inches, measured nose-to-nose. Outdoors, 11 inches (a full 2x12 tread, actual 11¼") is the better choice. Deeper treads shed water better, give your whole foot somewhere to land, and feel safer in work boots. On exterior stairs I always go 11".
Here's the part that trips people up: the number of treads is one fewer than the number of risers, because the top "tread" is the deck surface itself. For our 7-riser example: 7 risers × 6.86" = 48" of rise, and 6 treads × 11" = 66 inches of horizontal run. That 66-inch number is what determines how far your stairs stick out from the deck.
Treads should also overhang the riser face below by ¾" to 1¼" (the nosing projection). Too little nosing and the stair feels steep underfoot; too much and the nosing becomes a lever that pries the board apart over time. When you build each step from two tread boards, the front board naturally forms the nosing — just make sure it projects past the riser face in that range.
Checking the Layout Footprint
Before buying lumber, check that the stairs actually fit. You need 66 inches of horizontal run from the face of the deck, plus a landing pad at the bottom. Code requires a landing at the top and bottom of every stairway — at least as wide as the stairs and at least 36 inches deep in the direction of travel. A concrete pad is the right bottom landing for exterior stairs.
Sketch the footprint on the ground with spray paint before you buy a single board. Mark the deck face, the 66" run, and a 48" × 48" pad area at the bottom. It takes five minutes and catches the classic disasters — stairs landing in a flower bed, a downspout, or six inches from a fence. Also check headroom: you need 6'8" of clearance above the nosing line. Outdoors that's rarely an issue unless the stairs pass under a deck beam or bump-out.
Tools You'll Need
Tape measure (25') and a sharp pencil — layout lives or dies on these two. A dull pencil line is a quarter inch of error waiting to happen.
Framing square with stair gauges — the little brass stops that clamp to the square. Non-negotiable for laying out stringers; without them you can't mark rise and run consistently.
Circular saw with a sharp framing blade for the long stringer cuts.
Jigsaw or handsaw — for finishing the stringer notch corners. A circular saw always overcuts past the corner, and those overcuts create stress points that can crack. Always finish with the jigsaw.
4-foot level for checking stringers and the overall run, plus a torpedo level for smaller checks.
Speed square for marking cut lines and checking square.
Drill/driver — you'll be driving a lot of structural screws; have two batteries charged.
Post-hole digger or auger for footing piers.
Wheelbarrow, hoe, and concrete mixing tub (rent a mixer for the day if you're pouring more than a few bags).
String line and stakes for keeping everything aligned over a long run.
Safety gear: glasses, hearing protection, and a dust mask — especially when cutting pressure-treated lumber.
Choosing Materials
Pressure-treated lumber is the standard for outdoor stairs, and it's the right default. Use 2x12 boards for stringers — nothing narrower has enough material left after the notches are cut. Anything within 6 inches of soil must be rated for ground contact (look for UC4A or higher on the stamp). The stamp matters; above-ground rated lumber won't survive ground contact.
For treads you have three real options:
2x6 pressure-treated — the workhorse. Two boards per step with a gap between them. Full 1½" thickness, stiff, cheap, easy to replace if one rots.
5/4x6 deck boards — the same profile as most deck surfaces, so the stairs match the deck. Thinner (1" actual), perfectly fine for treads at 16" stringer spacing, but don't span farther than that.
Composite deck boards — low maintenance and they'll never rot, but they can't be used for stringers (no structural rating). Over PT stringers they work well, with two caveats: composite flexes more, so you need stringers at 12" on center instead of 16", and it gets uncomfortably hot in direct sun on bare feet.
Fasteners: use structural screws rated for exterior use — hot-dipped galvanized or stainless. Pressure-treated lumber corrodes ordinary fasteners, and the wrong screws will bleed rust streaks down your stringers within a season. Two screws per board per stringer, pre-drilled near the ends. Never use plain nails for treads — nails back out as the wood moves through wet-dry cycles.
Rough material list for a typical 42"-wide stair (adjust quantities to your step count):
3 × 2x12x12' pressure-treated (stringers)
12 × 2x6x8' or 5/4x6 deck boards (treads, two per step)
2 × 4x4x8' pressure-treated (rail posts)
2 × 2x4x8' pressure-treated (handrails and rail framing)
Balusters: 2x2s or pre-cut balusters, enough for ~5" spacing
4–6 bags of ready-mix concrete (landing pad)
1 box 3" exterior structural screws, 1 box 2½" exterior screws
½" carriage bolts, washers, and nuts for through-bolting posts
Metal stair hangers or joist hangers for the top connection
Cutting the Stringers
Stringers are the sawtooth-shaped boards that carry everything. This is the skilled part of the job, and it's easier than it looks once the gauges are set.
Clamp your stair gauges to the framing square: 6.86" (your riser) on one leg, 11" (your tread) on the other.
Lay the square on the 2x12 with the gauges pressed against the board's edge. Trace the first step profile — the short leg marks the riser, the long leg marks the tread.
Slide the square down the board, aligning the gauge points with your last mark, and trace the next step. Work your way down until you have all 7 risers marked.
The drop cut: before cutting, shorten the bottom of the stringer by the thickness of your tread material. Why? The first riser is measured from the landing surface up to the top of the first tread — but every other riser sits on top of a tread. If your treads are 1½" thick (2x lumber) and you don't cut 1½" off the bottom of the stringer, your first step ends up 1½" taller than all the rest. That violates the ⅜" uniformity rule and creates a genuine trip hazard. Mark a line parallel to the bottom of the stringer, 1½" up, and cut there.
Cut along the step profile with the circular saw, stopping just short of each inside corner, then finish every notch with the jigsaw. No overcuts.
Cut one stringer first and test-fit it — hold it in place, check that the top lands flush with the deck surface and the bottom sits flat on the pad. Only when it fits do you use it as the template for the rest.
How many stringers: up to 36" wide, two stringers minimum. From 36" to about 48" wide, use three. If you're running composite treads, keep stringer spacing at 12" on center, which usually means three stringers even on a narrower stair.

Installing the Stairs

1. Footings and the landing pad first. Structural, not optional. In frost country, dig below the local frost line — your building department knows the depth (often 24" in mild climates, 36–48" up north). A full-width concrete pad is the simplest reliable footing for a straight run: dig out 6 inches, compact the soil, add 2 inches of gravel, pour a 4-inch pad. The top of the pad is your lower finished surface — part of the total rise measurement, so pour it to the planned height before finalizing stringer cuts.
2. Attach the stringers at the top. Fasten the tops to the deck rim joist or a ledger with structural screws and metal stair hangers. The connection has to resist the stringers pulling away from the deck — don't rely on toenails alone.
3. Set the stringers. Bottoms sit on the concrete pad — never on soil. Check level across all stringers before anything is permanent; shim with composite shims if slightly out, recheck cuts if more than ¼" off.
4. Install the treads. Two boards per step with a ¼" to ⅜" gap between them and between tread and riser — those gaps are drainage. Pitch each tread about ⅛" toward the nosing so water runs off instead of pooling. Two screws per board per stringer, pre-drilled near the ends. Screws, not nails.
Railings
Code requires a handrail when there are 4 or more risers — which covers nearly every deck stair. Handrail height: 34 to 38 inches measured vertically from the tread nosing line. It must be graspable (a 2x4 on edge doesn't qualify) and continuous for the full flight.
Set 4x4 posts at the top, bottom, and at least every 6 feet. Through-bolt them to the stringer with ½" carriage bolts — not just screwed, through-bolted. A railing post held by screws alone will loosen within a couple of seasons of people leaning on it.
Guards are required on any open side where the drop is more than 30 inches. Guard height: minimum 36 inches. Baluster spacing must not allow a 4-inch sphere to pass through — the famous 4-inch sphere rule. A scrap of 2x4 (3½" actual) makes a perfect go/no-go gauge: if it fits between balusters, they're too far apart. Cap the rail with a 2x6 for a comfortable grip surface.
Code Requirements Summary (IRC R311.7)
Maximum riser height: 7¾"
Minimum tread depth: 10" (nose to nose)
Nosing projection: ¾" to 1¼"
Minimum stair width: 36" clear
Riser uniformity: tallest and shortest riser within ⅜" of each other
Handrail: required at 4+ risers; height 34–38" above the nosing line; must be graspable and continuous
Guards: required where drop exceeds 30"; minimum 36" tall; 4-inch sphere rule for baluster spacing
Landings: required top and bottom; at least as wide as the stairs, minimum 36" deep in the direction of travel
Headroom: minimum 6'8" above the nosing line
One more thing: your local code can be stricter than the IRC. Some jurisdictions require 11" minimum treads outdoors, handrails on both sides regardless of riser count, or permits for any stairs over 30" tall. Call your building department before you start — ten minutes on the phone, and the inspector will tell you exactly what they want to see.
Common Mistakes to Avoid
Bad bottom-riser math. The most common layout error: dividing total rise by target riser height, rounding down, and accepting a riser over 7¾". The 48-inch example above shows exactly how that happens — 6 risers at 8" each looks tidy on paper and fails inspection. Always round up to more risers when rounding down breaks the maximum.
Forgetting the drop cut. Skip subtracting tread thickness from the bottom of the stringer and the first step ends up 1½" taller than the rest — a trip hazard and a code violation in one. Measure the actual tread thickness and cut it off the bottom before installing.
Setting stringers directly on soil. The number-one killer of exterior stairs. Soil holds moisture, wicks it into the end grain, and shifts with freeze-thaw. Even ground-contact rated lumber rots when buried in mud. Concrete pad or piers, always.
Butting tread boards tight. No drainage gap means water sits trapped between the boards, and trapped water rots wood faster than rain. Stairs pulled apart after a few years often show black mush on the faces between tight boards while the exposed surfaces still look fine. Leave ¼" minimum.
Skipping the permit. "It's just stairs" has bought more than one homeowner a stop-work order. If the stairs serve as required egress or are more than 30" above grade — and most deck stairs are — you almost certainly need a permit. The inspector is usually in and out in fifteen minutes on a straightforward job, and that signed inspection card is worth real money at resale.
Finishing & Maintenance
Pressure-treated lumber arrives wet from the treatment process. Let it dry 2–4 weeks before sealing — sealer applied to wet lumber just sits on the surface and peels. Then seal with a penetrating water-repellent sealer, not film-forming paint, which traps moisture. Hit the end grain hardest; that's where water wicks in. Re-seal every 2–3 years and a PT staircase gives you 15–25 years of service.
FAQ
How many stringers do I need? Two for stairs up to 36" wide, three for 36" to about 48". If you're using composite treads, keep stringers at 12" on center regardless — composite flexes more than wood, so a 48" stair may need four.
Can I set stringers directly on the ground? No. Stringers must sit on a concrete pad or piers, never on soil — even ground-contact rated lumber rots when buried in mud and shifting soil racks the staircase out of level.
Do deck stairs need a permit? Usually yes if they serve as required egress or are more than 30" above grade. A like-for-like tread replacement sometimes doesn't, but reframing stringers almost always does. Call your building department — they'll tell you in ten minutes.
What screws should I use outdoors? Structural screws rated for exterior use — hot-dipped galvanized or stainless. Pressure-treated lumber corrodes standard fasteners. Never use plain nails for treads; they back out as the wood moves.
How wide should deck stairs be? Code minimum is 36" clear. Most deck stairs are built 42–48" wide — 36" feels narrow when two people pass with a cooler. Wider than 48" needs additional stringers and often a center handrail depending on local rules.
Can I use composite treads on wood stringers? Yes — that's the standard way to do it, since composite has no structural rating for stringers. Frame with pressure-treated 2x12s, clad the treads in composite, keep stringer spacing at 12" on center, and remember composite gets hot in direct sun.
Wrapping Up
Deck stairs are a measuring project that happens to involve a saw. Get the total rise right, keep every riser identical and under 7¾", give water somewhere to go, and set the whole thing on concrete instead of dirt. Do those four things and your stairs will pass inspection and outlast the deck they serve. And if the math ever feels uncertain, run your numbers through the free stair calculator at stairscalculator.net before you cut — a second opinion on the layout costs nothing, but a miscut stringer costs a 2x12.