How to calculate deck materials
A deck is a floor on legs. Work from the ground up, and every part follows from the deck size:
- Joists run from the house out to the beam. Count them as the deck length in inches ÷ the spacing, plus one. Their size depends on how far they span (see the table below).
- Beams carry the joists. An attached deck has one beam near the outer edge and a ledger board bolted to the house. A freestanding deck has a beam at each end. Long spans need an extra beam in the middle.
- Posts and footings hold up each beam, usually no more than 8 ft apart. Each post sits on a concrete footing dug below the frost line. Planning a fence around the deck too? See the fence calculator.
- Deck boards run across the joists. Count the rows (deck depth ÷ board width plus gap), then the boards per row.
- Hardware: joist hangers at the ledger, hurricane ties where joists cross a beam, post bases and caps, and screws or hidden clips for the boards.
- Railing and stairs if the deck is high enough to need them.
For a board-by-board layout with the best board length and a cutting plan, use the deck board calculator.
Deck joist size and span
Maximum joist span from the IRC deck table for Southern pine #2 (40 lb per sq ft live load, no overhang):
| Joist | 12 in on center | 16 in on center |
|---|---|---|
| 2×6 | 9 ft 11 in | 9 ft 0 in |
| 2×8 | 13 ft 1 in | 11 ft 10 in |
| 2×10 | 16 ft 2 in | 14 ft 0 in |
| 2×12 | 18 ft 0 in | 16 ft 6 in |
Composite decking often needs 12 inch spacing, and diagonal boards almost always do. Check the board maker's instructions before you frame.
Deck material list
| Part | Usual material |
|---|---|
| Ledger, joists, rim and beams | Pressure-treated 2×8 to 2×12, ground-contact rated |
| Posts | 6×6 pressure-treated (4×4 is no longer allowed for most new decks) |
| Footings | Concrete in a 10–12 in round form, or precast footings where allowed |
| Connectors | Galvanized or stainless joist hangers, hurricane ties, post bases and caps |
| Ledger fasteners | ½ in lag screws or bolts, or rated ledger screws, plus flashing |
| Decking | 5/4×6 or 2×6 wood, or 1×6 composite or PVC |
| Railing | Posts, top and bottom rails, balusters, 36 in high (42 in in some areas) |
Composite vs wood deck cost
| Decking | Boards per linear foot | Installed deck, per sq ft | Lifespan |
|---|---|---|---|
| Pressure-treated pine | $0.50–$0.80 | $25–$45 | 15–25 years with upkeep |
| Cedar | $2.25–$3.25 | $30–$50 | 15–25 years with upkeep |
| Composite | $2.25–$3.50 | $40–$70 | 25–50 years, little upkeep |
| PVC | $3.25–$4.50 | $50–$80 | 30–50 years, little upkeep |
Composite costs about twice as much up front, but it needs no staining or sealing. Over 15 to 20 years the gap gets much smaller. The frame under a composite deck is usually still treated wood.
Installed cost by deck size
| Deck | Sq ft | Treated wood | Composite |
|---|---|---|---|
| 10 × 10 ft | 100 | $2,500–$4,500 | $4,000–$7,000 |
| 12 × 12 ft | 144 | $3,600–$6,480 | $5,760–$10,080 |
| 12 × 16 ft | 192 | $4,800–$8,640 | $7,680–$13,440 |
| 16 × 16 ft | 256 | $6,400–$11,520 | $10,240–$17,920 |
| 16 × 20 ft | 320 | $8,000–$14,400 | $12,800–$22,400 |
| 20 × 20 ft | 400 | $10,000–$18,000 | $16,000–$28,000 |
Baluster spacing
A 4 inch ball must not fit between balusters. Plan the gap a little under 4 inches so the spacing still passes after the wood moves.
Example: 6 ft section, 1.5 in balusters, 3.5 in gap → (72 − 3.5) ÷ 5 = 13.7 → 14 balusters
Frequently asked questions
How much does a deck cost per square foot?
Built by a contractor, a pressure-treated wood deck usually costs about $25 to $45 per square foot, cedar $30 to $50, composite $40 to $70 and PVC $50 to $80. Building it yourself, materials alone run roughly $10 to $15 per sq ft for treated wood and $20 to $30 for composite. Height, stairs, railings and permits all add to the cost.
How much does a 12×12 deck cost?
A 12 × 12 deck is 144 sq ft. Hired out, that is about $3,600 to $6,500 in treated wood and $5,800 to $10,000 in composite. If you build a low, simple 12 × 12 deck yourself, treated lumber and hardware often cost $1,500 to $2,500. Use the calculator above for a list and cost for your own deck.
How far can a 2×8 deck joist span?
Under the US building code table for decks (Southern pine #2, 40 lb live load), a 2×8 joist can span about 11 ft 10 in at 16 inches on center and 13 ft 1 in at 12 inches on center. A 2×10 spans about 14 ft at 16 inches, and a 2×12 about 16 ft 6 in. Other wood species and local rules may allow less, so check with your building department.
How many balusters do I need per foot of railing?
Balusters must be close enough that a 4 inch ball cannot pass between them. With 1½ inch wide 2×2 balusters and gaps just under 4 inches, plan on about 2.2 to 2.5 balusters per foot of railing, or 27 to 30 balusters for a 12 ft section.
When does a deck need a railing?
Under the International Residential Code, a deck needs a guard (railing) when the walking surface is more than 30 inches above the ground at any point within 36 inches of the edge. Stairs with four or more risers need a handrail. Many towns also require a permit for any attached deck or one over 30 inches high.
Related calculators
Sources
- International Residential Code 2021, Chapter 5: Floors (section R507, decks): joist spans, footings and deck framing rules
- QUIKRETE Concrete Mix (product page): bagged concrete sizes and yields
Formulas, coverage rates and prices are explained on our How we calculate page.
Disclaimer
Results are estimates based on standard sizes and common rules of thumb. Prices are sample US averages (last updated December 2026) and change by store and location. Material needs vary by project and product. Check with your supplier or contractor before you buy. Read the full disclaimer.