How to use the deck cost calculator
- Choose pressure-treated wood or composite decking and enter the deck's length and depth.
- Enter the total length of railing on the open sides (leave out the house side and stair openings).
- Add a contractor's price per square foot if you have one to replace the national range.
Deck cost per square foot
| Material | Low | Typical | High | 12 × 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:
- Deck: 192 sq ft × $20 = $3,840
- Railing: 36 ft × $40 = $1,440
- Typical total: $5,280, with a likely range of $3,780–$6,960
Deck cost by size
| Deck size | Pressure-treated | Composite |
|---|---|---|
| 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 wood | Composite | |
|---|---|---|
| Installed cost | $15–$25 / sq ft | $30–$60 / sq ft |
| Lifespan | 15–25 years | 25–30+ years |
| Maintenance | Clean and seal or stain every 1–3 years | Wash; no staining |
| Look | Natural wood, can split and gray | Consistent 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.