Skip to main content
RealCostIQ

Free · no signup

Deck Building Cost Calculator

See DIY materials cost vs. professionally installed cost for your deck, and a DIY-difficulty verdict based on size, material, and height off grade.

Educational calculators — always consult a licensed professional before making financial decisions.

Your deck

01Deck size
How long is the deck (feet)?

The dimension running along the house, typically.

Tap to edit
840
How wide is the deck (feet)?

The dimension extending out from the house.

Tap to edit
830
02Material

$7–$12/sq ft in materials. Most common DIY choice.

03Height & stairs
How high off the ground will the deck be?

This is the single biggest factor in DIY difficulty and permit requirements.

Simpler footings, often no railing required.

Do you need stairs?

Add this if the deck needs a staircase down to grade.

Ground-level deck or stairs handled separately.

DIY materials cost

$1,536 – $2,880

Vs. professionally installed: $3,456 – $6,336

Deck size192 sq ft
Estimated savings doing it yourself$1,920 – $3,456
VerdictDIY-friendly — a ground-level deck at this size is a manageable weekend-to-week project for an intermediate DIYer.

Cost Breakdown (Pro-Installed)

Where Your Money Goes

Pressure-Treated Lumber Decking & Framing37%
$1,344 – $2,304
Footings8%
$192 – $576
Pro Installation Labor55%
$1,920 – $3,456
Pressure-Treated Lumber Decking & Framing$1,344 – $2,304
Footings$192 – $576
RailingNot included
StairsNot included
Pro Installation Labor$1,920 – $3,456
Free

Email me the detailed report

A full PDF breakdown of these numbers — yours to keep or hand to a contractor.

Estimates reflect national averages for educational purposes only. Elevated decks almost always require a building permit — check the permit guidance on the related DIY guide before starting.

Your Saved Scenarios

No saved scenarios yet

What you'll need

  • Deck length and width in feet
  • Decking material (pressure-treated, cedar, or composite)
  • Height off grade — ground level or elevated

What you'll get

  • DIY materials cost — Decking, framing, footings, railing if needed
  • Pro-installed cost comparison — Same materials plus labor
  • Estimated savings — And a DIY-difficulty verdict

How it works

1

Enter deck size

Length and width in feet.

2

Pick decking material

Pressure-treated, cedar, or composite.

3

Set height and add-ons

Ground-level or elevated, plus stairs if needed.

Deck cost overview

Pressure-treated decking: $7 – $12 / sq ft (materials)
Cedar decking: $12 – $18 / sq ft (materials)
Composite decking: $18 – $30 / sq ft (materials)
Pro installation labor: $10 – $28 / sq ft depending on height
Railing (elevated decks): $40 – $70 / linear ft
Stairs: $300 – $800 flat add-on

Building a fence instead? Try our Fence Installation Calculator — same DIY-vs-pro comparison, sized for fencing.

Deck Cost by Material

MaterialMaterials Cost
Pressure-treated$7 – $12 / sq ft
Cedar$12 – $18 / sq ft
Composite$18 – $30 / sq ft
Pro installation labor$10 – $28 / sq ft
Railing (elevated)$40 – $70 / linear ft
Stairs$300 – $800 flat

Elevated decks need deeper footings and structural railing, which is why height off grade is the single biggest factor in both cost and DIY difficulty.

By RealCost Editorial TeamReviewed by RealCost Editorial TeamLast updated September 5, 2026 with September 2026 data

A 200 sq ft ground-level pressure-treated deck runs $1,600–$3,000 in DIY materials on this calculator, or $3,600–$6,600 professionally installed — the $2,000–$3,600 gap is labor. But cost is only half the page: the deck ledger, the board that bolts the whole structure to the house, is governed by IRC Section R507.9.1.3, and any open side more than 30 inches above grade needs a code-compliant guard under Section R312. Those aren't optional upgrades — they're the difference between a deck that stands and one that doesn't.

How this calculator prices a deck

The total is built from five independent lines: decking material, footings, railing, stairs, and pro labor. Only the first two apply to every deck; railing is priced solely for an elevated deck, and stairs only when you ask for them.

Material cost by decking type, 200 sq ft, ground level, no stairs
MaterialMaterial rateMaterial costFootingsDIY totalPro laborPro total
Pressure-treated lumber$7–$12/sq ft$1,400–$2,400$200–$600$1,600–$3,000$2,000–$3,600$3,600–$6,600
Cedar$12–$18/sq ft$2,400–$3,600$200–$600$2,600–$4,200$2,000–$3,600$4,600–$7,800
Composite$18–$30/sq ft$3,600–$6,000$200–$600$3,800–$6,600$2,000–$3,600$5,800–$10,200

Computed from this calculator's own rates. Footings and labor stay flat across materials at ground level because they price the build, not the boards.

Composite costs roughly 2.5 times pressure-treated in material alone, but the labor line barely moves — a crew builds a composite deck in about the same time as a PT one. The real reason composite is popular isn't lower total cost, it's what happens after year one: no annual staining, no splintering, and a warranty that PT lumber doesn't carry.

Going elevated: railing, stairs, and the guard code

An elevated deck changes three numbers at once. Footings jump from $1–$3 to $5–$10 per sq ft because the structure now needs to resist lateral and uplift loads, not just sit on the ground. Labor jumps from $10–$18 to $15–$28 per sq ft. And railing enters the total for the first time, priced at $40–$70 per linear foot across 75% of the perimeter — the calculator excludes the house-attached side, since that edge doesn't need a rail.

This is exactly where the calculator's own verdict logic changes: any elevated deck is flagged "conditional," and an elevated deck over 300 sq ft is flagged "pro-recommended." Railing isn't a cosmetic add-on in that shift — it's a legal requirement the moment a walking surface sits more than 30 inches above grade, per IRC Section R312.1.1: "Guards shall be provided for those portions of open-sided walking surfaces... located more than 30 inches (762 mm) measured vertically to the floor or grade below at any point within 36 inches (914 mm) horizontally to the edge of the open side."

The height requirement is equally specific. Section R312.1.2 sets the guard at "not less than 36 inches (914 mm) in height as measured vertically above the adjacent walking surface," with one carve-out: on the open sides of stairs, the guard may drop to "not less than 34 inches (864 mm) measured vertically from a line connecting the nosings." That's why a deck's main railing and its stair railing are often two different heights on the same structure — both are code-correct, at different numbers.

There's a third dimension nobody asks about until an inspector does: the gaps. Section R312.1.3 caps the openings in a guard at a sphere 4 inches in diameter — a toddler's head can't fit through a code-compliant rail. The stair-triangle exception allows 6 inches at the bottom of a stair guard, and a stair guard's own openings are capped at 4-3/8 inches. Baluster spacing on the pricing sheet isn't decorative; it's set by this rule.

The ledger: where deck failures actually happen

When a deck collapses, the ledger — the board that ties the deck to the house rim joist — is almost always the point of failure, not the decking or the railing. The IRC treats it accordingly, with its own dedicated section and its own fastener table rather than a general framing note.

IRC Section R507.9.1.1 sets the ledger stock itself: "Deck ledgers shall be a minimum 2-inch by 8-inch (51 mm by 203 mm) nominal, pressure-preservative-treated Southern pine, incised pressure-preservative-treated hem-fir, or approved, naturally durable, No. 2 grade or better lumber. Deck ledgers shall not support concentrated loads from beams or girders. Deck ledgers shall not be supported on stone or masonry veneer." Section R507.9.1.2 sets what it bolts to: the house's band joist must be "a minimum 2-inch-nominal (51 mm), solid-sawn, spruce-pine-fir or better lumber or a minimum 1-inch (25 mm) nominal engineered wood rim board," and it "shall bear fully on the primary structure."

Section R507.9.1.3 then governs the fasteners themselves, and it does so with a full spacing table keyed to fastener type, live load, and joist span — not a single number. As one entry from that table: a 1/2-inch lag screw connection under a 40 psf live load with a 6-foot joist span calls for fastener spacing of 30 inches on-center; across the full table, spacing runs from 7 to 36 inches on-center depending on those same three inputs. Edge and end distances are separately fixed at a minimum 2 inches from the top edge, 3/4 inch from the bottom edge, and 2 inches from either end of the ledger, with a minimum 1-5/8 inch spacing between fastener rows.

Reading the DIY-vs-pro verdict

The calculator's verdict starts at "diy-friendly" for every deck by default, moves to "conditional" the moment the deck is elevated, and moves to "pro-recommended" when an elevated deck also exceeds 300 sq ft. Ground-level decks under any size never trip the second or third tier — the model treats footing depth and lateral bracing on an elevated structure as the real skill threshold, not square footage on its own.

That threshold tracks the ledger and guard requirements above reasonably well. A ground-level deck has no ledger connection carrying structural load from the house in the same way, and it rarely triggers the 30-inch guard rule. An elevated deck triggers both, plus footing engineering the calculator prices at 3–5 times the ground-level rate. Whoever is building it — homeowner or licensed contractor — is the one who now owns getting the ledger fasteners and the guard height right, and a $2,000 mistake on either is not a hypothetical.

Who's actually pricing the labor line

Deck construction sits with the carpentry trade, and the Bureau of Labor Statistics puts national carpenters (SOC 47-2031) at a mean $31.55 per hour, $65,630 per year, in its May 2025 estimates — almost exactly the all-construction mean. That's the wage underneath the calculator's $10–$28 per sq ft labor bands; the range in this tool reflects crew size, region, and job complexity layered on top of a fairly consistent base wage, not wildly different skill tiers doing the same work.

What the wage figure doesn't capture is liability. A framing mistake inside a wall is invisible for years; a ledger or guard mistake on a deck is outdoors, load-bearing, and load-tested every time someone stands on it. That's the argument for paying the labor line rather than skipping it on an elevated build, even where the calculator's own default verdict says "conditional" rather than "pro-recommended."

Methodology

All dollar figures are computed directly from this calculator's own module constants (material, footings, railing, stairs, and labor rates by height class) — no figure here is estimated or interpolated beyond that arithmetic. Ledger and guard requirements are quoted verbatim from the 2021 International Residential Code, Sections R507.9.1.1–.3 and R312.1.1–.3. Carpentry wage data is the BLS OEWS May 2025 national estimate for SOC 47-2031. No joist span, beam size, or footing depth beyond the code's own ledger fastener-spacing example is stated, because none of those figures is independently verified for this page.

Sources

  1. ICC — 2021 International Residential Code, Chapter 5: Floors (R507.9 Exterior Decks) — accessed 2026-09-07
  2. ICC — 2021 International Residential Code, Chapter 3: Building Planning (R312 Guards) — accessed 2026-09-07
  3. U.S. Bureau of Labor Statistics — OEWS Profile, Carpenters (47-2031), May 2025 — accessed 2026-09-07

About this calculator

Can I build a deck myself?

A ground-level deck (typically 30 inches or less off grade) is a manageable DIY project for someone with basic carpentry experience. An elevated deck is a bigger step up — it needs deeper footings, structural railing, and usually a permit, and is best attempted only by an experienced DIYer.

Do I need a permit to build a deck?

It depends heavily on your state and deck height. A handful of states have explicit statewide exemption thresholds for low decks (30 inches or less off grade in several states, 18 inches in Utah). Most other states delegate this entirely to your city or county — always verify locally before starting, especially for an elevated deck.

How much does it cost to build a deck?

For a 200 sq ft ground-level deck in pressure-treated lumber, this calculator estimates $1,600–$3,000 for DIY materials and footings, or $3,600–$6,600 professionally installed including labor. The same deck in composite runs $3,800–$6,600 DIY or $5,800–$10,200 installed. Elevated decks add railing, deeper footings and higher labor rates, and stairs add $300–$800.

Want to try different numbers?

Back to the calculator ↑

Deck Building Cost Calculator is built and maintained by the RealCostIQ editorial team. Cost ranges and rates are checked against published industry data and contractor quotes, and revised when the underlying figures move. Read our data methodology or more about who builds this. Every calculation runs in your browser — no account, and none of your inputs are stored.

Cost ranges and rates here are checked against contractor quotes and published industry data. If a number still looks off, email Support@RealCostIQ.com and we'll review and fix it.