How to Build a Deck?

This step-by-step guide shows you exactly how to build a deck from scratch — from planning and permits through concrete footings, ledger board installation, joist framing, decking boards, stairs, and railings. A professionally built 12×16 ft deck costs $8,000–$20,000+ installed. Building it yourself cuts that to $2,500–$6,000 in materials — saving you the entire labor cost.

By ConstructlyTools · Published: March 27, 2026 · Updated: March 27, 2026 · 14 min read
⚒ Difficulty: Intermediate ⏱ Time: 2–3 Days 💰 DIY Savings: $3,000–$8,000+ 📋 Permit Required

Before You Start

Building a deck is one of the highest-ROI projects a homeowner can do — adding usable outdoor living space and significant resale value. A professionally built 12×16 ft deck costs $8,000–$20,000+ installed. Building it yourself cuts that to $2,500–$6,000 in materials, saving you the entire labor cost. But a deck is also a structural project — one that requires permits, proper footings, and code-compliant framing. Don't skip the prep steps.

Permits Are Not Optional

Almost every municipality requires a building permit for any deck attached to a house, and most require one for freestanding decks over a certain size (typically 200 sq ft or 30 inches above grade). Unpermitted decks create serious problems at resale — buyers' inspectors flag them, insurance won't cover accidents on them, and you may be forced to tear them down. Pull the permit. It typically costs $50–$200 and the inspector's review catches structural mistakes before they become dangerous.

Call 811 Before You Dig

⚠️ Critical Safety Step

Call 811 at least 3 business days before digging any footing holes. Underground utility lines are buried in most yards. This free service marks their locations — hitting a gas or electrical line while digging is potentially fatal. This applies even to hand-dug holes.

Is This a DIY-Friendly Project?

A simple ground-level or low-profile deck (under 30 inches above grade) is very achievable for a motivated DIYer with basic carpentry skills and access to a circular saw, drill, and level. Elevated decks over 30 inches, decks with complex framing, or decks requiring engineered drawings should involve a licensed contractor for at least the structural elements. Before buying anything, get an accurate cost estimate using our deck cost calculator.

💡 Estimate Materials & Cost First

Use our Deck Cost Calculator for a full project estimate, and our Deck Boards Calculator to find exactly how many boards you need before ordering lumber.

Materials & Tools Needed

The list below covers a standard attached ground-level deck using pressure treated lumber — the most common DIY deck build. Use our lumber cost calculator to price out your specific board quantities before heading to the lumber yard.

Materials

MaterialPurposeQuantity Guide
Concrete (80 lb bags or ready-mix)Footings2–3 bags per footing hole
Post bases / anchor bracketsAttach posts to footings1 per footing
4×4 or 6×6 PT postsVertical support1 per footing
2×8 or 2×10 PT lumber (joists & beams)Structural framePer deck plan
2×10 or 2×12 PT ledger boardAttaches deck to houseFull width of deck
5/4×6 deck boards (PT or composite)Walking surfaceUse deck boards calculator
Joist hangers & post capsMetal connectors for framingPer framing plan
Structural screws / lag boltsFraming connectionsPer plan + 20% extra
Composite or PT railing systemSafety barrierPer linear ft of open edge
Stair stringers (3×12 PT)Stair structure3 per stair run
Flashing tape & Z-flashingWaterproof ledger connectionFull ledger length

Tools

  • Post hole digger or rented power auger — for footings (auger rental $80–$150/day, saves hours)
  • Circular saw — for cutting lumber to length
  • Drill / impact driver — for structural screws and lag bolts
  • Level (4 ft and 2 ft) — for posts, beams, and joists
  • Speed square & framing square — for layout and squaring
  • Chalk line & tape measure — for layout
  • String line & line level — for layout and footing alignment
  • Hammer & nail gun (optional) — for framing
  • Jigsaw — for cuts around obstacles
  • Safety glasses, work gloves, ear protection
1
Design & Plan Your Deck

A well-planned deck starts on paper, not with lumber. Getting the design right before you buy a single board saves significant money, prevents structural errors, and makes the permit application straightforward.

  1. Determine size and shape — sketch the deck to scale on graph paper. A 12×16 ft (192 sq ft) deck is a practical starting size for most backyards. Use our square footage calculator to play with dimensions and confirm your total area.
  2. Decide on height — a deck attached to a house typically needs to match the interior floor height minus one step (about 7 inches below the door threshold). This determines post height and whether you need railings (required by code if deck surface is 30 inches or more above grade).
  3. Plan footing locations — footings are typically spaced 6–8 ft apart. Map out every footing on your plan. The number of footings determines your concrete order — use our concrete calculator to estimate bags needed per hole.
  4. Choose your decking material — pressure treated lumber is the most affordable ($1.50–$3/linear ft). Composite decking costs more upfront ($3–$8/linear ft) but requires no staining or sealing and lasts longer. Use our deck boards calculator to compare board counts for both options.
  5. Submit for permit — most building departments require a site plan showing the deck location relative to the house and property lines, a framing plan with footing locations and lumber sizes, and a materials list. Your permit office will tell you exactly what's needed.
Deck design plan drawn on graph paper with measurements and footing layout
✅ Planning Tip

Build your deck at least 5 feet from any property line and at least 3 feet from any easement. Check your local setback requirements with your municipality — violations require removal at your expense. Your permit application will flag any setback issues before you build.

2
Mark & Dig the Footings

Footings are the foundation of your deck — they transfer the deck's load into the ground below the frost line. Getting footing locations perfectly square and at the correct depth is critical. A footing poured in the wrong place means a post in the wrong place, which throws off every beam and joist that follows.

  1. Establish a batter board layout — set up batter boards (horizontal boards nailed to stakes) outside the deck corners and run string lines to mark the exact perimeter of the deck. This gives you a reference to work from without disturbing layout when you dig.
  2. Use the 3-4-5 triangle to square corners — from each corner, measure 3 ft along one string and 4 ft along the perpendicular string. The diagonal between those two points should be exactly 5 ft. If not, adjust until it is. A squared layout is essential for a deck that looks and functions correctly.
  3. Mark footing centers — use a plumb bob hung from the string line intersections to transfer each corner point to the ground. Mark with spray paint or a stake.
  4. Dig the holes — footing holes must extend below the local frost depth (check your local building code — ranges from 12 inches in mild climates to 48 inches in northern states). Diameter should be at least 12 inches, or as specified by your permit drawings.
  5. Add 6 inches of gravel — place compacted gravel at the bottom of each hole for drainage, preventing frost heave from pushing the footing up.
Batter boards and string lines marking deck footing locations in backyard
💡 Rent a Power Auger

Post hole diggers work fine for soft soil and shallow frost depths. But for hard clay, rocky soil, or frost depths over 24 inches, rent a one-man or two-man power auger — it turns a 3-hour hand-digging job into 30 minutes. Most tool rental shops carry them for $80–$150/day. Well worth it for decks with 6+ footings.

3
Pour the Concrete Footings

Concrete footings anchor your entire deck structure. Done correctly, they'll last the life of the deck. Use our concrete calculator to confirm exactly how many 80 lb bags you need before mixing — running short mid-pour means a weak footing.

  1. Set tube forms (Sonotubes) — place cardboard tube forms in each hole, extending 2–4 inches above grade. These give the footing a clean cylindrical shape and keep dirt from crumbling into the wet concrete.
  2. Mix and pour the concrete — mix each bag per instructions (or order ready-mix for large decks). Pour into the tube form and rod the concrete with a stick to eliminate air pockets.
  3. Set the post base anchor — while the concrete is still wet, press a J-bolt or standoff post base into the center of each footing. Use a plumb bob and your string lines to confirm exact location before the concrete sets. This is your last chance to adjust position.
  4. Check alignment — all post base anchors must be perfectly aligned with your string line layout. Check with a level and tape measure from multiple reference points.
  5. Allow full cure — wait a minimum of 48 hours (72 hours in cold weather) before loading footings with posts and framing. Full concrete strength takes 28 days — avoid heavy loads until then.
Concrete being poured into tube form footing with post anchor bolt being set
⚠️ Don't Pour on Frozen Ground

Never pour concrete footings when ground temperature is below 40°F — concrete won't cure properly in cold conditions and the footing will be structurally weak. If you must work in cool weather, use a heated enclosure or cold-weather concrete mix and keep the pour covered and insulated for at least 48 hours.

4
Install the Posts

Posts transfer the deck's load from the beams down to the footings. They must be perfectly plumb — even a slight lean multiplies into a significantly out-of-level deck surface by the time you're laying boards.

  1. Cut posts to rough height — cut posts slightly long (2–3 inches taller than final height). You'll trim them to exact height once they're installed and the beam is set.
  2. Set posts in post bases — place each post in its standoff base and fasten with the specified hardware. For through-bolt connections, drill and bolt per the manufacturer's specifications.
  3. Brace posts plumb — use temporary 2×4 diagonal braces screwed to stakes in the ground to hold each post perfectly plumb in both directions. Check with a level on two adjacent faces.
  4. Do not permanently fasten yet — leave posts at rough height until beams are set and final heights are confirmed. You'll cut posts to final height after the beam is in place and level.
Pressure treated deck post being set in post base on concrete footing with level check
💡 PT Lumber Tag Check

Always verify the pressure treatment rating on any lumber that will contact or be close to the ground. Posts set in post bases (above grade) require UC4A treatment minimum. Posts embedded directly in concrete or soil require UC4B. Using the wrong rating causes premature rot and structural failure. The treatment code is stamped on every piece of PT lumber.

5
Install the Ledger Board

The ledger board is the horizontal beam that attaches your deck directly to the house. It carries half the deck's load — making it one of the most structurally critical components and one of the most common failure points when installed incorrectly. Water infiltration behind a poorly flashed ledger is the leading cause of deck collapse.

  1. Locate the rim joist — remove siding at the ledger location to expose the house's band joist (rim joist). The ledger must attach to the structural framing of the house, not just the sheathing or siding.
  2. Install flashing first — apply self-adhesive flashing tape over the top of the ledger location before attaching the board. This is non-negotiable — water trapped behind the ledger rots the house framing within a few years.
  3. Position the ledger board — set the ledger at the correct height (door threshold height minus the deck surface thickness plus one step down, typically 7 inches). Level carefully — this sets the height of the entire deck.
  4. Fasten with structural lag screws — use ½" diameter × 3½" structural lag screws or approved structural bolts in a staggered pattern per the IRC code table (typically every 16 inches). Do not use regular deck screws — they are not rated for shear loads.
  5. Install Z-flashing — tuck metal Z-flashing under the siding above the ledger and over the top edge of the ledger board. Reinstall siding over the flashing. This creates a drip edge that directs water away from the house framing.
  6. Seal all penetrations — apply exterior-grade caulk around every lag bolt hole and at all siding cuts to prevent water entry.
Deck ledger board being lag bolted to house rim joist with flashing tape visible above
⚠️ The #1 Cause of Deck Collapse

According to the North American Deck and Railing Association (NADRA), ledger board failure is the leading cause of deck collapses in the US. Never attach a ledger with nails only — use lag screws or through-bolts. Always flash the ledger — no exceptions. This step is what your building inspector will scrutinize most carefully.

6
Build the Beam & Joist Frame

With footings cured, posts set, and the ledger installed, you're ready to build the structural frame that supports the deck boards. This is the most labor-intensive part of the build — but also the most satisfying, as the deck takes shape rapidly.

  1. Install the beam — set the built-up beam (typically two 2×10s or 2×12s bolted together) on top of the posts using post caps. Level the beam in both directions, cut posts to final height, and secure with the specified hardware.
  2. Install rim joists — attach outer rim joists (same size as interior joists) to the ends of the ledger board and beam using joist hangers. These form the perimeter frame and give you a reference for all interior joist locations.
  3. Install interior joists — hang interior joists between the ledger board and the beam at 16 inches on center (or 12 inches for composite decking, which requires closer spacing). Use joist hangers at both ends — never toenail joists.
  4. Blocking at mid-span — for joists spanning more than 8 feet, install blocking (short pieces of joist material) at mid-span to prevent rotation and lateral movement. This is a code requirement in most jurisdictions.
  5. Check for square and level — before proceeding to decking, measure both diagonals of the frame. They should be within ¼ inch of each other. Check all joists for crown (bow upward) — install with crown up so the deck surface flattens under load.
Deck joist frame being assembled with joist hangers and pressure treated lumber
💡 Use Joist Hangers — Not Toenails

Metal joist hangers are engineered for shear loads — the forces that act perpendicular to a joist. Toenailed connections resist far less lateral force and are not code-compliant for deck framing in most jurisdictions. Use Simpson Strong-Tie or equivalent hangers at every joist-to-ledger and joist-to-rim-joist connection. Fasten with the specified joist hanger nails — regular nails are too long and split the wood.

7
Lay the Decking Boards

Laying deck boards is the most visible and rewarding part of the build. Take your time with spacing and fastening — gaps that are too wide look sloppy, gaps that are too narrow trap debris and moisture. Use our deck boards calculator to confirm you have the right board count before starting.

  1. Start at the house — begin decking at the house end (against the ledger) and work outward. The first board sets the gap at the house — leave ¼ inch between the board and any house wall for drainage and airflow.
  2. Maintain consistent spacing — use a 16d nail or ¼" spacer between boards as a spacing guide. This gap allows water to drain through and accommodates wood expansion in summer. Composite decking has specific spacing requirements — follow the manufacturer's installation guide.
  3. Fasten correctly — use two structural screws per board per joist crossing. Drive screws at a slight angle toward the joist center to prevent splitting. Pre-drill near board ends to prevent splitting.
  4. Stagger board ends — if boards don't run the full deck width in one piece, stagger end joints so they don't line up in adjacent rows. End joints must land on a joist center — never in mid-span.
  5. Let boards run long — don't try to cut boards to exact length before installing. Let them run 2–4 inches past the rim joist on the open end, then snap a chalk line and cut them all at once with a circular saw. This gives a perfectly straight, clean edge.
  6. Final cut — snap a chalk line parallel to the rim joist at the desired overhang (typically ½–1½ inches past the rim). Cut all boards in one pass for a crisp, professional edge.
Pressure treated deck boards being screwed down to joists with consistent spacing
💡 Hidden Fastener Systems

For composite decking, consider a hidden fastener system — small clips that fasten into the board grooves so no screw heads are visible on the surface. They cost more per sq ft than face-screwing but give a much cleaner finished look. Ipe and other hardwood decking almost always requires pre-drilling and hidden fasteners to prevent splitting.

8
Build the Stairs & Railings

Stairs and railings are the finishing touch — and also among the most code-regulated parts of the build. Railings are required by code on any deck surface 30 inches or more above grade, and stair railings are required for any stair with 4 or more risers. Get these right — they're what inspectors and future buyers look at most carefully.

Building the Stairs

  1. Calculate rise and run — measure the total rise (vertical height from deck surface to ground). Divide by 7 inches (ideal riser height) to get the number of steps. The run (tread depth) should be at least 10 inches. Per IRC code: max riser height 7¾", min tread depth 10".
  2. Cut the stringers — use a framing square to lay out the stair pattern on 3×12 PT lumber. Cut carefully — stringer cuts are complex and errors are hard to fix once cut.
  3. Attach stringers to deck — fasten stringer tops to the deck rim joist with approved stringer hangers or a structural ledger. Bottom ends rest on a concrete pad or gravel base — never on bare soil.
  4. Install treads — use 5/4×6 or 2×6 PT boards for treads. Two boards per tread with a ¼" gap between them. Fasten with two screws per board per stringer.

Installing the Railings

  1. Post spacing — railing posts must be spaced no more than 72 inches apart (6 feet) for code compliance. Posts should be bolted through the rim joist with ½" through-bolts — surface-mounted post bases that only fasten to the deck surface are not code-compliant in most jurisdictions.
  2. Baluster spacing — balusters must be spaced so a 4-inch sphere cannot pass through — this prevents small children from getting their heads trapped. Measure carefully and space consistently.
  3. Railing height — 36 inches minimum for decks under 30 inches above grade; 42 inches minimum for decks 30 inches or higher above grade.
  4. Grab rail — stair handrails must be graspable (round or oval profile, 1¼–2 inches diameter) and continuous from top to bottom of stair run.
Deck railing posts being installed with through-bolts and balusters being spaced
✅ Schedule Your Final Inspection

Once stairs and railings are complete, contact your building department to schedule the final inspection. The inspector will check footing depth (if not already inspected during framing), ledger fastening, railing height and baluster spacing, and stair dimensions. Pass the inspection and you're done — your deck is fully permitted and legal.

Pro Tips & Common Mistakes

Common Mistakes to Avoid

  • Skipping the permit — the single most expensive mistake. Unpermitted decks must be torn down or retrofitted to code at your expense when discovered. Always pull the permit.
  • Footings above the frost line — footings that don't extend below the local frost depth will heave with freeze-thaw cycles, cracking the deck frame. Check your local frost depth requirement — it's in your building code.
  • Nailing ledgers instead of bolting — ledger nails are not code-compliant and will pull out under load. Use ½" lag screws or through-bolts in the IRC-specified pattern.
  • No ledger flashing — the most common moisture damage mistake. Water behind an unflashed ledger rots house framing silently for years. Always flash the ledger — no exceptions.
  • Wrong lumber treatment rating — using interior-grade or wrong PT rating lumber in ground contact accelerates rot. Check UC ratings on every piece of lumber before purchase.
  • Toenailing joists — use joist hangers for every joist-to-beam and joist-to-ledger connection. Toenails are not engineered for shear forces in deck framing.
  • Face-screwing composite decking — most composite decking brands require hidden fasteners. Check the manufacturer's installation guide before fastening.

Pro Tips

  • Buy 10% more decking boards than calculated — allow for defects, splits, and waste from cuts. Returning leftover boards is easier than making a second lumber run mid-build.
  • Apply a wood preservative end-cut treatment (like Copper Green or End Cut) to every saw cut on PT lumber. Factory treatment doesn't penetrate cut ends — untreated cut ends rot faster.
  • Install blocking between joists at the ledger end — this stiffens the deck significantly and prevents the rim joist from rolling outward over time.
  • Use stainless steel or hot-dipped galvanized hardware throughout. Standard zinc-plated screws react with PT lumber's preservative chemicals and corrode within 2–3 years.
  • If you're staining the deck, do it within 60 days of installation while the PT lumber is still clean and open-grained. Waiting allows grey weathering that makes stain penetration uneven.
How Much Will Your Deck Cost?
Get an instant estimate for materials, labor, and total project cost based on your deck size.
Use the Deck Cost Calculator →

Frequently Asked Questions

Do I need a permit to build a deck?+
In almost all cases, yes. Most municipalities require a permit for any deck attached to a house, and for freestanding decks over a certain size (typically 200 sq ft or more than 30 inches above grade). Unpermitted decks create real estate issues at resale, aren't covered by homeowner's insurance, and may need to be torn down if discovered. The permit process also requires inspections that catch structural errors before they become dangerous. Call your local building department — the permit typically costs $50–$200 and is well worth it.
How long does it take to build a deck?+
A standard 12×16 ft ground-level deck typically takes 2–3 full days for an experienced DIYer working with one helper — plus 2–3 days waiting for concrete footings to cure. Add a day if you're building stairs and railings for the first time. The timeline also depends on how much prep work the site requires. Budget a full weekend for footings and framing, and a second weekend for decking, stairs, and railings.
What is the cheapest way to build a deck?+
Pressure treated lumber is the most affordable decking material — typically $1.50–$3.00 per linear foot vs $3–$8 for composite. A simple rectangular ground-level deck with no stairs or railings (under 30 inches) minimizes materials and complexity. Doing all the labor yourself eliminates $3,000–$8,000+ in contractor costs. Use our deck cost calculator to get a full estimate and our lumber cost calculator to price specific board quantities before shopping.
How deep do deck footings need to be?+
Footings must extend below the local frost depth — the depth at which ground freezes in winter. Frost depth ranges from 12 inches in mild southern climates to 48 inches in northern states like Minnesota and Maine. Your local building code specifies the required frost depth for your area, and your permit drawings will confirm it. Footings above the frost line will heave with freeze-thaw cycles, cracking the deck frame over time.
Pressure treated vs composite decking — which is better?+
Pressure treated lumber costs 50–60% less upfront but requires annual cleaning and staining/sealing to prevent graying and cracking. Composite decking costs more initially but requires minimal maintenance — just occasional cleaning. Over a 10-year period, composite often costs less when you factor in annual PT maintenance costs. For a first deck on a budget, PT is the practical choice. For a deck you plan to keep long-term and don't want to maintain, composite pays for itself. Use our deck boards calculator to compare material quantities for both options.
How much does it cost to build a deck yourself?+
A 12×16 ft (192 sq ft) deck using pressure treated lumber costs $2,500–$5,000 in materials — including lumber, hardware, concrete, and fasteners. The same deck professionally built runs $8,000–$15,000+, so DIY saves $5,000–$10,000 in labor. Composite decking adds $1,500–$3,000 to material cost. Use our deck cost calculator for an estimate based on your specific deck dimensions and material choice.
Scroll to Top