Skip to content
UseCalcNow
DIY & Home

Deck Calculator — Boards & Framing

Calculate deck boards, joists, posts, and total lumber needed for your deck project. Get a complete material list and cost estimate for deck construction.

About This Calculator

Building a deck is a major DIY project, and ordering the wrong amount of lumber means either halting work mid-build or returning heavy boards to the lumber yard. Deck construction requires multiple material types: decking boards, joists, beams, posts, concrete footings, railings, and hardware — each calculated differently based on your deck dimensions and joist spacing. A 12×16 foot deck with 16-inch joist spacing needs 13 joists, 26 decking boards, and 6 concrete footings at minimum. Our deck calculator breaks down every component for a complete and accurate material list.

How to Use

  1. 1Enter deck length and width in feet.
  2. 2Set deck board width (5.5' for standard 2×6, 3.5' for 2×4).
  3. 3Set gap between boards (1/8' for composite, up to 1/4' for wood).
  4. 4Set joist spacing (16' standard, 12' for composite decking).
  5. 5Enter price per linear foot of decking board.
  6. 6Click Calculate for board count, joists, and cost.

When to Use

  • Building a deck and needing a complete lumber shopping list before the first trip to the yard
  • Comparing material costs between wood, composite, and PVC decking for the same deck size
  • Estimating DIY deck costs vs getting a contractor quote to see if the labor savings are worth it

Tips

  • Use 12-inch joist spacing for composite decking — 16-inch spacing may void the manufacturer warranty
  • Pressure-treated lumber shrinks as it dries — gap boards 1/8 inch when installing wet wood to allow for expansion
  • Budget for hidden fasteners, joist hangers, post anchors, and concrete — they add 20-30% to the lumber cost

Wood vs Composite Decking Materials

Pressure-treated pine costs $2–5 per linear foot and lasts 10–15 years with regular sealing. Cedar and redwood run $4–8 per linear foot but offer natural rot resistance without chemical treatment. Composite boards from Trex, TimberTech, or Fiberon cost $5–12 per linear foot upfront yet eliminate staining, sealing, and splintering for a 25–30 year lifespan. The break-even point is usually around year 12 — after that, the cumulative cost of wood maintenance exceeds the composite premium.

Composite decking expands and contracts more than wood, requiring specific fastening systems and 12-inch joist spacing instead of the standard 16 inches. Wood lets you sand out scratches and stains; composite does not. If you plan to paint or stain your deck a custom color, solid wood is the only practical choice. For framing lumber estimates across any material, the Lumber Calculator breaks down board feet and linear footage.

Footing Planning and Soil Conditions

Deck footings transfer the entire structure's weight to the ground, and getting them wrong means a deck that sags, shifts, or fails inspection. The International Residential Code requires footings to extend below the frost line — 42 inches in the upper Midwest, 12 inches in the deep South. Each footing must bear on undisturbed soil and carry a minimum of 1,500 psf. A typical 12×16 deck on 6 footings needs roughly 1 cubic yard of concrete for Sonotube-formed piers.

Sandy soil drains well but provides less bearing capacity than clay. Wet clay sites may need wider footings or helical piers to prevent settling. Before pouring, call 811 to mark underground utilities — it's free and legally required in most states. For a full material takeoff on the concrete needed for deck piers, the Concrete Slab Calculator converts cubic feet to bag counts, and the Gravel Calculator handles the base aggregate.

Railing Codes and Safety Requirements

Any deck surface more than 30 inches above grade requires a guardrail at least 36 inches tall (42 inches for commercial applications). Balusters must be spaced so a 4-inch sphere cannot pass through — this is the most common inspection failure for DIY decks. Corner posts should be bolted through the rim joist with through-bolts, not just nailed, because the lateral load at the top of a 36-inch rail multiplies the force on the connection.

Stair rails follow the same 4-inch baluster rule but need a graspable handrail profile between 1¼ and 2 inches in cross-section. Cable rail systems are popular for views but must be tensioned so a 4-inch sphere still can't pass through under 50 pounds of horizontal force. If your deck project includes privacy screens or border structures, the Fence Calculator can estimate posts, rails, and pickets for matching enclosures.

Deck Board Layout Patterns

Straight (perpendicular) patterns are the simplest to install and waste the least material — budget 10% overage for cuts. Diagonal (45-degree) patterns look more refined but require 12-inch joist spacing and 15–20% overage because every board end is a long angle cut. Herringbone and picture-frame patterns can waste 25% or more and demand precise miter joints that expand and contract at different rates, sometimes opening visible gaps seasonally.

Board length matters more than most DIYers realize. Standard decking comes in 8, 12, 16, and 20-foot lengths. Random-length installs save money but create a patchwork appearance. Running boards in a single continuous span looks cleanest but may force you to buy longer (and pricier) stock. If you're surfacing a multi-level platform, the Flooring Calculator applies similar waste-factor math to interior transitions.

Hidden Fasteners and Hardware

Face-screwing is the cheapest and strongest method, but visible screw heads collect dirt and detract from the finished look. Hidden fastener systems like Trex Hideaway, Camo Marksman, or TigerClaw clip into board edges or grooves and cost $1.50–3.00 per square foot. Pneumatic hidden-fastener guns speed installation dramatically but require composite boards with a machined groove — they won't work with square-edge stock.

Stainless steel fasteners are non-negotiable within 15 miles of saltwater; coated exterior screws are fine inland. Galvanized nails are acceptable for framing but not for decking — the cyclical withdrawal load from foot traffic works nails out over time. When planning the total protective finish for a wood deck, the Stain Calculator estimates gallons based on board surface area, and the Paint Calculator covers any painted risers or skirt boards.

Common Deck-Building Mistakes

The most frequent DIY deck failure is undersized joists or excessive joist spacing. A 2×6 joist spanning 12 feet on 16-inch centers will feel bouncy and may crack under a hot tub or gathering of people. Consult a span table before cutting — the IRC provides maximum spans by species, grade, and spacing. The second most common mistake is attaching a ledger board with only nails instead of through-bolts and lag screws, which can pull away from the house under load.

Flashing the ledger properly prevents water from seeping behind it and rotting the house band joist — a hidden failure that often goes unnoticed until the deck separates from the building. Skipping the building permit is another error that surfaces during resale; unpermitted decks must often be brought to code or removed before a sale closes. For ground-level platforms where excavation is involved, the Paver Calculator helps plan the sub-base, and the Mulch Calculator handles the surrounding landscape finish.

FAQ

Should I use 2×6 or 5/4 decking boards?

2×6 (actual 1.5×5.5") is stronger and better for spans over 16". 5/4 (actual 1×5.5") is fine for 16" joist spacing and has a slightly rounded profile many find more comfortable underfoot.

How far apart should deck joists be?

Wood decking: 16" on center. Composite decking: 12-16" depending on the manufacturer (check specs). Diagonal decking requires 12" spacing.

What is the average cost to build a deck?

Pressure-treated wood: $15-25/sq ft installed. Composite: $30-45/sq ft. PVC and hardwood: $35-60/sq ft. DIY saves roughly 50% vs hiring a contractor.

Related Calculators