Deck Building Codes: Best Practices for Local Compliance

March 16, 2023

A contractor uses a power drill to fasten a decking rim board to a rim joist while installing a deck.

A new deck can be a great addition to your house and may make for a nice DIY project, but navigating your local building codes can make it not so beginner-friendly. Your project has to meet certain deck building codes to ensure your family and property are safe, and to maintain local property regulations.

From the height of your deck to how you install your deck stairs, local building regulations vary. Check in with your local building authority and apply for all necessary building permits before you begin your project.

Otherwise, there are general installation best practices to consider when you plan your new deck. Check out these deck code requirements to get started, and be sure to consult your manufacturer’s guidelines when installing composite or PVC decking.

In This Article:

Deck code requirements to know

A birds-eye view of a deck highlights features like railing, stairs, and substructure that have important code regulations.

Building codes are written to protect homeowners and provide for safer, more durable installations. They also help maintain homeowners insurance coverage and provide peace of mind to a prospective buyer when it’s time to sell.

Critical elements like stair and railing requirements, substructure guidelines, and requirements by material choice are all addressed by building codes.

Building codes can be localized, as a beachfront home in California has very different needs than a Midwest cabin in the woods. One of your first stops should be your local building authority for specific guidelines and permits.

However, you can start with these general deck building codes and best practices:

Codes may also vary depending on your deck’s design, like whether it’s attached to your house or not.

Building codes for a deck attached to the house

Decks are commonly connected to homes, which makes them structural alterations that require a building permit and specific guidelines for a safe and durable deck. If you’re building an attached deck, here are some specific details you’ll need to know to meet common building codes:

TimberTech Tip:
Dimensions marked 2x indicate to use lumber with a nominal thickness of 2″ and the minimum width depends on the supporting beam spans.

Freestanding deck building codes

Freestanding decks are self-supporting structures that won’t connect with your home’s foundation or floor joists. This means that installation and building codes vary, and you may not even need a building permit for smaller platform decks.

Many of the attached-decking guidelines apply to freestanding decks, but there are some specific guidelines to know before choosing a platform deck. Always consult your local code requirements before construction.

Deck joist and framing codes

An illustration shows deck joists underneath partial decking to indicate joist spacing of 12–16 in. on center and blocking rows with 4–6 ft. spaces.

Your deck’s substructure, including footings, posts, and joists, ensure your deck has a structurally sound foundation for years to come. Things like joist spacing and post height are integral to the rest of your deck’s build and impact load capacity and strength.

These details can vary based on your location, so check with your local building codes and consider what elements may impact your deck, like exposure to salt water or extremely dry climates. This may impact your choice of fasteners or deck design, but the chart below will provide a good overview of substructure building guidelines.

Deck Joist Spacing

Joist Spacing
Joist Size
Without Cantilevers
With Cantilevers
12″
2″x6″
11′-1″
7′-5″
12″
2″x8″
13′-8″
10′-9″
12″
2″x10″
17′-5″
15′-6″
12″
2″x12″
18′
18′
16″
2″x6″
9′-7″
6′-9″
16″
2″x8″
12′-5″
10′-9″
16″
2″x10″
15′-10″
15′-6″
16″
2″x12″
18′-10″
18′
24″*
2″x6″
7′-10″
5′-10″
24″*
2″x8″
10′-2″
10′-2″
24″*
2″x10″
13′-1″
13′-1″
24″*
2″x12″
15′-5″
15′-5″

Source: AWC

*Not recommended for manufactured decking unless otherwise specified by the manufacturer. TimberTech’s Advanced PVC Decking is designed to span up to 24″ on center.

Joist Size

Joist Size
Joist Hanger Capacity
2″ x 6″
350 lbs.
2″ x 8″
600 lbs.
2″ x 10″
700 lbs.
2″ x 12″
800 lbs.

Deck stair codes and safety

Front porch steps with illustrations indicate common code measurements for items like step risers, railing gaps, railing heights, and more.

Regulations may vary by location.

Many decks are attached to existing homes and are at least 30″ above the ground, so deck stairs and adequate railings are a must. Stairs can be tricky, since a riser that’s too high or a tread depth that’s too small can make them difficult to use at best, and a tripping or health hazard at worst. This is why the building code states that within a run of stairs the vertical rise of a step and depth of a tread can not vary by more than 3/8″.

These deck stair and railing codes help ensure you’re in compliance with building best practices and that you and your guests can enjoy your deck without worry.

Stair Anatomy:
• Treads are the stair’s steps
• Risers are the vertical sections between treads
• Stringers are the structural members, typically made of wood, that carry the stair treads and risers

Deck railing codes

Deck railings are often required to prevent serious falls or injury. You’ll find a variety of railing styles so you can choose what’s best for your lifestyle and aesthetic.

Regardless of the type of railing you install, you’ll need to consider these railing codes to pass inspection:

Deck ledger board codes

A deck with a dining table shows an orange highlight where the ledger board would be installed and three illustrated icons for installation best practices.

Ledger boards are rim boards used to attach a deck to a house and its floor structure. One of the major causes for deck failure is improperly attached ledger boards, which should always connect structures with lag screws or bolts — not nails.

This connection is critical to the health and safety of your deck, so be sure you consult your local building codes and follow installation guidelines to the tee. If you’re unsure of your build, contact a professional for help.

Of course, there are several factors that impact your structure’s strength when installing a deck with a ledger board, so be sure to read up on these building codes as well as your local guidelines.

A new deck is an exciting project that may seem easy enough for beginners, but there’s a lot that goes into a safe and structurally sound deck. Whether you’re planning an all-wood deck or investing in low-maintenance composite materials, these deck building codes will help ensure your new structure passes inspection and has years of life to come.

Decide DIY isn’t right for you? Find a qualified contractor to plan your new project with confidence that your deck will be beautiful and up to code.

See & feel the TimberTech advantage

Our Advanced PVC and Composite Decking lines combine recycled materials with all the beauty of traditional wood, making them the ultimate eco-friendly decking materials.

order free samples

Multiple wicker furniture outdoor living room areas on a light tan deck