Calculate deck boards, joists, railing balusters, and screws for your deck — free and instant.
How to Use This Decking Calculator
Enter your deck's length and width in feet. Select your deck board material — pressure-treated, cedar, or composite. Adjust the board face width and gap spacing (1/8" for wood, 3/16" for composite). Choose joist spacing based on your framing plan. If your deck has railing, enter the railing length for baluster count. The calculator estimates boards, joists, balusters, and screws based on standard construction practices.
How to Calculate Deck Materials: A Complete DIY Guide
Building a deck is the #1 ROI home improvement project — a wood deck recoups 65-75% of its cost at resale (Remodeling Magazine). But material takeoffs are tricky: deck boards come in set lengths, joists are spaced on center, and railings have code requirements that affect spacing. Here's everything you need to calculate correctly.
Deck Boards: Width, Gap, and Linear Feet
The core formula: Number of boards = Deck width (inches) ÷ (board face width + gap). A 12-foot wide deck = 144 inches. With 5.5-inch boards and 1/8" gaps: 144 ÷ 5.625 = 25.6 → 26 boards. But that assumes every board runs the full deck length with no seams. In reality, decks longer than the available board length need butt joints with staggered seams.
Standard deck board lengths: 8', 10', 12', 16', 20'. If your deck is 16 feet long and you're using 12-foot boards, you'll need a seam. Always stagger seams — never align two butt joints on the same joist. For a 16×12 deck with 12-foot boards, you might run 26 rows of boards, with about 13 of them needing a 4-foot splice piece. This adds ~15% more linear footage beyond the simple calculation.
Material Comparison: Cost, Maintenance, and Lifespan
- Pressure-Treated Pine ($2-4/sq ft for decking): The workhorse. Southern yellow pine treated with alkaline copper quaternary (ACQ) or micronized copper azole (MCA). Lasts 15-20 years with annual sealing. Tends to warp, crack, and splinter over time. Use stainless steel or coated deck screws — the copper treatment corrodes standard fasteners. Most affordable, widely available, but highest maintenance.
- Cedar / Redwood ($4-7/sq ft): Natural beauty that's hard to beat. Contains natural oils (tannins) that resist rot and insects. Softer than pressure-treated pine — dents more easily from furniture and dropped tools. Weathers to a silver-gray if left unsealed (some people love this look). Needs sealing every 2-3 years to maintain color. Best for covered porches and low-traffic decks where the look justifies the premium.
- Composite / PVC ($6-12/sq ft): Wood fiber + recycled plastic blend (or pure PVC for high-end brands like Azek). Won't rot, splinter, or warp. No sealing or staining ever. The trade-off: it's heavier (needs 12" OC joists for perpendicular installs), more expensive upfront, and can get hot underfoot in direct sun (lighter colors help). Over 25 years, the total cost of ownership is often lower than wood when you factor in stain, sealer, and replacement boards.
Joist Layout and Blocking
Deck joists typically run perpendicular to the house, supported by a ledger board on the house side and a beam on the outer side. Standard sizing: 2×8 joists span up to 12 feet, 2×10 spans up to 15 feet, and 2×12 spans up to 18 feet (all at 16" OC, per IRC span tables for 40 PSF live load). Your beam (often a doubled 2×10 or 2×12) sits on 6×6 posts spaced every 6-8 feet.
For deck boards running perpendicular to joists: number of joists = (deck length × 12 ÷ joist spacing) + 1. A 16-foot deck at 16" OC = (192 ÷ 16) + 1 = 13 joists. For diagonal decking: use 12" OC regardless of board thickness, and add blocking between joists where diagonal boards meet the rim joist at odd angles.
Railing Code Requirements
IRC R312 requires guardrails on any deck more than 30 inches above grade. Key requirements: railing must be 36 inches minimum height (42" in some jurisdictions), balusters spaced so a 4-inch sphere cannot pass through (this means 3.5-3.75" actual spacing for 2×2 balusters, or about 3.9" for 1.5" round metal balusters), and the railing must resist 200 lbs of lateral force at any point. For stair railings: handrail at 34-38 inches above the stair nosing, balusters at the same 4-inch sphere rule.
Screws and Fasteners: The Hidden Cost
Deck screws add up fast. A good rule of thumb: 2 screws per board per joist intersection. On a 16×12 deck with boards running perpendicular and joists at 16" OC: 26 boards × 13 joists × 2 screws = 676 screws. Add 10% for mistakes and dropped screws = ~750 screws. For 2×6 deck boards, use 2.5" or 3" coated deck screws. For composite, use the manufacturer's specified hidden fastener system or color-matched composite screws with a special head profile that self-countersinks. Stainless steel screws are required within 5 miles of saltwater — the extra cost ($40-60 per 5lb box vs $25 for coated) is mandatory, not optional, in coastal environments.