Deck Board Calculator
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
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 boards | 16 ft boards with 5% extra (16 ft long deck) | Linear feet |
|---|---|---|---|
| 8 ft | 17 | 18 | 272 |
| 10 ft | 22 | 24 | 352 |
| 12 ft | 26 | 28 | 416 |
| 14 ft | 30 | 32 | 480 |
| 16 ft | 34 | 36 | 544 |
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 size | Board length | Rows × boards per row | Boards, no extra | With 5% | With 10% | Linear ft, no extra |
|---|---|---|---|---|---|---|
| 10 × 8 ft | 12 ft | 17 × 1 | 17 | 18 | 19 | 170 |
| 10 × 10 ft | 12 ft | 22 × 1 | 22 | 24 | 25 | 220 |
| 12 × 12 ft | 12 ft | 26 × 1 | 26 | 28 | 29 | 312 |
| 16 × 12 ft | 16 ft | 26 × 1 | 26 | 28 | 29 | 416 |
| 20 × 16 ft | 20 ft | 34 × 1 | 34 | 36 | 38 | 680 |
| 24 × 12 ft | 12 ft | 26 × 2 | 52 | 55 | 58 | 624 |
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
- 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.
- 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).
- 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).
- 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
- Decide which way the boards run. Measure the deck length along the boards and the width across them, in feet.
- Measure the actual board width (many boards are about 5.5 in) and check the gap your decking's instructions require.
- Pick the board length you will buy. Boards that match the deck length avoid joints; shorter boards need joints over joists.
- 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.
- 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
- Using the nominal width (6 in) instead of the actual width, which undercounts rows.
- Leaving out the gap between boards. With a gap, each row covers board width + gap.
- Forgetting stairs, fascia, picture-frame borders or diagonal layouts, which all need extra boards.
- Treating this as a framing plan. Joists, beams, footings and railings are not covered; check local codes and get a permit where required.
- Buying the longest boards for every run. On a 24 ft run, 20 ft boards take 2 per row: 40 ft bought to cover 24 ft. Two 12 ft boards cover the same row exactly, as TimberTech suggests.
- Using 5% for a diagonal or herringbone layout. TimberTech suggests 30% for those; 5% (Trex) is for straight boards.
- Butting boards tight at the ends or against the house. Trex calls for ⅛ in end to end above 40°F (3/16 in below) and ¼–½ in where decking meets a wall, depending on the temperature at installation.
Assumptions
- Gap default 3/16 in, the minimum width-to-width gap in Trex's 2024 installation guide. Other products and wood decking differ; use your product's instructions.
- Board width is the actual width; Trex and TimberTech examples use 5.5 in. Allowance default 5%, Trex's rule of thumb; TimberTech's example uses the deck area divided by board area.
- Straight boards, square to the deck. Diagonal and picture-frame layouts, stairs, fascia and butt joints over joists use more boards.
- Joists, beams, footings, fasteners and railings are not included. Deck structure is governed by local codes; check local codes and get a permit where required.
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
- Stair calculator (rise and run) – for deck steps: risers, treads and stringer length
- Square footage calculator – for L-shaped or multi-level decks before you count boards
- Board foot calculator – to price framing lumber sold by the board foot
- Fence calculator (posts, pickets, rails) – for a privacy screen or fence beside the deck
- Dumpster size calculator (yards and tons) – to haul away old decking you tear off
Sources
Formulas and reference values are from these sources. Page content last updated 2026-11-18.
- Trex: How many deck boards do I need? (worked example with 5% extra)
- Trex 2024 decking installation guide (gaps, overhang, three-joist minimum, angled layouts)
- TimberTech: How to calculate how much decking you need (area method, lengths, spacing, scrap rates)
- NIST Guide to the SI (SP 811), Appendix B.9: conversion factors (foot = 0.3048 m, ton, pound)