Methodology
Every number on DeckMath has a derivation path you can audit. This page documents how IRC code becomes validation rules, how BLS data becomes regional labor multipliers, and what we explicitly do not model. Designed so a licensed engineer, a permit inspector, or a curious homeowner can all verify the math against primary sources.
The pipeline
IRC code sections, AWC NDS values, USDA wood handbook, BLS pricing tables — all from primary publishers listed on the Sources page.
Each code section becomes a structured validation rule (e.g., R311.7.5.1 → max riser height 7-3/4″). Stored in version-controlled TypeScript constants.
Pure-function formulas combine rules with user input. No black boxes — every calc result links to the source rules that drove it.
Quarterly review of pricing data; annual review of code references; corrections published with new lastmod dates in sitemap.
Cost calculation
The formula
total_installed_cost =
tier_$_per_sqft (national 2026-Q1 baseline)
× area_sqft (your deck dimensions)
× state_labor_mult (regional from BLS OEWS)
× shape_complexity_mult (rectangular 1.00 → curved 1.35)
+ permit_fee (state-specific range)
+ demolition_if_any (only if replacing existing deck)Tier baselines (national, 2026-Q1)
| Tier | $/sqft low | $/sqft high | Brand examples |
|---|---|---|---|
| Budget · pressure-treated | $25 | $40 | PT pine |
| Mid · cedar / premium PT | $35 | $55 | Western Red Cedar |
| Premium · mid composite | $50 | $80 | Trex Transcend, Fiberon Sanctuary |
| Luxury · premium composite/PVC | $75 | $110 | TimberTech AZEK, Trex Signature |
| Exotic · tropical hardwood | $90 | $140 | IPE, Cumaru |
Regional labor multiplier
labor_mult = state_carpenter_wage / national_avg_wage
Source: BLS Occupational Employment and Wage Statistics, May 2025 release. Mean hourly wage for SOC 47-2031 (Carpenters). Pegged to the most recent year because residential carpentry shifts ~3-6% year-over-year and lags general inflation. We update this each May after BLS publishes.
Shape complexity multiplier
Rectangular is the 1.00× baseline. Each non-rectangular shape carries an empirically-derived multiplier based on (a) extra framing labor, (b) higher material waste, (c) permit-review complexity. See /deck-cost-by-shape for the full table with derivation notes per shape.
Span + structural rules
Joist, beam, and post span limits come directly from IRC 2021 Table R502.3.1(1) for SPF #2 dimensional lumber, applying L/360 deflection at 40 psf live load. We chose SPF as the default because it represents the highest-volume residential species in North America; other species are noted with per-page deductions (Douglas fir +6% spans, southern pine +8%, hem-fir −4%, all per AWC NDS supplement 4A).
Excerpt — joist span at 16″ O.C.
| Lumber size | Max span (SPF #2) | Use case |
|---|---|---|
| 2×6 | 8′-7″ | small ground-level decks |
| 2×8 | 11′-1″ | standard residential |
| 2×10 | 14′-1″ | most-common residential |
| 2×12 | 16′-10″ | large or cantilever |
Full table covers 12″ / 16″ / 24″ O.C. across 2×6 through 2×12 — surface in the Joist Span Calculator.
Refresh cadence
Methodology FAQ
How are DeckMath's cost ranges built?
Each tier (PT pine, cedar, mid composite, premium PVC, exotic hardwood) carries a national low and high $/sqft installed cost. These come from quarterly review of BLS Producer Price Index (lumber), contractor surveys (HomeAdvisor 2025-Q4, Angi 2025-Q4, ImproveNet 2025), and direct manufacturer MSRP. For state-level pages, the national figure is multiplied by a regional labor multiplier derived from BLS OEWS state-level mean wage for carpenters (SOC 47-2031). For shape-specific pages, an additional complexity multiplier (1.06× picture-frame up to 1.35× curved) is applied. All ranges are 2026-Q1.
Where do the joist span tables come from?
Directly from IRC 2021 Table R502.3.1(1) for residential floor framing, cross-referenced with the AWC Wood Frame Construction Manual (WFCM) 2024 deck supplements. We default to SPF #2 lumber (the most common residential choice); pages note the species-specific deduction (Douglas fir +6%, southern pine +8%, hem-fir −4%) where applicable. Deflection limit is L/360 — stricter than the L/240 some jurisdictions allow for exterior decks — to match best-practice safety margin.
How is frost depth determined?
Each state in our database stores a representative frost-line depth from the NOAA frost-depth map, validated against state-specific building department published values. We use a single representative value per state (the modal county depth) — your specific county or city may require 4-8 inches more in northern jurisdictions. We always recommend confirming with your local AHJ (authority having jurisdiction) before pouring footings.
What's the regional labor multiplier and how is it calculated?
The multiplier is each state's mean hourly wage for SOC 47-2031 (Carpenters) divided by the national mean. For example, California's $32.80/hr divided by national $24.50/hr = 1.34× multiplier; Mississippi's $19.40/hr divided by national $24.50/hr = 0.79× multiplier. Updated annually from BLS OEWS data — see Sources page for the link. This methodology assumes labor is roughly half of installed cost, which is the industry norm for deck builds.
How does DeckMath handle the IRC 2021 vs 2018 vs 2015 code editions?
DeckMath defaults to IRC 2021 (the most recent edition with full deck-specific section R507). Most U.S. jurisdictions adopt IRC editions on a 3-6 year lag — your AHJ may still enforce IRC 2018 or 2015. Where 2021 introduced new prescriptive requirements (e.g., R507.9 ledger attachment), our compliance checks use the 2021 standard. Where requirements have not changed across editions (most span tables, frost depth, guard heights), the values apply to all three editions.
What does DeckMath NOT model?
We don't model: seismic-zone-specific footing requirements (Western U.S. — defer to your engineer); freeze-thaw frost-protected shallow foundations (FPSF — a specialty system); engineered I-joist or LVL flooring (we cover only dimensional lumber); commercial decks over 40 psf live load (use a P.E.); hurricane-zone uplift connections (defer to ICC-500 spec or local hurricane codes); steel-frame or aluminum deck systems; integral lighting load calculations; structural diaphragm action for deck-supported additions. For any of these, call a licensed engineer.
How often is data refreshed?
Code references are reviewed annually each January (when ICC publishes errata to current editions). Pricing data is refreshed quarterly: BLS PPI lumber index review, contractor-bid survey re-run, manufacturer MSRP check. State labor multipliers refresh annually from BLS OEWS release (May each year). Material brand specs (Trex, TimberTech, Fiberon) refresh whenever the manufacturer publishes a new technical bulletin — typically 1-2 times per year.
What error margin should I expect on DeckMath cost estimates?
Mid-tier composite ranges typically come within ±15% of three contractor bids in metropolitan markets, ±25% in rural markets where bid spreads are wider. The ranges already factor in waste, fasteners, mid-grade hardware, and standard railing — they exclude: site prep beyond standard, demolition of existing decks, premium lighting, electrical, or unusually deep footings (over 60 inches). For a fixed-price quote, always get 3 contractor bids; DeckMath estimates are budget planning numbers, not bids.
Want to verify a specific number?
The Sources page lists every primary reference with direct links to ICC, AWC, USDA Forest Products, BLS, and AWPA. Trace any number on DeckMath to its origin in under 30 seconds.