DeckMath
5 materials · 8-20 ft stock · single + mixed strategy · waste minimizer

Decking Length Calculator

Compute the cheapest board-length mix to buy for your deck. Composite/PVC come in 12/16/20 ft only — wood materials (PT, cedar, IPE) come in 8/10/12/14/16/20 ft. Two strategies: single-length (one length only — simpler buy, sometimes more waste) or mixed-length (optimizer picks the best combination — minimum waste). Compares all 6 single-length options + mixed at the same scope and surfaces the cheapest. Calculates: total boards needed (deck width ÷ board face width + gap), effective deck span (length + pattern waste 5-18%), waste linear feet, waste %, total cost, cost per sqft. Supports 5 materials with documented $/lf retail pricing (PT $2.10/lf, cedar $3.80/lf, composite $5.20/lf, PVC $6.50/lf, IPE $6.20/lf). Smart recommendation surfaces cheaper alternatives when current selection isn't optimal.

Single vs mixed5 materialsPattern waste presetsSplice modeStrategy comparisonFree forever
8-20 ft·Stock lengths supported
6+ options·Compared at same scope
5-18%·Pattern waste range
Min waste·Auto-recommended

Inputs

Deck dimensions

ft

ft

Deck area224 sqft
Boards per row34 rows
in

$/lf

Capped composite (Trex / TimberTech)

14 × 16 ft · 16ft single · 5% pattern waste

Total material cost
$2,829
$12.63/sqft · 34 boards · 544 ft total
44.2 ft waste (8.1%)Effective span 14.7 ft

Board mix

LengthCount$/boardTotal
16 ft34$83.20$2,829
TOTAL34$2,829

34 rows across 16ft deck width @ 5.5″ face + 3/16″ gap.

Strategy comparison (same scope)

Single 16ftPICKED$2,829 · 34bd · 8.1%
Mixed (optimized)CHEAPEST$2,829 · 34bd · 8.1%
Single 20ft$3,536 · 34bd · 26.5%
Single 12ft$4,243 · 68bd · 38.8%

How to use

Three steps. Permit-ready output.

  1. 01

    Enter deck dimensions

    Deck SPAN = the dimension your boards lay across (typically 12-20 ft for most home decks). Deck WIDTH = the dimension running parallel to boards (drives # of board rows). For an 8×12 deck with boards running along the 8 ft side: span = 8 ft, width = 12 ft. The optimizer picks board lengths that match the span dimension.

  2. 02

    Pick material + board face width

    5 materials drive available lengths: composite/PVC only 12/16/20 ft, wood gets 8-20 ft. Board face width default 5.5″ (standard 5/4×6). Some composite lines use 5.0″ — adjust if needed. Face width drives # of rows needed across the deck width.

  3. 03

    Pick strategy + single length

    Single-length: buy one board length, no splices. Simple buy + clean look. Some waste when span doesn't match length cleanly. Mixed-length: optimizer picks best combo. Both modes evaluated in the comparison panel so you can see the cost difference.

  4. 04

    Allow splices + pattern waste

    Allow splices: enables end-to-end joints for spans longer than max length. Composite splices must land over joists (12-16 in OC). Pattern waste % adjusts effective span: straight 5%, picture-frame 8%, diagonal 12%, herringbone 15%, chevron 18%. Higher patterns = more cuts = more waste linear feet.

  5. 05

    Read strategy comparison

    Result panel ranks ALL strategies (6 single-length options + mixed) cheapest-to-most-expensive at your scope. The optimizer recommendation surfaces if a cheaper alternative exists. Typical results: 14ft board for 12ft span has 14% waste; 12ft board for 12ft span has 5%; mixed sometimes wins on awkward spans like 13ft or 17ft.

How we calculate

The math, fully transparent.

The Decking Length Optimizer computes the cheapest board-length mix to buy for your deck. Composite/PVC come in 12/16/20 ft only — wood materials (PT, cedar, IPE) come in 8/10/12/14/16/20 ft. Two strategies: single-length (one length only — simpler buy, sometimes more waste) or mixed-length (optimizer picks the best combination — minimum waste). Compares all 6 single-length options + mixed at the same scope and surfaces the cheapest. Calculates: total boards needed (deck width ÷ board face width + gap), effective deck span (length + pattern waste 5-18%), waste linear feet, waste %, total cost, cost per sqft. Supports 5 materials with documented $/lf retail pricing (PT $2.10/lf, cedar $3.80/lf, composite $5.20/lf, PVC $6.50/lf, IPE $6.20/lf). Smart recommendation surfaces cheaper alternatives when current selection isn't optimal.

IRC references

  • IRC 2021 R507.7.2 — Decking span limits (24″ OC joists max for 5/4″ wood; 16″ OC max for most composite)
  • Manufacturer specs — splice location must land over joist with 1.5″ minimum bearing
  • Trex Install Guide — 3/16″ end-to-end gap at install temp 60-80°F (expansion gap math: K.7 calc)
  • Composite warranty — many require staggered splice pattern (no two adjacent rows splice at same joist)

2026-Q1 retail pricing — Home Depot / Lowe's / Trex / TimberTech dealer averages. PT $2.10/lf, cedar $3.80/lf, composite $5.20/lf, PVC $6.50/lf, IPE $6.20/lf. Available stock lengths: wood 8/10/12/14/16/20 ft, composite/PVC 12/16/20 ft. Pattern waste presets from MPI + industry install guides: straight 5%, picture-frame 8%, diagonal 12%, herringbone 15%, chevron 18%.

Boards needed (across width)
boardsPerRow = ceil(deckWidth_in / (faceWidth + 0.1875)) — assumes 3/16″ gap

Each board occupies its face width + standard 3/16″ gap between boards. For a 16 ft deck width with 5.5″ + 3/16″ slot = 5.6875″ → 192 in / 5.6875 = 33.7 → 34 boards per row. Composite lines specify gap requirements — verify your brand's spec (Trex 3/16″ at install, expanded; PVC 1/8″).

Effective deck span
effectiveSpan = deckSpan × (1 + patternWastePct / 100)

Pattern waste adds linear feet that must be covered. Straight install: 5% (saw cuts). Picture-frame: 8% (border + field cuts). Diagonal 45°: 12% (each row needs angled cut at both ends). Herringbone: 15% (interlocking 45° pieces). Chevron: 18% (alternating angled pieces). For a 14 ft straight = 14.7 ft effective; herringbone same deck = 16.1 ft effective.

Single-length waste
waste = (length - effectiveSpan) × boardsNeeded; wastePct = waste / totalLinearFt × 100

Length close to span = low waste. Example: 14ft span needs 16ft boards = 16 - 14 = 2 ft waste per row × 34 rows = 68 ft waste. 12ft board for same 14ft span (with splice): 24 - 14 = 10 ft waste per row × 34 rows = 340 ft waste. The 16ft choice wastes less material AND avoids splice labor.

Mixed-length optimization
mixed = argmin(totalCost) over all available lengths + 2-board combos

Optimizer iterates: for each available length, compute waste assuming N boards needed to span. Then computes 2-board combos (8 + 14 = 22ft to span 21ft, etc). Picks the combo with smallest total waste. Falls back to longest single length if span > all available lengths (composite > 20ft).

Total cost
totalCost = totalBoards × length × pricePerLf

Boards sold by board not linear foot at most home centers — but $/lf is the comparison unit. PT $2.10/lf × 16ft = $33.60/board. Composite $5.20/lf × 16ft = $83.20/board. IPE $6.20/lf × 16ft = $99.20/board. Some dealers offer bulk discount (5% on 50+ boards, 10% on 100+) — adjust price-per-lf input to reflect quoted price.

Save your plan

Don’t lose this estimate.

Your inputs are preserved in the URL — email it to yourself or copy the link so you can compare with contractor bids later. No account needed.

Frequently asked

Questions, answered.

Embed this calculator

One line. Any site. Free.

Drop the snippet into your contractor site, blog, or marketing page. Theme matches the parent site automatically.

<!-- Drop into any HTML, WordPress, Webflow, or contractor site -->
<script src="https://embed.deckmath.com/v1.js"
        data-deckmath-calc="decking-length-calculator"
        data-theme="auto"
        async></script>