A deck is one of the most rewarding DIY projects, but nothing kills the momentum like a mid-build trip to the lumberyard. Enter the deck length and width, your board size, the gap you want between boards, and your joist spacing above, and the calculator estimates the decking boards, joists, posts, and concrete bags you’ll need, plus the fasteners.
How the deck board count is calculated
Boards run across the deck width, so the count depends on how many boards (plus their gaps) fit into that dimension:
Example: a 12 ft deck is 144 inches wide. With 5.5-inch boards and a 1/4-inch gap, each board occupies 5.75 inches: 144 ÷ 5.75 = 25.04, which rounds up to 26 boards. Each board is as long as the deck itself (16 ft here), so buy 16-foot lumber.
Joists, posts and concrete
Joists run under the boards at your chosen spacing. Their count is the deck length in inches divided by the spacing, plus one extra joist at the start:
For a 16 ft deck (192 inches) at standard 16-inch spacing: 192 ÷ 16 = 12, plus 1 = 13 joists. Posts support the beams under the joists: the calculator assumes two beam lines, with a post every 8 feet plus one extra per line, giving 6 posts for this deck, and one 50 lb bag of concrete per post hole.
Fasteners: the forgotten line item
Every board meets every joist, and each crossing needs two screws. That multiplies fast: 26 boards × 13 joists × 2 screws = 676 screws, roughly 7 boxes of 100. First-time builders routinely underestimate this, so the calculator shows the screw count and the equivalent boxes.
Typical material list for common deck sizes
Using 5.5-inch boards with a 1/4-inch gap and 16-inch joist spacing:
| Deck size | Boards | Joists | Posts / concrete bags | Screws |
|---|---|---|---|---|
| 12 × 10 ft | 22 | 10 | 6 | ~440 |
| 16 × 12 ft | 26 | 13 | 6 | ~676 |
| 20 × 14 ft | 30 | 16 | 8 | ~960 |
| 24 × 16 ft | 34 | 19 | 8 | ~1,292 |
Always add about 10% extra lumber for cuts, warped boards, and mistakes. Warped boards are common enough that buying a couple of spares is just sensible planning.
Board orientation and waste
Boards usually run across the shorter dimension, but you can run them the long way for a different look: the board count formula still applies to whichever dimension they span, and each board’s length equals the other dimension. Long runs often force a butt joint in the middle of the deck, which wastes material and creates a weak point, so check the longest boards your yard stocks before finalizing the design.
What this calculator doesn’t include
This is a framing and decking estimate only. It doesn’t cover the ledger board, rim joists, joist hangers, flashing, stair stringers, railings, or footings below the concrete, and it assumes a simple rectangular deck. Check local building codes for required joist spacing, railing heights, and permit rules before you build: most jurisdictions require a permit for decks above a certain height or attached to the house.
Frequently asked questions
How much gap should I leave between deck boards?
A 1/4-inch gap is the standard for pressure-treated lumber, which shrinks as it dries. Composite decking often uses a hidden fastener system that sets the gap automatically. Never butt boards tight: water pools and rot follows.
How far apart should deck joists be?
Sixteen inches on center is the residential standard and works for 5/4 decking. Use 12-inch spacing for diagonal board layouts or heavier loads like hot tubs, and check the decking manufacturer’s span tables.
How many screws do I need per deck board?
Two screws at every joist crossing is the rule. Multiply boards by joists by two, then buy screws in bulk boxes: it’s far cheaper per screw than small tubs.
Should I use nails or screws for decking?
Screws. Nails work loose as lumber expands and contracts, leaving popped heads that snag feet. Coated deck screws resist corrosion and hold tight for the life of the deck.
How much extra material should I buy?
Ten percent over the calculated count covers cutting waste, a few warped or split boards, and the odd mis-cut. For expensive composite decking, measure twice and cut once: the waste budget still applies.
Do I need a permit to build a deck?
Usually yes if the deck attaches to the house or sits more than about 30 inches off the ground, though rules vary by city and county. Call your local building department before buying lumber: an unpermitted deck can block a future home sale.
References
Deck framing basics: Deck (building) — Wikipedia. Fastener and spacing guidance: Decks.com building guides.
