How to Install a Deck Railing That Won't Move or Wobble
Deck railings that move or flex when you lean on them aren't just annoying—they're a sign that the whole system is underbuilt. A proper railing assembly involves three independent load paths: vertical posts anchored to the frame, horizontal rails locked to those posts, and diagonal braces that prevent racking (the side-to-side twist that turns a square frame into a diamond). Most wobble happens because one of these three elements is skipped or fastened with undersized hardware. Building a railing that passes the lean test—the moment you put your hand on it and push sideways—means understanding that the post is doing the real work, the rails are just the skin, and the bracing is what keeps the geometry rigid. You'll need a couple of hours and a drill, but the result is something that feels like it was bolted to bedrock.
- Mark Posts Into the Frame. From underneath the deck, identify where the rim board sits and mark your post locations with a pencil. Posts should be no more than 6 feet apart. Drill a small pilot hole through the rim board at each mark so you can see the location from the top of the deck. Use a tape measure to verify spacing is consistent—uneven post spacing creates visible wobble in the railing line.
- Cut Posts to Exact Height. Measure the vertical distance from the deck surface to your desired railing height (typically 36 to 42 inches). Cut your posts (usually 4×4 lumber) to length with a power miter saw. Sand the cut end smooth and apply a coat of exterior wood sealer to the end grain—this prevents water from wicking into the wood and causing rot.
- Drill Posts Into Frame. Set the first post on the deck, aligned with your pilot holes. Use a level to ensure it's plumb in both directions. Once level, mark the bolt holes through the post and into the rim board. Drill completely through the post and rim board with a drill bit sized for your chosen bolt—typically a 1/2-inch bit for 1/2-inch lag bolts or through-bolts. Countersink the bolt head if desired for a cleaner look.
- Anchor Posts With Bolts. For lag bolts, insert the bolt with a large washer under the head, then tighten with a socket wrench until snug but not over-torqued (which can strip the bolt or crush the wood). For through-bolts, insert from underneath, add a washer and lock washer, then thread a nut on top and tighten from both sides. Aim for 80 to 100 foot-pounds of tension on a 1/2-inch bolt. Each post needs at least two bolts, ideally spaced 12 to 18 inches apart vertically.
- Secure All Posts Plumb. Repeat the drilling and bolting process for each post location. After each post is bolted, use a level to check plumb in both directions and a tape measure to verify consistent spacing. Sight down the line of posts from the deck to check for any bow or twist. Tighten all bolts a final time before moving to the rail installation.
- Install Rails Between Posts. Measure the distance between posts and cut your horizontal rails (typically 2×6 or 2×4 lumber) to fit snugly between them. Position the top rail first, typically 4 to 6 inches below the top of the post. Secure it with bolts (not nails) driven through the post into the rail, or use through-bolts if you're willing to pre-drill. Bottom rails sit about 4 inches up from the deck surface. Install any intermediate rails needed to comply with local codes (typically no gap larger than 4 inches to prevent a sphere from passing through).
- Add Diagonal Braces. Cut 2×4 braces at a 45-degree angle and install them diagonally between posts, from the top corner of one post to the bottom of the adjacent post. Braces should run both directions to create an X pattern when viewed from the side, though a single diagonal per bay is code-compliant in most places. Bolt the braces at both ends using 1/2-inch bolts. This bracing is what transforms a wobbly rail into a rigid system.
- Space Balusters Evenly. Measure the gap between the top and bottom rails. Install vertical balusters (typically 2×2 or 1×2 lumber) spaced no more than 4 inches apart to meet code. Secure each baluster with bolts or structural screws at both top and bottom. Balusters don't provide railing strength—the posts and rails do—but they're required for safety and they add lateral bracing that helps stiffen the overall assembly.
- Test Railing Stability. Go around the entire railing and re-tighten every bolt using a socket wrench. Bolts often loosen slightly as wood settles. Perform the hand-push test: lean against the railing with your full weight and push sideways. There should be no visible movement, no creaking, and no flex. If the railing moves, identify which bolts are loose and tighten them further.
- Seal All Exposed Wood. Once all bolts are tight, apply an exterior wood sealer or stain to the entire railing assembly. Pay special attention to the bolt holes, end grain, and any cracks where water can get in. Sealing protects the wood from weather and extends the life of your railing significantly. Allow 24 to 48 hours of dry time before using the deck.
- Cap Posts and Trim. Cut and install post caps—typically 5×5 or 6×6 stock trimmed to size—on top of each post to shed water and finish the look. Install rail trim (such as a beveled 1×2) along the top of the railing to cover the bolts and create a finished edge. All trim should be fastened with stainless-steel fasteners and sealed against water infiltration.