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 | Material rate | Material cost | Footings | DIY total | Pro labor | Pro 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
- ICC — 2021 International Residential Code, Chapter 5: Floors (R507.9 Exterior Decks) — accessed 2026-09-07
- ICC — 2021 International Residential Code, Chapter 3: Building Planning (R312 Guards) — accessed 2026-09-07
- U.S. Bureau of Labor Statistics — OEWS Profile, Carpenters (47-2031), May 2025 — accessed 2026-09-07