How Much Does a 20x20 Deck Cost?

A 20 × 20 ft deck (400 sq ft) built by a contractor costs about $8,000–$16,000 in pressure-treated wood, or $12,800–$24,000 in composite, before railing and stairs. With a wood railing and 3 steps down to the yard it's about $9,880–$19,900. Building it yourself, the materials cost about $2,052–$3,364.

Change any number below to match your project. The deck calculator works for any size.

Along the house; boards run this way
Out from the house; joists run this way
Composite usually needs 12–16 in
Blank uses a typical price range.

Your shopping list prints here.Enter your measurements and it updates as you type.

How it's worked out

  1. Deck area: 20 × 20 ft = 400 sq ft
  2. Installed price, pressure-treated: $20–$40 per sq ft for footings, framing and decking
  3. 400 sq ft × $20–$40 = $8,000–$16,000
  4. Railing on the 3 open sides: about 60 ft × $25–$50 per ft = $1,500–$3,000

Got a quote already? Enter it in the deck quote checker to see if it's fair for your deck.

20x20 deck cost by material and options

DeckInstalled cost
Pressure-treated, no railing$8,000–$16,000
Pressure-treated with wood railing$9,500–$19,000
Pressure-treated, railing and 3 steps$9,880–$19,900
Pressure-treated, raised 3 ft+, railing and 5 steps$12,130–$26,500
Composite, no railing$12,800–$24,000
Composite with composite railing$15,500–$30,000

For a deck attached to the house on concrete footings, in an average-cost area. Labor runs about 30% higher in high-cost areas and 15% lower in low-cost ones. Tearing out an old deck adds about $1,200–$4,800. A permit, built-in benches, lighting or a sloped yard add more. Prices from published cost guides, checked October 2026.

Joists that span 20 ft need to be 2 × 10 or larger, or a second beam in the middle. Check a span table and your local code before you buy.

DIY materials for a 20x20 deck

If you build it yourself, pressure-treated materials for a 20x20 deck cost about $2,052–$3,364, plus about 1,450 deck screws in the hardware line.

ItemAmountTypical priceCost
Deck boards, 5/4 × 6 pressure-treated48 × 20 ft$20–$32 each$960–$1,536
Joists, 2 × 816 × 20 ft$1.20–$2 per ft$384–$640
Ledger, rim joist and doubled beam, 2 × 8100 ft$1.20–$2 per ft$120–$200
Posts, 6 × 6 × 8 ft4$25–$40 each$100–$160
Concrete for footings, 80 lb bags16 bags$5.50–$8 each$88–$128
Joist hangers, ledger screws, flashing, post bases, deck screws400 sq ft$1–$1.75 per sq ft of deck$400–$700
Total$2,052–$3,364
Or use composite deckingAmountTypical priceCost
Composite boards48 × 20 ft$55–$110 each$2,640–$5,280

Typical US prices before tax and delivery, checked October 2026. Prices vary by region and brand, so type your own into the calculator above for an exact total. Railing, stairs, permit and tool rental are extra. Composite decking usually needs joists 12 in on center, which adds a few more joists.

Other common sizes

More detail: Deck Materials List: How Many Boards, Joists and Screws?

Frequently asked questions

How much does it cost to build a 20x20 deck?

About $8,000–$16,000 for a low pressure-treated deck attached to the house, or $9,500–$19,000 with a wood railing on the 3 open sides. In composite it's $12,800–$24,000, or $15,500–$30,000 with a composite railing. Prices are for an average-cost area, from published cost guides.

How much does a 20x20 composite deck cost?

About $12,800–$24,000 installed without railing, $15,500–$30,000 with a composite railing. That's roughly 53% more than pressure-treated wood, but composite needs no staining.

How much do materials for a 20x20 deck cost?

About $2,052–$3,364 at typical US retail prices for a pressure-treated deck: boards, joists, beam, posts, footings and hardware. Railing and stairs are extra.

How many deck boards do I need for a 20x20 deck?

48 boards of 20 ft: 43 rows of 5.5 inch boards with 1/8 inch gaps, plus 10% extra. You also need 16 joists 20 ft long at 16 inches on center and about 1,450 deck screws.