Home Project Resources
Home › Guides

How to Build a Deck

Updated August 2026 · Home Project Resources

How to Build a Deck
Want your number first? Open the free Deck Calculator, or read on for how it works.

A deck is structural, life-safety construction, not a woodworking project. It holds a crowd of people several feet in the air, and when one fails it usually fails all at once with everybody standing on it. So the honest first answer to "how to build a deck" is: pull the permit, follow the footing and framing inspections, and get the ledger connection right, because improper ledger attachment is the leading cause of deck collapse in the United States.

The build sequence itself is straightforward: permit, layout, footings below the frost line, posts, beams, ledger, joists, decking, then stairs and guardrails. The parts that hurt people are all connections, and every one of them is inspectable before it gets covered up. That's the entire reason the inspection process exists.

Size the structure before you buy anything. Our free deck calculator gives you joist counts, board counts, footing counts, and fastener quantities from your dimensions.

Updated August 2026

A note on numbers. This page gives you spans, footing depths, fastener specs, code requirements and the line items that belong on a written deck bid, not dollar figures. Framing lumber moves with the commodity market, and footings, access and permits are priced locally. Build the scope here, then get three matched bids against it.

Permits and inspections come first

Most US jurisdictions require a permit for any deck attached to a house, and for freestanding decks above a set height, commonly 30 inches. The permit is not a formality and it is not a tax.

Expect two inspections at minimum:

Both of those stops exist because once the deck boards go down, nobody can see the parts that carry the load. The inspection is the only outside check on the connections that keep the deck attached to the house.

Skipping the permit costs you later. Unpermitted structures show up in disclosure at resale, buyers' agents ask about them, some lenders and insurers care, and in the worst case a municipality can require you to open finished work or remove the deck outright. Permit fees vary widely by jurisdiction and often scale with project value, but they are a small fraction of the deck and trivial next to the cost of opening finished work later.

If a contractor offers to build without pulling a permit to save you the fee, that tells you something about the contractor, not about the fee.

Bring a drawn plan when you apply: dimensions, height above grade, footing size and depth, joist size and spacing, beam size, post size, and guardrail and stair details. Many building departments publish a prescriptive deck guide based on the IRC that you can build straight from, and using it makes approval much faster.

The ledger board: the one detail that kills people

The ledger is the board that bolts the deck frame to the house. On an attached deck it carries roughly half the entire deck load into the house framing.

Decks almost never fail by snapping a joist. They fail by peeling off the house, and it usually happens when a crowd gathers on them at once. There are two failure modes and both are preventable in an afternoon.

Failure mode 1: the wrong fasteners

Never nail a ledger. Nails have almost no withdrawal resistance, and withdrawal is exactly the load a ledger sees when the deck tries to pull away from the house. Deck screws are equally wrong; they are not structural fasteners and they snap in shear.

A ledger gets structural lag screws or through-bolts, in a staggered two-row pattern, with washers.

Spacing depends on the joist span the ledger is carrying. The IRC publishes a table (R507.9.1.3 in recent editions) that ties fastener spacing to joist span, and the numbers commonly land somewhere between about 16 and 30 inches on center, tightening as spans get longer. Do not guess at this. Look up the row for your joist span in the table your jurisdiction has adopted, or take the spacing your building department's deck guide gives you.

The pattern rules that go with it:

Lateral load connection. Recent codes also require a lateral load device, typically a pair of hold-down tension devices tying deck joists back to the house floor framing. Ask your building department what they enforce.

Failure mode 2: water behind the ledger

This is the quieter killer. The bolts stay fine; the wood they're bolted into turns to compost.

Water runs down the house wall, gets behind the ledger, and sits there because there's nowhere for it to go. Over a few years the rim joist rots out, and one day the fasteners pull through wood that no longer has any strength.

The fix is flashing, and it's a layered assembly, not a single piece:

  1. Remove the siding where the ledger will sit so you're on the sheathing and the house's water-resistive barrier.
  2. Run a self-adhering flexible flashing membrane over the sheathing behind the ledger location.
  3. Install the ledger.
  4. Install a metal Z-flashing or cap flashing over the top edge of the ledger, tucked up behind the house's weather barrier and siding, lapping down over the face of the ledger.
  5. Use stainless or heavy hot-dip galvanized flashing. Aluminum flashing corrodes in contact with modern treated lumber.

Many builders also set the ledger on stacked washers or a proprietary spacer to leave a small drainage gap behind it, so any water that gets in can drain out and the back of the ledger can dry.

When you read a contractor's bid, look for the words "ledger flashing" and a fastener spec. A good builder answers how the ledger attaches in one sentence. A vague answer is your signal. A ledger done right is a rounding error against the deck as a whole, and there is no version of this project where economizing on that connection is a good trade.

The freestanding alternative

If any of that makes you uneasy, build the deck freestanding. Add a second beam line along the house side sitting on its own footings, and skip the ledger entirely. You pay for two or three more footings and you eliminate the single most dangerous detail on the whole structure. For a ground-level DIY deck this is often the smarter call.

Footings, posts, and beams

Footings below the frost line

Deck footings follow the same logic as fence posts, only the consequences of getting it wrong are far more expensive. Water in soil expands when it freezes, and a footing sitting inside the freezing layer gets gripped and lifted. It doesn't settle all the way back, so it ratchets upward a little every winter until the deck is visibly out of level and the ledger connection is being pried.

The bottom of the footing goes below the local frost line. That figure is a code number your building department publishes, not a weather fact, and it varies over short distances. Typical enforced depths run from effectively zero along the Gulf Coast to 42 to 60 inches in the upper Midwest and northern New England. Call and ask. Our guide to fence post depth has a region-by-region table and explains the frost heave mechanism in more detail.

Footing diameter is set by the load each post carries and by your soil bearing capacity. Prescriptive deck guides give you a footing size table based on the tributary area each post supports. Common residential deck footings run 12 to 24 inches in diameter.

Two more rules:

Footings are priced each, and what moves the number is diameter, depth to frost, soil type, whether they are hand dug or augered, and site access. If you're doing it yourself, the concrete calculator handles the cylinder math for any hole size and post count.

Posts and beams

Joists: spans, spacing, and hangers

Span and spacing

Joist span is set by lumber species, joist size, and spacing. The approximate numbers below are for No. 2 southern pine at a 40 psf live load plus 10 psf dead load, which is the standard residential deck loading.

Joist size 12 in on center 16 in on center 24 in on center
2x6 about 10 ft about 9 ft 11 in about 7 ft 7 in
2x8 about 14 ft about 13 ft about 10 ft
2x10 about 18 ft about 16 ft about 12 ft 4 in
2x12 about 18 ft about 18 ft about 14 ft

Treat these as planning numbers only. Hem-fir, spruce-pine-fir, and western species span noticeably less than southern pine at the same size, and your jurisdiction's adopted table is the one that governs. The controlling reference in most of the US is IRC Table R507.6 or the equivalent in your local deck guide. Look up your species.

Spacing rules of thumb:

Cantilevers. A joist may overhang past its supporting beam, but the overhang is limited relative to the span behind it, commonly no more than one quarter of the backspan under the IRC. A 12-foot joist span allows about a 3-foot cantilever; an 8-foot span allows about 2 feet.

Joist hangers, done correctly

Joist hangers are where DIY decks fail inspection most often, and the mistakes are small and easy to avoid.

Fasteners rated for treated lumber

Modern pressure-treated lumber uses copper-based preservatives (ACQ, copper azole, and similar). Copper is aggressive toward ordinary steel and toward aluminum, and standard electroplated zinc fasteners corrode fast in contact with it. This is not a slow, cosmetic process; connectors have failed in a few years.

What to use:

Across a whole deck, the difference between the right hardware and the wrong hardware is a small fraction of one day's labor. It's the cheapest insurance on the job.

Rather run your own numbers? Open the free Deck Calculator.

Decking, gaps, and hidden fasteners

Board direction and spacing. Boards run perpendicular to the joists. Straight boards need 16 inch joist spacing (or whatever the manufacturer specifies), diagonal boards need 12 inch.

Gaps for expansion and drainage:

Fastening options:

Picture-frame borders look great and add cuts, waste, and blocking under every border seam. Budget the extra framing.

Guardrails and stairs

This is where a deck stops being carpentry and becomes life safety.

Guardrails

The compliant approach is a full-section post bolted through the rim with a rated hold-down tension device, blocking behind the rim to prevent it from rolling, and through-bolts rather than lag screws. Manufacturers publish tested post-attachment details, and using one of those details is far easier than engineering your own.

Railing is also a large share of the budget, and it is priced by the linear foot installed. Pressure-treated is the cheapest by a wide margin. Composite is roughly double it, cable roughly triple, and glass panel is several times the cost of pressure-treated and the most expensive option in common use. On an elevated deck, railing commonly lands at 15 to 25 percent of the entire project cost, so the material you pick here moves the total more than the decking does. See deck cost for the full material and line item breakdown.

Stairs

Stairs are the other place inspectors find problems, and the rules are about consistency more than absolute dimensions.

How to build a deck yourself: the honest DIY verdict

A ground-level floating deck is a realistic, ambitious DIY project. If the walking surface stays under 30 inches:

Two motivated people with a circular saw, a drill, and a rented auger can build a 12x16 ground-level deck over three or four weekends. Doing the labor yourself typically saves 40 to 50 percent of the installed cost.

Anything elevated is different work. An 8-foot deck with stairs and guardrails is structural, life-safety construction. The ledger connection, the post-to-beam and post-to-footing connections, the guardrail post attachment, and the stair stringer layout all have code requirements and all have failure modes that hurt people. If you build it yourself anyway, pull the permit and take the inspections. The inspector is a free second set of eyes on exactly the connections that matter, and the permit is what protects you at resale.

There is no shame in framing it yourself and hiring out the ledger and the guardrails, or in hiring the whole thing and doing your own demolition. Tear-out is unskilled work billed at skilled rates.

Worked example: a 12x16 freestanding ground-level deck

192 square feet, 18 inches off grade, freestanding so there is no ledger, in a region with a 36-inch frost depth.

Structure plan. Two beams running the 16-foot direction, set 8 feet apart, with joists running the 12-foot direction: 8 feet spanning between the beams and a 2-foot cantilever past each beam. Two feet is exactly one quarter of the 8-foot backspan, so the cantilever is at its limit and legal.

Step 1: footings.

Step 2: posts and beams.

Step 3: joists.

Step 4: decking.

Step 5: steps. 18 inches off grade at roughly 7 inch risers means 3 risers, on a compacted gravel or concrete landing pad. No guardrail required at 18 inches, and no handrail required at 3 risers in most jurisdictions.

Materials list. Take this to the yard and have them price it:

Item Quantity What moves the number
80 lb concrete mix 24 bags Bag count rises fast with footing diameter and frost depth
Post base anchors 6 Galvanized versus stainless, and post size
6x6 posts 6 short Species and treatment grade, ground contact rating required
Beam lumber, 2x10 x 16 ft 4 Grade, treatment, and current lumber market
Joists, 2x8 x 12 ft 13 Grade and treatment, plus waste on odd lengths
Rim joists and blocking How much blocking your span table calls for
Joist hangers, post caps, connector nails Coating grade, which is not optional near treated lumber
5/4 x 6 PT decking, 16 ft 26 boards The single biggest line. Composite multiplies it
Deck screws, hot-dip galvanized 800 Coating grade, and hidden clips cost several times more
Stair stringers, treads, landing pad 3 risers Riser count, landing type, whether a rail is required
Permit 1 Jurisdiction, and whether fees scale with project value

The decking itself is the largest line by a wide margin, so the material you choose there decides the total more than anything else on the list. Concrete, hardware and fasteners together are usually the second biggest chunk, and every one of them is worth buying at the correct coating grade.

Add tool rental if you don't own the gear: a powered auger rents by the day, and digging 6 footings by hand in clay is a genuinely bad Saturday.

How that compares to hiring it out. A ground-level pressure-treated deck is priced by the square foot installed, and the labor half of that is where the 40 to 50 percent DIY saving comes from. Six things move an installed quote: height off the ground, footing depth and soil, whether stairs and railings are involved, decking material, site access for materials, and how much of the ledger area has to be opened up. To get a comparable set of bids, write one scope naming the dimensions, the decking product, the railing type, the number of steps and who pulls the permit, send that same page to three contractors, and ask each what the bid excludes. Full material and labor line items for every deck type are in deck cost.

Time: a weekend for layout and footings, a curing week, a weekend for framing and the framing inspection, and a weekend for decking and steps.

Frequently asked questions

Do I need a permit to build a deck?

In most US jurisdictions, yes, for any deck attached to the house and usually for freestanding decks above about 30 inches. Expect a footing inspection with the holes open before concrete, and a framing inspection before the decking covers the frame. Unpermitted decks create disclosure and financing problems at resale, so pull the permit even on a DIY build.

How is a deck ledger board supposed to be attached?

With structural lag screws or through-bolts in a staggered two-row pattern, never with nails or deck screws, and always over layered flashing so water can't sit behind it. Fastener spacing depends on the joist span the ledger carries, and the governing table is IRC R507.9.1.3 or your local equivalent. Improper ledger attachment is the leading cause of catastrophic deck collapse.

How far apart should deck joists be?

Sixteen inches on center is the general default for wood decking. Many composite decking products require 12 inches on center, and nearly all of them require 12 inches for a 45 degree diagonal board layout because the diagonal increases the effective span. Check your decking manufacturer's instructions before you frame, not after.

How deep do deck footings need to be?

Below your local frost line, which is a code number your building department publishes and which ranges from effectively nothing on the Gulf Coast to 42 to 60 inches in the upper Midwest and northern New England. Bear on undisturbed soil, and set a galvanized post base in the wet concrete so the post sits above grade instead of being buried.

When is a deck railing required?

Most jurisdictions require a guardrail once the walking surface is more than 30 inches above grade, at a minimum height of 36 inches, with openings that will not pass a 4-inch sphere. Guards commonly must resist a 200 pound concentrated load in any direction at the top rail, which is why railing post attachment needs a tested hold-down detail rather than a notched post and two lag screws.

What screws should I use with pressure-treated lumber?

Hot-dip galvanized fasteners meeting ASTM A153, with G185 or heavier hot-dip galvanized connectors, or stainless steel near saltwater. The copper in modern treated lumber corrodes electroplated and bright zinc fasteners quickly, and it eats aluminum flashing and aluminum connectors. Don't mix metals either; stainless screws in galvanized hardware sets up a galvanic couple.

Can I build a deck by myself as a first-time project?

A ground-level freestanding deck under 30 inches is a realistic ambitious DIY project, because there's no ledger, no guardrail engineering, and only two or three steps. An elevated deck with stairs and guards is not a good first project. If you build elevated anyway, pull the permit so an inspector checks the ledger, the hangers, and the guard posts before they're covered.

How long does it take to build a 12x16 deck?

Two motivated people typically need three or four weekends for a ground-level 12x16, spread out to allow a week for the footings to cure and time for the footing and framing inspections. An elevated deck with a full stair run and guardrails takes considerably longer, since the railing and stairs alone can equal the framing in hours.


Related: Deck cost breaks down every line item, material, and the four-way price spread by height and decking type. Fence post depth explains frost heave and gives frost depths by region. The deck calculator sizes your frame, and the concrete calculator tells you how many bags your footings need.

Get the exact figure for your project with the free Deck Calculator.

More guides

See all