Building a Deck: Footings, Ledger, Framing and Guards
Whether a deck lasts 25 years or ten is decided below the boards: how deep the footings go, how the ledger meets the house, how far the frame sits off the ground, how air moves underneath and where the water goes. This is the build in the order you will meet it, with the US lumber sizes, code points and safety details that matter.
General guidance for American homeowners. Raised decks, decks attached to the house, guards, stairs and anything carrying a hot tub are safety-critical - codes vary by state, county and city, most decks need a permit and inspections, and you should get professional advice where needed. Call 811 before you dig. Part of the PlantMapper Decking section.
The boards are the easy day; the frame beneath is the job · photograph via Pexels
Before you start
The part you can see is the least important part
Almost every deck that fails early fails from underneath. The boards are fine; the joists have gone soft, a post has rotted at the ground, the footings have heaved with frost, or the ledger has pulled away from a rotted rim joist. The worst deck failures are collapses, and many of them trace back to a poorly attached ledger.
None of that is hard to avoid. It comes down to five things: put the footings below the frost line on solid soil, bolt and flash the ledger properly (or build freestanding), use ground-contact lumber where it counts, let air move underneath, and give water somewhere to go. Get those right and even pressure-treated pine will give you 20 years or more.
This guide assumes you have settled the design and chosen the boards. If not, start with Planning a Deck and Decking Materials. And be honest about scope: a low, freestanding deck is a genuine DIY project, while a raised deck attached to the house, with stairs and guards, is a structure people can fall from - it needs a permit and inspections, and is worth having designed or built by a pro if you are unsure. The American Wood Council's free DCA 6 guide (Prescriptive Residential Wood Deck Construction Guide) is the reference many building departments accept for simple decks.
What you need
Tools and materials
✓Tools
Post-hole digger, shovel and a wheelbarrow for footings and mixing concrete
String line, stakes and a framing square - or the 3-4-5 method for square corners
A 4-ft level and a straight edge; a laser level if you can borrow one
Circular saw or miter saw for cutting joists and boards cleanly
Cordless drill/driver and impact driver for screws, lags and structural fasteners
Tape, pencil and deck board spacers (or a 16d nail) to keep board gaps even
Hammer drill or socket set for ledger lags or through-bolts and post-base anchors
Gloves, safety glasses and a dust mask - pressure-treated sawdust is not something to breathe; don't burn the offcuts
!Materials
Deck boards plus 10% for cuts and waste
Joists, beams and ledger, ideally ground-contact rated (UC4A) pressure-treated lumber, usually 2 x 8 to 2 x 12
Posts - 6 x 6 ground-contact pressure-treated is the usual minimum for support posts
Concrete and footing forms (cardboard tube forms) sized for your soil and load
Joist hangers, post bases, post caps, hurricane ties and ledger fasteners, all hot-dip galvanized (G185) or stainless and rated for treated lumber
Deck screws - coated for pressure-treated, stainless for cedar, redwood, ipe and coastal sites
Ledger flashing and joist tape - cheap, and they add years to the frame and the house
End-cut preservative for every cut you make
Landscape fabric and gravel for the ground beneath
As an Amazon Associate, PlantMapper may earn from qualifying purchases. Prices and availability are set by Amazon. Footing sizes, spans and fastener schedules should come from your local code, DCA 6, the board manufacturer or a qualified contractor - not from a general guide.
Step one
Preparing the site
The ground under a deck is out of reach forever once the boards go down. Whatever you leave there will still be there in 20 years.
Call 811 and check what is underground
Call 811 (or use your state's online request) a few business days before digging, so utilities mark their gas, electric, water and cable lines for free. Private lines they don't mark - a cable to a shed, an irrigation line, a septic field or propane line - are on you, so look for them. Footing holes go deeper than most yard work, so this really matters.
Lay out the shape and check it is square
String lines and batter boards, then measure the diagonals - on a rectangle they must be equal. A frame that is out of square shows up in every board and can't be corrected later.
Strip the sod and rough-grade
Remove sod and roots across the footprint. You are not aiming for a perfect surface, just a stable one, free of anything living, that slopes gently away from the house.
Deal with tough weeds
Bindweed, quackgrass, poison ivy, blackberries and tree saplings will grow up under a deck and out between the boards for years. Deal with them now, while you can still reach them.
Lay landscape fabric and gravel
Landscape fabric across the footprint, overlapped about 6 in at seams, then about 2 in of gravel on top. The gravel matters most: it keeps the surface dry, stops splash-back onto the frame and stops mud forming under the deck.
Confirm the finished height before you build
Work back from the finished deck surface: board thickness, joist depth, beam depth, then footings. On an attached deck, the surface usually sits a step - roughly 1-4 in - below the door threshold so rain and snow don't run indoors, and the ledger must never sit where water can run behind the siding.
What it stands on
Footings
The options, and the right one depends mostly on how high the deck sits, your soil, and how deep the ground freezes where you live.
Footing options for a backyard deck. In cold climates footings must reach below the local frost depth, which your building department will tell you - from a few inches in the Deep South to 4 ft or more in the northern states.
Method
Suits
How it works
Watch out for
Precast deck blocks on compacted ground
Low, freestanding "floating" decks in mild climates or where local code allows
Joists or beams sit in the top of concrete piers set on firm, compacted soil
Not below the frost line, so they can heave in cold climates; many jurisdictions won't accept them for permitted decks
Poured concrete footings with post bases
Most decks, including raised and attached ones
Concrete poured into a tube form below the frost line, with a galvanized post base anchored on top that holds the post off the concrete
Footing diameter depends on load and soil - DCA 6 and your code give sizes; the bottom must sit on undisturbed soil
Posts embedded in concrete
Raised decks, sloping sites
Ground-contact post set on a concrete pad in the hole, then backfilled with concrete or gravel for lateral stability
Ground-contact lumber only; slope the top of the concrete away from the post so water sheds, and check your code allows it
Adjustable pedestals
Rooftop decks, decks over an existing concrete patio
Screw-jack pedestals carry the joists and adjust for level
Check the load rating; not for soil
Helical piles
Tight access, high water tables, unstable or frost-prone ground
Steel screw piles driven below the frost line and bracketed to the beam
Usually installed by a contractor with load data; excellent on awkward sites
The single most common foundation mistake is setting footings above the frost line, or putting above-ground lumber in the ground. Both look fine for a few years, then the deck heaves out of level or a post rots off at grade, exactly where you can't see. Dig to the depth your code requires, land the footing on undisturbed soil, and use a galvanized post base that holds the post end off the concrete so it can dry.
The structure
Building the frame
A deck frame is posts on footings, beams on the posts, and joists running across the beams (and hung off a ledger if it is attached). Nothing about it is complicated; everything about it has to be square, level and fastened with the right hardware.
Joist size and spacing
Usually 2 x 8 or 2 x 10 at 16 in on center
Joist size comes from the span tables in your code or DCA 6, based on species, grade and span. Spacing is driven by the board. Too far apart and the deck bounces; bounce becomes failure.
Wood boards usually sit on joists at 16 in on center
Composite and PVC boards often need 12 in on center - check the installation guide
Diagonal boards need tighter spacing, often 12 in on center
Every board end must land on a joist, so add blocking where joints fall
Fasten it properly
Hangers, post caps and hurricane ties
Joist hangers give a far stronger, more consistent connection than toe-nailing, and keep the frame square while you work.
Galvanized joist hangers with the structural nails or screws the hanger maker specifies - never deck or drywall screws
Hurricane ties or rafter ties where joists cross a beam, and post caps or bolts tying the beam to every post
Brace a raised deck - tall posts need diagonal knee bracing or the frame can rack sideways
Protect the top of every joist
Joist tape costs a few dollars and buys years
Water sits on the flat top of a joist and soaks into every screw hole. It is where frames rot first.
Butyl joist tape along the top of every joist, beam and the ledger
Treat every cut end with copper-based end-cut preservative before it goes in
Never leave a joist end buried in soil or tight against the house
Meeting the house
Freestanding is simpler; a bolted, flashed ledger is fine
The ledger, the board that attaches a deck to the house, is where many serious deck collapses start. Done well it is a solid structural connection; done badly it lets water rot the house's rim joist and the deck pulls away.
Consider a freestanding deck on its own beam and footings next to the house - no holes in the wall at all
If you attach it, remove the siding behind the ledger, bolt it to the house's rim joist with 1/2-in lag screws or through-bolts in a staggered pattern, and flash it with a Z-flashing tucked under the house wrap
Never nail a ledger on , never attach to brick veneer, stucco or a cantilevered floor, and add the lateral load connectors your code calls for
Frame first, square and braced - everything else follows from itTwo screws per board at each joist, set in from the edgeBoards run across the joists, never along them
The part nobody photographs
Ground clearance and airflow
Read this section twice. A deck is a wood structure over damp ground, and the only thing that dries it is moving air. Choke off the airflow and the frame stays wet, and wet wood in still air rots no matter how well it was treated. In the Southeast, that damp void is also termite habitat.
✓Do this
Keep the frame well off the ground - several inches at the very least, and 12 in or more is far better. Anything closer to the soil should be ground-contact lumber.
Ventilate at least two opposite sides so air can flow through rather than sitting.
Use lattice or spaced skirting if you want to hide the underside, never solid boards.
Keep the right gap at the house - flash the ledger properly or leave a gap on a freestanding deck, and never cover dryer vents or foundation vents.
Gravel over landscape fabric under the whole deck, so the ground surface dries quickly and nothing grows.
Leave an access hatch on a raised deck, or leave a way in. Being able to inspect the ledger and footings in ten years is worth a lot.
!Not this
Joists resting on the soil. The most common cause of a deck rotting out early.
Solid skirting all the way round. It looks tidy and it turns the space underneath into a damp box.
Building over a low spot where water collects, without fixing the drainage first.
Banking soil or mulch up against posts or the frame after the deck is built - it bridges all the clearance you carefully created.
Covering a crawlspace vent, dryer vent or the house's weep holes with the deck or its skirting. That is a problem for the house, not just the deck.
Storing things underneath a low deck. It blocks airflow and gives animals a sheltered den.
Wildlife. A space under a deck is dry, sheltered and undisturbed, which makes it attractive to skunks, raccoons, groundhogs, rats and snakes. Good clearance and open sides help. If you close in the sides, back lattice skirting with galvanized hardware cloth, bury the bottom edge or bend it outward in an L to stop digging, and keep bird feeders, grills and trash cans away from the deck.
Water
Drainage and slope
A deck drains through the gaps between the boards, so it doesn't need the slope a patio does. That doesn't mean it needs no thought at all.
Drainage points on a backyard deck and what to do about each.
Point
Why it matters
What to do
Gaps between boards
This is the deck’s main drainage route
Pressure-treated boards that arrive wet can go on tight or with about 1/8 in, because they shrink as they dry; kiln-dried wood about 1/8-1/4 in; follow the manufacturer for composite and PVC. Keep the gaps clear of debris
A slight slope away from the house
Helps water leave rather than track back to the wall
A gentle slope of about 1/8 in per foot is plenty, running along the boards
The ground beneath
Water arriving through the deck has to go somewhere
Gravel over landscape fabric, and make sure the ground slopes away from the house foundation
Where the deck meets the lawn or a patio
Run-off concentrates at the deck edge
Finish the deck slightly above the adjoining surface and let water disperse into gravel or planting beds
Downspouts
A downspout emptying onto or under a deck rots it locally and soaks the foundation
Extend or redirect the downspout past the deck to a splash block, dry well or rain garden
Under a raised deck
A sheltered void can stay damp for months
Ventilate, gravel the ground and, if the space is genuinely wet, add a French drain before you build
The satisfying day
Laying the boards
With a square, level frame this is the fun part. Six things to get right.
Start at the house and work outward
Any ripped board then finishes at the outer edge where a fascia or picture-frame border can hide it, rather than against the house where it shows. Keep the first board a small gap off the siding or flashing so water and debris can clear.
Put the best face up
Lay each board with its best face up, and lay ribbed boards smooth face up - ribs hold water, grit and algae and don't improve grip. See Decking Materials.
Space the boards consistently
Pressure-treated boards that arrive wet will shrink as they dry, so lay them tight or with about 1/8 in between. Kiln-dried wood gets about 1/8-1/4 in, set with spacers so every gap matches. Composite and PVC have their own side and end gaps, which change with the temperature on install day, and must be followed exactly.
Two screws per board at every joist
Set them about 3/4 in in from each edge, just below flush. Pre-drill ipe and other hardwoods every time. Keep the screws in straight lines across the deck - snap a chalk line - it is the detail that makes a DIY deck look professional.
Stagger the joints and land every end on a joist
Board joints should never line up across the deck. Stagger them, or use a breaker board, and make sure every board end is fully supported - add blocking or double the joist if it isn't.
Finish with a fascia
A fascia board around the rim joists hides the frame and every cut end, and makes the difference between a deck that looks built and one that looks finished. Composite fascia needs its own expansion gaps and fasteners.
Check the board count before you order
Enter the deck dimensions and your board width and the free PlantMapper decking calculator returns the square footage and number of boards, with an allowance for cuts.
This is the part of a deck where getting it wrong hurts somebody. Treat it as structure, not trim, and follow your local code - the figures below are those commonly used under the International Residential Code (IRC), which many states and towns adopt with their own changes.
Stairs: consistency above everything
Every riser in a flight the same
People trip on stairs because one riser differs from the others, not because the stairs are steep. The brain calibrates to the first step and expects the rest to match.
Maximum riser height is commonly 7 3/4 in and minimum tread depth 10 in under the IRC
Risers may only vary by a tiny amount - about 3/8 in - including the first and last steps
Make stairs generously wide- at least 36 in, wider if they are the main route
Keep treads clean and grippy ; add anti-slip strips if they stay damp - stairs are where falls happen
Guards: the 30-inch rule
Any drop that could injure someone
A guard is not decoration. It has to resist an adult leaning on it, a child pulling on it and furniture pushed against it.
Guards are required where the deck surface is more than 30 in above the ground at any point within 36 in of the edge
At least 36 in high is the usual residential minimum; some towns require 42 in, and many owners choose 42 in on high decks anyway
Guard posts are structural - through-bolt them to the rim or joists with blocking or tension hardware, never just screw them to a fascia
On a high deck, consider having the guards and frame designed or checked, and ask your building department what it requires
Infill: mind small children
No gap a child could get through
The common rule is that a 4-inch sphere must not pass through any opening in the guard.
Vertical balusters rather than horizontal rails, which children climb
Keep openings under 4 in throughout, including below the bottom rail
Check cable rail systems carefully - they must stay tight enough to pass the 4-inch rule, and they can be climbed
Handrails and lighting
Grip and visibility
Two cheap additions that prevent most of the accidents that do happen on decks.
A graspable handrail on stairs with four or more risers, commonly 34-38 in above the tread nosing
Stair and step lighting so the edge and the treads are visible at night - many codes require a light at exterior stairs
Mark the deck edge wherever it drops away, with a guard, a planter or a change of material
A guard is structure, not trim - bolt the posts to the frame
Putting it together
The build, in order
For a straightforward low, freestanding deck of around 12 x 14 ft, assuming permits and inspections are sorted. Two weekends for two people is doable on reasonable ground.
Weekend one, morning: call 811, lay out and clear
Lay out the shape, check the diagonals, strip sod and roots, and haul the spoil away.
Weekend one, midday: footings
Dig footing holes to the depth and diameter your plan calls for, below the frost line, and have the holes inspected if your permit requires it.
Weekend one, afternoon: concrete, fabric and gravel
Pour the footings, set the post bases in line and level, and let the concrete cure. Lay landscape fabric and about 2 in of gravel across the footprint.
Weekend two, morning: posts, beams and joists
Set and brace the posts, mount the beams, then build the rim and check it is square on the diagonals. Hang the joists at the right spacing for your board, add blocking and hurricane ties, tape every joist top and treat every cut end.
Weekend two, midday: decking
Start at the house side, best face up, consistent gaps, two screws per joist, staggered joints, every end landing on a joist.
Weekend two, afternoon: fascia, stairs and guards
Fit the fascia, build the stairs with identical risers, bolt the guard posts to the frame, add infill under the 4-inch rule and a graspable handrail, and book the final inspection.
Afterwards: let pressure-treated wood dry before staining
New pressure-treated lumber is usually too wet to take stain. Let it dry for a few weeks to a few months, then clean it and apply the first coat. See Cleaning & Maintenance.
On the job
The construction checklist
Fifteen checks across the build. Ticks are saved in this browser only.
Ground and footings
Frame
Clearance, boards and safety
Construction questions
Building a deck: frequently asked questions
How far apart should deck joists be?
For wood boards laid straight, 16 in on center is standard, with joist size (usually 2 x 8 to 2 x 12) taken from the span tables in your code or DCA 6. Composite and PVC often need 12 in on center, and boards laid diagonally usually need 12 in whatever the material. Always check the board's installation guide, because the board sets the spacing, and make sure every board end lands on a joist.
How deep do deck footings need to be?
Below your local frost line, and on undisturbed soil. Frost depth ranges from a few inches in the Deep South to 4 ft or more in the northern states and mountains, and your building department will tell you the required depth. Footings above the frost line can heave as the ground freezes, pushing the deck out of level. Many codes also set a minimum depth of about 12 in even where the ground doesn't freeze.
Do I need to put anything under a deck?
Yes. Lay landscape fabric across the whole footprint, overlapped about 6 in at the seams, and cover it with about 2 in of gravel. The fabric stops weeds growing up through the boards and the gravel keeps the ground surface dry, prevents mud and stops rain splashing soil back onto the frame. Make sure the ground slopes away from the house first.
What gap should I leave between deck boards?
Pressure-treated boards that arrive wet from treatment shrink as they dry, so they can go on tight or with about 1/8 in between. Kiln-dried wood and cedar usually get about 1/8-1/4 in, set with spacers. Composite and PVC have their own side and end gaps, which vary with the temperature on install day and by manufacturer, and must be followed exactly - they expand with heat and buckle if fastened tight.
Do I need a permit to build a deck?
Usually. Most building departments require a permit for any deck attached to the house, any deck more than 30 in above the ground, and larger decks; the model International Residential Code exempts some small, low, freestanding decks, but many towns change that exemption. Expect inspections of the footing holes, the framing and the finished deck. Check HOA rules too, and get approval in writing before you buy materials.
How do you attach a deck ledger to a house?
Remove the siding where the ledger goes, then bolt the ledger to the house's rim joist with 1/2-in lag screws or through-bolts in a staggered pattern, at the spacing your code or DCA 6 gives. Flash it with a Z-flashing tucked up under the house wrap so water runs over the ledger, not behind it, and add the lateral load connectors your code calls for. Never nail a ledger on, and never attach one to brick veneer, stucco or a cantilevered floor. If in doubt, build the deck freestanding.
When does a deck need a railing?
Under the IRC, which many places adopt, guards are required where the deck surface is more than 30 in above the ground at any point within 36 in of the edge. Residential guards are commonly at least 36 in high (some towns require 42 in), openings must not let a 4-inch sphere through, and guard posts must be bolted to the frame to resist a strong push. Stairs with four or more risers need a graspable handrail. Check your local code, as it may differ.
Can I build a deck over an existing concrete patio?
Often, and it is a good way to reuse sound but tired concrete. Check that the slab drains, or that water can escape at the edges, keep the deck a step below the door threshold, and use adjustable pedestals or low 2 x 4 runners of ground-contact lumber with airflow on at least two sides. What you must not do is trap water between the concrete and the deck with no way out. A cracked or heaving slab is not a sound base.