Disclaimer: This calculator provides preliminary estimates for educational purposes only. It is not a substitute for a licensed professional engineer, architect, or structural engineer. Results depend on material grade and species, site conditions, local climate and snow loads, and amendments to the applicable building code, all of which vary by location. Always verify results against your local building codes and confirm requirements with your Authority Having Jurisdiction before proceeding. Do not use these estimates for permitting, fabrication, or construction without stamped, engineer-sealed drawings from a licensed professional. Improperly sized structural members, foundations, or gas lines can cause structural collapse, fire, gas leaks, serious injury, or death.
Frequently Asked Questions
Q
How do you calculate decking materials?
Calculate deck area (length × width). Determine boards needed based on board width and length. Calculate joists based on spacing (typically 16" on center). Estimate posts every 6-8 feet along the perimeter.
Area formula: Length (ft) × Width (ft) = square footage
A 12 × 20 ft deck = 240 sq ft needs ∶52 boards (5.5" wide, 12 ft long)
Joists: divide deck length by spacing (16") and add 1 for the end joist
Posts: 1 post every 6–8 ft along each beam line, minimum 4×4 treated lumber
Add 10–15% waste factor for cuts, defects, and end-of-board trimming
Material
Cost per Board (12 ft)
Lifespan
Maintenance
Pressure-treated pine
$8–15
10–15 years
Stain every 2–3 years
Cedar
$15–25
15–20 years
Seal every 2–3 years
Composite (Trex)
$25–45
25–30 years
Minimal – wash only
PVC / Cellular
$35–60
30+ years
None required
Q
What is standard deck board spacing?
Deck boards are typically installed with 1/8" to 1/4" gap between boards for drainage. Standard board width is 5.5" (5/4 board) or 5.5" with spacing.
1/8" gap is standard for dry wood that will expand with moisture
1/4" gap works for pre-dried or composite boards that won't expand
Actual 5/4×6 board measures 1" thick × 5.5" wide
16d nails or 2.5–3" deck screws, 2 per joist per board
Composite boards may require hidden fastener systems ($0.50–$1.00 per clip)
Q
How far apart should deck joists be?
Standard joist spacing is 16 inches on center (OC) for most decking materials. Some composite decking allows 24" OC spacing. Check manufacturer specifications for your decking material.
16" OC: required for standard wood decking and most composites
12" OC: recommended for diagonal deck board patterns
24" OC: only allowed with specific composite brands on straight runs
Common joist sizes: 2×6 (up to 8 ft span), 2×8 (up to 12 ft), 2×10 (up to 14 ft)
Double the rim joist where the ledger attaches to the house
Joist Spacing
Best For
Boards per 12 ft Width
12" OC
Diagonal patterns, heavy loads
13 joists
16" OC
Standard wood and composite
10 joists
24" OC
Select composites, straight only
7 joists
Q
How many posts do I need for a deck?
Posts are typically spaced 6-8 feet apart along the perimeter. For a 20ft deck, you'd need posts at 0ft, 6ft, 12ft, 18ft, and 20ft (5 posts per side).
Maximum post spacing: 8 ft for 2×8 beams, 6 ft for 2×6 beams
Minimum post size: 4×4 for decks under 6 ft high, 6×6 for taller
Footing depth: below frost line (24–48" depending on region)
Typical footing diameter: 12" for low decks, 16–20" for elevated decks
A 20 × 12 ft deck typically needs 8–10 posts total
Joists spaced at regular intervals. Posts placed every 6 ft along both sides of the deck.
Where:
Joist Spacing= Distance between joists in inches (typically 16")
6= Post spacing in feet
Complete Guide to Deck Materials, Costs, and Planning
1
2026 Decking Material Costs and Lifespan
Pressure-treated pine remains the most affordable decking option at $8–$15 per 12-foot board, but its 10–15 year lifespan means two full replacements over the life of a composite deck. Composite boards from brands like Trex and TimberTech run $25–$45 per board yet last 25–30 years with virtually zero maintenance beyond occasional washing.
PVC and cellular decking sits at the premium end at $35–$60 per board with a 30+ year warranty and complete immunity to moisture, rot, and insects. For a standard 12×20 ft deck (240 sq ft), material costs range from roughly $450 for pressure-treated pine to over $3,000 for PVC—but the lifecycle cost tells a different story.
When you factor in staining every 2–3 years at $1–$3 per square foot, pressure-treated pine costs $2,400–$4,300 over 30 years while composite costs $1,300–$2,300 total. Use our deck staining calculator to estimate your recurring refinishing costs.
*Lifecycle cost includes replacement, staining, and repairs over 30 years for a 240 sq ft deck
Material
Cost per Board (12 ft)
Lifespan
Maintenance
30-Year Cost (240 sq ft)
Pressure-Treated Pine
$8–$15
10–15 yr
Stain every 2–3 yr
$2,400–$4,300
Cedar
$15–$25
15–20 yr
Seal every 2–3 yr
$2,000–$3,500
Composite (Trex)
$25–$45
25–30 yr
Wash only
$1,300–$2,300
PVC / Cellular
$35–$60
30+ yr
None required
$1,800–$3,100
2
Complete Material Checklist for a Deck Build
A 12×20 ft deck at 16" on-center joist spacing requires approximately 52 deck boards (5.5" wide, 12 ft long), 16 joists (2×8 or 2×10 depending on span), 10 posts (4×4 minimum), and 2 ledger boards bolted to the house framing. Each board gets 2 screws per joist crossing, totaling roughly 1,600–1,700 deck screws for the surface alone.
Joist hangers are required at every joist-to-beam connection—budget $1.50–$3.00 per hanger and 10 joist-hanger nails each. Post bases ($6–$12 each) anchor posts to concrete footings, and post caps ($4–$8) connect posts to beams. Do not forget the flashing tape ($15–$25 per roll) for the ledger board to prevent water intrusion into the house.
Hardware costs add $150–$350 on top of lumber for a mid-size deck. Ordering 10–15% extra boards avoids project delays from warped or defective lumber.
*Prices reflect national averages as of early 2026
Component
Quantity (12×20 ft Deck)
Unit Cost
Subtotal
Deck boards (5.5" × 12 ft)
52–57
$8–$15
$440–$855
Joists (2×8, 12 ft)
16
$9–$14
$144–$224
Posts (4×4, 8 ft)
10
$8–$12
$80–$120
Deck screws (5 lb box)
3–4 boxes
$28–$35
$84–$140
Joist hangers
16
$1.50–$3
$24–$48
3
Board Spacing: 1/8-Inch vs 1/4-Inch Gaps
Standard deck board spacing is 1/8" for freshly milled lumber that will expand as it absorbs moisture, and 1/4" for kiln-dried or composite boards that have already reached stable dimensions. Incorrect spacing causes either buckling (too tight) or excessive debris trapping (too wide).
For pressure-treated pine delivered wet from the mill, many contractors butt boards tightly with no gap—the wood shrinks as it dries over 4–6 weeks, naturally opening to roughly 1/8". Composite manufacturers typically specify 3/16" to 1/4" gaps, and most provide proprietary hidden fastener systems ($0.50–$1.00 per clip) that set spacing automatically.
Use a 16d nail as a 1/8" spacer or a carpenter’s pencil for a 1/4" gap. Consistent spacing across the entire deck is more important than the exact gap width—variations are visible from any angle and look unprofessional.
Board Type
Recommended Gap
Spacer Tool
Fastener Type
Wet pressure-treated
0" (butt tight)
None needed
2 screws per joist
Dry/seasoned wood
1/8"
16d nail
2 screws per joist
Composite
3/16"–1/4"
Manufacturer clip
Hidden fastener system
PVC
1/4"
Carpenter pencil
Hidden fastener system
Tip: Run a string line along the first installed board and measure to it every 5–6 boards. If cumulative gap error exceeds 1/4", adjust spacing on the next few boards to correct.
4
Annual Maintenance Costs by Material
A 240 sq ft pressure-treated pine deck costs $240–$720 per year to maintain when you factor in staining ($1–$3/sq ft every 2–3 years), board replacement (1–2 boards per year at $8–$15 each), and annual cleaning supplies ($15–$30). Over 15 years that totals $3,600–$10,800 in maintenance alone—often more than the original lumber cost.
Composite decks reduce annual maintenance to $30–$50 for a yearly power wash and occasional spot treatment for mold in shady areas. The beam size calculator helps you verify that structural members meet code for your specific span and load requirements, which is especially important when replacing a deteriorated substructure.
Inspect your deck each spring for loose fasteners, split boards, and post rot at the ground line. Catching a rotted post early costs $50–$100 to replace; ignoring it can lead to a $2,000–$5,000 structural failure. Check connections to the concrete footings for any signs of heaving or settling.
Pressure-treated pine — $240–$720/year (stain, replace 1–2 boards, clean)
Cedar — $200–$600/year (seal, occasional board swap, clean)
Composite — $30–$50/year (power wash only)
PVC — $15–$30/year (rinse with hose)
All materials — inspect fasteners, posts, and ledger flashing annually
This calculator is provided for informational and educational purposes only. Results are estimates and should not be considered professional financial, medical, legal, or other advice. Always consult a qualified professional before making important decisions. UseCalcPro is not responsible for any actions taken based on calculator results.