Quick Answer
Yes, building a deck is a DIY project for a homeowner who can read a plan, swing a hammer, and use a circular saw safely. A 12 by 12 ground-level freestanding deck is the standard first build, takes one or two weekends, and costs 1,200 to 3,000 dollars in materials.
The DIY line is clear: any deck over 30 inches above grade, attached to the house, or larger than the local code threshold (typically 200 square feet) needs a permit, a ledger detail, footings to frost depth, and often an engineer's seal.
The Decision Tree
- Ground-level, freestanding, under 200 sq ft: permit often exempt, DIY-friendly.
- Attached to the house, any size: permit required, ledger detail critical, hire help unless you have framed before.
- Over 30 inches above grade: guardrails required to code (typically 36 inch high, balusters spaced so a 4 inch sphere will not pass).
- Second story or roof deck: not DIY territory.
Materials in 2026
- Pressure-treated pine: cheapest at 2 to 4 dollars per square foot. Re-stain every 2 to 3 years.
- Cedar: 5 to 8 dollars per square foot. Naturally rot-resistant, classic look.
- Composite (Trex, TimberTech): 8 to 16 dollars per square foot. No staining, 25 year warranty.
- PVC capped (Azek): 12 to 20 dollars per square foot. Most durable, premium look.
Structural Sizing Quick Rules
From IRC table R507 (2021):
- Joist spacing: 16 inches on center for solid decking, 12 inches if you run boards diagonally.
- 2x8 joists span 10 to 12 feet at 16 inches on center, depending on species.
- 2x10 joists span up to 14 feet at 16 inches on center.
- Beams of doubled 2x10 span 8 to 10 feet between posts.
- Posts of 6x6 minimum for any deck over 30 inches.
Always verify against your local code. Some jurisdictions are stricter on snow or seismic load.
Footings
Footings must extend below the local frost line (12 inches in the Carolinas, 42 inches in northern Minnesota). Use Sonotubes filled with concrete, set a Simpson post base in wet concrete, plumb the base. This step is the difference between a deck that lasts 30 years and one that heaves out of level the second winter.
The Ledger Detail That Causes Collapses
Nailing a ledger board to the house with deck screws is the most common cause of catastrophic deck collapses, killed roughly 30 people in the U.S. over the last decade. The current code requires:
- 1/2 inch lag bolts or structural screws (LedgerLOK or equivalent) at staggered 16 inch spacing.
- Flashing behind the ledger to keep water off the rim joist.
- Hold-down tension ties at each end of the ledger.
If you cannot meet this, build a freestanding deck instead.
Step-by-Step Build
- Lay out and dig footings, set Sonotubes, pour concrete.
- Install post bases, then 6x6 posts.
- Frame beams across posts, hang joists with metal hangers (every joist, no toenailing).
- Square the frame (diagonals should be equal within 1/4 inch).
- Lay decking with a 1/8 inch gap for expansion. Composite needs slightly more (check the brand).
- Install guardrails and stairs to code.
Time and Cost
12 by 12 freestanding deck, first-time DIY: 25 to 40 hours over two to three weekends. Materials in PT pine: 1,200 to 1,800 dollars. Composite version: 2,500 to 4,500 dollars. Pro labor would add 4,000 to 8,000 dollars.
Bottom Line
Build the ground-level freestanding 12 by 12 yourself. Hire a contractor for the attached, raised, or large deck. Pull the permit either way, framing inspections are how you find out the joist spacing was wrong before the boards go down.
Common Questions About DIY Deck Building
What is the most common DIY deck mistake?
Improper ledger attachment. Lag bolts into nothing but the rim joist sheathing have caused fatal deck collapses. Always bolt through the rim into solid framing with proper flashing.
Should joists run parallel or perpendicular to the house?
Perpendicular to the house in almost every design. Boards then run parallel to the house, the most visually pleasing layout.
Hidden fasteners or face screws?
Face screws (Camo, Starborn) are faster and stronger. Hidden fasteners (Tiger Claws, Hideaway clips) are cleaner-looking but slower to install. Composite decking warranties often require specific brand-matched fasteners.
What is the right gap between boards?
1/8 inch for wood (it shrinks more), 3/16 to 1/4 inch for composite (it expands more in heat). Use spacers or a deck-board nailer that sets the gap automatically.
Do I need stairs to code if the deck is only 1 step up?
If you have only one step (under 7-3/4 inch rise), no guardrail or handrail is required. Two or more risers require a handrail in most jurisdictions.
How long should pressure-treated lumber dry before staining?
4 to 8 weeks in dry climate, up to 6 months in humid climate. Test by sprinkling water; if it beads, wait longer. Otherwise the stain peels.



