How to use the deck calculator
- Measure the deck length along the direction the boards will run, and the width across them, in feet.
- Pick the board width. Most 5/4x6, 2x6 and composite deck boards are 5.5 in wide.
- Enter the gap between boards. Composite makers often call for 3/16 in.
- Pick a board length. Boards as long as the deck, or twice as long, waste the least.
- Choose the joist spacing and keep about 5% waste for a straight deck. Use 15% for boards laid on a diagonal.
How to measure
- Decide which way the boards will run. Boards usually run parallel to the house wall, across the joists, so the deck length is the side along the house.
- Measure the length along the board direction and the width across it, to the outside of the rim joists. If the boards will overhang the rim, add the overhang to both sides (often about 1 in).
- For an L-shaped or stepped deck, split it into rectangles, run the calculator for each and add the board counts.
- Measure one board edge to edge. Most 6 in decking is 5 1/2 in wide, but some composite boards are a little narrower or wider; use the Other width option for those.
- Check the gap the board maker asks for. It changes the number of rows on a wide deck.
The formula
The calculator works out how many rows of boards fit across the deck, then how many boards each row needs.
Rows = (width × 12 + gap) ÷ (board width + gap), rounded upBoards = rows ÷ (rows per board) when the deck is shorter than a board, or rows × length ÷ board length when it is longerBoards to buy = boards × (1 + waste ÷ 100), rounded upJoists = (length × 12) ÷ joist spacing, rounded up, + 1Screws = rows × joists × 2When the deck is longer than one board, the count assumes offcuts are reused and joints are staggered over joists.
Worked example
A 16 ft by 12 ft deck with 5.5 in boards and a 3/16 in gap fits (144 + 0.1875) ÷ 5.6875 = 25.35, so 26 rows. Each row is one 16 ft board, so 26 boards, and 5% waste brings it to 27.3, so you buy 28 boards. That is 192 sq ft and 416 linear ft of decking. At 16 in spacing the deck has 192 ÷ 16 + 1 = 13 joists, and 2 screws per board at every joist comes to 26 × 13 × 2 = 676 screws.
Maximum joist spacing for decking (IRC Table R507.7)
| Decking | Boards square to joists | Boards on a diagonal |
|---|---|---|
| 5/4 (1 1/4 in) wood | 16 in | 12 in |
| 2 in (2x) wood | 24 in | 16 in |
| Composite or PVC | Per the maker and its listing | Per the maker and its listing |
Diagonal means up to 45 degrees from square. Check the code your area has adopted.
Deck joist spans, Southern pine No. 2 (IRC Table R507.6)
| Joist size | 12 in on center | 16 in on center | 24 in on center |
|---|---|---|---|
| 2x6 | 9 ft 11 in | 9 ft 0 in | 7 ft 7 in |
| 2x8 | 13 ft 1 in | 11 ft 10 in | 9 ft 8 in |
| 2x10 | 16 ft 2 in | 14 ft 0 in | 11 ft 5 in |
| 2x12 | 18 ft 0 in | 16 ft 6 in | 13 ft 6 in |
Allowable span for a 40 psf live load deck, from the Johnson County deck guidelines based on the 2018 IRC. Other species and grades span less, and your local code may differ.
Tips before you buy
- Many composite boards need joists at 16 in or closer, and 12 in when laid on a diagonal. Read the board maker's guide before you frame.
- Where two boards butt end to end, both ends need solid support. Plan butt joints over a doubled joist or blocking.
- Keep screws at least 1 in from board ends and edges on composite boards, as Trex asks, to avoid splitting and mushrooming.
- Wet pressure-treated boards shrink as they dry, so they are often laid tight. Kiln-dried and composite boards need a gap for drainage.
- Buy screws by the box and add a few extra. Dropped screws and stripped heads add up on a large deck.
- Pick a board length that divides the deck evenly. A 12 ft deck on 12 ft boards wastes almost nothing, while 16 ft boards on the same deck leave a 4 ft offcut on every row.
Questions and answers
How many deck boards do I need for a 12x16 deck?
With 5.5 in boards, a 3/16 in gap and boards running the 16 ft way, a 12x16 deck takes 26 rows of 16 ft boards. With 5% waste that is 28 boards.
How many screws do I need for a deck?
Use 2 screws per board at every joist. On 16 in joists with 6 in boards that works out to about 350 screws per 100 sq ft. A 12x16 deck needs about 676.
What is the gap between deck boards?
Trex calls for 3/16 in between board edges in all weather. Some other brands ask for 1/4 in. Always follow the maker of your boards.
How far apart should deck joists be?
Most decks use 16 in on center. The IRC allows 24 in only for 2x wood decking laid square to the joists. 5/4 wood and most composites need 16 in or less.
What is the actual width of a 5/4x6 deck board?
A 5/4x6 deck board and a 2x6 are both 5.5 in wide. Most 6 in composite boards are also about 5.5 in wide.
How many deck boards do I need for a 10x10 deck?
With 5.5 in boards and a 3/16 in gap, 10 ft of width takes 22 rows. On 10 ft boards that is 22 boards, or 24 with 5% waste.
How far can a 2x8 deck joist span?
For No. 2 Southern pine at 16 in on center, the IRC deck table allows 11 ft 10 in. At 12 in on center it allows 13 ft 1 in. Other species span less, so check the table for your wood.
Does this calculator size joists and beams?
No. It counts joists for the spacing you pick, but joist size, beams, posts, footings and the ledger depend on spans, loads and your local code. Use a span table or ask your building department.
Sources
- Johnson County deck construction guidelines, decking table based on IRC Table R507.7 (5/4 wood 16 in, 2x wood 24 in)
- Trex: how to space deck boards (3/16 in width-to-width gap)
- Trex decking installation guide 2026 (two screws per joist, 1 in from ends and edges)
- Southern Pine Inspection Bureau: nominal vs actual lumber sizes (2x6 is 5.5 in wide)