DeckMath
2 modes · 5 under-deck systems · IRC R507.2.4 compliance

Deck Drainage Calculator

Two distinct drainage scenarios: ABOVE-DECK (water draining through board gaps + slope to grade per IRC R507.2.4) and UNDER-DECK (finished dry space below a raised deck using Trex RainEscape, TimberTech DrySpace, Zip-UP UnderDeck, DeckDrain channels, or DIY EPDM membrane). Above-deck mode: computes drainage capacity from board gap × deck area vs required GPM at peak rainfall (~3.5″/hr design), slope compliance, annual runoff volume. Under-deck mode: 5 system options compared at the same scope with installed cost, lifespan, warranty, drainage capacity. Includes gutter ($8.50/lf), ceiling finish ($3.50/sqft for systems without built-in ceiling), full roof system add-on ($4.20/sqft), ceiling fan ($425), and LED lighting kit ($285 per 100 sqft).

Start calculating
Get 2–3 free quotes
2 modes5 under-deck systemsIRC R507.2.4 complianceTrex / TimberTech / Zip-UPFree forever
2 modes·Above-deck + under-deck
5 systems·Trex / TimberTech / etc
$7-12/sqft·Under-deck installed range
IRC R507.2.4·Slope + drainage check

Inputs

Deck dimensions

ft

ft

Deck area224 sqft

Trex RainEscape

16 × 14 ft (224 sqft) · under-deck

System total
$4,593 $5,322
$23.8/sqft installed · 25-yr warranty · 4 in/hr capacity
25-yr lifespan

Cost breakdown

Trex RainEscape system ($9.5/sqft × 224 sqft)$2,128
Perimeter gutter ($8.50/lf × 60 ft)$510
LED lighting kit$855
Labor (35% of materials)$1,223
Project total (high, +10% contingency)$5,322

System comparison (same scope)

DIY membraneCHEAPEST$4,810 · 12yr
TimberTech DrySpace$5,083 · 25yr
Trex RainEscapePICKED$5,322 · 25yr
Dec-K-ing$5,731 · 20yr
Zip-UP UnderDeck$6,004 · 30yr

Recommendations

  • DIY EPDM membrane + gutter is cheapest at $4,810 (saves $512 vs current). Trade-off: 12-yr lifespan vs 25-yr.

IRC + manufacturer references

  • IRC 2021 R507.2.4 — Decks shall provide positive drainage away from house ledger (1/8″ per ft minimum)
  • IRC 2021 R408.2 — Vapor barrier required when enclosing under-deck space
  • IBC 2021 1610.1 — Drainage capacity for outdoor surfaces
  • Manufacturer install guide — Trex RainEscape, TimberTech DrySpace, Zip-UP UnderDeck for ICC-ES ESR-listed installation
  • Local code — under-deck drainage may require separate plumbing permit if connecting to storm system

How to use

How to use the deck drainage calculator in 5 steps.

  1. 1

    Pick mode: above-deck or under-deck

    ABOVE-DECK: water drains between board gaps + flows by slope to grade. This is the default for most decks. UNDER-DECK: install a membrane/gutter system below joists to create dry finished space underneath — common for raised decks where the under-deck area becomes usable (patio, storage). Most decks use above-deck only; raised decks (>5 ft above grade) increasingly add under-deck systems for living space.

  2. 2

    Above-deck: enter board gap + slope + rainfall

    Board gap typically 3/16″ (0.1875″) for composite/PVC, 1/8″ (0.125″) for wood. Slope IRC R507.2.4 minimum 1/8″ per foot away from house. Annual rainfall by region (US avg 42″). Calculator computes drainage capacity (gpm), compliance check, annual runoff volume to plan dispersal (rain garden, dry well, storm system).

  3. 3

    Under-deck: pick system + roof type

    5 systems: Trex RainEscape ($9.50/sqft, 25-yr warranty, polypropylene troughs), TimberTech DrySpace ($8.80/sqft, snap-together panels), Zip-UP UnderDeck ($11.50/sqft, premium aluminum + built-in lighting), DeckDrain channels ($7.20/sqft, bare drainage no ceiling), DIY EPDM membrane ($4.50/sqft, 5-yr warranty). Roof type: gutter only (no ceiling), ceiling system (finished underneath), full roof (+ insulation for conditioned space).

  4. 4

    Under-deck add-ons

    Ceiling fan ($425 with outlet) — recommended for hot climates to circulate air. LED lighting kit ($285 per 100 sqft) — recessed lights + transformer + dimmer, almost always worth it. Some systems (Zip-UP) include lighting channels in the panels — no separate kit needed. Most homeowners regret skipping lighting at install time.

  5. 5

    Read drainage capacity + compliance

    Above mode: GPM provided vs required at peak rainfall; slope compliance per IRC; annual runoff. Under mode: cost breakdown by component, system comparison panel ranks 5 options cheapest-to-most-expensive. Warnings on tight board gaps, insufficient slope, DIY membrane warranty risk, ceiling visibility issues.

How we calculate

How DeckMath calculates this — IRC 2021 sources.

The Deck Drainage Calculator supports two distinct drainage scenarios: ABOVE-DECK (water draining through board gaps + slope to grade per IRC R507.2.4) and UNDER-DECK (finished dry space below a raised deck using Trex RainEscape, TimberTech DrySpace, Zip-UP UnderDeck, DeckDrain channels, or DIY EPDM membrane). Above-deck mode: computes drainage capacity from board gap × deck area vs required GPM at peak rainfall (~3.5″/hr design), slope compliance, annual runoff volume. Under-deck mode: 5 system options compared at the same scope with installed cost, lifespan, warranty, drainage capacity. Includes gutter ($8.50/lf), ceiling finish ($3.50/sqft for systems without built-in ceiling), full roof system add-on ($4.20/sqft), ceiling fan ($425), and LED lighting kit ($285 per 100 sqft).

IRC references

  • IRC 2021 R507.2.4 — Decks shall provide positive drainage away from house ledger (1/8″ per ft minimum)
  • IRC 2021 R408.2 — Vapor barrier required when enclosing under-deck space
  • IBC 2021 1610.1 — Drainage capacity for outdoor surfaces
  • Manufacturer install guide — Trex RainEscape, TimberTech DrySpace, Zip-UP UnderDeck for ICC-ES ESR-listed install
  • Local code — under-deck drainage may require separate plumbing permit if connecting to storm system

2026-Q1 retail pricing — Trex RainEscape $9.50/sqft (25-yr warranty), TimberTech DrySpace $8.80/sqft (25-yr), Zip-UP UnderDeck $11.50/sqft (25-yr), DeckDrain channels $7.20/sqft, DIY EPDM $4.50/sqft. Aluminum K-style gutter $8.50/lf. Ceiling finish $3.50/sqft. Full roof system $4.20/sqft. Ceiling fan $425. LED kit $285 per 100 sqft. Labor 35% of materials. 10% contingency.

Above-deck drainage capacity
drainageArea_sqin = #rows × deckLength × gapWidth_in × 12; actualGpm = drainageArea_sqft × 90 gpm/sqft (empirical vertical flow)

Each gap between board rows is gapWidth × deck_length. Total open drainage area = row count × this. Empirical vertical flow rate ~90 gpm per sqft of gap area for 1/8-3/16″ gaps. Required GPM = deck_sqft × peak_rainfall_in/hr × 0.62 gal/sqft-in / 60 min. Pass if actual ≥ required.

Slope compliance
slope per ft >= 1/8″ (0.125″) for IRC R507.2.4 positive drainage

Deck must slope away from house at min 1/8″ per ft (1% grade). Pitch 3/16-1/4″ per ft is better for faster water shedding. Less than 1/16″ per ft = essentially flat = puddles + accelerated rot/mold. Frame the joists with 1/8″ drop per foot away from ledger.

Annual runoff volume
annualGal = deckArea × annualRainfall × 0.62 gal/sqft-in

Approximation assuming 100% runoff (no absorption from deck — concrete-equivalent runoff coefficient). Real value 85-95% depending on deck material. For 224 sqft deck × 42″ annual rainfall = ~5,800 gal/yr. Plan for dispersal: rain garden 0.5-1× deck area, dry well, or storm system connection.

Under-deck system cost
totalCost = (system $/sqft × deckArea) + (gutter $/lf × perimeter) + ceiling + fan + lighting + labor (35%) × 1.10 contingency

System pricing: Trex RainEscape $9.50/sqft, TimberTech DrySpace $8.80, Zip-UP $11.50, DeckDrain $7.20, DIY membrane $4.50. Gutter aluminum K-style $8.50/lf around perimeter. Ceiling separate $3.50/sqft if system doesn't include (DeckDrain, DIY membrane). Full roof add-on $4.20/sqft for insulation. Labor 35% of materials. 10% contingency.

Drainage capacity (under-deck)
system_drainage = systemCapacity (in/hr) × deckArea (gives max sustainable rainfall)

Trex RainEscape 4.0 in/hr, TimberTech DrySpace 4.5, Zip-UP 5.0, DeckDrain 3.5, DIY 3.0. Compare to your region's peak rainfall. NE region ~3.0 in/hr, S/Gulf coast ~4.5 in/hr. Systems should exceed peak by 25% margin. Trex passes nationally; DIY membrane may fail in Gulf storms.

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.

Get matched

Want 2–3 free quotes for this exact deck?

We'll send your plan to vetted local builders. Free, no obligation.

People also ask

Deck drainage questions, answered.

  • A membrane or trough system installs under the joists between the framing and the ground. Water that falls through deck board gaps OR slopes down the deck surface is captured by the system and channeled to a perimeter gutter, then to downspouts. Creates a dry finished ceiling underneath — usable as patio, storage, or conditioned outdoor room. Most popular brands: Trex RainEscape, TimberTech DrySpace, Zip-UP UnderDeck. Costs $7-12/sqft installed depending on system + complexity.

  • Optional but recommended for raised decks where the under-deck area is usable space. A standard deck without under-deck system drains through board gaps + slope to grade — works fine but the area underneath is wet, drippy, and unfinished. With an under-deck system, you get a finished dry patio space — adds significant home value and outdoor living square footage. Cost-benefit: ~$2,000-4,500 for a 200 sqft deck system, returns 60-75% at resale per RemodelingCost vs Value.

  • Both are top-tier systems, similar performance (4.0 vs 4.5 in/hr drainage). Trex RainEscape ($9.50/sqft) uses polypropylene troughs + downspouts under joists — works with ANY decking brand, more parts to install. TimberTech DrySpace ($8.80/sqft) uses snap-together vinyl panels that double as the ceiling — fewer parts, simpler install, but only fits TimberTech 12-16″ joist spacing. Both 25-yr warranty. Pick TimberTech if you want a clean modern panel look + your deck is composite. Pick Trex if you have an existing deck (different brand) or 24″ joist spacing.

  • IRC R507.2.4 requires minimum 1/8″ per foot (about 1% grade) AWAY from the house. Better practice: 3/16″ to 1/4″ per foot. This is achieved by framing the joists with a slight drop per foot away from the ledger. For a 14 ft deck spanning out from the house: ledger end is highest, far end is 14 × 1/8 = 1.75″ lower (or 14 × 1/4 = 3.5″ for 1/4″ per ft). The slope doesn't need to be visible to occupants but must be visible to water.

  • Standard: 1/8″ (0.125″) for wood, 3/16″ (0.1875″) for composite/PVC. Composite/PVC gets larger gap because boards expand more with temperature (5-6e-5 in/in/°F vs wood 2.5e-6). Too tight (< 1/16″): water doesn't drain, debris clogs, mold/mildew forms. Too wide (> 1/4″): looks unfinished, drops phones and pet paws. Match the gap to your decking material — manufacturers publish exact spec (Trex 3/16″ at install temp 60-80°F, AZEK same). Use the Expansion Gap Calculator on this site for thermal expansion math.

  • DIY EPDM membrane is doable for handy homeowners ($4.50/sqft material). Trex RainEscape + TimberTech DrySpace + Zip-UP are RTA systems that DIY-savvy homeowners can install with the manufacturer's video instructions — usually a 2-3 day weekend project. NOT DIY: Dec-K-ing or DeckDrain channel systems require professional install due to precise leveling. Pro install adds ~35% labor cost across all systems but ensures warranty validity + proper waterproofing. For a $4K material job, that's $1,400 labor = pay the pro unless you have construction experience.

  • Per sqft installed: DIY EPDM membrane $4.50, DeckDrain channels $7.20, TimberTech DrySpace $8.80, Trex RainEscape $9.50, Zip-UP UnderDeck $11.50. Add gutter $8.50/lf perimeter, lighting kit $285 per 100 sqft, ceiling fan $425. For a 224 sqft deck with Trex RainEscape + gutter + lighting: ~$2,400-3,200 installed. With Zip-UP premium system + full roof + fan + lighting: $4,800-6,500 installed. Includes 35% labor pct + 10% contingency.

  • Properly installed systems catch 95-98% of water. Some seepage at joist edges + perimeter is normal but minor. Major leaks indicate install error — most commonly: (1) inadequate slope on troughs/panels (must drain to gutter, 1/8″ per ft min), (2) failed sealant at joist-trough connection, (3) clogged gutter from leaves. Routine maintenance: clean gutters 2× per year, inspect sealant annually, replace any UV-damaged trough sections. With maintenance, top systems last 25-30 years.

  • Opposite — properly installed systems EXTEND joist life by 10-15 years because the joists stay drier. Joists in standard above-deck-only drainage are exposed to all rainfall + splash. With under-deck system, joists are above the membrane and stay dry. Verify install: the membrane should slope away from joists (water flows DOWNHILL into troughs), and joist tops should still receive ventilation (vent gaps at joist hangers). Wet joists from a FAILED under-deck system are worse than no system — fix leaks immediately.

  • Yes — most systems are designed for retrofit. Trex RainEscape, TimberTech DrySpace, Zip-UP all install from underneath without removing deck boards. DeckDrain channels also retrofit but require precise leveling. DIY EPDM membrane is retrofittable but messier. Process: clear under-deck area, install troughs/panels between joists, install perimeter gutter, install ceiling system, add lighting. Most installs take 2-4 days. Verify joist condition before retrofit — rotted joists must be sistered first.

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.

<!-- Deck Drainage Calculator — free embed by DeckMath -->
<a href="https://deckmath.com/calculators/deck-drainage-calculator"
   data-deckmath-calc="deck-drainage-calculator"
   data-theme="auto">Free Deck Drainage Calculator by DeckMath</a>
<script src="https://embed.deckmath.com/v1.js" async></script>
One tool · free · no signup

Plan the whole project, not just one number

The Deck Project Planner turns your dimensions into a complete material list, cost, 3D preview, and a PDF you can take to the lumber yard — all in one place.