Deck Board Calculator

Editorial team, built with AI assistance, checked against Trex and TimberTech guides, updated .

Enter the deck size, which way the boards run, the board width and gap, and the board length you plan to buy.

What to measure

Deck boards, top viewTop view of deck boards with board width, gap between boards, deck width across the boards and board run marked.BoardGapWidthBoard run (deck length)
Deck width across the boards, board width and gap

Worked example: Trex: a 20 × 12 ft deck with 5.5 in boards, 20 ft long: 144 ÷ 5.5 = 26.18, rounded up to 27 boards; 5% extra rounded up is 2, so 29 boards. TimberTech: a 192 sq ft deck ÷ 7.2 sq ft per 16 ft board = 26.6, so 27 boards.

Deck boards across common deck widths

Deck width (across the boards)Rows of boards16 ft boards with 5% extra (16 ft long deck)Linear feet
8 ft1718272
10 ft2224352
12 ft2628416
14 ft3032480
16 ft3436544

5.5 in boards with a 3/16 in gap (Trex's minimum width-to-width gap in its 2024 guide); rows = (width in inches + gap) ÷ (board width + gap), rounded up; extra rounded up. Estimates for straight boards only; check your product's instructions.

Boards to order for common deck sizes

Assumptions: size is length along the boards × width across them; 5.5 in boards with a 3/16 in gap; the board length is the shortest stock length (12, 16 or 20 ft, the lengths TimberTech sells) that covers the run in one piece, or two 12 ft boards for the 24 ft run. Extra boards are rounded up: 5% is Trex's rule of thumb, and TimberTech suggests at least 10–15% for mishaps, waste and offcuts. Straight layouts only; no stairs, fascia, borders or framing. Gaps: 3/16 in is the Trex minimum and TimberTech's composite spacing; TimberTech's PVC range is ⅛–¼ in, and Trex says no gap should exceed ½ in. Results are estimates.

Deck sizeBoard lengthRows × boards per rowBoards, no extraWith 5%With 10%Linear ft, no extra
10 × 8 ft12 ft17 × 1171819170
10 × 10 ft12 ft22 × 1222425220
12 × 12 ft12 ft26 × 1262829312
16 × 12 ft16 ft26 × 1262829416
20 × 16 ft20 ft34 × 1343638680
24 × 12 ft12 ft26 × 2525558624

On a 10 ft run, 12 ft boards leave 2 ft of offcut per row. The 24 × 12 ft deck uses two 12 ft boards per row, the fit TimberTech suggests over 20 ft boards; stagger those joints. For diagonal or herringbone layouts, TimberTech suggests 30% extra instead.

How it works

Rows = (deck width in inches + gap) ÷ (board width + gap), rounded up, so n boards and n − 1 gaps cover the width. Boards per row = deck length ÷ board length, rounded up. Boards = rows × boards per row. Extra = boards × allowance, rounded up. With no gap this matches Trex's method: deck depth (in) ÷ board width (in), rounded up.

More worked examples

  1. 20 × 16 ft PVC deck, boards running the 20 ft way, ⅛ in gap (TimberTech's PVC minimum), 10% extra: rows = (192 + 0.125) ÷ 5.625 = 34.16, so 35 rows. With 20 ft boards that is 35 boards + 4 extra = 39 boards (700 linear ft before extra). At the 3/16 in default it would be 34 rows, so the narrower gap adds a row. With 16 ft boards the calculator counts 2 per row (70 + 7 = 77) and every row gets a joint; reusing offcuts lowers that.
  2. 12 × 12 ft deck laid at 45°: start with the straight count. At a 3/16 in gap that is 26 rows × 12 ft = 312 linear ft. Add TimberTech's 30% for diagonal layouts: 312 × 1.3 = 405.6, so order about 406 linear ft. Pieces near the middle are longer than 12 ft, up to 12 × √2 ≈ 16.97 ft corner to corner, so they need 20 ft stock; mix lengths. Framing changes too: Trex says that at 45° its maximum joist spacing is 4 in less than its chart (general info; follow your product's guide and local code).
  3. 16 × 12 ft deck, boards running the 16 ft way, 16 ft boards, 5.5 in wide with a 3/16 in gap, 5% extra: rows = (144 + 0.1875) ÷ 5.6875 = 25.35, so 26 rows; 1 board per row; 26 boards + 2 extra = 28 boards (416 linear ft).
  4. 24 × 12 ft deck with 12 ft boards, same board and gap: 26 rows × 2 boards per row = 52 boards; 5% extra rounded up is 3, so 55 boards. Plan butt joints over joists and stagger them; that can add more cuts and waste.

How to measure

  1. Decide which way the boards run. Measure the deck length along the boards and the width across them, in feet.
  2. Measure the actual board width (many boards are about 5.5 in) and check the gap your decking's instructions require.
  3. Pick the board length you will buy. Boards that match the deck length avoid joints; shorter boards need joints over joists.
  4. Measure the frame outside to outside. Trex allows at most ¾ in of overhang past the frame, so overhang cannot make up for a short measurement.
  5. Add stairs and extra levels. TimberTech adds the area of each step to the deck area; Trex says to work out each level of a multi-level deck separately.

Common mistakes

Assumptions

Frequently asked questions

How many deck boards do I need for a 12 × 20 deck?

Trex's example: with 20 ft boards running the 20 ft way, 144 in ÷ 5.5 in = 26.18, so 27 boards; adding 5% gives 2 more, 29 boards. With a 3/16 in gap it is 26 rows.

What gap should deck boards have?

It depends on the product. Trex's 2024 installation guide lists a minimum width-to-width gap of 3/16 in; follow your decking's instructions.

How much extra decking should I buy?

Trex suggests about 5% extra as a rule of thumb. Diagonal patterns and many joints need more.

Related calculators

Sources

Formulas and reference values are from these sources. Page content last updated 2026-11-18.