Deck Cost Calculator

Estimate what it costs to build a deck — enter the size, material, height and railing to get a low-to-high installed total, the cost per square foot, and a materials-versus-labor breakdown.

Project Details
Deck size
Material & height
Railing
Live Results Calculated in real time

How this calculator works

Every figure above comes from the formula below, applied to the assumptions listed. Nothing is looked up from a hidden table — you can reproduce the result by hand.

Formula

deck area = length × width

decking cost = area × material rate per sq ft × height multiplier

railing = lineal feet of open side × $25–$60 per ft

total = decking + railing, split about 45% materials / 55% labour

Assumptions & limits

  • Installed rates per sq ft: pressure-treated $15–$25, cedar or redwood $20–$35, composite $30–$60, PVC $35–$70, tropical hardwood $30–$60 (2026 US national ranges).
  • Height multiplier is 1.0 ground level, 1.15 raised, 1.30 elevated, covering taller footings, beams, bracing and guard railing.
  • Railing length is derived from the number of open sides: two sides = length + width, three = length + 2 × width, four = full perimeter.
  • Labour is taken as roughly 55% of the installed figure — so the DIY materials-only line is about 45%.
  • Excluded: stairs, built-in benches, lighting, pergolas, multi-level framing, permit fees and any ledger or footing work driven by local code.

Worked example

A 16 × 12 ft ground-level pressure-treated deck with railing on three open sides

  1. Area = 16 × 12 = 192 sq ft
  2. Decking = 192 × $15 to $25 × 1.0 = $2,880 to $4,800
  3. Railing = 16 + 2 × 12 = 40 lineal ft × $25 to $60 = $1,000 to $2,400
  4. Total = $3,880 to $7,200

Result:About $3,880 to $7,200 installed, near $29 per sq ft at the midpoint — roughly $2,500 in materials if you build it yourself.

Cost data basis

United States — national averagePrices as of 2026

Cost figures are national US ranges for 2026 and are material-only unless the calculator explicitly says "installed". They exclude sales tax, permit fees and local labour rates, which vary widely by metro area. Always confirm a delivered price with a local supplier before ordering.

Sources

Deck framing and decking build-upSection through a ground-level deck showing precast deck blocks on a gravel pad, the beam, joists at sixteen inches on centre, and deck boards with the gap between them.Deck blocks on gravel padsBeamJoists16″ OCBoardsgapRows = deck width ÷ (board width + gap).A 5.5″ board with a ¼″ gap covers 5.75″.
Board coverage is board width plus the gap — that sum, not the nominal size, decides how many rows a deck needs.

How much does it cost to build a deck?

In 2026 a built deck typically runs $25 to $60 per square foot installed, so a common 300–400 sq ft deck lands between roughly $7,500 and $24,000. The figure swings on four things: the deck's size, the decking material, how high it sits off the ground, and how much railing and stairs it needs. Pressure-treated wood is the cheapest build; capped composite and PVC cost more up front but need far less upkeep. The calculator above prices your exact size and choices and splits the total into materials and labor, so you can see what a DIY build would save.

Deck cost formula

A full deck quote is more than one price per square foot. Estimators build it up from four layers — the framing (substructure), the decking surface, the railing, and any stairs — then add permits and tear-off:

total = (substructure $/sq ft + decking $/sq ft) × area × height factor + railing length × rail rate + stairs + permit + tear-off

Worked example: a 16 × 20 ft composite deck

Say you want a 16 ft × 20 ft = 320 sq ft composite deck, about 3 ft off the ground, with railing on the two open sides (36 ft) and one short flight of stairs:

Adding those gives roughly $16,170, or about $51 per square foot all-in — squarely in the mid-to-upper range for composite. Swap in pressure-treated boards and the same deck drops to around $9,000–$11,000. The calculator runs this math for your size and material instantly.

Deck cost by material

MaterialInstalled $/sq ftNotes
Pressure-treated wood$15 – $25Lowest cost, needs sealing every 2–3 yrs
Cedar / redwood$20 – $35Natural look, rot-resistant
Composite (Trex)$30 – $60Low maintenance, ~25-yr warranty
PVC (AZEK)$35 – $70Most weather- and stain-resistant
Tropical hardwood (Ipe)$50 – $65Premium, very dense and durable

Cost figures are 2026 estimates and vary widely by region, deck height and access.

Cost by deck size (composite, installed)

Deck sizeAreaTypical range
10 × 10 ft100 sq ft$3,000 – $6,000
12 × 16 ft192 sq ft$5,800 – $11,500
16 × 20 ft320 sq ft$9,600 – $19,200
20 × 20 ft400 sq ft$12,000 – $24,000

The add-ons that drive the bill up

The base price-per-square-foot covers a simple, low rectangle. These line items are what separate a $9,000 deck from a $24,000 one:

ItemTypical costWhen it applies
Railing$10 – $50 / lin ftRequired on most raised decks; cable/glass at the high end
Stairs$150 – $350 / stepEach flight down to grade
Deeper / taller footings+$8 – $18 / sq ftElevated or hillside decks, deep frost lines
Tear-off of old deck$500 – $1,000Replacing an existing deck
Permit & inspection$50 – $500Almost always required for attached/raised decks

How much of a deck is labor?

Labor is the single biggest share of a built deck — usually 50% to 70% of the total, or roughly $11–$22 per square foot for a standard pressure-treated build, and more for elevated or complex designs. That is why doing the build yourself can cut the cost roughly in half. The estimate above splits the midpoint about 45% materials and 55% labor; a DIY build keeps the labor portion in your pocket but adds your time and tool costs.

Waste and ordering extra

Add about 10% extra decking for cuts, the occasional bad board and future repairs — bump that to 15% for a diagonal, picture-frame or herringbone board layout, which produces more offcuts. Buying boards from the same production batch up front also avoids slight shade differences later. To size the boards, joists and fasteners precisely, run the deck board calculator; for a ground-level build on blocks, use the floating deck calculator.

Common deck-cost mistakes

When to DIY vs hire a pro

A low, freestanding, ground-level deck under about 200 sq ft is a realistic DIY weekend-plus project and is where the labor savings are biggest. Hire a licensed deck builder once the deck is attached to the house (the ledger connection is a leading cause of deck collapses), sits more than ~30 inches off the ground, spans long beams, or sits on a slope — these need engineered footings, proper flashing and an inspection. A deck that passes inspection is also the one that survives a home sale: an unpermitted or non-compliant structure turns up in the buyer's inspection report and gets negotiated against the price, which is where the saving on a cheap build goes.

Pouring footings? Size the concrete with the concrete calculator, and if your deck carries a roof, check the slope with the roof pitch calculator. Hiring out? Compare quotes from local deck builders below.

These are planning estimates only — material and labor prices change by season and region. Verify with a local deck builder or supplier and your building department before you buy or build.

Frequently asked questions

Do I need a permit to build a deck?

In most US jurisdictions, yes — any deck attached to the house, or a freestanding deck above a certain height or size (often around 30 inches high or 200 square feet), needs a building permit and at least one inspection. Permit fees commonly run $50 to $500, and larger or engineered decks cost more. Building without a required permit can mean fines, a forced rebuild, or trouble when you sell the home, so check with your local building department before you start.

How much does a 20x20 deck cost?

A 20x20 deck is 400 square feet. In pressure-treated wood that is roughly $10,000 to $14,000 installed; in composite it is more like $16,000 to $24,000, and premium PVC or hardwood pushes it higher. Railing on the open sides, stairs and elevated footings add to those figures. Enter 20 by 20 and your material above for a tailored low-to-high estimate.

Does a new deck add value to your home?

Yes — a well-built deck is one of the better outdoor returns, recouping roughly 50% of its cost in added home value on average, with wood decks often returning a bit more of their lower cost than premium composite. The bigger payoff is usability, but a code-compliant, permitted deck also protects resale, while an un-permitted or unsafe one can scare off buyers and inspectors.

How can I build a deck for less money?

The biggest savings come from choosing pressure-treated wood over composite, keeping the deck low and ground-level to avoid tall footings and guard railing, sticking to a simple rectangle, and doing the labor yourself where it is safe to (labor is 50 to 70% of the cost). A freestanding ground-level or floating deck also skips the more involved ledger connection to the house. Buy boards in one batch to avoid waste, and get at least three itemized quotes if you hire out.

How much does it cost to build a deck?

Installed, a deck typically runs about $15–$25 per square foot for pressure-treated wood, $20–$35 for cedar, $30–$60 for composite like Trex, and $35–$70 for PVC. A average 300 sq ft deck therefore lands roughly between $6,000 and $18,000 depending on material, height and railing. Enter your size and material above for an estimate.

How much does a 12×12 deck cost?

A 12×12 deck is 144 square feet. In pressure-treated wood that is about $2,200–$3,600 installed; in composite it is more like $4,300–$8,600. Adding railing, stairs or height raises it. The calculator prices your exact size and choices.

Is a composite or wood deck cheaper?

Pressure-treated wood is cheaper to build — often half the up-front cost of composite. Composite (Trex, TimberTech) and PVC (Azek) cost more initially but need far less maintenance and last longer, so they can be cheaper over the deck’s life. The calculator lets you compare materials side by side.

How much of a deck’s cost is labor?

Labor is usually around half of a built deck’s cost, sometimes more for elevated or complex designs. The estimate above splits the midpoint roughly 45% materials and 55% labor; doing it yourself saves the labor portion but adds your time and tool costs.

Does the cost include railing and stairs?

Railing adds meaningfully to the total — often $20–$60 per lineal foot installed — and stairs add a few hundred dollars per flight. The calculator includes a railing option and a height factor; unusual features like built-in benches, lighting or multiple levels would add more.

What is the 3/4/5 rule for decks?

It is the field method for getting a corner perfectly square. Measure 3 ft along one side from the corner and 4 ft along the other; the diagonal between those two marks is exactly 5 ft only when the corner is a true 90 degrees - the 3-4-5 right triangle from the Pythagorean theorem. On bigger frames use multiples like 6-8-10. Framers use it when laying out the ledger, beams and footings, because a frame that starts out of square stays out of square.

How much would a 16x20 deck cost?

A 16x20 deck is 320 square feet. Installed at ground level, that is roughly $4,800-$8,000 in pressure-treated wood or $9,600-$19,200 in composite. Railing on three open sides adds about 52 lineal feet - another $1,300-$3,100 installed. Elevated versions cost more for footings, framing and code-required guard railing. Set the exact size, material and height above for a tailored range.

Related tools