Building a backyard deck: ideas and considerations that actually hold up
Two summers ago I watched a neighbour tear out a deck he'd finished eighteen months earlier. Not because it looked bad. Because the joists were already spongy, the ledger had pulled away from the house by a good half-inch, and the whole thing bounced when you walked near the grill. He'd followed a video he found online. The video was fine. The problem was everything the video skipped.
That's the thing about building a backyard deck: the ideas part is easy and fun, and the considerations part is where decks die. Most of what you'll read about deck building leans hard into inspiration—cedar versus composite, cable railing, built-in benches—and treats the structural math as a footnote. I want to flip that. Here's what I've learned from building two decks myself, helping on three others, and fixing a lot of mistakes that were not mine.
Key takeaways
- The 3/4/5 rule is your best friend for checking square: 3 feet on one side, 4 feet on the other, 5 feet across the diagonal means your corner is true.
- Cost scales faster than you expect once you pass 12x12. A 20x20 deck is not "a bit bigger" than a 10x10—it's four times the surface and a lot more framing.
- What goes under a deck matters more than what goes on top. Gravel, weed barrier, and airflow prevent the rot and insect problems that ruin decks in five years.
- 2x6 joists are fine for short spans at 16 inches on center. Push past about 9 feet and you need 2x8, or closer spacing, or both.
- Design ideas should follow structure, not the other way around.
Deck ideas worth stealing (and ones to skip)
Design inspiration is where most people start, and honestly, that's fine. You should know what you want before you buy a single board. But the ideas that survive contact with a real yard are usually simpler than the ones on the mood boards.
Ideas that hold up over time
A single-level deck that flows out from one door and stops where the yard naturally changes grade. This is boring and it works. I built mine this way after watching a friend wrestle with a two-tier design that required retaining walls he hadn't budgeted for. His second tier is now a pile of lumber under a tarp.
- Built-in bench seating along one railing—cheap storage underneath, and it kills the "where do we put chairs" problem.
- Picture-frame border boards around a composite deck. Costs maybe 8% more on materials and makes the whole thing read as intentional.
- Staggered board patterns instead of a single long run—hides the slight variations between batches of boards.
- An integrated step down to a patio, rather than a floating staircase that never quite lines up.
- Low-voltage post-cap lighting. Not the under-rail strip lights. Those look great for one season and then collect every bit of pollen and spider web in the county.
Ideas that look better on Pinterest than in your yard
Glass railing in a yard with kids and a dog. I've cleaned one of these. Never again. Cable railing near a coast, same story—salt eats the fittings.
Fire pits built into the deck surface sound lovely until you realize you need a non-combustible surround, clearance from every railing, and a place for ash to go. Most built-in fire features I've seen end up as expensive planters.
And the one that gets me every time: multi-level decks on a slope that didn't need them. If your yard drops three feet across the run, a single level with a step at the edge is almost always cheaper, safer, and easier to furnish.
What is the 3/4/5 rule for decks?
The 3/4/5 rule is a squaring method. You mark 3 feet along one side of a corner, 4 feet along the other side, and if the distance between those two marks is exactly 5 feet, your corner is a true 90 degrees.
It's the Pythagorean theorem in work clothes. The math is simple: 3² + 4² = 9 + 16 = 25, and 5² = 25. If that diagonal doesn't hit 5 feet, the corner isn't square, and you need to adjust before you fasten anything down.
How to actually use it
- Pick your first corner and set two batter boards or stakes.
- Run a string line along each direction.
- Measure 3 feet from the corner on one line, 4 feet on the other.
- Measure between the two points. It should read 5 feet. If it reads 5 feet 2 inches, you're off. If it reads 4 feet 10, you're off the other way.
- Adjust the string, re-measure, repeat until it's dead on.
For bigger decks, scale the numbers: 6/8/10, 9/12/15, even 12/16/20. Same ratio, longer arms, less room for measurement error to hide.
Here's the part nobody tells you. Check every corner, not just the first one. I made this mistake on my first deck. Got the front-left corner perfect, assumed the back-right had to follow. It didn't. The frame was out of square by over an inch at the far end, and I only noticed when the decking boards started drifting out of parallel. I had to pull six boards and reframe one corner. That afternoon cost me more than the joist hangers for the entire project.
What is the average cost of a 20x20 deck?
A 20x20 deck is 400 square feet, and where I live in the mid-Atlantic, materials for a treated pine deck at that size ran me just under $6,800 in late 2024. That was framing, decking, railing, hardware, fasteners, and concrete for the footings. No labour. A contractor quote for the same deck came in at $19,500.
Composite would have pushed materials to roughly $11,000–$13,000. Cedar landed somewhere between. I priced all three before committing and went with treated pine because I plan to sell in five years and couldn't justify the composite premium for a deck I wouldn't own long enough to enjoy.
What actually drives the cost
Three things, in order of impact:
- Railing. It can hit 25–30% of the total. Wood railing is cheap, aluminum is middling, cable and glass are expensive, and codes require it above 30 inches of deck height in most jurisdictions.
- Height off the ground. A deck 18 inches up needs a permit in many places and more bracing. A deck 8 feet up needs engineering, a much bigger footing schedule, and probably a professional.
- Stairs and access points. Each set of stairs is essentially a small project with its own footings, stringers, and code requirements.
| Size | Approx. materials (treated pine) | Contractor-installed range |
|---|---|---|
| 10x10 (100 sq ft) | $1,800–$2,400 | $5,000–$8,000 |
| 12x16 (192 sq ft) | $3,200–$4,100 | $9,000–$14,000 |
| 16x20 (320 sq ft) | $5,400–$6,300 | $15,000–$22,000 |
| 20x20 (400 sq ft) | $6,500–$8,000 | $19,000–$28,000 |
Prices move. Lumber is a commodity and it swings. Treat any number you see—including mine—as a starting point for your own quote, not a fixed target.
What is the best thing to put under a deck?
Gravel, weed barrier fabric, and open airflow. That combination solves the three problems that kill decks from underneath: moisture, vegetation, and pests.
The minimum you should do
Remove any organic matter—grass, roots, old mulch—down to bare soil. Lay a woven landscape fabric, not the cheap spun stuff that tears when you look at it wrong. Cover with 2–3 inches of crushed stone or river gravel. Done.
That's it. That's the answer. Total cost for a 20x20 deck footprint is maybe $400 and a Saturday.
What this actually prevents
Standing water under the deck is the number one cause of premature rot in the ledger board and the joist ends. Gravel drains. Soil doesn't. Weed barrier stops the vegetation that traps moisture against framing and gives insects a highway up into the structure. Airflow dries everything out after rain.
What I'd skip: plastic sheeting. I've seen people lay it down thinking it'll keep things dry, and all it does is create a sealed moisture trap. Skip solid patio pavers under the deck too unless you're building a proper drainage base—they hold water and rot the framing above.
If you want storage under the deck, build a proper enclosure with ventilation. Not a tarp. Not plywood screwed to the posts. Airflow is the whole point, and anything that blocks it defeats the purpose of having an open deck in the first place.
Should a deck be built with 2x6 or 2x8?
2x6 joists work for spans up to about 9 feet at 16 inches on center, and up to about 11 feet at 12 inches on center. Past that, you step up to 2x8.
That 9-foot number is the one that matters. People see "16 inches on center" and assume that's the whole rule. It isn't. Spacing and span are two separate variables, and you need both.
How to decide
Measure the distance your joists need to span between the ledger board (attached to the house) and the beam (supported by posts). That span, not the deck size, determines your joist dimension.
- Under 9 feet: 2x6 at 16" OC is fine for typical residential loads.
- 9 to 12 feet: either 2x6 at 12" OC or 2x8 at 16" OC.
- 12 to 14 feet: 2x8 at 12" OC, or consider a mid-span beam.
- Over 14 feet: you probably want 2x10 or a mid-span beam, and you should be talking to someone who does this for a living.
There's a load side too. If you're putting a hot tub on the deck, everything above doubles. A filled six-person tub can be over 5,000 pounds. That's not a deck you build from a video.
I went with 2x8 at 16" OC on my 20x20 because my beam spacing landed at 11 feet 4 inches. 2x6 would have been right at the edge, and I don't like building at the edge of anything.
One last thing before you buy lumber
Get the permit. I know. It's paperwork, it costs money, and the guy at the building department might make you redraw your plans twice.
But here's what a permit actually buys you: someone who knows the local code looked at your span tables before you built. It matters. Deck collapses are almost always a ledger attachment failure or an undersized footing, and both are things a plan review catches. My first deck went in without a permit because I was young and cheap. When I sold that house, the inspector flagged it, and I had to pay for a retroactive structural review that cost more than the permit would have. The buyer's agent used it as a negotiating lever.
The ideas are the fun part. The considerations are the part that keeps your deck standing in ten years. Start with the 3/4/5 rule, put gravel underneath, get your joist spans right, and the pretty stuff on top will take care of itself.