Deck Calculator
Building a deck is one of the most common homeowner projects — and one of the most code-driven. The 2021 IRC Section R507 has five prescriptive tables that govern almost every dimension: joist span by species and spacing (R507.6), beam span by joist span supported (R507.5), post height by tributary area (R507.4), footing size by tributary area (R507.3.1), and ledger fastener spacing (R507.9.1.3). This calculator looks up all five for you.
Decking material is not interchangeable. Trex, TimberTech, AZEK, and Fiberon all require 16-inch on-center joist spacing perpendicular and 12-inch on-center diagonal — and only Deckorators Surestone (mineral-based composite) permits 24-inch on-center residential, which can drop the joist count by a full 33%. Pressure-treated 5/4×6 and 2×6 each have different spans. The calculator enforces the per-product ICC-ES rule rather than a single global default.
Built on 2021 IRC R507, AWC DCA 6 (the prescriptive companion), AWPA U1 use-category retention, ASTM A153/A653 hot-dip-galvanized hardware, ANSI/ASME B18.2.1 lag screws, and ICC-ES Evaluation Reports ESR-3168 (Trex), CCRR-0101 (TimberTech), ESR-4947 (Fiberon), and CCRR-0195 (Deckorators). Free, no signup.
Deck Calculator
Code-compliant deck framing, decking, footings, ledger, stairs, and railing — pulled directly from 2021 IRC Tables R507.6 / R507.5 / R507.4 / R507.3.1 / R507.9.1.3 and AWC DCA 6.
Deck size and site
Length runs in the joist direction; width runs along the ledger / outer beam
Pricing deck framing lumber by the board foot? Calculate it →
Framing species and attachment
Drives every prescriptive span — joist, beam, post, ledger fastener
Joists and beams must be UC4A ground-contact treated per AWPA U1 (they are critical to safety and difficult to repair). Hem-Fir / SPF group with DF-L in the 40 psf base table.
Decking material and layout
Drives joist spacing — composites need 16" o.c., Surestone is 24" o.c., wood depends on board thickness
Joist spacing is set automatically from the deck-board ICC-ES report. Trex, TimberTech, AZEK, Fiberon all require 16" o.c. perpendicular / 12" o.c. diagonal. Deckorators Surestone is the only major composite permitting 24" o.c. residential.
Not sure what 16" on-center means, or how far a joist can span? See the diagram
Stairs
IRC R311.7 — riser ≤ 7-3/4", tread ≥ 10" with nosing or 11" without
Guard / railing
IRC R312 — required where deck > 30" above grade
Planning rail sections? Calculate the railing run in linear feet →
How a deck frame goes together
Three things decide whether a deck is safe and lasts: how the load travels from the boards down to the footings, how far the joists can span at a given size and spacing, and how the ledger attaches to the house without rotting or pulling off. Here is each one.
The frame-anatomy section is why a deck take-off is a stack of separate framing lines, not one lumber number. Load runs decking to joists to the ledger and beam, down the posts, into footings below the frost line, and each of those members is counted on its own. The diagram is also why a joist can cantilever only so far past the beam — a limit the calculator holds.
The span-and-spacing plan explains two inputs homeowners routinely confuse. Spacing is the center-to-center distance across the joists; span is how far each joist reaches from ledger to beam, and a bigger joist or tighter spacing spans farther. The calculator needs both because together they set the joist size and count — mixing them up sizes the frame wrong.
The ledger-flashing cross-section is the connection behind most deck collapses, which is why the estimate includes flashing membrane and lateral ties, not just fasteners. The layers lap in a set order so water sheds outward, and the ledger is through-bolted, not nailed. These are small quantities that carry the whole deck — the diagram shows why they are non-negotiable.
The guard-and-handrail diagram is why the rail is a code job, not a trim job. A deck guard has to stand at least 36 inches high and no gap in it may let a 4-inch ball pass, while a stair down off the deck adds a graspable handrail 34–38 inches above the nosings. The same rules govern the deck edge and the stair, so the diagram covers both.
Calculation Formulas
Look up the maximum allowed joist span by framing species (Southern Pine vs. Douglas Fir-Larch / Hem-Fir / SPF incised vs. Redwood / Western Cedars), nominal size (2x6 / 2x8 / 2x10 / 2x12), and on-center spacing (12 / 16 / 24 in). The 40 psf live + 10 psf dead load case is the base table; snow loads of 50, 60, 70 psf use sub-tables (2)/(3)/(4).
Example:
Southern Pine 2x10 at 16" o.c. → 14'-0" maximum span. DF-L / HF / SPF (incised) 2x10 at 16" o.c. → 13'-7". Redwood / Cedar 2x10 at 16" o.c. → 13'-0".
Beam span is indexed by the joist span it supports. A wider deck (longer joist span) means the beam carries more load and spans less between posts. Multi-ply beams (2-2x10, 3-2x10, etc.) are nailed or bolted side-by-side and act as a single beam.
Example:
Southern Pine 2-2x10 supporting 12 ft of joist span → 7'-1" beam span. 3-2x10 same support → 8'-9". DF-L 2-2x10 supporting 12 ft → 5'-6".
Tributary area = (joist span / 2) × (beam span / 2 + half of cantilever). 4x4 posts are first permitted prescriptively in the 2021 IRC (DCA 6 historically required 6x6 minimum). Posts must be UC4A ground-contact treated per AWPA U1 and R507.4.2.
Example:
Southern Pine 6x6 post at 60 sq ft tributary → 14 ft maximum height. 4x4 at 60 sq ft tributary → 8'-11". 4x6 at 100 sq ft → 8'-7".
Footing size at 1500 psf default soil bearing. Footing must extend below frost line (12" Gulf Coast / 24"–30" Mid-Atlantic / 36"–42" Midwest / 48" New England / 60"+ Mountain West). 2021 IRC starts at 5 sq ft tributary (8" minimum diameter); 2018 IRC started at 20 sq ft.
Example:
60 sq ft tributary → 23" diameter round (or 21" × 21" square) × 9" thick. 100 sq ft → 30" round × 12" thick.
D and Depth in feet. Multiply by post count, add 10% spillage. 80 lb bag yields 0.6 cu ft; 60 lb bag 0.45 cu ft; 50 lb bag 0.375 cu ft. 2,500 psi compressive strength minimum (DCA 6 footnote 4).
Example:
12" × 48" tube: V = π × 0.5² × 4 = 3.14 cu ft → 6 × 80 lb bags. 23" × 48" tube: V = π × (23/24)² × 4 = 11.5 cu ft → 20 × 80 lb bags.
On-center spacing for 1/2" lag screws, through-bolts, or expansion / adhesive anchors at 50 psf total load (40 + 10). Tighter for longer joist spans. Edge distances per Table R507.9.1.3(2): 2" from top of ledger, 3/4" from bottom; 3/4" from top of band joist, 2" from bottom; 2" from ends; 5" max vertical row separation; staggered top-to-bottom.
Example:
12 ft joist span, 1/2" lag, 1/2" sheathing → 15" o.c. So a 16 ft (192") ledger needs 192 / 15 = 12.8 → 13 lag screws staggered.
Wood gap is typically 1/8" between boards (boards swell when wet, shrink when dry — 1/8" allows movement). Composite gap is 3/16" typical (Trex, TimberTech, Fiberon). PVC gap is 3/16" + thermal expansion allowance.
Example:
200 sq ft deck (12 × 16) with Trex Transcend 5.5" face + 3/16" gap = 5.6875" effective: 192 × 12 / 5.6875 = 405 LF. With 16 ft boards: 405 / 16 = 26 boards before waste, 27 with 10% waste.
On-center spacing creates N-1 bays plus the two outer joists. Add 1 ledger and 1 outer rim joist (often the same size as joists). Joists are perpendicular to the ledger; spacing is set by the deck-board ICC-ES report.
Example:
12 ft wide deck at 16" o.c.: ⌈ 144 / 16 ⌉ + 1 = 9 + 1 = 10 joists. At 24" o.c. (Surestone composite): ⌈ 144 / 24 ⌉ + 1 = 7 joists — a 30% reduction.
Maximum riser 7-3/4", minimum 4". Tread depth ≥ 10" with nosing or 11" without nosing. Risers and treads must vary ≤ 3/8" within a flight. Comfort rule: 2R + T = 24"–25" (Blondel formula).
Example:
48" total rise: ⌈ 48 / 7.75 ⌉ = 7 risers @ 6.86" each, 6 treads @ 11" = 66" total run. Blondel check: 2 × 6.86 + 11 = 24.7 → comfortable.
1.5" square baluster + 4" max gap = 5.5" on-center → 2.18 balusters per linear foot. 3/4" round baluster + 4" max gap = 4.75" on-center → 2.53 / LF. 4-inch sphere rule applies generally; 6-inch sphere at the stair triangle (riser-tread-rail); 4-3/8" sphere at stair guard openings.
Example:
30 LF of guard rail with 1.5" square balusters: 30 × 12 / 5.5 = 65.5 → 66 balusters. With 3/4" round: 30 × 12 / 4.75 = 75.8 → 76 balusters.
Cantilever past the outer beam is limited to L/4 of the main span OR the table value, whichever is shorter. Cantilever assumes L/180 deflection with a 220 lb point load.
Example:
12 ft main span → max cantilever 12 / 4 = 3 ft. A 2x10 SP at 16" o.c. table cantilever ~3'-6" — so 3 ft governs.
Standard Constants
| Constant | Value | Description |
|---|---|---|
| Live Load (Decks) | 40 psf uniform | IRC Table R301.5. Stairs: 40 psf uniform OR 300 lb concentrated on a 4 sq in area, whichever is greater. Guard top rail: 200 lb concentrated, any point. Guard infill: 50 lb on 1 sq ft (need not act with top-rail load). |
| Dead Load Assumed | 10 psf | IRC R507 prescriptive tables assume 10 psf dead load. Heavier finishes (stone or concrete pavers, hot tub) push past prescriptive limits and require engineered design. |
| Soil Bearing | 1,500 psf default | IRC R507.3.1 default. Higher capacity (2,000 / 2,500 / 3,000 psf) is permitted with documentation but typically requires a soils investigation. Conservative default. |
| Concrete Strength | 2,500 psi minimum | DCA 6 Table 4 footnote 4. Standard ready-mix and bagged concrete easily meet this; 80 lb bags are typically labeled 4,000 psi. |
| Concrete Bag Yields | 80 lb = 0.6 cu ft / 60 lb = 0.45 / 50 lb = 0.375 | Per Quikrete and Sakrete TDS. 45 × 80 lb bags per cubic yard. Always round up and add 10% spillage waste for footing pours. |
| Frost Depth | 12" Gulf Coast → 60" Mountain West | IRC R301.2(1) / R403.1.4.1 — varies by jurisdiction. Footing must extend below the local frost line. Common values: 12" Florida, 24"–30" Mid-Atlantic, 36"–42" Midwest, 48" New England southern, 60"+ Mountain West, Northern New England, North Dakota. |
| Joist Hanger Capacity | LUS28 ≥ 500 lb / LUS210 ≥ 600 lb (DCA 6 minimum) | Simpson LUS series — published LUS26 410 lb, LUS28 600 lb, LUS210 740 lb. ZMAX = G185 hot-dip galvanized (1.85 oz/sq ft); stainless required ≤ 300 ft of saltwater. Simpson N10 (10d × 1-1/2") nails in all face & triangle holes — deck screws and roofing nails are NOT permitted. |
| Lateral Hold-Down Capacity | 2 × 1,500 lb (DTT2Z) or 4 × 750 lb (DTT1Z) | IRC R507.9.2 requires lateral-load connection at every ledgered deck. Two locations within 24" of each end of the deck, OR four locations spread along the length. Mandatory regardless of deck size. |
| Composite Joist Spacing | 16" o.c. perp / 12" o.c. diagonal (general) | Trex, TimberTech, AZEK, Fiberon all require 16" o.c. perpendicular and 12" o.c. diagonal joist spacing per their ICC-ES reports. Stair-tread span is limited to 12" o.c. for nearly all composite products. Deckorators Surestone is the only major composite permitting 24" o.c. residential per CCRR-0195. |
| Stainless Coastal Threshold | 300 ft from saltwater | IRC R507.2.3 / DCA 6 Min. Req. — Type 304 or 316 stainless steel hardware required within 300 ft of saltwater shoreline. 316 (with molybdenum) preferred for splash, salt fog, or pool-deck applications. Cost typically 4–6× HDG. |
Note: All calculations include appropriate waste factors based on project complexity and material type. Results are estimates and should be verified by professionals before purchasing materials.
2021 IRC Section R507 — Exterior Decks(IRC R507)
View StandardThe most widely adopted current US residential code section governing exterior decks. The 2024 IRC retains the same R507 numbering with minor editorial changes; joist (R507.6), beam (R507.5), post (R507.4), footing (R507.3.1), and ledger (R507.9.1.3) tables are unchanged in content. The 2021 IRC introduced three substantive changes from 2018: snow-load options (40/50/60/70 psf), an expanded post table allowing 4x4s up to 14 ft at small tributary areas, and a footing table starting at 5 sq ft (8" minimum diameter) instead of 20.
Key Requirements:
- •R507.6 joist span tables for Southern Pine, Douglas Fir-Larch, Hem-Fir, SPF, Redwood and Western Cedars at 12 / 16 / 24 in. o.c.
- •R507.5 beam span tables for single-ply and multi-ply beams across 6–18 ft of supported joist span
- •R507.4 post height table — 4x4, 4x6, 6x6, 8x8 by tributary area up to 160 sq ft and 14 ft height
- •R507.3.1 footing size table at 1,500 psf default soil bearing — round, square, and minimum thickness
- •R507.9.1.3(1) ledger fastener spacing — lag screws, through-bolts, expansion and adhesive anchors
- •R507.9.2 mandatory lateral-load connection — 2 × 1,500 lb or 4 × 750 lb per deck
AWC DCA 6 — Prescriptive Residential Wood Deck Construction Guide(AWC DCA 6 (2018 reprint based on 2015 IRC))
View StandardAmerican Wood Council's prescriptive companion document. The 2018 reprint reflects 2015 IRC. Multiple jurisdictions still cite DCA 6 directly. DCA 6 covers ONLY ledgered, single-level decks with deck length ≤ deck width and area ≤ 200 sq ft — past those limits, engineered design is required. Where DCA 6 and 2021 IRC differ, 2021 IRC governs (e.g., 2021 IRC permits 4x4 posts; DCA 6 still requires 6x6 minimum).
Key Requirements:
- •Maximum deck area 200 sq ft for prescriptive scope
- •Joist span ≤ 18 ft and beam span ≤ 18 ft prescriptively
- •Length ≤ width (long-narrow decks excluded)
- •Hot tubs and concentrated loads > 100 psf excluded
- •Free PDF download from American Wood Council
AWPA U1 — Use Category System for Pressure-Treated Lumber(AWPA U1)
View StandardAmerican Wood Protection Association standard defining preservative retention by Use Category. UC4A is required for ground-contact members and members "difficult to maintain, repair or replace and critical to the performance and safety of the entire system" — which the standard explicitly states INCLUDES joists and beams in deck framing. UC3B above-ground retention is NOT sufficient for joists, beams, or ledgers.
Key Requirements:
- •UC3B above-ground: ACQ 0.25 pcf / CA-B 0.10 / CA-C / MCA 0.06 — for decking boards in ventilated installation
- •UC4A ground-contact: ACQ 0.40 pcf / CA-B 0.21 / CA-C / MCA 0.15 — required for joists, beams, ledger, posts
- •UC4B heavy-duty: ACQ 0.60 / CA-B 0.31 / CA-C / MCA 0.23 — for permanent wood foundation, salt-splash zone
- •End tags required on every piece showing treatment, retention, and certification
- •Brushed-on field cuts of preservative on every saw cut and drilled hole
ASTM A153 / A653 — Hot-Dip Galvanized Hardware(ASTM A153 / A653)
View StandardFederal standards for zinc coating on iron and steel hardware exposed to weather. ASTM A153 governs cast and wrought hardware (nails, bolts, lag screws); ASTM A653 governs sheet-steel connectors (joist hangers, post bases, hold-downs). G185 designation = 1.85 oz of zinc per sq ft of sheet-steel surface — the minimum compliant rating for ACQ / MCA / CA-C pressure-treated lumber per IRC R317.3.
Key Requirements:
- •ASTM A153 Class D (≤ 3/8" fasteners) and Class C (> 3/8")
- •ASTM A653 G185 minimum for sheet-steel connectors in PT applications (Simpson ZMAX)
- •ASTM B695 Class 55 mechanically deposited zinc as alternative
- •Stainless steel (Type 304 or 316), silicon bronze, or copper required within 300 ft of saltwater
- •Stainless 316 (with molybdenum) preferred for direct splash, salt fog, pool decks
ICC-ES Evaluation Reports — Composite & PVC Deck Boards(ESR-3168 / CCRR-0101 / ESR-4947 / CCRR-0195)
View StandardICC Evaluation Service reports establishing each composite or PVC deck-board product's compliance with ASTM D7032 (plastic composite deck boards / treads / guards / handrails) and the IRC. Reports are revised periodically. The product database in the calculator stores ESR/CCRR number and revision date for each material so users can verify against the manufacturer's current installation guide.
Key Requirements:
- •ESR-3168 — Trex Enhance / Select / Transcend / Signature: 16" o.c. perp / 12" o.c. diagonal / 12" o.c. stair tread
- •CCRR-0101 — TimberTech / AZEK EDGE / PRO / AZEK Vintage / Harvest / Arbor: 16" o.c. perp / 12" o.c. stair
- •ESR-4947 — Fiberon Promenade / Concordia / Good Life: 16" o.c. perp / 12" o.c. diagonal / 12" o.c. stair
- •CCRR-0195 — Deckorators Voyage / Vault Surestone: 24" o.c. perp / 16" o.c. diagonal (only major product permitting 24" o.c.)
- •ASTM D7032 plastic composite physical / mechanical / fire performance
ANSI/ASME B18.2.1 — Lag Screws and Through-Bolts(ANSI/ASME B18.2.1 / B18.6.1)
View StandardDimensional and performance standards for lag screws (square or hex head, full thread to within 1" of head) and machine bolts. IRC R507.9.1.3 specifies 1/2" lag screws or through-bolts for ledger attachment, with pre-drill specifications: 1/2" diameter through ledger and sheathing; 5/16"–3/8" through band joist for lag screws; 17/32" to 9/16" through-bolt clearance hole.
Key Requirements:
- •1/2" lag screw with thread length ≥ depth of band joist (typically 3-1/2" or longer)
- •1/2" through-bolt with washer on both sides; clamp washer-to-washer through full assembly
- •FastenMaster LedgerLOK and ThruLOK structural screws are ICC-ES approved alternatives (ESR-1078)
- •Pre-drill mandatory in pressure-treated lumber to prevent splitting
- •Edge distances per IRC Table R507.9.1.3(2) — non-negotiable
ASTM D7032 — Plastic Composite Deck Boards, Treads, Guards, Handrails(ASTM D7032)
View StandardStandard specification for the establishment of performance rating for polymeric exterior profiles (deck boards, stair treads, guards, handrails). Required by IRC R507.2.2 and R311.7.5.4 for any composite or PVC deck product. Composite stair treads are a special case — most are limited to 12" o.c. stringer spacing regardless of their span on a flat deck.
Key Requirements:
- •Bending strength (modulus of rupture), modulus of elasticity, density
- •Slip resistance (wet and dry), thermal expansion, water absorption
- •Flame spread index per ASTM E84 (Class B for most composite boards)
- •Termite resistance and decay resistance
- •Stair-tread label showing maximum allowable span
ASTM F1667 — Driven Fasteners(ASTM F1667)
View StandardFederal specification for nails, brads, spikes, staples, and pneumatic fasteners. Establishes dimensions, materials, and finishes for hot-dip galvanized, electroplated, and stainless steel nails. Simpson N10 joist-hanger nails are 10d × 1-1/2" hot-dip galvanized common nails meeting ASTM F1667.
Key Requirements:
- •Common nails: 8d (2-1/2") and 10d (3") for general framing
- •Joist hanger nails: 10d × 1-1/2" (Simpson N10) — ALL face & triangle holes
- •Deck-board face screws: #8 or #10 × 2-1/2" composite-rated (Starborn, Headcote)
- •Length rule for face screws: ≥ 2.5× board thickness
- •Stainless required ≤ 300 ft of saltwater shoreline
Standards Disclaimer: Standards and codes are subject to periodic updates. Always verify current requirements with local building authorities and professional engineers before beginning construction. Links provided are for reference only.
Snow Load by Climate Zone
IRC R507.6 / R507.5 sub-tables — 40 / 50 / 60 / 70 psf
The 2021 IRC introduced four span sub-tables — Tables R507.6(1) through R507.6(4) and R507.5(1) through R507.5(4) — covering 40, 50, 60, and 70 psf ground snow loads. Going from 40 to 60 psf typically steps up the joist by one nominal size; 70 psf often requires the next size beyond that or tighter on-center spacing.
Regional Examples:
Frost Depth and Footing Embedment
IRC R301.2(1) / R403.1.4.1 — 12" Gulf Coast to 60"+ Mountain West
Footings must extend below the local frost line so freezing soil doesn't heave the deck. Frost depth varies by jurisdiction and is published in the IRC's locally adopted Table R301.2(1) — never use an estimate from a national map; pull the value from your building department.
Regional Examples:
Coastal / Saltwater Hardware Upgrade
IRC R507.2.3 — within 300 ft of saltwater requires Type 304 / 316 stainless
When the deck is within 300 ft of saltwater shoreline, every hardware item — joist hangers, post bases, post caps, hold-downs, ledger fasteners, deck screws, lag screws, through-bolts — must be Type 304 or 316 stainless steel. This is a code requirement, not a recommendation. Galvanized hardware in salt fog corrodes through within 5–10 years and pulls itself out of the lumber.
Regional Examples:
California — CRC, Wildland-Urban Interface, 42" Guards
Title 24 amendments and WUI fire zones
California's Residential Code (CRC, 2022 edition based on 2021 IRC) follows R507 closely but adds Wildland-Urban Interface (WUI) fire zone amendments per CBC Chapter 7A and locally amended 42" guard heights in some jurisdictions. WUI requires ignition-resistant decking — Class B or A flame spread per ASTM E84 / UL 723 — covering most of the foothill and hillside counties.
Regional Examples:
Florida HVHZ — Wind Zone and Product Approval
FBC Residential 2023 / 2020, HVHZ counties
Florida Building Code (FBC) Residential adopts most of IRC R507 but adds the High-Velocity Hurricane Zone (HVHZ) overlay in Miami-Dade and Broward counties. HVHZ requires Florida Product Approval (FPA) or Notice of Acceptance (NOA) on every railing, decking product, fastener, and connector. 180 mph wind zones increase lateral connection and uplift detailing.
Regional Examples:
Pacific Northwest — Snow, Rain, Cedar Tradition
WA / OR amendments — 60 psf snow, cedar / hemlock framing
Washington and Oregon counties widely default to 50 or 60 psf ground snow loads, which steps lumber up at least one nominal size from the IRC base. The Cascades and Olympic peninsula push 70 psf in some counties. Cedar and Douglas Fir are tradition-driven framing species; Western Red Cedar is sometimes used for posts and beams in dry installations despite its lower load capacity vs. PT Southern Pine.
Regional Examples:
Northeast Snow Belt and Frost — Deepest Footings
NY / VT / NH / ME / MA — 50–70 psf snow, 48–72" frost
Combined snow + frost design here is the most demanding in the country. Vermont and New Hampshire counties routinely require 60 psf snow load and 60-72" footing depth. The deck pour for a 200 sq ft deck can use 40+ bags of concrete — at the upper end of homeowner-feasible without ready-mix delivery.
Regional Examples:
Before You Build
- •Contact your local building department for specific requirements
- •Verify frost line depths, wind zones, and seismic requirements for your area
- •Check if permits are required and schedule required inspections
- •Consult with a local contractor familiar with local codes
Share this calculator with your customers
Run a contractor site, supply store, or blog? Drop this free deck calculator straight onto your own page so your visitors can estimate materials without leaving. No signup, works on any website — just copy and paste.
Want to Learn More?
Deck-building reference based on 2021 IRC R507 and AWC DCA 6: joist spans, beam spans, footings, ledger fasteners, decking, stairs, and railings.
Read the Deck Construction GuideSize a dumpster for this debris
Don't guess at the container size — overage fees run $100–$300+ when you hit the weight cap or fill past the line. See the right size for this material.
Get the right dumpster size →
Related Calculators
Deck Beam Span Calculator
How far can a deck beam span? Free calculator for beam size, ply, post spacing, footing & cantilever from the joist span it carries — per IRC R507.5 / DCA 6.
Deck Stain Calculator
Instantly calculate deck stain gallons by wood type—cedar, pine, composite. Covers surface, railings & stairs separately. Free, fast, no signup needed.
Joist Span Calculator
Free joist span calculator: max spans for floor and deck joists by species, grade, size, and spacing per IRC R502.3.1 and R507.6. No signup.
Stairs Calculator
Code-compliant stair geometry, stringers & materials per 2021 IRC R311.7 / 2024 R318.7. Straight, L, U, winder, spiral & curved. AWC DCA 6 stringer spans. Free.
Board Foot Calculator
Free board foot calculator: build a lumber cut list and get total board feet, MBF, pieces and linear feet. Nominal sizes or custom hardwood, no signup.
How to Use This Calculator
- Enter deck size: length runs in the joist direction (ledger to outer beam); width runs along the ledger / outer beam.
- Set height above grade and ground snow load (40 psf base for most US; 50/60/70 psf step into IRC R507 sub-tables).
- Enter your local frost depth and toggle "within 300 ft of saltwater" — saltwater proximity upgrades all hardware to Type 304/316 stainless per IRC R507.2.3.
- Pick framing species (PT Southern Pine #2 is the national default; DF-L / Hem-Fir / SPF are incised; Redwood and Western Cedars are a separate row in IRC R507.5/R507.6).
- Pick attachment: ledgered to house (most common) or freestanding (replaces the ledger with a second beam — no lateral hold-downs to band joist needed). For ledgered, pick fastener (1/2" lag screw or 1/2" through-bolt) and house sheathing thickness.
- Pick the deck board: PT 5/4×6, PT 2×6, cedar, redwood, Ipe / Cumaru tropical, Trex / TimberTech / AZEK / Fiberon composite, or Deckorators Surestone (24" o.c. permitted). The calculator looks up the per-product joist spacing automatically.
- Pick board layout (perpendicular 10% waste / diagonal 15% / picture frame 15% / herringbone 20%) and stock board length (8/10/12/16/20 ft).
- Toggle stairs (enter total rise and width) and railing (36" residential or 42" California / Washington / IBC commercial). Pick baluster type for the count math (1.5" square at 5.5" o.c. or 3/4" round at 4.75" o.c.).
- Click Calculate: see joist size with max span, beam size with max span between posts, post size with tributary area, footing diameter and depth, concrete bag count, ledger fastener count and spacing, joist hangers, deck board count with waste, stair geometry (riser height, tread depth, Blondel check, stringers), and railing balusters and rail posts.
How the Five IRC R507 Tables Combine
The five 2021 IRC R507 tables form a dependency chain. R507.6 sets the joist size from species, size, and spacing — your decking material drives the spacing (16" o.c. for most composites, 24" for Surestone). R507.5 then sets the beam size from the joist span supported and target post spacing. R507.4 sets the post size from the tributary area (joist span × post spacing / something) and the post height (deck height above grade). R507.3.1 sets the footing size from the same tributary area at 1,500 psf default soil bearing. R507.9.1.3 sets the ledger fastener spacing from the joist span supported and the fastener type. Plus IRC R507.9.2 mandates 2 × 1,500 lb hold-downs (Simpson DTT2Z) on every ledgered deck regardless of size. The calculator runs all six lookups in sequence so the framing, fasteners, and concrete are internally consistent.
Frequently Asked Questions
What size joists do I need for a deck?
Joist size comes straight from IRC Table R507.6. For pressure-treated Southern Pine #2 — the most common framing — 2x6 spans 9'-0" at 16" o.c., 2x8 spans 11'-10", 2x10 spans 14'-0", and 2x12 spans 16'-6". Douglas Fir-Larch / Hem-Fir / SPF (incised) span ~3% less and Redwood / Western Cedars span ~7% less. Span here means ledger to outer beam. Spacing is set by your decking material — 16" o.c. for nearly all composites and PVC; 24" o.c. only for Deckorators Surestone (the only major composite with that rating per CCRR-0195). Snow loads above 40 psf step into IRC R507.6 sub-tables (2)/(3)/(4) — typically one nominal size up at 60 psf and beyond. The joist span diagram shows how far each size reaches at 16 and 24 inch spacing.
How do I size a deck beam?
IRC Table R507.5 sizes the beam by the joist span it supports. A 2-2x10 Southern Pine beam supporting 12 ft of joist span allows 7'-1" between posts; supporting 14 ft allows 6'-6". Going up to 3-2x10 buys 8'-9" and 8'-3" respectively. DF-L drops those beam spans about 23% at the short end (6 ft joist span) and ~12% at the long end (18 ft). The 2021 IRC also added a single-ply column (1-2x10) for short joist spans. Beam span is prescriptively limited to 18 ft regardless of size — past that, engineered design is required. The calculator picks the smallest 2-ply or 3-ply beam that fits and tells you how many posts you need. The deck frame diagram shows how the beam carries the joists down to the posts.
Can I use 4x4 deck posts?
Yes, in the 2021 IRC — for the first time prescriptively. IRC Table R507.4 permits 4x4 Southern Pine posts up to 14 ft tall at 20 sq ft tributary area, dropping to 4'-6" at 160 sq ft. DCA 6 historically required 6x6 minimum on every deck regardless of tributary area, and many local jurisdictions still enforce that as habit. 4x6 is a comfortable middle ground (14 ft at 40 sq ft, 8'-7" at 100 sq ft). 6x6 hits 14 ft up through 120 sq ft tributary in Southern Pine. All deck posts must be UC4A ground-contact treated per AWPA U1 and IRC R507.4.2 / R317.1.4.
What size footings do I need for a deck?
IRC Table R507.3.1 sizes the footing by tributary area at 1,500 psf default soil bearing. 5 sq ft → 8" diameter × 6" thick; 20 → 14" round; 40 → 19" round × 7" thick; 60 → 23" round × 9" thick; 80 → 27" × 11"; 100 → 30" × 12"; 120 → 33" × 13"; 140 → 35" × 14"; 160 → 38" × 15". Footings must extend below the local frost line — 12" Gulf Coast, 24"–30" Mid-Atlantic, 36"–42" Midwest, 48" Southern New England, 60"+ Mountain West and Northern Maine. Concrete volume is V = π × (D/2)² × Depth, with 80 lb bags yielding 0.6 cu ft each. Always round up and add 10% spillage.
How many lag screws do I need for a deck ledger?
IRC Table R507.9.1.3(1) sets the on-center spacing for 1/2-inch lag screws into a band joist with ≤ 1/2-inch sheathing at 50 psf (40 + 10 dead). For a 6 ft joist span: 30" o.c.; 8 ft: 23"; 10 ft: 18"; 12 ft: 15"; 14 ft: 13"; 16 ft: 11"; 18 ft: 10". Through-bolts at 1/2" allow significantly wider spacing. So a 16 ft (192") ledger with a 12 ft joist span needs 192 / 15 = 13 lag screws, staggered top-to-bottom in two rows. Edge distances (Table R507.9.1.3(2)): 2" from top of ledger, 3/4" from bottom; 3/4" from top of band joist, 2" from bottom; 2" from ends; 5" max vertical row separation. The ledger connection diagram shows the flashed, through-bolted ledger.
Do I need lateral-load hold-downs on a deck?
Yes — IRC R507.9.2 makes lateral-load connection mandatory on every ledgered deck regardless of size. Standard prescriptive solution is two Simpson DTT2Z hold-downs (1,500 lb each) within 24" of each end of the deck, with 1/2" × 6" SDS rods through the band joist into a floor joist below. The four-location alternative is four DTT1Z hold-downs at 750 lb each, evenly spread along the ledger. This is non-negotiable — it's the most common reason ledgered decks fail catastrophically (the deck pulls itself off the house in shear).
Can I use composite decking on 24-inch on-center joists?
Generally no. Trex (ESR-3168), TimberTech / AZEK (CCRR-0101), Fiberon (ESR-4947), and most Deckorators wood-plastic composite lines all require 16-inch o.c. perpendicular and 12-inch o.c. diagonal joist spacing. The single major exception is Deckorators Voyage and Vault — both Surestone mineral-based composite — which permit 24-inch o.c. residential perpendicular per CCRR-0195. Surestone is also ~35% lighter than wood-plastic composite and warranted for ground/water contact. If you're using any other composite or PVC, plan for 16" o.c. and the joist count that goes with it.
How thick should my deck boards be?
Pressure-treated 5/4×6 (1" × 5-1/2" actual) is the most common wood deck board — sized for 16" o.c. joist spacing. PT 2×6 (1-1/2" × 5-1/2") allows 24" o.c. residential. Cedar and redwood are typically 5/4×6 or 1×6 nominal at 16" o.c. Composite boards run 0.82"–1.00" thick (Trex Select 0.82", Trex Enhance 0.94", TimberTech PRO 1.00", AZEK 1.00", Fiberon Concordia 0.93"). Tropical hardwoods (Ipe, Cumaru) are sized 5/4×6 nominal which actually measures ~1" × 5-1/2". The thicker the board, the wider the on-center spacing it tolerates — but always check the manufacturer's ICC-ES report rather than guessing.
What's the difference between UC3B and UC4A pressure treatment?
AWPA U1 Use Category — UC3B is above-ground retention (ACQ 0.25 pcf, MCA 0.06), UC4A is ground-contact retention (ACQ 0.40 pcf, MCA 0.15). AWPA U1 explicitly states that UC4A is required for members "difficult to maintain, repair or replace and critical to the performance and safety of the entire system" — and lists joists and beams as examples. So even on a deck where joists never touch the ground, they must be UC4A treated. UC3B is suitable for the deck boards themselves on ventilated installation. Look for the end tag on every piece.
Do I need stainless hardware near the ocean?
Yes — IRC R507.2.3 (and DCA 6 Min. Req.) require Type 304 or 316 stainless steel hardware on every connector, fastener, and screw within 300 ft of saltwater shoreline. 316 (with molybdenum) is preferred for direct splash, salt fog, or pool decks. Galvanized hardware in salt fog corrodes through within 5–10 years and pulls itself out of the lumber — this is one of the most common causes of catastrophic deck failure on coastal decks. Cost is typically 4–6× the HDG equivalent. Hawaii, parts of California, and many local jurisdictions extend the requirement to 500–1,000 ft inland because of trade-wind salt drift.
What are the IRC stair code requirements for a deck?
IRC R311.7: maximum riser height 7-3/4" (R311.7.5.1), minimum 4"; minimum tread depth 10" with nosing or 11" without nosing (R311.7.5.2); riser and tread variation 3/8" max within a flight; minimum stair width 36" clear above handrail; headroom 6'-8" minimum; max vertical rise per flight 12'-7" before a landing is required. Handrail required at 4 or more risers (R311.7.8) — height 34"–38" above tread nosing, Type I (1-1/4"–2" graspable) or Type II (4"–6-1/4" perimeter with finger recess), 1-1/2" wall clearance. Stringer rules: solid 2x12 spans up to 13'-3" with stringers ≤ 18" o.c.; cut stringers must leave ≥ 5" of residual material under the tread cut.
How tall should the deck guard rail be?
IRC R312 sets 36" minimum residential guard height — required where the walking surface is more than 30" above grade (within 36" horizontally of the edge). California Residential Code (CRC R312.1.2 amendment) and Washington State require 42" in many jurisdictions; IBC requires 42" universally for commercial. Stair guard height is 34" minimum measured from the nosing line. Sphere rule: 4" sphere shall not pass at general guards; 6" sphere at the stair triangle (riser/tread/rail intersection); 4-3/8" sphere at stair guard openings. Top-rail load: 200 lb concentrated at any point. The 2021 IRC relaxed the "any direction" requirement — guards no longer need to resist inward/upward force. The guard and handrail diagram shows the 36″ guard height and the 4-inch gap rule.