How to calculate deck boards

  1. Measure the deck in the direction the boards will run (the board run) and across the boards (the deck width). Enter the run as the deck length.
  2. Add the actual board width to the gap: 5.5 in + 0.125 in = 5.625 in of deck covered per row.
  3. Divide the deck width in inches by that figure and round up: 144 in ÷ 5.625 in = 25.6, so 26 rows.
  4. Multiply rows by the board run and add waste: 26 × 16 ft × 1.10 = 457.6 linear feet of decking.
  5. Divide by the stock length and round up: 457.6 ÷ 16 = 28.6, so you buy 29 boards.

boards = ceil(rows × board run × (1 + waste) ÷ stock length)

Joists follow the same idea along the run: divide the run in inches by the joist spacing, round up and add one for the end joist. A 16-foot run at 16 inches on center is 192 ÷ 16 + 1 = 13 joists. Screws are two per board at every joist, plus 5% for drops: 26 rows × 13 joists × 2 × 1.05 ≈ 710.

Decking boards for common deck sizes

Boards, joists and screws by deck size
Deck (run × width)AreaRowsBoardsJoists @ 16"Screws
10 × 10 ft100 ft²2225 × 10 ft9416
12 × 12 ft144 ft²2629 × 12 ft10546
16 × 12 ft192 ft²2629 × 16 ft13710
16 × 16 ft256 ft²3539 × 16 ft13956
20 × 12 ft240 ft²2629 × 20 ft16874
20 × 16 ft320 ft²3539 × 20 ft161,176
20 × 20 ft400 ft²4348 × 20 ft161,445

Assumes 5½-inch boards, ⅛-inch gaps, stock boards as long as the run, 10% waste and two screws per board per joist. Use the calculator for other board sizes or lengths.

Board size: nominal vs actual

Lumber is sold by nominal size, but the calculator needs the actual width, because that is what covers the deck. A board sold as 6 inches wide is 5½ inches wide. Composite boards are sold by actual size, so read the width from the product sheet.

Common decking boards
BoardActual sizeNotes
5/4 × 6 wood1 × 5½ inThe most common wood decking board
2 × 6 wood1½ × 5½ inStiffer, allows wider joist spacing
2 × 4 wood1½ × 3½ inNarrow look; about 50% more rows and screws
Composite or PVCabout 1 × 5½ inCheck the exact width and the required gap

Joist spacing

Thinner boards need joists closer together. According to the 2021 International Residential Code (Table R507.7), 1¼-inch (5/4) wood decking can span 16 inches when laid square to the joists and 12 inches when laid at 45°, and 2-inch wood decking can span 24 and 16 inches. Composite and plastic decking spans whatever its manufacturer lists. Many composite boards are rated for 16 inches straight and 12 inches diagonal. Your local code and the product label win over any table.

Maximum joist spacing (IRC Table R507.7)
DeckingSquare to joistsDiagonal (45°)
1¼-in wood (5/4)16 in12 in
2-in wood24 in16 in
Composite / plasticPer manufacturerPer manufacturer

Gaps, waste and layout

  • Gap: ⅛ inch suits dry wood. Wet pressure-treated boards shrink as they dry, so many builders lay them tight and let the gap open. Composite makers set their own side gap; use theirs.
  • Waste: 10% covers end trims and a few bad boards on a straight layout. Use 15% for diagonal boards, picture-frame borders or a deck with many corners.
  • Long decks: when the run is longer than your stock boards, stagger the butt joints and land each joint on a joist, or add a breaker board across the deck. Enter the stock length you will buy and the calculator counts the extra boards.
  • Not included: beams, posts, footings, the ledger and railings. For round pier footings use the Sonotube calculator, for posts set straight in the ground the post hole concrete calculator, for deck steps the stair calculator, and for pricing framing lumber by volume the board foot calculator.

Frequently asked questions

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

A 12 × 12 ft deck needs about 29 twelve-foot boards with 5½-inch boards and ⅛-inch gaps: 26 rows plus 10% waste. It also needs 10 joists at 16 inches on center and about 546 screws.

How many joists does a 16-foot deck need?

A 16-foot run needs 13 joists at 16 inches on center and 17 at 12 inches on center. Divide the run in inches by the spacing, round up and add one.

Which way should deck boards run?

Deck boards run across the joists. Joists usually run out from the house, so the boards usually run parallel to the house wall. Enter that direction as the deck length.

How much extra decking should I buy?

Buy 10% extra for a straight layout and 15% for diagonal, picture-frame or cut-up layouts. If you can return unopened boards, round up rather than down.

Does this calculator size beams, posts or footings?

No. It counts decking, joists and screws only. Beam size, post spacing, footing size and the ledger connection depend on span tables, loads and local code, so take them from your plans or your building department.

The formula, worked example and tables on this page are generated from the same calculation engine as the calculator, which is checked by automated reference tests. Last reviewed 20 November 2026 by the Solosoft team. Results are planning estimates, not engineering or code approval. See the calculation disclaimer.