Lumber Calculator

20x20 deck: materials list and cost

A 20 × 20 ft deck is 400 sq ft. Attached to the house and 3 ft off the ground, it needs 48 2x8 joists, 12 footings and 48 deck boards. Materials cost about $2,500–$4,700 in pressure-treated wood or $5,400–$9,700 in composite, including 60 ft of railing.

Joists48 × 2x816" o.c., span 6' 8"
Beam(2) 2x8posts every 6' 8"
Footings12 × 12"88 bags of concrete
Squaring diagonal28' 3"corner to corner
house · ledger 20 ft · 16 joists 2x8 @ 16" o.c. 20 ft

20x20 deck: wood vs. composite

DeckingBoardsFastenersJoist spacingRailingMaterials cost
Pressure-treated 5/4x648 × 20 ft1366 screws16"Wood (4x4 posts, 2x2 balusters) $2,500–$4,700$6.25–$11.75/sq ft
Cedar 5/4x648 × 20 ft1366 screws16"Wood (4x4 posts, 2x2 balusters) $3,700–$6,300$9.25–$15.75/sq ft
Composite (1" x 5.5")48 × 20 ft676 hidden clips16"Composite/aluminum kit $5,400–$9,700$13.50–$24.25/sq ft

All three use pressure-treated southern pine framing. See composite vs. wood decking for maintenance and lifespan.

20x20 deck materials list (pressure-treated)

ItemQuantity
Footings & posts
Footings, 12" diameter × 36" deep (edge beam)12" form tubes; 4 bags of 80 lb concrete each4
Footings, 18" diameter × 36" deep (interior beams)18" form tubes; 9 bags of 80 lb concrete each8
80 lb bags of concrete mix88
6x6 pressure-treated posts, ground contact (cut to about 19")2 × 14 ft
Post bases (anchored to footings) and post caps sized for the beam12 each
Framing
Beam: (2) 2x8 (3 spans of 6' 8")2 × 2x8 × 20 ft
Interior beam: (2) 2x10 (3 spans of 6' 8")2 × 2x10 × 20 ft
Interior beam: (2) 2x10 (3 spans of 6' 8")2 × 2x10 × 20 ft
Joists: 2x8 at 16" on centerLap or butt over interior beams48 × 8 ft
Rim joist: 2x81 × 20 ft
Ledger board: 2x8 pressure-treatedNever attach to brick veneer or cantilevered floors1 × 20 ft
Decking
Pressure-treated 5/4x6 deck boardsIncludes 10% waste48 × 20 ft
Hardware
Ledger fasteners: ½" through-bolts or approved ledger screws, staggeredExact spacing depends on joist span: see IRC Table R507.9.1.3(1)about 30
Ledger flashing (Z-flashing or membrane)21 ft
Joist hangers for 2x8 (hot-dip galvanized or stainless)16
Hurricane ties (joist to beam)48
Exterior deck screws (2 per board per joist)Coated or stainless, 2½"–3"1366
Railing
4x4 guard posts, 36" min. guard height (60 ft of railing)Bolt to rim and joists per IRC/DCA 6 guard post detail13 × 8 ft
2x4 top and bottom rails15 × 8 ft
2x6 rail cap8 × 8 ft
2x2 balusters (gaps under 4")132 × 36"

Assumes an attached deck with a ledger, 36" from grade to the deck surface, southern pine No. 2 framing, straight decking, 36" footing depth, no stairs. Change any of these in the calculator below.

20x20 deck questions

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

About 48 boards 20 ft long for 5½" boards laid straight across the joists, including 10% waste. Diagonal decking needs about 15% more and 12" joist spacing.

How many footings does a 20x20 deck need?

12 footings, about 12" in diameter, with posts every 6' 8" under a (2) 2x8 beam and 2 intermediate beams. A freestanding version needs another row of footings along the house. See deck footings.

What size joists for a 20x20 deck?

2x8 joists at 16" on center, with 2 intermediate beams so each joist spans 6' 8". That's the prescriptive minimum from the IRC span tables. Going one size up makes a stiffer deck.

How much does a 20x20 deck cost?

Materials run about $2,500–$4,700 in pressure-treated, $3,700–$6,300 in cedar and $5,400–$9,700 in composite. Professional installation adds labor on top, often more than the materials. See what drives deck cost.

How do I square a 20x20 deck?

Measure both diagonals of the frame; they should each be 28' 3". Use the 3-4-5 rule to set the first corner.

Customize this deck

ft in
Your building department sets the exact depth

    Materials list

    ItemQuantity

    Planning estimate only. Framing sized from IRC 2021 Tables R507.5 and R507.6 (40 psf live load, No. 2 lumber, no snow load); your city or county may amend them. Confirm with your local building department before ordering or building. Costs are materials only; lumber prices move weekly and vary 20–40% by region.

    Other deck sizes