Skip to content
DIY Measures
Menu

Deck Calculator

Estimate the materials for a new deck surface. Enter the deck size, your board width, gap, board length and joist spacing, and get the number of deck boards, joists and screws, with the working shown.

  • Imperial and metric
  • Formula and working shown
  • Last reviewed

Your deck

Units

The real width, not the name: a “2×6” or “5/4×6” board is about 5½ in wide.

The AWC deck guide (DCA 6) says about 1/8 in. Follow your decking maker’s advice.

Common spacings are 12, 16 and 24 in. The joist size and span tables in your local code decide what is allowed, and some decking needs 12 in.

Our planning default is 10%. Use more for diagonal decking or picture-frame borders.

Results update as you type. You can enter fractions such as 3 1/2.

Result

Enter the deck size to see how many boards and joists you need.

Calculated in your browser. Nothing you type is sent anywhere.

Quick answer: Deck boards = rows (deck width ÷ board width plus gap) × deck length, plus extra, ÷ board length. A 16 × 12 ft deck with 5½ in boards and 1/8 in gaps needs 29 boards of 16 ft with 10% extra.

How to use the deck calculator

  1. Enter the deck length in the direction the boards will run, and the width across the boards.
  2. Enter the actual board width, the gap between boards and the length of the boards you will buy.
  3. Enter the joist spacing allowed for your joists and decking.
  4. Keep the 10% extra or change it, then read the boards, joists and screws.

Nominal and actual board sizes

Lumber is named by its nominal size, but the actual board is smaller. Enter the actual width.

BoardTypical actual width
2 × 6 or 5/4 × 65½ in (140 mm)
2 × 43½ in (89 mm)
Composite deckingAbout 5½ in; check the product

Structure and safety

  • Joist size, span and spacing must follow your local code. In the US many codes use the AWC DCA 6 guide.
  • Each board should bear on at least three joists, according to DCA 6.
  • Ledger attachment, posts, footings, stairs and guards are safety-critical. Get a permit where required.

How do you calculate deck boards and joists?

Top view of a deck: boards laid across joists, showing board width, the gap between boards and joist spacing
Rows of boards = deck width ÷ (board width + gap). Joists = length ÷ spacing + 1.

Rows of deck boards

Rows = (deck width + gap) ÷ (board width + gap), rounded up

Each board takes its own width plus one gap; the last row has no gap after it. Boards run along the deck length.

Boards to buy

Boards = rows × deck length × (1 + extra %) ÷ board length, rounded up

Works out the total length of decking and divides it into the lengths you can buy. The 10% extra is our planning default.

Joists and screws

Joists = deck length ÷ joist spacing, rounded up, + 1; screws = rows × joists × 2

One joist at each end and one at every spacing between. The AWC DCA 6 guide fastens each board to each joist with two nails or two screws.

Worked examples

A 16 × 12 ft deck, 5½ in boards with 1/8 in gaps, 16 ft boards, joists 16 in apart

  1. Rows: (144 + 0.125) ÷ (5.5 + 0.125) = 25.6, rounded up to 26.
  2. Board length: 26 × 16 ft = 416 ft; with 10% extra 457.6 ft.
  3. Boards: 457.6 ÷ 16 = 28.6, rounded up to 29 boards.
  4. Joists: 192 in ÷ 16 in = 12, + 1 = 13. Screws: 26 × 13 × 2 = 676.

A 5 × 3.6 m deck, 140 mm boards, 3 mm gaps, 4.8 m boards, joists 40 cm apart (metric)

  1. Rows: (3,600 + 3) ÷ (140 + 3) = 25.2, rounded up to 26.
  2. Board length: 26 × 5 m = 130 m; with 10% extra 143 m.
  3. Boards: 143 ÷ 4.8 = 29.8, rounded up to 30 boards.
  4. Joists: 500 cm ÷ 40 cm = 12.5, rounded up to 13, + 1 = 14.

Assumptions and limitations

This calculator assumes

  • A rectangular deck with boards running the full length, laid straight (not diagonal).
  • Board joins are not optimised; the extra covers offcuts and defects.

What it does not cover

  • It does not size joists, beams, posts or footings, and it does not check spans. Use your local code (often based on AWC DCA 6 in the US) or an engineer.
  • Some composite or thin decking needs closer joist spacing; follow the decking maker’s instructions.
  • Rim joists, blocking, stairs, railings and hardware other than deck screws are not included.

Not professional advice

Results are estimates for planning and buying materials. For structural work, follow your local building code and ask a qualified professional.

Questions and answers

How many deck boards do I need?

Divide the deck width by the board width plus the gap to get the number of rows, multiply by the deck length, add extra, and divide by the length of board you buy. For a 16 × 12 ft deck with 5½ in boards and 1/8 in gaps: 26 rows × 16 ft = 416 ft, plus 10% = 457.6 ft, or 29 boards of 16 ft.

How far apart should deck boards be spaced?

The American Wood Council’s DCA 6 deck guide says decking boards are spaced approximately 1/8 in apart. Composite and some wood decking have their own spacing rules, so follow the product instructions.

How many joists do I need for a deck?

Divide the deck length by the joist spacing, round up and add one. A 16 ft (192 in) deck with joists 16 in apart needs 192 ÷ 16 = 12, plus 1 = 13 joists. The joist size and the spacing you may use come from your local code’s span tables.

How many deck screws do I need?

DCA 6 fastens each board to each joist with two nails or two screws. So screws = rows of boards × joists × 2. For 26 rows over 13 joists that is 676 screws. Screws are sold by count or weight; check the box.

Does this calculator design the deck structure?

No. It estimates decking, joists and screws only. Beams, posts, footings, ledger attachment, stairs and guards must follow your local building code or an engineer’s design.

Guides that explain this

Sources and review

Review status: Checked against the sources below, with a hand-calculated example. Last reviewed .

  • Standard geometry (area and volume formulas). Rectangle area = length × width; circle area = π × (diameter ÷ 2)²; triangle area = base × height ÷ 2; rectangular prism volume = length × width × depth; cylinder volume = π × r² × height; right-angle trigonometry: angle = arctan(rise ÷ run), sloped length = √(rise² + run²). Accessed 2026-12-02.
  • American Wood Council: DCA 6, Prescriptive Residential Wood Deck Construction Guide (based on the 2015 IRC; copy hosted by the City of Franklin, TN). Decking is 2 in nominal lumber or span-rated decking, attached to each joist with 2 nails or 2 #8 screws, spaced approximately 1/8 in apart, and each board bears on at least 3 joists. Joist span tables are given for 12, 16 and 24 in spacing. Accessed 2026-12-02.