Deck Calculator

Calculate joists, decking boards, railing, stairs, and material costs for your deck project

Enter Your Deck Dimensions

Standard is 16" on-center. Use 12" for composite or longer spans.

Material Type & Pricing

Quick Answer

For a 12x16 ft deck with 16" joist spacing and 5/4x6 boards: You need 10 joists, 25 decking boards (16 ft long), and approximately 44 linear feet of railing (3 open sides). Material costs range from $2,900-$8,600 depending on material choice.

Building a deck transforms your outdoor space, but accurate material calculations are crucial to avoid costly overruns or project delays. This deck calculator helps you determine exactly how many joists, decking boards, and linear feet of railing you need, plus provides material cost estimates for pressure-treated, cedar, composite, and PVC decking options.

Published By ChallengeAnswer Editorial Team
Reviewed by
Dr. Snezana Lawrence
Dr. Snezana LawrencePhD in Mathematical History
Dr. Snezana Lawrence

Dr. Snezana Lawrence

Mathematical Historian

15+ years experience

PhD from Yale University. Published mathematical historian ensuring precision in all calculations.

Education

PhD in Mathematical History - Yale University

Mathematical HistoryTime CalculationsMathematical Conversions
View Full Profile

Joist Spacing Guide

SpacingBest ForProsCons
12" O.C.Composite decking, long spansStrongest support, less bounceMore materials, higher cost
16" O.C.Standard for most deckingBest balance of strength & costStandard option
24" O.C.2x6 solid wood only, short spansFewer joists, lower costMore bounce, limited applications

Decking Board Options Comparison

Board SizeActual WidthThicknessBest Use
2x65.5"1.5"Main decks, high traffic areas
5/4x65.5"1"Standard decking, most common
2x43.5"1.5"Railings, smaller projects

Material Cost Comparison

MaterialCost/Sq FtLifespanMaintenance
Pressure-Treated Pine$15-2515-20 yearsAnnual sealing
Cedar$25-3520-30 yearsBi-annual sealing
Composite$30-4525-30 yearsMinimal
PVC/Vinyl$35-5030+ yearsVery low
Redwood$30-4025-30 yearsAnnual sealing

Joist Sizing & Span Chart

Joist Size12" Spacing16" Spacing24" Spacing
2x69'-11"8'-0"6'-2"
2x813'-1"11'-10"9'-8"
2x1016'-2"14'-0"11'-5"
2x1218'-0"16'-6"13'-6"

Note: Spans shown are for Southern Pine #2 grade. Always check local building codes. Spans may vary based on wood species, grade, and local snow/live load requirements.

Deck Building Tips

  • • Always check local building codes before starting - permits required for most decks over 30" high
  • • Use hot-dipped galvanized or stainless steel fasteners to prevent rust and staining
  • • Install joists crown-up to prevent sagging over time
  • • Leave 1/8" to 3/16" gaps between decking boards for drainage and expansion
  • • Slope deck away from house (1/8" per foot) for proper water drainage
  • • Install flashing where deck ledger attaches to house to prevent water damage
  • • Use joist hangers for proper connections - never toe-nail joists into beams
  • • Set posts in concrete footings below frost line (check local depth requirements)
  • • Order 10% extra materials to account for waste, cuts, and future repairs
  • • Consider hidden fastener systems for composite decking for a cleaner look

Common Building Code Requirements

Railing Requirements

  • Height: 36" minimum (42" in some areas)
  • Baluster spacing: 4" maximum gap
  • Load requirement: 200 lbs at any point
  • Graspable handrail: Required on stairs

Stair Requirements

  • Riser height: 7-3/4" maximum
  • Tread depth: 10" minimum
  • Stringer spacing: 16" maximum
  • Handrail height: 34-38" from tread nose

Structural Requirements

  • Footing depth: Below frost line
  • Ledger attachment: 1/2" lag screws or bolts
  • Live load: 40 psf minimum
  • Post spacing: Typically 6-8 feet maximum

Permit Requirements

  • Height: Usually required over 30"
  • Size: Often required over 200 sq ft
  • Location: Setback requirements vary
  • Inspections: Footings, framing, final

Important: Building codes vary by location. Always check with your local building department for specific requirements in your area.

Frequently Asked Questions

How many joists do I need for my deck?

For a 12-foot wide deck with 16" joist spacing: 12 feet ÷ 1.33 feet (16") = 9 joists + 1 starter = 10 joists total. Always add one additional joist for the starting edge.

What joist spacing should I use?

16" on-center is standard for most decking. Use 12" for composite decking or longer spans. 24" spacing only works for 2x6 solid wood decking over short spans (less than 8 feet).

How many deck boards do I need?

For 5.5" wide boards with 1/8" gap: 12 feet ÷ 0.479 feet (5.75") = 25 boards per 12-foot width. Multiply by deck length and add 10% waste.

How much railing do I need?

Measure all open sides of your deck. A 12x16 deck with one side against house needs: 12 + 16 + 16 = 44 linear feet of railing. Add 10% for cuts and waste.

Should I use 2x6 or 5/4x6 deck boards?

2x6 (1.5" thick) is stronger and lasts longer, ideal for main decks. 5/4x6 (1" thick) is lighter, cheaper, and fine for low-traffic areas. Both are 5.5" actual width.

What size joists should I use?

2x8 joists span up to 10-12 feet at 16" spacing. 2x10 spans 13-16 feet. 2x12 spans 16-18 feet. Always check local building codes for your specific species and load requirements.

How much does it cost to build a deck?

Material costs: Pressure-treated $15-25/sq ft, Cedar $25-35/sq ft, Composite $30-45/sq ft. A 12x16 (192 sq ft) deck costs $2,900-$8,600 in materials only. Labor adds $15-35/sq ft.

Do I need a permit to build a deck?

Most decks over 30" high or 200 sq ft require permits. Ground-level decks under 200 sq ft often don't need permits. Always check local building codes before construction.

Dr. Snezana Lawrence
Expert Reviewer

Dr. Snezana Lawrence

Mathematical Historian | PhD from Yale

Dr. Lawrence is a published mathematical historian with a PhD from Yale University. She ensures mathematical precision and accuracy in all our calculations, conversions, and academic score calculators. Her expertise spans computational mathematics and educational assessment.

View LinkedIn Profile