How to Attach a Stair Stringer to a Deck

Short answer: to attach a stair stringer to a deck, hang the top of each stringer from the deck’s rim joist with a metal connector made for the job, fill every hole with the fastener the connector calls for, and set the bottom on a solid footing or landing. Nails or screws driven into the end grain of the stringer are not a connection. The hardware carries the load.

A common weak point on deck stairs is the top, where a stringer was toenailed to a rim board and looked fine the day it was built. A few seasons of foot traffic can work a connection like that loose. This guide shows how the connection should go together, in what order, and what to measure before you cut anything.

If you still need the stringer dimensions, run your total rise through the CalcForBuild stair calculator. It gives you the number of risers, the actual riser height, the total run and the stringer length. Then come back here to hang the stringers.

Two carpenters seating a stair stringer into a galvanized metal connector on a deck rim joist, one driving a fastener with a drill
The stringer sits fully in a connector made for the job, and every hole gets the fastener it calls for.

What do you need before you attach the stringers?

Settle three things first: the stringer material, how many you need, and what you are attaching to.

One city deck guide asks for 2x12 stringers at minimum, allows a cut stringer to span no more than 6 feet before it needs a post or other intermediate support, and says stringer spacing may not be wider than the deck joist spacing (City of Spokane deck guide). Other jurisdictions set different spacing, so ask your building department which one applies to you.

The thing you attach to matters just as much. A hanger is only as good as the board behind it, so look at the rim joist before anything else. It should be sound, straight and fastened to the deck framing the way the deck was designed. Rot, split boards and old toenails all mean you fix the framing first.

How do you attach a stair stringer to a deck, step by step?

  1. Get the numbers right. Measure the total rise from the finished deck surface down to the landing, divide by the largest riser your code allows, and round up to a whole number of risers. Then divide the rise by that count to get your actual riser height.
  2. Check the rim. If the stringers will hang from a rim joist that runs parallel to the deck joists, that rim needs blocking back to the next joist, as the county detail in the hanger section below explains.
  3. Mark the stringer locations. Mark the face of the rim for each stringer and keep the spacing within what your code and your tread material allow.
  4. Mark the top of the stringer. Measure down from the deck surface to where the top of the stringer should sit. The deck itself acts as the top tread, so the first step down from the deck is one full riser.
  5. Install the connectors. Fasten a connector to the rim at each stringer location with the fasteners the manufacturer specifies, filling every hole.
  6. Seat the stringers. Set each stringer fully into its connector, check that the stringer tops are level with each other, and then fasten through the connector into the stringer.
  7. Secure the bottom. Bolt or bear the stringers on a footing, post or landing, as described below.
  8. Add treads and check the risers. Measure every riser after the treads go on. Rise should be equal from the top to the bottom of the flight.

Do not skip the check in step 8. The bottom riser is the one that goes wrong, because the treads add thickness on top of the stringer. Builders commonly trim the bottom of the stringer by the thickness of the tread material so that the first step comes out the same as the others. Dry-fit one stringer before you cut the rest.

Which stair stringer hangers do you need?

Use a connector designed for stringers. In practice that means a sloped joist hanger or a bendable framing angle made for the purpose, installed exactly as the maker’s instructions describe. One county’s attachment detail requires one of those two kinds of connector at the top of the stringers. That holds whether the stringers attach straight to the deck framing or are built as a separate assembly first (Henrico County stair stringer attachment details). The same sheet prohibits carriage bolts at both the deck connection and the footing connection.

Three rules apply to nearly every hanger on the market:

  • Use only the fasteners listed for that connector, and fill all the holes. A hanger with half its holes empty is not carrying the rated load.
  • Match the finish of the hardware to the lumber. Treated wood needs connectors and fasteners rated for it.
  • Never substitute a few deck screws because they are in your pocket. If the manufacturer does not list the screw, do not use it.

I am not giving you a nail count or a load rating here. Those numbers come from the hardware you buy and from your local code, and they are not mine to guess.

Where does the top of the stringer sit on the deck?

There are two common ways to handle the top, and the county detail above covers both.

When the stringers attach directly to the rim joist, the top tread sits flush with the top of the deck boards. If the rim runs parallel to the deck joists, block it back to the next joist so the hangers are not pulling on a single board.

When you build the stairs as a separate assembly and then attach it, the drop from the deck surface to the top tread has to match the riser height used for the rest of the stairs.

MethodWhere the stringer hangsWatch for
Direct to rim joistFace of the rim, with the connector fastened to itRim must be sound and blocked if it runs parallel to the joists
Separate assemblyA stringer band, then attached to the deckDrop from the deck to the first tread must equal the other risers

How do you secure the bottom of the stringer?

The bottom needs a firm, level base that will not move with the seasons. A paver pad set on loose fill will shift, and a stringer resting on bare soil will rot.

The county sheet above describes a footing that reaches at least frost depth, unless the stair belongs to a freestanding deck. It also calls for a treated 4x4 post and a through-bolt connecting the stringer to that post. Check what your area asks for, because frost depth and footing requirements vary a great deal from place to place.

Keep the base of the stair at least as wide as the stairs and ask your inspector for the minimum landing depth. That number depends on your code edition.

Two workers bolting a stair stringer to a treated post on a concrete footing, one tightening the bolt and the other measuring the riser
The bottom of the stringer is bolted to a treated post on a footing, then the riser height is checked.

What does a worked example look like?

Take a deck surface 36 inches above the ground, with a 10 inch tread depth and a code limit of 7 3/4 inches for the riser.

  • Riser count: 36 / 7.75 = 4.65, so round up to 5 risers
  • Actual riser height: 36 / 5 = 7.2 inches
  • Treads: 5 risers - 1 = 4 treads (the deck acts as the top tread)
  • Total run: 4 x 10 = 40 inches
  • Stringer length (diagonal): the square root of (36 squared plus 40 squared) = 53.8 inches, about 4.5 feet

Buy a board longer than 4.5 feet. The diagonal is the theoretical length, and it leaves out the extra you lose to the cuts at each end. For other deck heights, here are the same numbers worked out:

Deck heightRisersRiser heightTreadsTotal runStringer length (diagonal)
24 in46.00 in330 in38.4 in
30 in47.50 in330 in42.4 in
36 in57.20 in440 in53.8 in
42 in67.00 in550 in65.3 in
48 in76.86 in660 in76.8 in

These are our own calculations using a 7.75 inch riser limit and a 10 inch tread. One quirk worth knowing: the stair calculator rounds to the nearest whole riser, so at some heights it can land just over a riser limit. Always read the “actual riser height” it shows and compare it with your local maximum.

What mistakes cause stair stringers to fail?

  • Toenailing into the end grain. Nails in end grain resist pulling out poorly. Use the hanger.
  • Skipping the blocking. A rim board that runs parallel to the joists needs support behind the hangers.
  • Leaving the bottom on dirt or loose pavers. The stairs sink or lift, and the risers go unequal.
  • Cutting the notches too deep. A heavily notched stringer has little wood left in the middle. Leave plenty of uncut material, and ask your inspector for the minimum your code requires.
  • Skipping the final riser check. Uneven risers are a trip hazard and a common reason a stair fails inspection.

Quick reference

Rise divided by the largest allowed riser, rounded up, gives the number of risers. Treads are risers minus one. Total run is treads times tread depth. Hang each stringer from the rim with a stringer connector, fill every hole with the specified fastener, and put the bottom on a solid footing. To run your own numbers, use the stair calculator.

FAQ

How do you attach stair stringers to a deck rim joist? Fasten a stringer connector (a sloped joist hanger or a bendable angle made for stairs) to the rim at each stringer, set the stringer fully into it, and fasten it with the connector’s listed fasteners. Block the rim back to the next joist if it runs parallel to the deck joists.

Can you attach a stair stringer with screws or nails alone? No. Fasteners driven into the end grain of a stringer hold poorly, and nails and screws alone are not a rated connection. Use a connector made for stringers, and use only the fasteners it lists.

How far apart should stair stringers be? No single number fits every deck. The spacing depends on your local code and on the tread material, and composite treads often need closer spacing than wood. Check the tread maker’s instructions and ask your building department.

How do you attach the bottom of a stair stringer? Land it on a solid footing, post or landing that will not settle or heave, and connect it with hardware your code accepts. Check frost depth and landing requirements with your local building department.

Do I need a permit to build deck stairs? It depends on where you live. Many places treat stairs as part of the deck permit. Call your local building department before you start.


Last reviewed October 30, 2026.

Stringer sizes, spacing, footing requirements and landing sizes vary by jurisdiction and code edition. Figures here come from the two government documents linked above and from our own calculations, and they are planning information, not engineering advice. Follow the connector manufacturer’s instructions for the hardware you use.

Share this article