Deck Cost Calculator

Estimate what a new deck will cost. Enter the deck size, choose pressure-treated wood or composite, and add the railing length to get a typical installed price with a low-to-high range.

  • Free, no sign-up
  • Feet, inches or metric
  • Formula shown
  • Reviewed Nov 26, 2026

1Your measurements

Decking
Open sides only; 0 for a low deck without railing
Replaces the national range for the deck surface

Your resultsUpdates as you type

How to use the deck cost calculator

  1. Choose pressure-treated wood or composite decking and enter the deck's length and depth.
  2. Enter the total length of railing on the open sides (leave out the house side and stair openings).
  3. Add a contractor's price per square foot if you have one to replace the national range.

Deck cost per square foot

Installed price per square foot, ground-level deck (materials and labor, no railing)
MaterialLowTypicalHigh12 × 16 ft deck
Pressure-treated wood$15$20$25$2,880 – $4,800
Composite (Trex-style)$30$42$60$5,760 – $11,520

Deck cost formula

cost = deck area (sq ft) × installed price per sq ft + railing (ft) × $25–$60

Worked example

A 16 × 12 ft pressure-treated deck with railing on three sides and a 4 ft stair opening:

  1. Deck: 192 sq ft × $20 = $3,840
  2. Railing: 36 ft × $40 = $1,440
  3. Typical total: $5,280, with a likely range of $3,780–$6,960

Deck cost by size

Typical installed cost, no railing (range in small print)
Deck sizePressure-treatedComposite
10 × 10 ft$2,000
$1,500–$2,500
$4,200
$3,000–$6,000
12 × 12 ft$2,880
$2,160–$3,600
$6,048
$4,320–$8,640
12 × 16 ft$3,840
$2,880–$4,800
$8,064
$5,760–$11,520
16 × 16 ft$5,120
$3,840–$6,400
$10,752
$7,680–$15,360
16 × 20 ft$6,400
$4,800–$8,000
$13,440
$9,600–$19,200
20 × 20 ft$8,000
$6,000–$10,000
$16,800
$12,000–$24,000

Wood vs. composite decking

Pressure-treated woodComposite
Installed cost$15–$25 / sq ft$30–$60 / sq ft
Lifespan15–25 years25–30+ years
MaintenanceClean and seal or stain every 1–3 yearsWash; no staining
LookNatural wood, can split and grayConsistent color, wood-grain texture

Planning materials? The deck calculator counts boards, joists and screws, and the stair stringer calculator lays out the steps.

Where these prices come from

The ranges are national averages compiled from 2026 cost guides, includingRemodelAI,Advantage Lumber andCostFlow. They assume a simple ground-level deck; raised decks, stairs and premium boards cost more. Always get several written quotes.

Frequently asked questions

How much does it cost to build a deck?

Installed decks typically cost about $15–$25 per square foot in pressure-treated wood and $30–$60 in composite. A 12 × 16 ft deck (192 sq ft) usually runs $2,880–$4,800 in wood or $5,760–$11,520 in composite, before railing.

How much does a Trex (composite) deck cost?

Trex and other composite decks typically cost $30–$60 per square foot installed. Raised and second-story decks, premium board lines, and complex shapes cost more. Composite costs more up front than wood but doesn't need staining or sealing.

How much does deck railing cost?

Installed railing typically adds about $25–$60 per linear foot. Count only the open sides that need a guard; most codes require one when the deck is more than 30 inches above the ground.

Is composite decking worth the extra cost?

Composite costs roughly 1.5–2.5 times as much as pressure-treated wood to install, but it lasts 25–30+ years with no staining or sealing, versus about 15–25 years for wood that needs regular maintenance. If you plan to stay in the home for many years, the total cost can even out.

What else adds to deck cost?

Height (taller posts, bracing and stairs), permits and inspections, footings in hard or rocky soil, removing an old deck, built-in benches, lighting and pergolas all add cost. Stairs are often priced per step.

Estimates are for planning and ordering. Material densities, product sizes and site conditions vary, so confirm quantities with your supplier and follow local building codes. See how we calculate.