Calculator
ft
ft
$/board
Deck materials
36 decking boards for 192 sq ft
Joists: 10 (2x8 or 2x10)  ·  Footings: 9  ·  Screws: 1,200
Decking material cost: $648 plus joists, posts, footings, hardware, railing

How to Calculate Deck Materials

Deck math is more than just deck boards — joists, beams, posts, footings, hardware, and railings all scale with deck size. The decking boards themselves are the most visible cost, but the structural frame underneath usually represents 30-40% of total materials. Skip a footing or undersize a joist and your deck may pass inspection but sag noticeably within 5 years.

Deck area = Length × width
Board rows = Width ÷ (board width + 1/8 inch gap)
Joists = Length ÷ joist spacing + 1
Footings = perimeter posts (typically 1 every 8 ft along beam)
Board count = rows × boards-per-row × 1.10 (10% waste)

Worked example: 12 × 16 ft attached deck

Standard 16-foot wide attached deck, 12 feet projection from house, 24 inches above grade. Using 2x6 pressure-treated decking (5.5 inch actual width), 16-inch joist spacing:

  • Deck area: 16 × 12 = 192 sq ft
  • Board rows: 12 × 12 ÷ (5.5 + 0.125) = 144 ÷ 5.625 = 26 rows
  • Boards per row (16-ft length): 1 board covers a single row
  • Total deck boards: 26 × 1 × 1.10 = 29 boards (with waste)
  • Joists (2x10 PT, 16 in OC): 16 ÷ 1.33 = 12 + 1 = 13 joists × 12 ft each
  • Beam: Doubled 2x10 PT, 16 ft long = 2 pieces of 16 ft 2x10
  • Posts: 4 (corners — supported by beam and ledger)
  • Footings: 4 concrete piers, 12-inch diameter, 36-48 inch deep
  • Screws: 26 rows × 13 joists × 2 screws = ~675; plus hardware = ~1,000 total
  • Material cost estimate (pressure-treated): $2,000-3,200
  • Installed by pro: $4,800-7,500 for the same deck
Ledger flashing is the most important detail
Improperly flashed ledger boards cause water intrusion into the house wall, leading to rot, eventual ledger failure, and deck collapse. The #1 cause of deck collapses (with injuries and fatalities) is ledger failure from water damage. Use Z-flashing tucked under siding above and below the ledger, plus a self-adhered membrane like Vycor. This is not optional.

Deck Materials Comparison 2026

Material DIY material Installed Lifespan Maintenance
Pressure-treated pine$15-25/sq ft$25-45/sq ft15-20 yrAnnual stain
Cedar (Western red)$25-35/sq ft$40-65/sq ft15-25 yrAnnual seal
Redwood$35-50/sq ft$50-75/sq ft20-30 yrAnnual seal
Composite (Trex, TimberTech)$30-50/sq ft$40-80/sq ft25-50 yrWash only
PVC / cellular$40-60/sq ft$55-90/sq ft30-50 yrWash only
Ipe / Cumaru (tropical)$40-70/sq ft$60-110/sq ft50+ yrOptional oil
Aluminum decking$50-75/sq ft$70-110/sq ft40+ yrWash only

Deck Frame: Joist and Beam Sizing

Joist span tables (Southern Pine #2, residential load)

Joist size At 12 in OC At 16 in OC At 24 in OC
2 × 610 ft 0 in9 ft 1 in7 ft 6 in
2 × 813 ft 2 in11 ft 11 in9 ft 9 in
2 × 1016 ft 9 in15 ft 3 in12 ft 6 in
2 × 1220 ft 4 in18 ft 6 in15 ft 2 in

Spans are joist length between supports (ledger and beam, or two beams). Reduce by 20-30% for hot tubs, planters, or other concentrated loads. Always verify with local code — this is reference only.

Beam sizing

Beams support joists at the outer edge of the deck. Built up from doubled or tripled 2x lumber. Common: doubled 2x10 spans 8-9 feet between posts; tripled 2x10 spans 10-12 feet. Larger spans require engineered LVL or steel.

Post sizing

4x4 pressure-treated posts for decks under 6 feet tall. 6x6 PT posts for decks 6+ feet tall or with hot tubs. Use post anchors (Simpson AB or ABA brackets) on top of concrete footings — never bury wood posts in concrete. Mid-span posts: place every 8 feet along the beam line.

How to Build a Deck: Step by Step

  1. Pull permits and plan. Most decks need building permits. Submit a drawing showing dimensions, footing locations, joist sizing, and ledger attachment detail. Schedule footing inspection.
  2. Call 811. Mandatory. Free utility marking, 3 business days lead time.
  3. Locate ledger position. Measure down from interior floor to bottom of ledger, accounting for stair clearance to grade and any threshold height. Snap a level chalk line.
  4. Remove siding for ledger attachment. Cut siding 1 inch above and below ledger position. Install ice-and-water-shield self-adhered membrane.
  5. Install ledger board. 1/2 inch lag screws or through-bolts every 16-24 inches in staggered pattern, into structural rim joist. NOT into sheathing alone — must reach the framing.
  6. Flash ledger. Z-flashing tucked behind siding above; drip cap below. Caulk all penetrations. This is the most important detail of the build.
  7. Mark footing locations. Beam line is 12 ft from house for our example deck. Set string lines from ledger ends; measure 12 ft out; mark with stakes.
  8. Dig footings. Below frost line. Diameter per local code (typically 12 in for residential decks). Inspect before pouring concrete.
  9. Pour footings. Concrete tubes for clean column shape. Embed J-bolts or post anchors while wet. Let cure 24-48 hours before loading.
  10. Install posts and beam. 4x4 or 6x6 pressure-treated posts on anchor brackets. Beam (built up 2x lumber) cantilevers up to 1/4 of its span past end posts.
  11. Install joists. Joist hangers at ledger; rest on top of beam. 16 in OC standard. Crown joists upward — sight along edge, install with the slight bow pointing up.
  12. Install rim joist. End-grain joist material at the outer edge — caps the joist ends and creates a finished look.
  13. Install decking. Start at the house and work out, or start at the outer edge and adjust at the house. Use spacers for consistent 1/8 inch gaps. Pre-drill near board ends to prevent splitting.
  14. Build stairs. Use our stair calculator for rise/run. PT stringers, 2x6 treads, footings at the bottom.
  15. Install railing. Required if deck is more than 30 inches above grade. 36 inches minimum height. Balusters must reject a 4-inch sphere.
  16. Final inspection. Schedule with your building department once complete. Many inspections also include a frame inspection before decking is installed.

Deck Lifespan and Maintenance

  • Annual cleaning. Pressure wash at low pressure, or use deck cleaner with a stiff brush. Removes mildew, dirt, oxidation.
  • Re-stain wood every 2-3 years. The single biggest factor in deck life. Sealers wear off; stain pigments slow UV damage.
  • Check joist hangers and fasteners. Pressure-treated lumber chemistry corrodes galvanized hardware over decades. Use stainless or hot-dip galvanized rated for ACQ/MCA-treated lumber.
  • Inspect ledger flashing yearly. Look for staining or rot at the rim joist where the ledger attaches.
  • Replace damaged boards promptly. One soft board makes neighboring boards rot faster.
  • Reseal end grain. Where deck boards were cut, end grain absorbs water. Brush on extra sealer at all cut ends.

Common Deck Mistakes

  • Ledger improperly flashed: #1 cause of deck collapse. Water rots the house rim joist; ledger pulls out.
  • Footings too shallow: Below frost line, every time. Frost heave will lift posts and twist the deck.
  • Skipping permits: Insurance won't cover injuries on unpermitted decks. Required for resale.
  • Wood post buried in concrete: Rots at the soil line within 5-10 years. Always use post anchors above the concrete.
  • Wrong fasteners for treated lumber: Modern ACQ/MCA treatment corrodes basic galvanized hardware. Use stainless or hot-dip galvanized rated for treated lumber.
  • No flashing under decking near house: Water sits between decking and ledger, accelerating rot.
  • Crowning joists incorrectly: All joists must have crown side up. Mixed crowns create a wavy deck surface.
  • Insufficient joist spacing for composite: Composite typically requires 12 in OC. Installing on 16 in OC voids warranty and causes sagging.
  • No clearance under deck: 6 inches minimum to grade for ventilation. Less = trapped moisture = rapid rot.
  • Building with green PT lumber gapped tight: Wet pressure-treated shrinks as it dries. Install tight; it'll be properly spaced once dry. Or use kiln-dried treated lumber with deliberate 1/8 in gaps.

Frequently Asked Questions

How many deck boards do I need?

Divide deck width by board width plus gap. Standard 2x6 deck boards (5.5 inch actual) plus 1/8 inch gap covers about 5.625 inches per board. For a 12 ft wide deck: 12 × 12 ÷ 5.625 = 26 board widths. Multiply by length of deck and divide by board length, add 10% waste. A 12 by 16 ft deck typically needs 35-40 boards of 12 ft 2x6.

What's the standard joist spacing for a deck?

16 inches on center is standard for pressure-treated 2x6 decking. 12 inches OC required for composite decking, 5/4 inch boards, or boards laid at 45° angle. 24 inches OC allowed for 2x6 PT only if local code permits and load is low. Always check joist manufacturer recommendations and local code.

How long do deck boards last?

Pressure-treated 2x6: 15-20 years with annual stain/seal. Cedar: 15-25 years. Redwood: 20-30 years. Composite (Trex, TimberTech): 25-50 years with warranty. Tropical hardwood (Ipe, Cumaru): 50+ years. Maintenance is the biggest factor — annual cleaning and re-staining doubles wood deck life.

How much does a deck cost per square foot?

Pressure-treated DIY: $15-25/sq ft materials, $25-45/sq ft installed. Cedar DIY: $25-35/sq ft, installed $40-65/sq ft. Composite DIY: $30-50/sq ft, installed $40-80/sq ft. Tropical hardwood: $40-70/sq ft DIY, $60-110/sq ft installed. A typical 200 sq ft deck costs $4,000-15,000 depending on material and complexity.

Do I need permits for a deck?

Almost always yes. Most jurisdictions require permits for any deck attached to a house, over 30 inches above grade, or over 200 sq ft. Permit fees: $100-500 typically. Inspections usually required at footing, framing, and final. Building without permit creates resale issues, insurance problems, and possible mandatory removal.

How deep should deck footings be?

Below the local frost line. In northern US: 36-48 inches deep. Mid-Atlantic: 24-36 inches. Southern US: 12-24 inches. Concrete footing diameter: 10-12 inches typical, sized per local load tables. Use concrete tubes (Sonotube) for clean column shapes. Always rest deck post on top of footing, not in it — water pools at base of buried posts.

What size joists for a deck?

2x8 joists at 16 inches OC span 10-12 feet (depends on lumber grade and deck load). 2x10 at 16 inches OC: 14-16 ft span. 2x12 at 16 inches OC: 17-19 ft span. Span tables vary by lumber species and grade. Use joist hangers at ledger board — never toe-nail joists to a structural ledger.

How wide should deck board gaps be?

1/8 inch gap between boards is standard. Pressure-treated lumber arrives wet; install tight (no gap) and it'll shrink to about 1/8 inch as it dries. Dry kiln-dried lumber: install with 1/8 inch spacer. Composite: 1/4 inch gap for thermal expansion (check manufacturer). Larger gaps cause heel-catching and trip hazards.

Should I use deck screws or nails?

Screws — exterior-rated coated deck screws (gray or tan), GRK or stainless for premium. Nails work loose over years of expansion/contraction; screws don't. Use 3 inch screws for decking attached to 2x lumber. Hidden fastener systems for composite boards. Galvanized hardware (joist hangers, post anchors) — stainless in coastal zones.

Can I build a deck over an existing concrete patio?

Yes, called a 'floating deck' or 'patio deck.' Use 2x4 sleepers on top of the patio, then attach decking boards on top. Total height increase: 3-4 inches typically. Requires good drainage under the deck and corrosion-resistant fasteners. Easier than excavating but adds height that may affect door clearances or stairs.

When does a deck need a railing?

IRC requires guardrails on decks more than 30 inches above grade. Guard height: minimum 36 inches for residential, 42 inches in some jurisdictions and for commercial. Baluster spacing: must not allow passage of a 4 inch sphere. Top rail must support 200 lbs of point load. Stair handrail: required for 4+ risers.

How do I attach a deck to my house?

Through a ledger board bolted to the house rim joist with 1/2 inch lag screws or through-bolts every 16-24 inches in staggered pattern. CRITICAL: use proper flashing above and below ledger to prevent water intrusion into the house wall (this is the #1 cause of deck collapse). Consider a free-standing deck with no ledger if the house wall can't be properly flashed.