20x20 Deck Cost Calculator

A 20x20 deck (400 sq ft) costs about $19,000, $48 per sq ft: change the size, decking, railing and state to reprice it.

Units

Labor and material prices are scaled to typical levels in your state.

Deck length
ft
in

Along the house.

Deck width
ft
in

Out from the house.

Height above the ground
ft
in
Decking

Built by a contractor: 20 ft × 20 ft treated pine deck in US average

$19,000

Low $11,100High $27,000
Per square foot
$48typical
Materials
$6,400
Labor
$12,600
Crew days
11.5two builders
Posts and footings
4
Joists
2×12× 21
ItemMaterialsLaborTotal

Pressure-treated pine decking

400 sq ft, boards only

$1,400$0

$1,400

$800 to $2,000

Framing lumber and hardware

400 sq ft, joists, beams, posts, connectors

$3,200$0

$3,200

$1,200 to $5,200

Building the frame and decking

400 sq ft

$0$10,000

$10,000

$6,000 to $14,000

Concrete footings

4 footings

$400$700

$1,100

$800 to $1,400

Wood railing

57 linear ft

$710$1,550

$2,300

$1,700 to $2,850

Stairs

5 steps, wood, precut stringers

$310$380

$690

$380 to $1,000

Building permit

fee, varies by town

$370$0

$370

$230 to $500

Prices are US averages scaled to your state, updated September 2026.

House2×12 joists, 12 in o.c.Double 2×12 beam, 4 postsLedger 2×1220 ft20 ft24 in18 ft6 ft 8 in

Material list: 20x20 Deck Cost

20 ft × 20 ft attached deck, 3 ft high, pressure-treated pine, joists 12 in on center

QuantityItem
48boards

5/4 × 6 wood deck board (1 × 5½ in)

20 ft long

1,806screws

Deck screws, No. 8

2 per board at every joist (IRC R507.7)

21pcs

2×12 joists

20 ft, cut to 20 ft

1pcs

2×12 rim joist

20 ft

1pcs

2×12 ledger board, treated

20 ft (at least 2×8, R507.9.1.1)

2pcs

2×12 for the beam

20 ft, 2 plies spliced only over posts

1pcs

6×6 posts, ground-contact treated

8 ft, cut to 1 ft ½ in each (4 posts)

4pcs

Post bases for 6×6

galvanized (ZMAX) or stainless

4pcs

Post-to-beam connectors

or notched posts with two ½ in bolts (R507.5.2)

21pcs

Joist hangers for 2×12

one per joist at the ledger

21pcs

Joist-to-beam ties

one per joist at each beam

25pcs

½ in lag screws with washers

staggered, 10 in on center (Table R507.9.1.3(1))

12bags

Concrete mix, 80 lb bag

6.5 cu ft for 4 footings

4pcs

Tube forms, 10 in

one per footing

The math
  1. Deck area

    20 ft × 20 ft = 400 sq ft

  2. Joists

    20 ft ÷ 12 in o.c. + 1 (2×12, IRC R507.6) = 21 joists

  3. Beam and posts

    Double 2×12 at 6 ft 8 in post spacing (R507.5) = 4 posts

  4. Railing

    open sides 60 ft − 3 ft stair opening = 57 ft

  5. Steps

    3 ft ÷ 7¾ in max riser, rounded up = 5 steps

  6. Typical price

    line items × US average factors (labor 1, materials 1) = $19,000

Railing type: wood. Unit prices: HomeAdvisor (June 2026) and Fixr (January 2023); regions: BLS wages, BEA prices.
Joists, beam, posts and footings come from the IRC 2024 tables R507.3 to R507.6 for 40 psf, Southern pine, 1,500 psf soil. Snow load, soil, frost depth and the local amendments change them: have the plan checked by your building department.

At 20 ft out, one span of 2×12 at 16 in does not pass the tables, so this takeoff uses 12 in joist spacing and a 2 ft cantilever.

A 20x20 deck of pressure-treated pine costs about $19,000 built by a contractor at US-average prices ($11,100 to $27,000), which is $48 per square foot for 400 sq ft. Doing the work yourself leaves materials of about $6,400.

A 20x20 deck is 400 square feet, large enough for a full outdoor kitchen plus seating. A single span of joists that deep does not pass the IRC tables at 16 in spacing, which changes the frame.

20x20 deck cost by decking material

The same frame, footings, railing and steps, priced with three decking grades at US-average prices (HomeAdvisor, June 2026; Fixr, January 2023). The frame is always pressure-treated pine; only the boards change.

DeckingMaterials onlyBuilt by a contractorTypical per sq ftCrew days
Pressure-treated pine$3,150 to $9,700$11,100 to $27,000 (typical $19,000)$4811.5
Cedar$3,550 to $10,500$11,500 to $28,000 (typical $19,600)$4911.5
Composite$7,100 to $16,500$15,100 to $34,000 (typical $24,500)$6111.5

Every row includes a 4-footing foundation, a wood railing on 57 ft of open edge, 5 steps down from a 3 ft high deck and a building permit. Labor is HomeAdvisor's $15 to $35 per square foot, $25 typical. Your state moves the totals by its own wage and materials level, which the calculator above applies.

Material list for a 20x20 deck

The list below is the 20x20 deck as the framing engine lays it out: attached to the house with a ledger, 40 psf live load, Southern pine, 1,500 psf soil, 6×6 posts, 10 percent spare boards.

ItemQuantityDetail
5/4 × 6 wood deck board (1 × 5½ in)48 boards20 ft long
Deck screws, No. 81,806 screws2 per board at every joist (IRC R507.7)
2×12 joists21 pcs20 ft, cut to 20 ft
2×12 rim joist1 pcs20 ft
2×12 ledger board, treated1 pcs20 ft (at least 2×8, R507.9.1.1)
2×12 for the beam2 pcs20 ft, 2 plies spliced only over posts
6×6 posts, ground-contact treated1 pcs8 ft, cut to 1 ft ½ in each (4 posts)
Post bases for 6×64 pcsgalvanized (ZMAX) or stainless
Post-to-beam connectors4 pcsor notched posts with two ½ in bolts (R507.5.2)
Joist hangers for 2×1221 pcsone per joist at the ledger
Joist-to-beam ties21 pcsone per joist at each beam
½ in lag screws with washers25 pcsstaggered, 10 in on center (Table R507.9.1.3(1))
Concrete mix, 80 lb bag12 bags6.5 cu ft for 4 footings
Tube forms, 10 in4 pcsone per footing

Cedar uses the same board count as pressure-treated pine (48 boards including spares). Composite changes the decking lines to 48 boards in 12, 16 or 20 ft lengths plus 924 hidden clips, and needs no deck stain, which the wood grades do. The deck board calculator shows the board layout row by row, and the deck calculator lets you change spacing, board width and pattern.

Framing for a 20x20 deck

With joists running the 20 ft width, the tables in IRC 2024 R507.6 select 2×12 joists at 12 in on center, 21 of them for the 20 ft length. The beam is a double 2×12 on 4 posts spaced 6.7 ft apart (R507.5), each on a round footing about 21 in across (R507.3.1). A 20 ft reach is beyond a single 16 in joist span in the tables, so this size uses 12 in spacing and a 2 ft cantilever. The footing depth depends on your frost line, so check the deck footing calculator with your local depth, and the deck joist span table if you want a different lumber size.

Labor and time

Labor comes to $12,600 at the typical rate. At $70 an hour for each of two builders working eight hours, one crew day is $1,100, so the job is about 11.5 days of work for a two-person crew, not counting waiting for footings to cure or for the inspector. Add 5 stair steps with the stair calculator and the stringer layout is done before the boards arrive.

Does a 20x20 deck need a permit?

Under IRC 2024 R105.2 a deck is exempt from a permit only if it is no more than 200 sq ft, no more than 30 in above grade at any point, not attached to a dwelling and not serving the required exit door. A 20x20 deck is 400 sq ft, so the area test is not met. This page assumes the usual case, a deck bolted to the house 3 ft off the ground, which fails all three tests: 400 sq ft is over the 200 sq ft limit; 36 in above grade is over the 30 in limit; a deck attached to the house is never exempt. Budget the permit ($230 to $500 per HomeAdvisor) and the inspections. Many towns are stricter than the model code, so call the building department before you buy lumber.

20x20 deck compared with other sizes

Stepping down to 16x20 saves 80 sq ft and about $3,500 at the typical price. Cost per square foot falls a little as the deck grows because the stairs, permit and ledger are fixed costs.

Next steps for a 20x20 deck