Deck Building and Maintenance: Materials, Code Requirements and Weather Protection

A safe, long-lasting deck comes down to three things: choosing the right material for your climate and budget, following your local building code and permit process, and protecting the structure from water damage. Pressure-treated lumber, composite, and PVC decking each have different maintenance needs and failure points. Before you buy materials or hire a crew, you need to know what your local building department requires, because deck rules are set city by city and county by county.

Stop: Check for These Safety Hazards First

Deck collapses and falls are usually caused by a small number of preventable problems. Before you plan any new project, walk your existing deck and look for these warning signs.

  • Loose or rotting ledger board. This is the board that attaches the deck to your house. It carries a large share of the deck’s weight. Rust stains, soft or spongy wood, or gaps between the ledger and the house wall are signs of a serious problem.
  • Wobbly or leaning railings. A railing that moves when you push on it may not be attached correctly and can fail under a person’s weight.
  • Cracked, split, or rusted connectors. Metal joist hangers, bolts, and post bases that are rusted through or missing hardware weaken the whole frame.
  • Wobbly posts or footings that have shifted, sunk, or heaved. This usually means the foundation under the deck has moved.
  • Soft, spongy, or discolored decking boards, which can mean rot or insect damage underneath.

Ledger board attachment, footings, framing, and structural repairs are not do-it-yourself projects. If your deck shows any of the signs above, or if you are planning a new deck attached to your house, have a licensed contractor or structural professional inspect the connection points and framing before anyone uses the deck. This is true even for decks that look fine on the surface, because the failure point is usually hidden.

Choosing a Decking Material

Most residential decks are built with one of three surface materials. The framing underneath (posts, beams, and joists) is almost always wood, even when the visible decking is composite or PVC.

Pressure-Treated Lumber

Pressure-treated wood is chemically treated to resist rot and insects. It’s a common choice for both the structural frame and the visible decking boards. It needs regular upkeep: cleaning, sealing, or staining on a schedule to keep water out of the wood.

Left unsealed, it can gray, crack, splinter, and warp over time. Because it’s treated with preservative chemicals, follow the manufacturer’s handling and disposal guidance, and never burn pressure-treated wood scraps.

Composite Decking

Composite boards are made from a mix of wood fibers and plastic. They generally resist rot and splintering better than untreated wood and don’t need staining or sealing. They can still fade in strong sun, and some products absorb heat and get hot underfoot in direct sunlight. Composite boards expand and contract with temperature, so proper gapping during installation matters.

PVC Decking

PVC decking is a fully synthetic plastic board with no wood content. It resists moisture, rot, and insects well and is generally low-maintenance. It tends to cost more upfront than pressure-treated wood. Like composite, it expands and contracts with temperature changes, and manufacturer installation instructions should be followed closely for spacing and fastening.

Quick Comparison: What Matters to You Most?

  • Lowest upfront material cost: Pressure-treated lumber is typically the most affordable option, though your total project cost also depends on labor, framing, and site conditions.
  • Least ongoing maintenance: Composite and PVC decking generally require less recurring sealing and staining than pressure-treated wood.
  • Traditional wood look and feel: Pressure-treated lumber offers a natural wood appearance and can be sanded, stained in different tones, or repaired board by board.
  • Best moisture and insect resistance: PVC decking is fully synthetic and doesn’t have wood fibers for insects or rot to target; composite is more resistant than untreated wood but still contains wood fiber.

Ask your local supplier or contractor for specific product warranties, current pricing, and manufacturer maintenance instructions, since these vary by brand and change often.

Building Codes and Permits

Almost every jurisdiction requires a permit for a new deck attached to a house, and many require one for detached decks above a certain size or height. Codes commonly address footing depth, ledger board attachment, guardrail height, baluster spacing, and stair requirements, but the specific numbers vary by state and local code adoption. Do not treat any guardrail height, footing depth, or spacing figure you find online as your local requirement.

Before you buy materials, contact your local building or permitting department to confirm:

  • Whether a permit is required for your specific project
  • Setback rules from property lines
  • Footing depth requirements for your soil and frost conditions
  • Guardrail, handrail, and baluster spacing rules
  • Whether an inspection is required before the deck can be used

Skipping a required permit can create problems later, including issues at resale or with your homeowner’s insurance if the deck was not built to code. If you’re unsure who to contact, your city or county website usually lists the building or code enforcement department, or you can call your local city hall.

Weather Protection and Moisture Control

Water is the main reason decks fail early. Moisture that gets trapped against the house, framing, or footings can cause rot, corrode metal connectors, and create conditions for mold growth, both on the deck and against the exterior of your house where the ledger board attaches.

  • Flashing at the ledger board. Proper flashing directs water away from the point where the deck meets your house siding. Missing or damaged flashing is a common cause of hidden rot.
  • Drainage and grading. Water should drain away from footings and posts, not pool around them.
  • Gaps between boards. Small gaps let water drain through instead of collecting on the surface.
  • Sealing wood surfaces. If you have a wood deck, reapply sealant or stain on a regular schedule, especially on end grain and any spots where finish has worn away.
  • Checking under the deck. Periodically look underneath for standing water, mold, or soft framing, particularly after heavy rain.

Moisture problems around the home, including trapped water near a deck-to-house connection, are one of the housing conditions tracked by the HUD Office of Lead Hazard Control and Healthy Homes, which addresses mold, moisture, and other whole-home health and safety hazards.

A Simple Maintenance Schedule

  • Every season: Sweep debris out from between boards and clear leaves from under the deck to reduce moisture buildup.
  • Once or twice a year: Inspect railings, stairs, ledger board, and visible hardware for looseness, rust, or damage. Check for mold or algae on the surface.
  • As needed based on material: Clean and reseal or stain wood decking on the schedule recommended by your sealant manufacturer. Follow the manufacturer’s cleaning instructions for composite or PVC boards.
  • After severe weather: Check footings, posts, and the ledger connection after major storms, heavy snow loads, or flooding.

The U.S. Consumer Product Safety Commission also tracks recalls involving decking hardware and railing products. It’s worth checking CPSC’s safety education resources and SaferProducts.gov periodically, especially if you’re buying premade railing kits or deck hardware.

Frequently Asked Questions

Do I need a permit to build a deck?

In most areas, yes, especially for a deck attached to your house or one above a certain height or size. Requirements differ by city and county. Contact your local building department before you start to confirm what applies to your project.

What’s the real difference between pressure-treated wood and composite decking?

Pressure-treated wood is real lumber chemically treated to resist rot and insects; it needs regular sealing or staining and can splinter or warp over time. Composite decking blends wood fiber with plastic, generally needs less upkeep, and resists splintering better, though it can fade and get hot in direct sun.

How often should I reseal or stain a wood deck?

This depends on your climate, sun exposure, and the specific sealant or stain product you use. Check the product manufacturer’s recommended reapplication schedule, and reseal sooner if you notice water no longer beads on the surface.

How do I know if my deck is unsafe to use?

Warning signs include a wobbly railing, soft or spongy boards, rust or gaps at the ledger board, and posts or footings that have visibly shifted. If you see any of these, stop using the deck and have it inspected by a licensed contractor or structural professional before continuing.

Safety Disclaimer

This article provides general educational information about deck materials, maintenance, and code awareness. It is not a substitute for a local building code review, a structural inspection, or advice from a licensed contractor. Codes, permit rules, and product specifications vary by location and change over time; verify current requirements with your local building department before starting a project.

Structural framing, ledger board attachment, and footing work should be evaluated or performed by qualified professionals. For a full overview of the project types and hazards we won’t walk you through step by step, see our project safety disclaimer. You can also review how we research and source our guidance, our editorial standards, and the four project questions we recommend asking before any home project.