Home › Framing, Decks and Roofing › Deck Calculator

Deck Calculator

Enter your deck size and the boards you plan to use, and this calculator tells you how many deck boards to buy. It also shows the square feet, linear feet, the number of joists at your spacing and the deck screws to fasten the boards.

It counts decking and joists for a planning list. It does not size the frame: joist size, beams, posts and footings come from span tables and your local code, and a reference span table is included below.

Updated December 2026 · Formula and sources shown below

Cost (optional)Prices vary by store and region. Type in your local price.

What to measure
Deck length 16 ftDeck width12 ftBoards 5.5 in wideJoists 16 in on center

How to use the deck calculator

  1. Measure the deck length along the direction the boards will run, and the width across them, in feet.
  2. Pick the board width. Most 5/4x6, 2x6 and composite deck boards are 5.5 in wide.
  3. Enter the gap between boards. Composite makers often call for 3/16 in.
  4. Pick a board length. Boards as long as the deck, or twice as long, waste the least.
  5. Choose the joist spacing and keep about 5% waste for a straight deck. Use 15% for boards laid on a diagonal.

How to measure

  1. 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.
  2. 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).
  3. For an L-shaped or stepped deck, split it into rectangles, run the calculator for each and add the board counts.
  4. 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.
  5. 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 × 2

When 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)

DeckingBoards square to joistsBoards on a diagonal
5/4 (1 1/4 in) wood16 in12 in
2 in (2x) wood24 in16 in
Composite or PVCPer the maker and its listingPer 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 size12 in on center16 in on center24 in on center
2x69 ft 11 in9 ft 0 in7 ft 7 in
2x813 ft 1 in11 ft 10 in9 ft 8 in
2x1016 ft 2 in14 ft 0 in11 ft 5 in
2x1218 ft 0 in16 ft 6 in13 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

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

Related calculators

StudStuds and plates for a framed wall.Baluster SpacingBaluster count and equal gaps for a railing.StairRisers, treads, run and stringer length.Post Hole ConcreteBags of concrete to set fence and deck posts.