Free · no signup · updates as you type
Deck Cost Calculator
Find out what building a deck should cost before you call a contractor. Set the size, material, and elevation, then add railings, stairs, and features to get decking, framing, and build-labor costs per square foot with an honest range — and compare pressure-treated, composite, and ipe side by side.
Your deck
Results update as you type — no button to press.
The biggest driver — pressure-treated cheapest, composite & ipe most.
Linear feet of railing — 0 for none
Regional cost factor ×1.00 — typical for United States (national average); scales labor, not material.
PT base, before factors
Estimated total
320 sq ft · Composite (Trex)$12,508
Range $11,257 – $16,260
Fencing the yard too?
Price a fence by the linear foot and material.
How to estimate the cost to build a deck
Building a deck typically costs about $20–$60 per square foot installed, so a 16-by-20-foot (320 sq ft) composite deck with railings and stairs runs roughly $12,000–$14,000, while the same deck in pressure-treated wood runs about $6,000–$9,000. The formula the calculator runs is: total = decking (area × price × material, a commodity) + framing & build labor (region-scaled, by material and elevation) + railings + stairs + features + demo. Material is the dominant driver — pressure-treated cheapest, composite, PVC, and ipe most. The decking, framing lumber, and rail material are nationally-priced commodities, so only the labor scales with your region. This guide walks the exact math and a worked example. Every figure is an estimate, not a quote.
Material Drives Most of the Cost
The decking material is the biggest lever on a deck's price. Pressure-treated wood is the budget reference, at roughly $15–$25 per square foot installed. Cedar costs a bit more. Composite (Trex) and PVC run $30–$45, and hardwood like ipe tops out at $40–$60 — both for the material and for the harder labor of working dense boards.
The calculator prices each material as a multiplier on an editable pressure-treated base for both the decking and the build labor, so switching materials moves the estimate directly. Pick the material for your budget, look, and maintenance tolerance first, then compare the cost — the surface boards are where most of the money goes.
- Pressure-treated cheapest (~$15–$25/sq ft) → composite/PVC ($30–$45) → ipe ($40–$60)
- Material scales both the decking and the build labor
- The decking surface is the single biggest line
Material vs Labor — and What Your Region Changes
The estimate splits into commodity material and local labor. The decking boards, the framing lumber, and the rail material are commodities priced about the same nationwide. The framing and build labor, the rail install, the stairs, and any demolition are local labor.
Here's the part most deck calculators get wrong: your region only changes the labor. The boards cost the same in a high-cost metro as in a rural county, so the calculator does NOT scale the decking, rail material, or stair material by state — only the build labor, rail install, stairs labor, and demo. That keeps the material line honest while the labor flexes with where you live.
- Decking, framing lumber, and rail material = commodity (flat)
- Build labor, rail install, stairs, and demo = region-scaled
- Region moves labor only — never the boards
Ground-Level vs Raised — the Framing Factor
How high the deck sits off the ground changes the framing labor more than anything else. A ground-level or low deck is the baseline. A raised or elevated deck needs taller posts, bigger beams, deeper footings, and often guard railing all around — the calculator adds about 40% to the build labor for a raised frame.
Elevation doesn't change the decking material (the surface area is the same), only the structure underneath and the labor to build it. If your yard slopes, a raised deck may also pair with a retaining wall — the Retaining Wall Cost Calculator prices that separately.
- Ground-level 1.0× · raised/elevated ~1.4× build labor
- Raised decks need taller posts, beams, and footings
- Elevation changes the framing labor, not the decking
Railings, Stairs, and Built-In Features
Three add-ons round out most decks. Railings are priced per linear foot — about $20–$50 installed depending on the material, and composite or metal rail costs more than wood — so the calculator takes the linear footage and splits it into rail material (a commodity that scales with your deck material) and install labor. Stairs are a set cost for the stringers, treads, and build labor. Built-in seating, planters, or a pergola add their own material-plus-labor line.
These extras add up fast on a small deck: on a 320-square-foot build, railings and stairs together can be a quarter of the total. The calculator prices each separately so you can see what to keep and what to cut.
- Railings ~$20–$50 per linear foot (material + install)
- Stairs are a set cost for stringers, treads, and labor
- Built-in seating or a pergola adds its own line
Demo: Replacing an Old Deck
If you're replacing an existing deck, tearing out and hauling the old one adds about $3 per square foot of demolition labor. The calculator prices it as an optional line so you can see the difference between a fresh build and a replacement.
One money-saver worth asking a contractor about: if the existing footings and framing are still structurally sound, a 'reboard' that reuses the substructure and replaces only the decking and railings costs far less than a full tear-down and rebuild.
- Tear-out + haul ~$3 per sq ft (labor)
- A sound substructure can be reused (reboard)
- Reboarding is much cheaper than a full rebuild
Worked Example: A 16×20 Composite Deck
Take a 16-by-20-foot deck — 320 square feet — in composite, ground-level, with 40 linear feet of railing and a set of stairs, at the national-average region.
Decking is 320 × $8 × 2.2 = $5,632. Framing and build labor is 320 × $9 × 1.2 = $3,456. Railings are 40 ft of composite rail material plus install, so $1,920. Stairs add $1,500. That totals $12,508 — about $39 per square foot. Switch to pressure-treated and it falls to about $8,140; raise the deck off the ground and the framing labor jumps about 40%.
- Decking: $5,632 · Build labor: $3,456
- Railings: $1,920 · Stairs: $1,500 · Total: $12,508 (~$39/sq ft)
- Pressure-treated ~$8,140 · raised frame adds ~40% labor
Why the Total Is a Range
Deck jobs vary with the site, the footing depth your soil and frost line require, how much railing and how many stairs the design needs, and local code, so the calculator brackets the realistic figure with a low end at 0.9x and a high end at 1.3x. The upside covers deep footings, a complex or multi-level shape, lots of railing, and difficult access.
A deck is often one piece of a larger yard project — pricing a Fence Installation Cost Calculator run for the yard or a Retaining Wall Cost Calculator estimate for a sloped lot at the same time helps you budget the whole outdoor space. Budget toward the middle for a simple rectangular ground-level deck and toward the top for a raised, multi-level build, and always confirm with an on-site quote.
- Low = realistic x 0.9 · high = realistic x 1.3
- Upside covers deep footings, complex shapes, and lots of railing
- A raised, multi-level deck pushes toward the high end
The bottom line
Deck cost is driven first by the material — pressure-treated cheapest, composite, PVC, and ipe most — and then by area, elevation, railings, stairs, and whether an old deck comes out. The decking, framing lumber, and rail material are commodities, so your region scales only the build labor, rail install, stairs, and demo. The Deck Cost Calculator runs all of it and returns a decking, build-labor, railings, stairs, features, and demo breakdown with a cost per square foot and an honest low-to-high range — a planning number to size up the job and read a deck builder's quote against, not a guaranteed bid.
Frequently asked questions
How much does it cost to build a deck?
Building a deck typically costs $4,500–$20,000, or about $20–$60 per square foot installed, depending on the material and size. Pressure-treated wood is cheapest at $15–$25 per square foot; composite, PVC, and ipe run $30–$60. A 16-by-20-foot composite deck (320 sq ft) with railings and stairs runs roughly $12,000–$14,000. Railings, stairs, a raised frame, and built-in features add on top. Use the calculator above for your exact material and size.
How much does a deck cost per square foot?
A deck costs about $15–$25 per square foot for pressure-treated wood, $30–$45 for composite, and $40–$60 for PVC or ipe — decking plus framing and build labor. That's the deck surface itself; railings (about $20–$50 per linear foot), stairs, and a raised frame add to it. The two biggest drivers are the decking material and whether the deck is ground-level or elevated. The calculator above shows your cost per square foot live as you change the material.
Is a composite or wood deck cheaper?
Pressure-treated wood is cheaper to build — about $15–$25 per square foot versus $30–$45 for composite (Trex), roughly half the cost. But composite needs almost no maintenance (no staining or sealing) and lasts 25–30+ years, while wood needs regular upkeep and lasts 10–20. Over the deck's life the gap narrows; upfront, wood wins clearly. Compare the two side by side in the calculator above.
Is a composite deck worth the extra cost?
A composite deck is worth it for most homeowners who plan to keep the deck 10+ years: it costs about double pressure-treated upfront but eliminates the staining, sealing, and board replacement wood needs, often paying back the difference in saved maintenance and time. Wood still makes sense for a tight budget or a small deck. Price both with the calculator above to see the upfront gap.
How much does a 16x20 deck cost?
A 16-by-20-foot deck — 320 square feet — runs about $6,000–$9,000 in pressure-treated wood and $11,000–$15,000 in composite, with railings and stairs included. Going to a raised, elevated frame adds roughly 40% to the build labor, and built-in seating or a pergola adds more. The cost scales with the area, so a 12-by-16 (192 sq ft) runs proportionally less. Enter your exact dimensions in the calculator above.
Do you need a permit to build a deck?
Yes — most decks require a building permit, typically $150–$500 depending on your municipality and the deck's size and height. Permits cover the footings, framing, and railing height for safety, plus an inspection. Attached and elevated decks almost always need one; a small ground-level platform sometimes doesn't. The permit isn't part of the per-square-foot build cost the calculator above shows, so add it to your budget.
Does a deck add value to a home?
A wood deck tends to return about 50–65% of its cost at resale, and a well-built deck adds usable outdoor living space that helps a home sell. Pressure-treated wood decks usually show a better cost-to-value ratio than high-end composite ones simply because they cost less to build, though composite wins on low maintenance. At $5,000–$20,000 it's a meaningful project, so price it with the calculator above first.
How much does it cost to replace a deck?
Replacing a deck runs $8,000–$22,000 — the cost of the new deck plus tearing out and hauling the old one, which adds about $3 per square foot of demolition labor. If the existing footings and framing are still sound, a 'reboard' that reuses the structure and replaces only the decking and railings costs far less. Toggle 'demo old deck' in the calculator above to see the tear-out cost.
More tools
Flooring Calculator
Material, boxes, and install cost for any floor.
Roofing Calculator
Roof squares, bundles, and replacement cost.
BTU Calculator
Right-size heating and cooling — without oversizing.
Gutter Calculator
Seamless or sectional gutter cost, per foot and total.
Window Calculator
Replacement cost per window — by type, frame, and glass.
Tile Calculator
Tile installation cost per sq ft — material + labor.
Concrete Calculator
Cubic yards and slab cost per sq ft and per yard.
Tree Removal Calculator
Cost to remove a tree — by height, type, and access.
Furnace Replacement Cost Calculator
What replacing a furnace or full HVAC system really costs.
Garage Door Installation Cost Calculator
Door, opener, and install cost — by size, material, and style.
Retaining Wall Cost Calculator
Wall cost by face area — material, footing, drainage, and height.
Drywall Installation Cost Calculator
Sheets, material, and labor to hang and finish drywall.
Driveway Cost Calculator
Paving cost by area & material — gravel to pavers.
Electrical Panel Upgrade Cost Calculator
Panel, labor, and permit cost for a service upgrade.
Fence Installation Cost Calculator
Fence cost per linear foot — by material, height, and gates.
Septic System Cost Calculator
Tank, field, and install cost for a new septic system.
Pressure Washing Cost Calculator
Power washing cost per sq ft — by surface and soiling.
Epoxy Garage Floor Cost Calculator
Garage floor coating cost by system and prep.
Insulation Cost Calculator
Insulation cost per sq ft — by type, location, and R-value.
Water Heater Installation Cost Calculator
Replacement cost by type — tank, tankless, or heat pump.
Sod Installation Cost Calculator
Sod cost per sq ft and per pallet — by grass and prep.
Basement Finishing Cost Calculator
Cost to finish a basement — by finish level and add-ons.
Whole-House Generator Cost Calculator
Standby generator cost — unit, transfer switch, and install.
House Siding Cost Calculator
Cost to side a house — by material and wall area.