Skip to content
Roughly Built

Decking

Deck Board & Joist Calculator

Enter your deck's length and width, pick your board material, and get the number of deck boards and joists to buy — board width, gap, and joist spacing preset to each material's spec, with the math shown.

ft
ft

Boards run the length; joists run across the width beneath them.

Board material
Board direction
in
in

Gap and spacing preset to each material's spec — override them for your own layout. Picking a material or direction resets them to that spec's default.

%

10% is the labeled trade starting point for offcuts and defects on a straight layout. Bump it toward 15% for a diagonal layout, where angled end cuts waste more.

You need

29 boards

16 ft · standard lumber

+ 13 joists

156 linear ft of joist stock

The working

Count the rows, then the joists

A takeoff for decking is two counts, not one: the boards you walk on, and the joists that hold them up. The boards go by rows. Figure how wide one board plus its gap really is, divide the deck's width by that to get the number of rows, then multiply by the deck's length to get the linear feet of decking. Convert to physical boards by dividing by the length of board you buy, and add for waste. Joists are separate: they run under the boards, spaced 16 inches on center for a straight layout, and the count is the deck length divided by that spacing, plus one for the far end.

The single most common mistake is estimating from square footage and forgetting the gap. Boards have to breathe — a gap sheds water and gives the board room to move — so a nominal "6-inch" board is really 5½ inches wide, and with a 1/8-inch gap it eats 5.625 inches of your deck per row. Skip that and you'll come up a few rows short on anything but a tiny deck. The second mistake is buying a board length that fights your deck: if your run is 17 feet and you buy 16-foot boards, every row needs a butt joint and a short filler, and every one of those joints has to land on a joist. Buy the longest board that spans your deck in one piece and the waste and the labor both drop.

Gap and brand change the divisor

Board width and gap are the levers, and they differ by product — which is why this tool keeps a preset per material. Standard 5/4 and 2× lumber and Trex all run 5½ inches wide; the gap is where they split, since Trex's guidance sets a 1/4-inch gap while dry lumber is usually laid at 1/8 inch. A wider gap means fewer rows, so it genuinely moves the board count. Going diagonal changes two things at once: the joists tighten from 16 to 12 inches on center, adding framing, and the angled end cuts push waste from 10% toward 15%. Board length changes the count through butt joints, and picture-frame borders or a breaker board down the middle add boards this simple rectangle model doesn't — add those separately. The Trex 1/4-inch vs 3/16-inch conflict, and why this tool uses the live page with worked math, is walked through in How Many Deck Boards Do You Need.

One thing this calculator deliberately doesn't do: size your joists or beams. How far a joist can span before it needs support is a structural question driven by lumber size, species, and load — that's the job of the IRC span tables or an engineer, not a board count. This tool tells you how many joists at a given spacing; it does not tell you whether a 2×8 is big enough to carry them. Board-width, gap, and joist-spacing presets come from each manufacturer’s published install guidance, cited below — not affiliated with Trex or TimberTech.

Sources

Frequently asked questions

How many deck boards do I need for a 12x16 deck?

For a 12 ft × 16 ft deck with 5½-inch boards run the 16-foot direction and a 1/8-inch gap, you need 26 rows, which is 416 linear feet. In 16-foot boards with 10% waste that is 29 boards, plus about 13 joists at 16 inches on center. Change the board length or gap and the count shifts, so run your own numbers above.

How do I calculate deck boards from square footage?

Square footage alone undercounts, because it ignores the gap between boards. A 5½-inch board plus a 1/8-inch gap actually occupies 5.625 inches of width, so you fit fewer rows than a bare area figure suggests. Divide the deck width by that per-board figure to get rows, multiply by the deck length for linear feet, then divide by your board length.

What is the gap between Trex deck boards?

Trex specifies a 1/4-inch side-to-side gap in its planning guidance, and its hidden-fastener clips set the spacing for you as you install. Note Trex is not fully consistent here — its installation guide and hidden-fastener spec cite 3/16 inch — so confirm against the instructions packed with your fasteners. This tool defaults the Trex preset to 1/4 inch and lets you override it.

How far apart should deck joists be for composite decking?

For boards laid straight across the joists, 16 inches on center is the maximum for both Trex and TimberTech composite, matching the code figure for 5/4 wood decking. For a 45-degree diagonal layout, tighten to 12 inches on center. Some products differ — TimberTech Advanced PVC wants 12 inches even for straight runs — so check your specific board.

How much extra decking should I order for waste?

Ten percent over the net amount is the standard allowance for offcuts, defects, and the odd board you cut wrong. Go to about 15% for a diagonal or herringbone layout, where every board gets an angled end cut and the triangular pieces at the edges are mostly scrap. Ordering the longest boards that suit your deck also cuts waste by reducing butt joints.