Deck Calculator

Count the deck boards for each board length, the joists and the deck screws for a rectangular deck from its size, board width, gap and joist spacing.

Reviewed · How we build and check our calculators

Your details

Units
ft

Along the house, the direction the deck boards run.

ft

Out from the house, the direction the joists run.

in

Actual width: a 5/4 × 6 or composite board is 5.5 in (14 cm).

in

3/16 in (0.1875) or 5 mm is common; follow the board maker's spacing.

in

Center to center. 16 in (40 cm) suits most boards; 12 in for composite boards laid diagonally.

%

About 10% for straight boards; 15% for diagonal or picture-frame patterns.

Deck boards to buy

29 boards

16 ft long, including 10% extra

Deck area
192 sq ft
17.84 m²
Rows of boards
26 rows
1 board per row
Joists
13 joists
12 ft long, 16 in apart
Deck screws
676 screws
2 per board at every joist; hidden fasteners need 1 clip per crossing
Rim joists
2 boards
16 ft long, plus a ledger at the house

What if the joist spacing changes

  • Joists 12 in apart

    17 joists, 884 screws

    +4 joists

  • Joists 24 in apart

    9 joists, 468 screws

    −4 joists

Joist size depends on the span: check the span table of your local building code before you buy lumber, and stagger the board joints over different joists when a row needs more than one board.

Deck boards by board length

Board lengthBoards to buyTotal lengthOffcut per row
8 ft58 boards464 ft0 ft
10 ft58 boards580 ft4 ft
12 ft58 boards696 ft8 ft
16 ft29 boards464 ft0 ft
20 ft29 boards580 ft4 ft

How the deck calculator works

Enter the deck size, the width of the boards with their gap, the board length you can buy and the joist spacing. The calculator gives the deck boards, joists and screws to buy, and compares board lengths.

Formula

Rows = (deck width + gap) ÷ (board width + gap), rounded up. Boards = rows × (deck length ÷ board length, rounded up) × (1 + waste ÷ 100), rounded up. Joists = deck length ÷ joist spacing, rounded up, + 1. Screws = rows × joists × 2.

  1. 1

    Count the rows of boards

    A 12 ft (144 in) wide deck with 5.5 in boards and 3/16 in gaps: 144.19 ÷ 5.69 = 25.4, so 26 rows.

  2. 2

    Count the boards

    16 ft boards cover the 16 ft length in one piece: 26 boards, plus 10% = 29 boards.

  3. 3

    Count the joists

    192 in ÷ 16 in = 12 spaces, so 13 joists, each 12 ft long, plus 2 rim joists of 16 ft.

  4. 4

    Count the screws

    26 rows × 13 joists × 2 screws = 676 deck screws.

Worked example

The calculator opens with these values

Units
Feet and inches
Deck length
16 ft
Deck width
12 ft
Board width
5.5 in
Gap between boards
0.1875 in
Board length
16 ft
Joist spacing
16 in
Extra for waste
10%

Deck boards to buy

29 boards

Boards, joists and screws for common deck sizes

Each row is the calculator run on that deck. The first number is the length along the house, the direction the boards run. The 24 ft and 32 ft decks use two boards per row, so their joints must land on a joist.

Joists and screws are counted for joists 16 in apart. The table does not size the joists, beams or posts.

5.5 in boards with 3/16 in gaps, joists 16 in apart, 10% extra boards
Deck (along the house × out)Board lengthDeck boardsJoistsDeck screws
10 × 10 ft10 ft25 boards9 joists396 screws
12 × 12 ft12 ft29 boards10 joists520 screws
16 × 12 ft16 ft29 boards13 joists676 screws
16 × 16 ft16 ft38 boards13 joists884 screws
20 × 12 ft20 ft29 boards16 joists832 screws
20 × 16 ft20 ft38 boards16 joists1,088 screws
24 × 12 ft12 ft58 boards19 joists988 screws
32 × 16 ft16 ft75 boards25 joists1,700 screws

Deck rules in the 2021 IRC

Most US towns base their deck rules on the International Residential Code, often with local changes, and many require a permit for a deck attached to the house. These are the rules people most often miss.

  • Guards are required where the deck surface is more than 30 in above the ground below (R312.1.1).
  • Guards must be at least 36 in high (R312.1.2), and gaps between balusters must not let a 4 in sphere through (R312.1.3).
  • Deck stairs follow the same riser, tread and handrail rules as indoor stairs (R311.7).
  • Section R507 covers decks: footings, joist and beam spans, and how a ledger must be fastened to the house.
  • Footings must reach below the local frost depth, which your building department sets.

Buying tips for deck materials

The hidden frame lasts only as long as the wood and metal you choose for it.

  • Buy framing lumber rated for ground contact for posts, and for joists and beams close to the ground or hard to replace.
  • Use screws, nails and joist hangers rated for pressure-treated wood: hot-dip galvanized or stainless steel.
  • Put joist tape on the tops of joists and beams; it keeps water out of the screw holes.
  • Flash the ledger board where it meets the house, so rain cannot run behind it and rot the house framing.
  • Plan the last row before you start: rip the first board or adjust the gaps slightly so you do not end with a sliver.

Common questions

How far apart should deck joists be?

16 in (40 cm) on center suits most wood and composite boards laid straight. Many composite makers require 12 in for diagonal layouts; 24 in is allowed only for thick boards rated for it. Follow the board maker's guide.

What gap should I leave between deck boards?

About 3/16 in (5 mm) for dry wood and composite. Wet pressure-treated boards shrink as they dry, so they are often laid tight together. Follow the spacing printed on composite boards.

Which board length should I buy?

The table compares them. A length that divides the deck evenly wastes least; when a row needs more than one board, joints must land on a joist, and staggering them looks better.

Does this size the joists and beams?

No. It counts joists, not their size. The depth of joists and beams depends on the span, the wood species and the load: use the span tables in your local building code or ask a builder.

Fence Calculator

Posts, rails, pickets or panels and concrete bags for a straight fence

Stair Calculator

Steps, riser height, run, stringer length and angle with a US code check

Add this calculator to your website

Free for blogs, schools and businesses. Paste this code into your page; the calculator works inside it, with no ads and no tracking. Please keep the credit line.