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.


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
Joist Spacing Guide
| Spacing | Best For | Pros | Cons |
|---|---|---|---|
| 12" O.C. | Composite decking, long spans | Strongest support, less bounce | More materials, higher cost |
| 16" O.C. | Standard for most decking | Best balance of strength & cost | Standard option |
| 24" O.C. | 2x6 solid wood only, short spans | Fewer joists, lower cost | More bounce, limited applications |
Decking Board Options Comparison
| Board Size | Actual Width | Thickness | Best Use |
|---|---|---|---|
| 2x6 | 5.5" | 1.5" | Main decks, high traffic areas |
| 5/4x6 | 5.5" | 1" | Standard decking, most common |
| 2x4 | 3.5" | 1.5" | Railings, smaller projects |
Material Cost Comparison
| Material | Cost/Sq Ft | Lifespan | Maintenance |
|---|---|---|---|
| Pressure-Treated Pine | $15-25 | 15-20 years | Annual sealing |
| Cedar | $25-35 | 20-30 years | Bi-annual sealing |
| Composite | $30-45 | 25-30 years | Minimal |
| PVC/Vinyl | $35-50 | 30+ years | Very low |
| Redwood | $30-40 | 25-30 years | Annual sealing |
Joist Sizing & Span Chart
| Joist Size | 12" Spacing | 16" Spacing | 24" Spacing |
|---|---|---|---|
| 2x6 | 9'-11" | 8'-0" | 6'-2" |
| 2x8 | 13'-1" | 11'-10" | 9'-8" |
| 2x10 | 16'-2" | 14'-0" | 11'-5" |
| 2x12 | 18'-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
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