Prices, Promotions, styles, and availability may vary. Our local stores do not honor online pricing. Prices and availability of products and services are subject to change without notice. Errors will be corrected where discovered, and Lowe's reserves the right to revoke any stated offer and to correct any errors, inaccuracies or omissions including after an order has been submitted.

How to Build Railings on a Deck and Install Wood Decking

Marc McCollough

By Marc McCollough
Updated January 13, 2025

With the deck frame complete, you can begin installing decking and building a deck railing. From spacing the decking to sizing the lumber you use for making deck rails, we show you how to install decking boards and how to build railings on a deck. See the full project at Lowes.com/BuildaDeck.

Skill

Intermediate

Time

One Weekend

Tools and Materials

Note

Product costs, availability and item numbers may vary online or by market.

DIY Deck Handrails and Decking Need a Sturdy Frame

Before you start building a deck railing and before you start installing the decking boards, your deck needs a stable frame. See our how-to on installing posts and framing.

If you want to attach composite decking rather than wood decking, look at our project that explains how to install composite decking and railings.

Caution

Follow all local building codes.

Wood for Deck Railings and Decking

In this project we’re using pressure treated wood for deck railings, including the top and bottom rails, the rail cap and the balusters, as well as for the decking boards. Pressure treated pine is the most common wood for decks and the most readily available. Pressure treated fir is also an option. Pressure treated lumber has a chemical treatment that helps resist rot and wood-eating insects.

Depending on your location, cedar and redwood may also be options for deck components. Both have natural resistance to rot and insects and each has a unique look. Shop online or visit your local Lowe’s where one of our Red Vest associates can discuss your options and help you find the best wood for your railing and decking.

Decking

Pressure Treated Lumber

Deck Railing Systems

Deck Balusters

Deck Stairs

Building a Deck Railing: Mounting the Railing Posts

There are two ways to mount posts when making deck rails — on the inside of the rim and end joists or on the outside. For our DIY deck handrail, we’re mounting the posts on the outside of the joists. To learn how to mount the posts on the inside of the rim joists, see our project on installing composite decking and railings. For this project we cut the railing posts for our deck rails from 4 x 4 lumber.

Tip

Mount your deck railing posts on the inside of the rim joist if you plan to upgrade to vinyl railings later.

DIY Deck Handrail Post Installation

Installing the Decking

Decking — 5/4 x 6 boards — goes down next. Since this deck is wide, it will have two parting boards running down the middle, perpendicular to the decking. Extra bracing between the middle floor joists supports the boards.

Good to Know

You’ll often see decking boards listed with a common (or nominal) measurement of 5/4 inch thick. While you might indicate this measurement as 1-1/4 inch, the standard reference is 5/4 inch. Also note that the actual measurement of the thickness of a 5/4-inch board is usually 1 inch. See our video Why Is a 2 x 4 Not 2 by 4? to learn about the difference between common/nominal measurements and actual measurements.

Decking Board Installation

How to Build Decking Rails

The wood for the deck railings consist of 2 x 4 top and bottom rails, a 5/4 x 6 rail cap and 2 x 2 balusters. We’re building the deck railing by attaching the rails to the back of the posts, installing the cap on the top rail and attaching the balusters between the posts.

Tip

Make miter cuts at the ends of rail caps that will meet at corners.

DIY Deck Handrail Installation

Pressure Treated Wood for Decks

The wood for deck railings and decking board is typically pressure treated lumber.

Guidelines

  • Use fasteners and hardware labeled for treated lumber — stainless-steel or hot-dipped, galvanized screws.
  • If the lumber is wet — it typically is when the store delivers it — butt it together tightly when building. Pressure-treated wood shrinks as it dries.
  • Drill pilot holes in the ends of boards to prevent splitting when you nail or screw them together.
  • Use wood rated for ground contact when necessary for the project.

Safety

  • Wear a respirator mask and eye protection when handling or cutting wood.
  • Wash your hands after working with treated wood.
  • Dispose of sawdust and waste according to local regulations.
  • Don't burn pressure-treated wood.
  • Don't use pressure-treated wood as mulch.
Read more about pressure-treated lumber and wood preservatives on the EPA website:

Overview of Wood Preservative Chemicals.

Next Steps After Installing a Deck Railing and Decking

The last railings will go on the stairs. See how to on building stairs and adding stair railings.

Watch the complete deck series at Lowes.com/BuildaDeck.