ToolHub

Deck Calculator

Boards, joists, posts, and cost for any deck

Deck boards

26

Joists

10

Posts

8

Total cost

$3236

Deck dimensions

ft
ft

Standard joist spacing is 16" on center. Boards run across the width (perpendicular to joists).

Decking material

$

Full materials list

Deck area240 sq ft
26 deck boards520 board ft
10 joists × 20 ft200 ft
Rim joists (perimeter)64 ft
Posts (4×4)8
Concrete bags (footings)32 × 60 lb
Decking cost$1300
Framing cost$528
Posts$96
Concrete$192
Railing$1120
Total materials$3236

Excludes fasteners, joist hangers, ledger board, and stairs. Add 5-10% for these miscellaneous items.

Take this to the store

Copy a clean summary to paste in Notes or text to your contractor.

Quick lookup

Deck materials for common sizes (5/4×6 boards, 16 in OC joists)

Assumes pressure-treated 2×8 joists at 16 in on center, 6×6 posts at 8 ft spacing, 50 lb concrete bag per post footing. Cost is PT lumber only — composite is 2-3x more.

Deck sizeSq ftBoards (16 ft)JoistsPostsPT cost
8 × 10 ft801884$725
10 × 12 ft12026106$1,090
12 × 12 ft14426106$1,310
12 × 16 ft (standard)19226136$1,745
14 × 20 ft28032169$2,545
16 × 16 ft25632139$2,325
16 × 20 ft (large)32032169$2,910
20 × 24 ft (entertaining)480391912$4,365

Add 5-10% extra boards for cuts and a budget for joist hangers ($1 each, one per joist end), ledger flashing, hidden fasteners or 2.5 in deck screws, plus stair stringers if needed.

Quick answer

How much material do I need for a deck?

Deck materials break down into 5 buckets: decking (the boards you walk on), joists (the framing under), posts (vertical supports), concrete (for footings), and railing. Our calculator builds the complete list with realistic spacing (16 inch joist OC, 1/8 inch board gap, 8 ft post spacing) and cost estimates.

The math

The formulas explained

Deck boards

Number of boards across the width: ⌈(width × 12) / (boardWidth + gap)⌉. For a 12 ft wide deck with standard 5.5 inch boards and 1/8 inch gaps, you need ⌈144 / 5.625⌉ = 26 boards. Each board equals the length of the deck.

Joists

Spaced 16 inches on center: joists = ⌈(width × 12) / 16⌉ + 1. For a 12 ft wide deck: ⌈144/16⌉ + 1 = 10 joists, each the length of the deck.

Posts

Spaced max 8 ft apart along beam lines: postsPerBeam = ⌈length / 8⌉ + 1. Attached decks have one beam line; freestanding need two.

Concrete footings

12 inch diameter × 3 ft deep footings take 4 bags of 60 lb concrete each.

Choose your boards

Decking material comparison

MaterialCost + lifespan
Pressure-treated pine$2–3/board ft10–15 years. Needs staining every 2-3 years.
Cedar$4–6/board ft15–25 years. Naturally rot resistant. Premium look.
Composite (Trex, TimberTech)$7–10/board ft25–50 years. No staining. Splinter-free.
PVC decking$10–15/board ft30–50 years. Most stain resistant.
Tropical hardwood (Ipe)$10–18/board ft40+ years. Heaviest, hardest to work with.
Aluminum$15–20/board ft50+ years. Cool to touch even in sun.

Use cases

Common deck sizes

Small entry deck (8' × 8')

16 deck boards, 7 joists, 6 posts. About $1,200-2,000 in materials.

Standard dining deck (12' × 12')

26 deck boards, 10 joists, 8 posts. About $2,500-4,000.

Large entertaining deck (20' × 16')

35 deck boards, 13 joists, 12 posts. About $5,000-8,000.

Wraparound porch (40' × 8')

18 deck boards × 40 ft each, 7 joists × 40 ft. $4,000-7,000.

Pool deck (20' × 30')

65 deck boards, 23 joists, 22 posts. $8,000-13,000.

Rooftop deck (15' × 20', composite)

Add 30-50% to material cost; specialized framing required.

From a deck builder

Pro tips

  • Pull permits. Deck codes are strict (ledger attachment, footing depth, railing height). DIY without permits creates issues at sale time.
  • Use joist hangers — never just toenail joists to the rim. Hangers are code in most jurisdictions.
  • Place ledger board flashing correctly: under siding, above the ledger. Water in the wall kills more decks than rot in the boards.
  • Use ground-contact rated pressure treated for any wood within 6 inches of soil. Regular PT will rot.
  • Spacing 1/8 inch between boards drains better than tight installation. Composite uses tighter spacing per manufacturer.
  • Hidden fasteners (like Camo or Trex Hideaway clips) cost more but eliminate visible screw heads.
  • Stairs eat material — add 15-20% to estimates if your deck has stairs.

Footings are the foundation

Skimping on footing depth = deck collapse. Frost line in most of the US is 36 inches. Below that line for footings is non- negotiable. In northern states (MN, ND, MT) it's 48 inches. In the south (FL, TX) frost isn't an issue but you still need at least 24 inches for stability.

Related calculators

Decks need concrete for footings, paint or stain for finish, and usually a fence or roof structure nearby.

Last reviewed: · Methodology based on US building code standards, contractor pricing surveys, and manufacturer specifications.

Frequently asked questions

How many deck boards do I need?

Take width in inches, divide by 5.625 (board width + gap), round up. That's boards across. Multiply by length to get total board feet. For a 12×16 deck: 26 boards × 16 ft = 416 board ft.

How far apart should deck joists be?

16 inches on center is standard. Use 12" OC for premium composite or for diagonal board layouts. For 5/4 deck boards (5/4×6), max joist spacing is 16".

How deep should deck post footings be?

Below the frost line — usually 36" in most of the US, 48" in the upper Midwest and Northeast, 24" minimum in frost-free zones. Always check your local code.

How much does a deck cost to build?

Pressure-treated 12×12 deck materials: $2,500-4,000. Cedar: $4,000-6,000. Composite (Trex): $7,000-12,000. Add 50-100% if hiring a contractor.

How long do deck boards last?

Pressure-treated: 10-15 years with maintenance. Cedar: 15-25 years. Composite (Trex): 25-50 years. PVC: 30-50 years.

Do I need a permit for a deck?

Almost always, especially for attached decks. Permit costs $50-300. Inspection ensures proper ledger attachment and footing depth — these failures cause collapses.