The formula and a worked example
This calculator works in three steps. First, it figures out how many rows of decking fit across the deck's width:
Rows = ceil(deck width in ÷ (board width in + gap in))
Then it multiplies rows by the deck's length to get total linear feet, and adds your waste allowance for cutting and mistakes:
Linear feet = rows × deck length ft × (1 + waste %)
Finally, it divides that total by the length of board you're buying and rounds up, since lumber only comes in whole pieces:
Boards = ceil(linear feet ÷ board length ft)
Worked example: a deck 12 ft wide and 16 ft long, using standard 5.5 in boards with a 1/4 in gap and 16 ft boards. 144 in of width ÷ 5.75 in per row = 25.04, which rounds up to 26 rows. 26 rows × 16 ft = 416 linear feet before waste. Add a standard 10% and you need 457.6 linear feet. Divide by 16 ft boards: 457.6 ÷ 16 = 28.6, rounded up to 29 boards — exactly what the calculator returns for these default values.
Why the gap between boards matters
The small space left between deck boards does two jobs: it lets rain and debris drain through instead of pooling on the surface, and it gives the wood or composite room to swell without buckling. Wood is dimensionally unstable — it expands and contracts across its width as moisture levels change with the seasons — so a deck built with zero gap can cup or bow once humidity rises.
One common exception: pressure-treated lumber straight from the yard is often still wet from the treatment process. Builders will sometimes install those boards butted tight, with no gap at all, because the wood shrinks in width as it dries out over the following months — the gap effectively forms on its own. If you install wet PT lumber with a full 1/4 in gap, you can end up with gaps closer to 3/8–1/2 in once it dries.
Composite and PVC decking don't shrink the same way wood does, but they still expand and contract with temperature. Always check the manufacturer's installation guide for the recommended gap — it's often given as a small range that depends on the board temperature at the time of installation, not a single fixed number.
Picking a board length that matches your joist layout
Where possible, choose a board length that spans the full run without a seam. A 16 ft-long deck run with 16 ft boards needs zero butt joints; the same run built from 8 ft boards needs a joint in every row, which adds labor and breaks up the visual line of the decking.
When a seam is unavoidable — because the deck is longer than any board you can buy, or because staggering joints looks better than one straight seam line — the joint should land squarely on top of a joist, never in the open space between two joists. It's also standard practice to double up, or "sister," that joist where boards butt together, since each board end now needs its own solid bearing and nailing surface rather than sharing one joist edge with its neighbor.
Screws vs. hidden fasteners
Face screws are the simplest and cheapest option: drive 2 deck screws through the face of the board at every joist it crosses, one near each edge. This calculator's screw estimate assumes exactly that — 2 screws per joist crossing at a 16 in joist spacing, which works out to roughly 3.5 screws per square foot of decking (about 350 per 100 sq ft) across the whole project. Face screws work with essentially any decking material and don't require special board profiles.
Hidden fastener clips attach into a groove milled into the board's edge (or a specialty angled screw pocket), leaving no visible fastener heads on the walking surface. The calculator's clip estimate assumes one clip per joist crossing per row. Hidden fasteners typically cost more per square foot than screws and only fit grooved-edge boards or specific manufacturer systems, so check your decking's profile before planning on them. They're an alternative fastening method, not an addition to screws — a given deck uses one system or the other, not both.