How to Build a Deck: Complete Step-by-Step Guide
Building a deck is one of the most rewarding outdoor carpentry projects a homeowner can take on. A well-built deck extends your living space, increases your home’s value, and provides a platform for outdoor life for decades. The project is also genuinely achievable as a DIY build — the framing techniques are straightforward, the materials are readily available, and the skills involved are basic carpentry that any capable builder can learn.
That said, a deck is a structural project. The footings, beams, joists, and connections carry real loads — people, furniture, grills, planters — and need to be designed and built to code. This guide walks through the complete process from planning to the final coat of sealant, with emphasis on the structural elements that make the difference between a deck that lasts 30 years and one that fails.
Planning: Size, Height, and Type
Attached vs. Freestanding
Attached decks connect to the house via a ledger board — a horizontal framing member bolted to the house’s rim joist or band joist. The ledger bears half the deck’s load, reducing the number of posts and footings required. Attached decks are more common and generally more cost-effective.
Freestanding decks stand on their own posts and beams without connection to the house. They require more posts and footings, but they eliminate concerns about ledger attachment and moisture intrusion at the house connection. They are appropriate when the house framing is not accessible or when the deck is located away from the house.
Sizing the Deck
Measure the space you have and think about how you will use the deck:
- Dining area: Allow roughly 10’ x 12’ minimum for a table that seats 6-8
- Seating/lounging area: A 12’ x 12’ to 16’ x 16’ section for a conversation grouping plus side tables
- Combined: A 20’ x 16’ or larger deck gives you both zones
Deck height is determined by the door threshold height above grade. Ideally, the finished decking surface sits 1” to 2” below the interior floor level to prevent water intrusion. Grade the ground away from the house at a minimum 6:1 slope (6” of fall for every foot of horizontal run).
Permits and Code Requirements
Almost every jurisdiction requires a building permit for a deck. Do not skip this step. Un-permitted decks create problems when you sell the home, can void your homeowner’s insurance, and may be built incorrectly without inspections to catch errors.
The permit process involves submitting a plan (typically a simple drawing showing dimensions, footing locations, beam and joist sizes, and railing details). The building department will tell you what is required in your area.
Common code requirements include:
- Footing depth: Below the local frost line (varies from 12” in southern climates to 48” or more in northern ones)
- Post base anchors: Posts must be anchored to footings — they cannot simply sit on top of concrete
- Ledger attachment: Lag bolts at specific spacing patterns; flashing required to prevent water intrusion
- Railing height: 36” minimum for decks less than 30” above grade; 42” for higher decks (varies by jurisdiction)
- Baluster spacing: Maximum 4” spacing between balusters (a 4” sphere must not pass through)
- Stair requirements: Maximum 7-3/4” rise; minimum 10” run
Understanding Span Tables
The sizing of your beams and joists is not guesswork — it is determined by span tables that account for species, lumber grade, spacing, and load. Most building departments provide local span tables or reference the IRC (International Residential Code) span tables.
General rules for pressure-treated lumber in deck framing:
- Joists at 16” OC: 2x6 spans up to 9’ (southern yellow pine); 2x8 up to 12’; 2x10 up to 15’
- Beams: Size depends on post spacing and span — a 4x10 or doubled 2x10 carries reasonable loads for typical residential decks
- Post spacing: Typically 6’ to 10’ depending on beam size
When in doubt, go bigger. Over-building a deck costs slightly more in materials but pays dividends in rigidity, longevity, and safety.
Materials
Pressure-Treated Lumber
All framing lumber for decks — posts, beams, joists, and blocking — should be pressure-treated to resist rot and insects.
- Ground contact rated (UC4B): Required for any lumber that contacts the ground, sits in or near concrete, or is within 6” of grade. Look for “.40 retention” or “UC4B” stamps.
- Above grade (UC3B): Acceptable for ledger boards, joists, and beams that are well above grade with good airflow.
Use stainless steel, hot-dipped galvanized, or specifically rated hardware with pressure-treated lumber. The chemical treatment in modern PT lumber is corrosive to standard steel fasteners — they will rust rapidly and fail.
Decking Options
Pressure-treated wood decking (typically 5/4 x 6 or 2x6) is the most affordable option. It requires annual sealing/staining to maintain appearance and prevent checking (surface cracking). It will last 15-25 years with proper maintenance.
Cedar and redwood are naturally rot-resistant and more aesthetically pleasing than PT, but significantly more expensive in most markets.
Composite decking (wood fiber + plastic polymer) requires virtually no maintenance, will not rot, splinter, or need sealing, and carries warranties of 25-50 years. It costs 2-3x more than PT decking upfront but often wins on total lifecycle cost. Available from brands including Trex, TimberTech, Fiberon, and Azek.
PVC decking is 100% plastic — entirely impervious to moisture and insects, with no wood fiber content. The most expensive decking option, but the most durable and maintenance-free.
Fasteners
Use coated decking screws (ceramic or proprietary coating) or stainless steel screws. Standard deck screws will rust even if countersunk. For composite decking, use the manufacturer’s specified fasteners — using the wrong screws can void the warranty.
Hidden fasteners are an upgrade worth considering: small clips that fasten between planks, securing the decking without any visible screws on the surface. The result is a clean, fastener-free deck surface. Hidden fasteners require a specific deck board profile (grooved edge) and add to material cost and labor time.
Step-by-Step Construction
Step 1: Layout with Batter Boards and String Lines
Establish the exact deck footprint on the ground before digging.
- Drive batter boards (pairs of stakes with a horizontal board) at each corner and outside the deck footprint — far enough out that they will not interfere with footing excavation.
- Run string lines to mark the outer edges of the deck, checking that all lines are level and the corners are square (3-4-5 triangle method or diagonal measurement).
- Mark footing locations on the string lines with a plumb bob.
Step 2: Excavate and Pour Footings
Footing locations come from your plan, sized per your permit-approved design.
- Dig holes to the required depth (below frost line) with a post hole digger or rented auger. Diameter is typically 10” to 16” depending on the load.
- Place a tube form (Sonotube) in the hole. Leave 2”-4” above grade to keep the post connection above water.
- Mix and pour concrete (bag mix is fine for most deck footings). Work out air bubbles with a stick or piece of rebar.
- Set a J-bolt anchor (or a standoff post base) in the wet concrete, positioned exactly over the string line plumb point. Use a level and strings to position it precisely.
- Allow concrete to cure 48-72 hours before loading.
Step 3: Install Posts
For post-to-footing connection, use adjustable post bases set in the footings. These raise the post bottom off the concrete surface, preventing moisture wicking and extending post life.
Cut posts to the correct height (determined by the beam height and decking thickness). For tall decks, verify post height with a string line and level. Brace posts temporarily until the beam is in place.
Step 4: Install the Ledger Board (Attached Decks)
The ledger is the most critical connection in an attached deck. It must be properly flashed to prevent water from getting behind it and rotting the house structure.
- Remove house siding in the ledger area. Expose the rim joist or band joist.
- Install self-adhering flashing tape over the rim joist, extending up the wall behind the siding.
- Position the ledger board (same height as the deck joists) and temporarily fasten it.
- Drill holes and install 1/2” lag bolts (or structural screws like LedgerLOK) at the code-required pattern — typically staggered, 16” on center.
- Install additional Z-flashing at the top of the ledger and integrate with the siding above to direct water away from the wall.
Step 5: Install Beams
Place beams on the post caps. Most residential decks use either a built-up beam (two or three 2x10s or 2x12s fastened together) or a solid glulam beam.
Secure beams to post caps with the hardware’s specified fasteners (typically structural screws or bolts). Check that the beam is level before finalizing.
Step 6: Install Joists
Hang joists from the ledger and beams using joist hangers — galvanized metal hangers nailed to the ledger and beam. Use all the specified nail holes in each hanger; missing nails significantly reduces the connection capacity.
- Crown up: Before installing, sight down each joist and orient the crown (slight bow) upward. The load will flatten it over time.
- Joist spacing: 16” on center is standard. 12” OC is better for composite decking perpendicular to the joists.
- Install blocking between joists at mid-span for long spans, and at the ends for lateral stability.
Step 7: Install Decking
For wood decking, start from the house and work outward. This ensures that any trimming is done at the outer edge (least visible) rather than at the house wall.
- Space boards 1/8” apart for wood decking (use a 16d nail as a spacer). This allows drainage and airflow. Note: composite decking has specific spacing requirements — follow the manufacturer’s directions.
- Face screw at two points per joist for wood decking. Pre-drill near board ends to prevent splitting.
- For hidden fasteners: install the first board face-screw at the house wall (hidden by the ledger), then use clips for all subsequent boards.
- Snap chalk lines every 4-6 feet perpendicular to the decking to check alignment drift.
- Allow boards to run long and trim the outer edge with a chalk line and circular saw for a perfectly straight outer edge.
Step 8: Install Railings
Railing installation is both a safety requirement and a significant aesthetic element.
Post installation: Railing posts can be mounted to the outer joist face (simplest) or through the decking into the framing. Through-deck mounting with a through-bolt is stronger and the preferred approach for tall decks.
Top and bottom rails: Attach horizontal rails to the posts with structural screws. For a clean look, run a top cap across the top of all posts — a flat 2x4 or 2x6 that creates a usable ledge.
Balusters: Maintain a maximum of 4” spacing. Cut all balusters to the same length and use a spacer block to position each one consistently. Nail or screw through the rail into each baluster.
Composite rail systems: Many composite decking brands offer matching rail systems with aluminum balusters, post sleeves, and composite top caps. These install faster than site-built wood rails and maintain consistent appearance.
Step 9: Build the Stairs
Stairs are governed by strict code requirements because they are a primary fall hazard.
Key measurements:
- Rise: The vertical height of each step. Code maximum: 7-3/4”. Ideal: 7” to 7-1/2”.
- Run: The horizontal depth of each step (the tread). Code minimum: 10”. Ideal: 10” to 11”.
- Total rise: Measure from finish decking surface to grade. Divide by your desired rise to get the number of steps.
Stringer layout: Lay out the stringer cuts on a 2x12 using a framing square with stair gauges clamped at the rise and run dimensions. Mark all steps, then cut the top and bottom plumb cuts. The stringer must maintain 3-1/2” minimum material at its thinnest point (at the notches) to maintain structural integrity.
For most residential stairs, three stringers are required (one at each end and one in the center). Use stringer brackets at the deck and concrete pads at the bottom.
Composite Decking: An Overview
If low maintenance is your priority, composite decking is worth the premium cost. Modern composite products — Trex Transcend, TimberTech Azek, Fiberon Symmetry — look remarkably like real wood while requiring nothing more than an occasional wash with soap and water.
Key advantages:
- No sealing, staining, or painting ever required
- Will not rot, splinter, or develop checking cracks
- Slip-resistant surfaces (most products)
- 25 to 50 year warranties against structural failure and fading
One consideration: composite decking gets hotter in direct sun than wood, which can be uncomfortable barefoot on very hot days. Light-colored composite boards stay noticeably cooler.
Sealing and Maintaining a Wood Deck
If you choose wood decking (PT, cedar, or redwood), establish a maintenance schedule:
- New deck: Allow PT wood to dry for 3-6 months before applying sealant (test by sprinkling water — if it beads, the wood is still too wet to absorb sealant).
- First seal: Apply a penetrating deck sealant or stain-sealant. Two coats on fresh, dry wood.
- Annual inspection: Check for raised fasteners (hammer flush or replace), cracked or checking boards, soft spots in the decking, and any loose railing connections.
- Re-sealing: Every 2-3 years for horizontal surfaces. Pressure wash first to remove dirt and mildew, allow to dry completely, then apply fresh sealant.
Upgrade with Quality Post Base Hardware
The connection between your posts and footings is one of the most structurally critical points in the entire deck. Standoff post bases (products like Simpson Strong-Tie’s ABA series) properly anchor the post to the footing, elevate the post bottom above the concrete surface to prevent moisture wicking, and are engineered and tested to specific load ratings. They are far superior to simply embedding a post in concrete, which traps moisture and leads to premature rot even with pressure-treated lumber. Use the correct base for your post size and load requirements, and install with the manufacturer’s specified structural screws or bolts for the rated connection capacity.
Final Thoughts
Building a deck is a substantial project — typically a weekend or two for an experienced builder, and several weekends for a first-time deck builder. The investment in planning, proper permits, and code-compliant construction is what separates a deck that serves the family for 30 years from one that becomes a liability. Start with a clear plan, use quality materials, get your inspections, and you will have an outdoor structure that adds real value — measured in both dollars and quality of life — to your home.
Related Articles
Jim Whitaker
Master Carpenter & Founder of The Carpenter's Guide