A pressure-treated wood deck costs $18–$42 per square foot installed, about $7,800 for a 12×20 with a stair set. Composite runs $25–$55/sq ft ($11,400 for 300 sq ft). Composite costs more up front but usually wins over 20 years once sealing is counted.

Your Deck

Ad

Height, Stairs & Railing

Typical Total Installed
—
Low Estimate
—
High Estimate
—
Deck Size
—
Cost per Sq Ft
—
Ad

Deck Cost per Square Foot by Material (Ground-Level, Installed)

MaterialLow / sq ftTypical / sq ftHigh / sq ft300 sq ft Deck
Pressure-treated pine$18$30$42$5,400 – $12,600
Cedar or redwood$25$40$55$7,500 – $16,500
Composite$25$38$55$7,500 – $16,500
PVC / polymer$32$48$65$9,600 – $19,500
Hardwood (ipe)$40$55$75$12,000 – $22,500

National 2025-26 installed ranges including framing, footings, standard railing, and labor for a ground-level deck. Raised decks add about 10% and second-story decks about 55% (deeper footings, taller structure, full perimeter guardrail).

Composite vs Wood: 20-Year Cost of Ownership

Pressure-Treated WoodComposite
Upfront, 300 sq ft installed~$9,000~$11,400
Yearly upkeep$250 – $600 (clean & seal every 2–3 yrs)$50 – $150 (soap & rinse)
Typical lifespan15 – 20 years25 – 30 years
Est. 20-year total~$17,500~$13,400
Resale recoup~75% – 85%~50% – 65%
Fade & splinterWeathers gray without sealingHolds color, no splinters

20-year totals use typical mid-range installs plus midpoint upkeep ($425/yr wood, $100/yr composite); recoup figures follow Remodeling magazine's Cost vs. Value Report trends. Composite's edge grows if you'd otherwise pay someone to seal the wood.

How the Deck Cost Calculator Works

Deck pricing runs by the square foot, installed, with height and railing as the big modifiers. This calculator prices the five common decking materials at ground level and scales for height, stairs, and railing upgrades.

The formula

Total = length × width × material rate ($30/sq ft pressure-treated, $38 composite, and so on, each with low and high bounds) × height factor (1.00 ground, 1.10 raised, 1.55 second story) + stairs ($400–$900 per set wood, $600–$1,300 composite or PVC) + railing upgrade per linear foot of guarded edge. Railing length assumes an attached deck railed on three sides: length + 2 × width.

How to use it

Enter the deck's finished dimensions. Pick ground level for walk-out platforms under 2 ft, raised for a deck 2 to 6 ft off the ground, and second story for balcony-height builds. Standard builder's rail is already in the base price; only add a railing upgrade if you want cable, glass, or metal balusters, which are priced per foot of edge.

A worked example

A 12×20 (240 sq ft) ground-level pressure-treated deck with one stair set and standard railing: $18–$42 per sq ft plus $400–$900 for stairs, or $4,720 to $10,980, with about $7,800 typical. That's the setup the calculator loads with.

Now the premium version: a 20×15 (300 sq ft) second-story composite deck with a stair set and cable railing. 300 × $25–$55 × 1.55 = $11,625 to $25,575, plus $600–$1,300 for composite stairs and cable rail at $55/LF across the 50 ft guarded edge ($2,750 typical). Total: about $21,320 typical, ranging $14,975 to $29,625. Height and railing did most of that, not the square footage.

Numbers are national planning ranges; lumber and composite pricing move with the commodity market, so collect three bids.

How Much Does a Deck Cost by Size?

Here's the calculator's typical figure for six common footprints in all five materials. Each one is a ground-level deck with one stair set and the standard railing, the same settings the form loads with.

Deck sizePressure-treatedCedar/redwoodCompositePVCIpe
10×10 (100 sq ft)$3,600$4,600$4,700$5,700$6,100
12×12 (144 sq ft)$4,920$6,360$6,372$7,812$8,520
12×16 (192 sq ft)$6,360$8,280$8,196$10,116$11,160
12×20 (240 sq ft)$7,800$10,200$10,020$12,420$13,800
16×20 (320 sq ft)$10,200$13,400$13,060$16,260$18,200
20×20 (400 sq ft)$12,600$16,600$16,100$20,100$22,600

These are the calculator's assumptions multiplied out, not quotes we collected. Stairs are a fixed cost, so a small deck pays more per square foot: the 10×10 pressure-treated deck works out to $36 a square foot with its stair set, and the 20×20 to $31.50. Cedar passes composite from 12×16 up, because the calculator assumes $40 a square foot for cedar and $38 for composite, a gap small enough for local prices to flip. The composite vs wood deck cost guide covers the upkeep side of that choice.

How Much Does Height Add to a Deck?

The calculator multiplies the decking cost by 1.10 for a raised deck and 1.55 for a second-story deck. On the default 12×20 with one stair set:

Height settingPressure-treatedAddedCompositeAdded
Ground level (under 2 ft)$7,800 ($4,720 to $10,980)base$10,020 ($6,600 to $14,500)base
Raised (2 to 6 ft)$8,520 ($5,152 to $11,988)$720$10,932 ($7,200 to $15,820)$912
Second story (8 ft and up)$11,760 ($7,096 to $16,524)$3,960$15,036 ($9,900 to $21,760)$5,016

The multiplier applies to the deck area only. The stair price stays the same at every height, and that's a real limit of the estimate. A second-story stair is far longer than a three-step one, and the American Wood Council's DCA 6 deck guide calls for an intermediate landing once a stairway's total height passes 12 feet, plus a handrail on any stair with four or more risers. Treat the stair line as a floor for tall decks. Our stair calculator and stair layout guide give you the riser count to hand a builder.

There's no setting between 6 and 8 feet. If your deck lands there, run both options and treat the results as a bracket.

What Does a Railing Upgrade Add?

Standard railing is in the base rate. An upgrade is priced per linear foot of guarded edge, and the calculator assumes the deck is attached to the house and railed on the other three sides: Length plus twice the Width. So the Length field is the side along the house.

Deck layoutGuarded edgeMetal balusters ($20/ft)Cable ($55/ft)Glass ($100/ft)
12 ft along the house × 12 ft out36 ft$720$1,980$3,600
12 ft along the house × 20 ft out52 ft$1,040$2,860$5,200
20 ft along the house × 12 ft out44 ft$880$2,420$4,400
16 ft along the house × 20 ft out56 ft$1,120$3,080$5,600

Orientation changes the bill. The same 240 square feet costs $800 less in glass when the 20-foot side sits against the house, because 8 fewer feet of edge need a guard. On the default deck, glass panels come to about 40% of the typical total. The calculator doesn't add railing for stair runs or for a freestanding deck's fourth side.

Whether you need a guard at all depends on height. DCA 6, which is written around the International Residential Code, says decks more than 30 inches above grade must have one, with openings small enough that a 4-inch sphere can't pass through. A lower deck may not need one, but the calculator has no "no railing" option and we don't have a figure for what skipping it saves. Ask your builder to price it both ways.

Do You Need a Permit to Build a Deck?

Usually, yes, if it's attached to the house. The model International Residential Code (section R105.2) exempts a deck from a building permit only when all four of these are true:

We read that wording on a city building department page that cites R105.2. Cities and states amend it, so check yours. The calculator doesn't include a permit fee.

How the deck attaches can change the price. DCA 6 prohibits fastening a ledger to brick, stone or other masonry veneer, to hollow masonry, or to a cantilevered floor overhang or bay window. In those cases it requires a non-ledger deck, which carries its own row of posts and footings beside the house instead of hanging from it. It also wants footings at least 12 inches below undisturbed ground or below the frost line, whichever is deeper, so cold climates need more concrete. The concrete calculator sizes it per footing.

The edition of DCA 6 we read is based on the 2012 IRC. Your jurisdiction may use a newer code.

What Does This Deck Estimate Leave Out?

Frequently Asked Questions

How much does a 12x12 deck cost?

A 12x12 (144 sq ft) pressure-treated wood deck at ground level runs about $2,600 to $6,000 installed, with $4,300 typical. The same footprint in composite runs $3,600 to $7,900. Those figures are the deck alone: each stair set adds $400 to $900 in wood or $600 to $1,300 in composite, and raised or second-story builds and upgraded railings add from there.

Is a composite deck cheaper than wood?

Up front, no: composite runs $25–$55 per sq ft installed versus $18–$42 for pressure-treated pine. Over 20 years, usually yes. On a 300 sq ft deck, wood costs about $9,000 up front plus $250–$600 a year in cleaning and sealing, while composite costs about $11,400 up front plus $50–$150 a year to maintain. That's roughly $17,500 for wood versus $13,400 for composite over two decades.

How much does a second-story deck cost?

About 55% more than a ground-level deck in the same material, or $46.50 per sq ft typical for pressure-treated wood (versus $30 at grade). The premium pays for deeper footings, taller posts or steel framing, a ledger attachment with proper flashing, engineering, and guardrails on all open sides.

What is the most expensive part of building a deck?

The framing and substructure: posts, footings, beams, and joists typically run a third of the total. This is also why raised and second-story decks cost so much more: the geometry of support grows while the visible decking surface stays the same.

Do decks add value to a home?

Wood decks are one of the better-value exterior projects: Remodeling's Cost vs. Value Report shows a wood deck addition recouping roughly 75% to 85% of cost. Composite decks recoup less, closer to 50% to 65%, since buyers pay for the deck, not the brand of board.

How long does a composite deck last?

Composite decking lasts 25 to 30 years with basic care, versus 15 to 20 years for pressure-treated pine that's cleaned and sealed every 2 to 3 years, 20 to 30 for cedar, and 40-plus for hardwoods like ipe. Warranties on composite often run 25 to 30 years against fading and staining.

How much does a 16x20 deck cost?

Using the calculator's rates, a 16x20 (320 sq ft) ground-level pressure-treated deck with one stair set is about $10,200 installed, in a range of $6,160 to $14,340. In composite it is about $13,060, in a range of $8,600 to $18,900. Raising it 2 to 6 ft adds 10% to the decking portion.

Do I need a permit to build a deck?

Usually, if it is attached to the house. The model International Residential Code (R105.2) exempts a deck only if it is 200 sq ft or less, no more than 30 inches above grade at any point, not attached to a dwelling, and not serving the required exit door. Local rules vary, so check with your building department before you build.