Skip to content
CalcBelt

Deck calculator

Get the number of deck boards, joists and screws for your deck, with the right gap and waste for composite or wood decking, and a typical installed cost.

Units
Deck

Usually the side against the house.

The joists run this way.

Decking

Actual face width: 5 1/2 in for most boards.

Trex and TimberTech composite: 3/16 in. Wet pressure-treated boards shrink as they dry.

Framing and layout
Joist spacing (on center)
Board layout
%

TimberTech: 10 to 15% straight, 30% diagonal.

Check your decking's installation guide for the widest joist spacing it allows. Trex allows 16 in for its 1 in composite boards and 24 in for 2 × 6 boards, 4 in less on a 45° diagonal. The Southern Forest Products Association rates 5/4 and 2 × 6 pine decking to 24 in, notes that many pros limit 5/4 boards to 16 in, and uses 16 in for diagonal decking. This calculator counts boards, joists and screws only: joist size, beams, posts and footings depend on spans and loads, so follow your local code or the American Wood Council's DCA 6 guide.

Deck boards

29 boards

16 ft boards for 192 sq ft, with 10% extra

Decking
416 ft458 ft with the extra
Rows of boards
26
Joists
13 × 12 ft16 in on center, ends included
Deck screws
about 6802 per board at every joist

Cost estimate

per sq ft

Built deck: $9,024 (range $4,800 to $15,360)

Typical US price $25 to $80 per sq ft (HomeGuide, HomeAdvisor, October 2026). Composite deck, framing included.

per board

From your store, for the length you chose.

How it's calculated
  1. Deck area: 16 ft × 12 ft = 192 sq ft
  2. Rows: 12 ft ÷ (5 1/2 in board + 3/16 in gap) = 25.32, rounded up to 26; × 16 ft = 416 ft of decking
  3. Add 10%: 458 ft ÷ 16 ft = 28.6, rounded up to 29 boards
  4. Joists: 16 ft ÷ 16 in, rounded up, + 1 = 13
  5. Screws: 26 rows × 13 joists × 2 = 676

Estimates use manufacturer data sheets and industry guides (sources). Check local codes and your supplier's figures before you order.

How to use the deck calculator

  1. Enter the deck's length along the boards, usually the side against the house, and its width out from the house.
  2. Pick the decking and the board length you'll buy. Check the board width and the gap between boards.
  3. Choose the joist spacing and whether the boards run straight or on a diagonal.
  4. Read the boards, joists and screws. Add a board price to cost the decking, or compare the typical installed price.

How to calculate deck boards

Deck boards run along the deck, so the number of rows depends on the width across them:

Rows = deck width ÷ (board width + gap), rounded up
Decking = rows × deck length
Boards = decking × (1 + waste) ÷ board length, rounded up

Example: a 16 × 12 ft deck in composite boards 5 1/2 in wide with 3/16 in gaps. Each row takes 5 11/16 in, so the 144 in width needs 144 ÷ 5.6875 = 25.3, rounded up to 26 rows. That’s 26 × 16 = 416 ft of decking. With 10% waste, 457.6 ft ÷ 16 ft boards = 28.6, so buy 29 boards. With 12 ft boards it would be 39.

Joists and screws

Joists run across the deck under the boards, one at each end and one every spacing in between:

Joists = deck length ÷ spacing, rounded up, + 1
Screws = rows × joists × 2

For the same deck at 16 in on center: 192 in ÷ 16 = 12, plus 1 = 13 joists, each 12 ft long. With 26 rows crossing 13 joists and two screws at each crossing, that’s 676 screws.

Joist spacing Joists for a 16 ft deck
12 in 17
16 in 13
24 in 9

How far apart the joists can be depends on the decking. Trex’s 2025 guide allows 16 in for its 1 in composite boards and 24 in for its 2 × 6 boards on residential decks, and 4 in less when boards run at 45°. The Southern Forest Products Association rates 5/4 and 2 × 6 pine decking to span 24 in, says many professionals limit 5/4 boards to 16 in to reduce bounce, and spaces joists 16 in apart under diagonal decking.

Board sizes

Composite boards from Trex and TimberTech are 5 1/2 in wide and come in 12, 16 and 20 ft lengths; Trex lists its boards at 0.82 to 0.94 in thick. Wood decking is sold by nominal size: a 5/4 × 6 board is 1 × 5 1/2 in once dried and planed, and a 2 × 6 is 1 1/2 × 5 1/2 in, according to the USDA’s Wood Handbook. Construction lumber usually comes in even 2 ft lengths.

Pick board lengths that suit the deck: a 16 ft deck uses 16 ft boards with no joints, while a 24 ft deck may work better with 12 ft boards than with 20s. Butt joints have to land on a joist.

What this calculator leaves out

It counts the decking, the joists and the screws. Beams, posts, footings, ledger attachment and joist sizes depend on spans and loads, so follow your local code or the American Wood Council’s DCA 6 deck guide for those, and use the stair calculator for steps and the concrete calculator for footings.

Questions and answers

How many deck boards do I need?

Divide the deck's width by one board plus its gap to get the rows, multiply by the deck length, add waste and divide by the board length. A 16 × 12 ft deck with 5 1/2 in boards and 3/16 in gaps has 26 rows, 416 ft of decking, and with 10% waste needs 29 boards of 16 ft.

How much waste should I add for deck boards?

TimberTech suggests at least 10 to 15% for mistakes and offcuts on a straight layout, and 30% for diagonal or herringbone patterns. The calculator starts at 10% and 30%.

How far apart should deck boards be?

Trex and TimberTech composite boards need a 3/16 in gap side to side. Pressure-treated wood depends on how wet it is: the Southern Forest Products Association says to adjust the spacing because the boards shrink as they dry.

How many screws do I need for a deck?

Trex asks for two screws per board at every joist. The 16 × 12 ft example has 26 rows crossing 13 joists, so 26 × 13 × 2 = 676 screws. Hidden clip systems count differently: use the maker's figure.

How many joists does a deck need?

Divide the deck length by the joist spacing, round up and add one for the end. A 16 ft deck at 16 in on center has 13 joists. The widest spacing depends on the decking: Trex allows 16 in for its 1 in boards and 24 in for 2 × 6 boards, 4 in less on a 45° diagonal, and the Southern Forest Products Association uses 16 in for diagonal pine decking. This calculator does not size joists, which depends on span and load.

How much does a deck cost per square foot?

HomeGuide puts a pressure-treated wood deck at $25 to $50 per square foot installed and a composite deck at $40 to $80, both with framing. A 16 × 12 ft (192 sq ft) deck is about $4,800 to $9,600 in wood and $7,680 to $15,360 in composite.

What is the 3-4-5 rule for decks?

A way to check that a corner is square. Measure 3 ft along one side and 4 ft along the other: if the diagonal between the two marks is 5 ft, the corner is 90°, because 3² + 4² = 5². Multiples such as 6-8-10 work the same way on bigger decks.

How much does a 20 × 20 deck cost?

HomeGuide puts a 20 × 20 ft deck at $10,000 to $20,000 installed, and a composite one at $16,000 to $32,000.

Sources

Figures checked October 2026.