How to Build a Deck

Step-by-step guide to planning and building your own deck, from permits to finishing.

Updated June 2026|12 min read
AG

Written by the App Guidebook Team

App Guidebook Team

16β€³ OC Joist Spacing
deck category illustration

The illustration shows standard 16β€³ OC joist spacing for deck framing. Joist spacing, frost-line footing depth, and railing height are all governed by local building codes. Preservative-treated and composite lumber differ significantly in installation process and curing requirements. Always account for cutting waste when estimating materials.

Building a deck is one of the most rewarding DIY projects you can undertake. A well-built deck adds living space, increases property value, and provides a perfect outdoor gathering spot. This guide walks you through every step from planning to finishing.

⚑ Get instant material estimates:

Planning and Permits

Before you break ground, check your local building codes and permit requirements. Most municipalities require permits for decks over a certain height or size. Draw a detailed plan including dimensions, post locations, and material specifications.

Consider your deck's orientation β€” south-facing decks get more sun, while north-facing stays cooler. Account for existing trees, drainage patterns, and access points for material delivery.

Choosing Materials

The three most common decking materials are pressure-treated wood, cedar/redwood, and composite decking. Pressure-treated lumber is most affordable ($2-4 per sq ft), cedar offers natural beauty ($4-7 per sq ft), and composite requires minimal maintenance ($6-12 per sq ft).

For the frame, use pressure-treated lumber or tropical hardwood. Choose galvanized or stainless steel hardware to prevent corrosion. Your decking board choice affects both appearance and long-term maintenance.

Foundation and Framing

Deck foundations typically use concrete footings with post anchors. The depth depends on your frost line β€” usually 12-48 inches deep. Space posts according to your deck size and local codes, typically 6-8 feet apart.

Frame with double beams at post tops, then install joists perpendicular to the beams at 16 or 24 inches on center. Use joist hangers for every connection and install blocking between joists for stability.

For complete material estimation formulas covering decking boards, framing lumber, and concrete volume, see the companion guide Deck Materials Calculator.

Installing Decking Boards

Start decking installation from the house side, working outward. Leave a 1/8-inch gap between boards for drainage and expansion. Stagger end joints across different joists for a stronger, more attractive surface. Use two screws or hidden fasteners at every joist crossing.

Railings and Stairs

Railings are required for decks over 30 inches high. Most codes require rails at least 36 inches tall with balusters spaced no more than 4 inches apart. For stairs, calculate rise and run carefully β€” typical step dimensions are a 7-inch rise with an 11-inch tread.

Finishing and Sealing

If using wood decking, apply a water-repellent sealer or stain within a few weeks of installation. Clean the deck first and apply on a dry day above 50Β°F. Reapply every 1-3 years depending on climate and sun exposure.

Pro Tips

Call Before You Dig

Always call your local utility locating service before digging post holes. They will mark underground gas, electric, and water lines at no cost.

Buy Extra Material

Order 10-15% extra decking material to account for cuts, waste, and future repairs. Return unopened bundles if unused.

Use Hidden Fasteners

Hidden deck fasteners create a cleaner appearance and prevent screw holes that can collect water and lead to rot.

Summary

Building a deck is a significant project, but careful planning and the right materials ensure lasting results. Follow the steps outlined above β€” from permits and foundation work to decking, railings, and finishing β€” and you will have a durable, attractive outdoor space for years to come.

Deck Building FAQ

My deck is exactly 30 inches above grade β€” does code require railings?

Most building codes require guardrails when the deck surface is more than 30 inches above grade. At exactly 30 inches, some jurisdictions may allow it without railings, but many inspectors recommend installing them anyway as a safety measure. Always verify with your local building department β€” the small cost of adding railings is far less than the liability risk.

In a 48-inch frost-line region, will footings at 36 inches cause frost heave?

Yes β€” footings must extend below the frost line to prevent frost heave. In a 48-inch frost-line area, 36-inch footings would sit above the frost line and risk being lifted by freeze-thaw cycles, which can crack concrete piers and warp the deck frame. Always dig to the depth specified by your local code, and consider adding a gravel base for extra drainage.

Will using 24-inch on-center joist spacing with composite decking void the manufacturer warranty?

It depends on the specific composite product. Many composite decking manufacturers require 16-inch on-center joist spacing for residential applications and may void the warranty if 24-inch spacing is used. Some newer high-rigidity composite boards do allow 24-inch spacing, but always check the installation instructions for your specific brand before framing.

Do I really need to wait 2-4 weeks before sealing a new pressure-treated deck?

Yes β€” pressure-treated lumber needs time to dry after installation before accepting a sealer or stain. Fresh pressure-treated wood is saturated with preservatives and has high moisture content. Wait until the wood can absorb water droplets (a simple splash test), typically 2-4 weeks but up to several months in humid climates. Sealing too early traps moisture and leads to peeling and uneven absorption.

Will a stair riser height over 7 inches fail a building inspection?

Most residential building codes set the maximum riser height at 7-3/4 inches and the minimum tread depth at 10 inches. A riser over 7-3/4 inches would fail inspection. Additionally, the variation between the tallest and shortest riser in a flight must not exceed 3/8 inch. Measure carefully β€” uneven steps are a tripping hazard and a common inspection failure point.

To quickly calculate total quantities for deck joists, decking boards, and fasteners and estimate overall cost, use the companion deck estimation tool β€” enter deck length, width, joist spacing, and board type to generate reference values.

Deck Estimation Tool