Deck Calculator
Calculate all materials needed for your deck project including decking boards, joists, posts, hardware, and railing.
Deck Dimensions
Decking Material:
Joist Spacing:
Pressure Treated Deck
192 sq ft
~$11.92/sq ft materials
Materials List:
Railing Materials:
Cost Estimate:
Deck Building Tips
- • Check local building codes for permits and requirements
- • Use 16" joist spacing for most decking; 12" for diagonal patterns
- • Composite decking requires different fastening methods
- • Always use pressure-treated lumber for ground contact
- • Add post footings below frost line for stability
What Is Deck Calculation?
Deck calculation determines all the materials needed for your deck project—decking boards, framing lumber, fasteners, and hardware. Accurate estimation ensures you have enough materials without excessive overage.
| Component | Material Options | Typical Sizes | Lifespan |
|---|---|---|---|
| Decking boards | Pressure-treated, cedar, composite | 5/4×6, 2×6 | 10-50 years |
| Joists | Pressure-treated lumber | 2×8, 2×10, 2×12 | 20-40 years |
| Beams | Pressure-treated or built-up | 2×8, 2×10, 4×6 | 20-40 years |
| Posts | Pressure-treated | 4×4, 6×6 | 15-25 years |
| Ledger | Pressure-treated | 2×8, 2×10 | Matches joists |
| Railing | Wood, composite, metal | Varies by style | 10-30 years |
Deck Square Footage
Where:
- Length= Deck length in feet
- Width= Deck width in feet
- Board Width= Typically 5.5" (actual)
Calculating Decking Boards
Decking boards are the visible surface. Calculate based on deck width divided by board width, accounting for gaps.
| Board Type | Nominal Size | Actual Width | With Gap |
|---|---|---|---|
| Standard wood | 5/4×6 | 5.5" | 5.625" (1/8" gap) |
| Dimensional lumber | 2×6 | 5.5" | 5.625" (1/8" gap) |
| Composite | Varies | 5.5-7.25" | Per manufacturer |
| Narrow boards | 5/4×4 | 3.5" | 3.625" |
| Wide boards | 2×8 | 7.25" | 7.375" |
Decking Board Formula
Where:
- Deck Width= Width in inches (feet × 12)
- Board Width= Actual width + gap spacing
Calculating Joists and Framing
Joists support the decking boards. Standard spacing is 16" on center, though 12" O.C. may be required for some decking materials.
| Component | Spacing/Quantity | How to Calculate |
|---|---|---|
| Joists | 16" or 12" O.C. | (Deck length ÷ spacing) + 1 |
| Rim joist | 2 pieces | Same as deck width |
| End joist | 2 pieces | Same as deck length |
| Ledger board | 1 piece | Deck width (attached to house) |
| Blocking | Every 8 feet | Between joists for stability |
Joist sizing: Joist depth depends on span. For typical decks: 2×8 spans to 10', 2×10 spans to 12', 2×12 spans to 14'. Check local codes for your specific situation.
Calculating Beams and Posts
Beams support the joists, and posts support the beams. Spacing depends on beam size and local codes.
| Beam Size | Typical Max Span | Post Spacing |
|---|---|---|
| Double 2×8 | 6-7 feet | 6 feet max |
| Double 2×10 | 8-9 feet | 8 feet max |
| Double 2×12 | 10-11 feet | 10 feet max |
| Triple 2×10 | 10-11 feet | 10 feet max |
| 4×6 | 6-7 feet | 6 feet max |
| 6×6 | 8-9 feet | 8 feet max |
Posts: Number of posts = (Beam length ÷ Post spacing) + 1. For each beam row, calculate separately. Corner posts plus intermediate posts.
Fasteners and Hardware
Don't forget screws, nails, and hardware when ordering deck materials.
| Item | Quantity Estimate | Notes |
|---|---|---|
| Decking screws | 350-400 per 100 sq ft | 2 screws per board/joist intersection |
| Hidden fasteners | Per manufacturer | 1 per board/joist intersection |
| Joist hanger nails | 10-12 per hanger | Hot-dipped galvanized |
| Joist hangers | One per joist | Sized to joist dimensions |
| Post anchors | One per post | For concrete footings |
| Lag bolts | Per ledger attachment | 1/2" × 4" typical, every 16" |
| Carriage bolts | Beam-to-post connections | 2 per connection minimum |
Important: Use hot-dipped galvanized or stainless steel fasteners with pressure-treated lumber to prevent corrosion.
Railing Calculation
Railings are required for decks 30" or more above grade (code varies by location).
| Component | Spacing/Requirements | How to Calculate |
|---|---|---|
| Posts | 6-8 feet apart max | (Railing length ÷ spacing) + 1 |
| Top rail | 36-42" height (code varies) | Linear feet of railing needed |
| Bottom rail | Parallel to top rail | Same as top rail |
| Balusters | 4" max gap between | Railing length ÷ 5" (baluster + gap) |
| Post caps | One per post | Count total posts |
Code requirement: Openings in railings cannot allow passage of a 4" sphere (child safety). Space balusters approximately 4" apart.
Decking Material Comparison
Choose decking material based on budget, maintenance preference, and desired appearance.
| Material | Cost/sq ft | Maintenance | Lifespan | Pros/Cons |
|---|---|---|---|---|
| Pressure-treated | $2-5 | Annual seal/stain | 10-15 years | Affordable; needs maintenance |
| Cedar | $4-8 | Seal every 2-3 years | 15-20 years | Natural beauty; rot-resistant |
| Redwood | $8-15 | Seal every 2-3 years | 20-30 years | Premium look; expensive |
| Composite | $8-20 | Annual wash | 25-50 years | Low maintenance; higher upfront cost |
| PVC | $10-25 | Annual wash | 25-50 years | Most weather-resistant; expensive |
| Tropical hardwood | $10-25 | Oil annually | 25-50 years | Extremely durable; heavy |
Total cost: Material cost × 1.3-2.5 = installed cost (labor varies widely by region).
Worked Examples
Calculate Decking Boards for a Simple Deck
Problem:
A 12×16 foot deck using 5/4×6 boards (5.5" wide) running the 16-foot direction. How many boards are needed?
Solution Steps:
- 1Deck width in inches: 12 feet × 12 = 144 inches
- 2Board width with 1/8" gap: 5.5 + 0.125 = 5.625 inches
- 3Number of boards: 144 ÷ 5.625 = 25.6 boards
- 4Round up: 26 boards
- 5Add 10% waste: 26 × 1.10 = 28.6 → 29 boards
- 6Board length: 16 feet each
Result:
Order 29 boards at 16 feet long. If 16-foot boards aren't available, use two 10-foot or 12-foot boards per row with staggered joints.
Calculate Joists for Deck Framing
Problem:
A 14×20 foot deck with joists at 16" on center spanning the 14-foot direction. Calculate joists needed.
Solution Steps:
- 1Deck length (joist run): 20 feet = 240 inches
- 2Joist spacing: 16 inches O.C.
- 3Number of joist spaces: 240 ÷ 16 = 15 spaces
- 4Number of joists: 15 + 1 = 16 joists
- 5Joist length: 14 feet each
- 6Add rim joists: 2 pieces at 20 feet
Result:
Order 16 joists at 14 feet plus 2 rim boards at 20 feet. For 14-foot span, use 2×10 or 2×12 joists (check span tables).
Complete Material List for a 12×16 Deck
Problem:
Create a complete material list for a 12×16 deck, 3 feet high, with railing on 3 sides.
Solution Steps:
- 1Decking: (144÷5.625) × 1.10 = 29 boards at 16'
- 2Joists (16" O.C.): (192÷16)+1 = 13 at 12', use 2×10
- 3Rim joists: 2 at 16' (2×10)
- 4Ledger: 1 at 16' (2×10)
- 5Beams: 2 at 12' (double 2×10)
- 6Posts (4×4): 6 posts at 4' (3 per beam row)
- 7Railing (3 sides): ~40 linear feet
- 8Railing posts: 10 posts (6' apart on 40 LF)
- 9Balusters: 40 feet ÷ 5" = 96 balusters
Result:
Full list: 29 deck boards, 15 joists (2×10×12'), 2 beam boards, 6 posts, 10 railing posts, 96 balusters, plus hardware (screws, joist hangers, post anchors).
Tips & Best Practices
- ✓Standard deck board width is 5.5" (actual)—add 1/8" gap for drainage between boards.
- ✓Joists are typically spaced 16" on center; composite decking may require 12" spacing.
- ✓Use hot-dipped galvanized or stainless steel fasteners with pressure-treated lumber.
- ✓Calculate screws at 2 per board at each joist intersection—roughly 4 screws per square foot.
- ✓Posts should be set at least 42" deep in cold climates (below frost line).
- ✓Railing balusters must be spaced so a 4" sphere cannot pass through (code requirement).
- ✓Order 10% extra decking for waste; keep extras for future repairs.
Frequently Asked Questions
Sources & References
Last updated: 2026-01-22