For a straight layout, the number of board rows is the deck width divided by the board width plus the gap. Each row runs the length of the deck; divide that by the board length you buy to see how many boards each row needs, then add a waste allowance for cuts and defects (10% is the default here).
Example: a 16 × 12 ft deck with 5.5-inch boards and a 3/16-inch gap. Each board covers 5.6875 inches, so 144 ÷ 5.6875 = 25.3 → 26 rows. With 16-ft boards, that is one board per row, and adding 10% waste gives 29 boards (about 458 linear feet). At 16 inches on center, you need 192 ÷ 16 + 1 = 13 joists, each 12 ft long.
Joist spacing and board gaps
Joists: Trex says joists for composite decking should generally be spaced no more than 16 inches on center for standard installs and 12 inches when boards run diagonally. Choosing "Diagonal" above switches to 12 in and raises the waste allowance to 15%.
Gaps: Trex recommends 3/16 in side to side for its composite boards in all weather, and an end-to-end gap of 1/8 in when installing on days warmer than 40°F (3/16 in when colder). Wood boards move with moisture, so follow the lumber supplier's guidance.
Beyond the boards
Framing: beam sizes, post spacing and footing depth depend on spans, loads, wood species and your local building code. The post count here assumes a simple freestanding grid — use your plans for the real number.
Permits: many U.S. towns may require a permit and inspection for decks, especially raised or attached decks. Check with your local building department.
Call 811 before digging footings: it is the free national call-before-you-dig service; contact it a few business days before any digging.
Diagonal and picture-frame designs produce more offcuts, so raise the waste allowance.
How many deck boards do I need for a 12 × 16 deck?
With 5.5-inch boards, a 3/16-inch gap and 16-ft boards running the 16-ft length, you need 26 rows — 26 boards, or 29 with 10% waste.
What joist spacing do I need for composite decking?
Trex says no more than 16 inches on center for standard installations and 12 inches for diagonal decking. Other brands publish their own spans, so check the installation guide for your boards.
How much gap should be between deck boards?
For Trex composite boards, 3/16 inch side to side, and 1/8 inch end to end when installing above 40°F (3/16 inch when colder). Wood decking gaps depend on the lumber's moisture content.
How much extra decking should I buy?
Lumber dealer Advantage Lumber suggests buying 10–15% extra material. Diagonal and picture-frame layouts produce more offcuts, so lean toward the high end.
How do I calculate the square footage of a deck?
Multiply length by width. A 16 × 12 ft deck is 192 square feet. For L-shaped decks, split them into rectangles and add the areas.