Getting even gaps across a deck surface looks simple until you realize that whole boards rarely divide perfectly into your frame width. A gap that’s too wide looks sloppy, and one that’s too tight traps moisture and accelerates rot. This calculator does the layout math so every gap comes out identical without ripping the last board.
How to Calculate Deck Board Spacing (Step by Step)
Step One: Determine How Many Boards Fit
Divide the available deck width (plus one gap) by the repeating unit of one board plus one gap, then round down to the nearest whole number.
Boards Needed = floor((Deck Width + Gap) / (Board Width + Gap))
Boards Needed = floor((144 + 0.25) / (5.5 + 0.25))
= floor(144.25 / 5.75)
= floor(25.087)
= 25
Step Two: Calculate Total Gap Space
Subtract the total board coverage from the deck width to find how much space remains for gaps.
Total Gap Space = Deck Width - (Boards Needed × Board Width)
Total Gap Space = 144 - (25 × 5.5)
= 144 - 137.5
= 6.5 in
Step Three: Find the Adjusted Gap
Divide the total gap space by the number of gaps, which is one fewer than the number of boards.
Adjusted Gap = Total Gap Space / (Boards Needed - 1)
Adjusted Gap = 6.5 / (25 - 1)
= 6.5 / 24
= 0.2708 in
What Your Results Mean
Boards Needed is the number of full-width boards to purchase for that span. In our example, 25 standard 5.5-inch deck boards cover a 12-foot (144-inch) frame width.
Adjusted Gap is the actual spacer width you should use during installation. Here, 0.2708 inches is just slightly wider than the 0.25-inch target, meaning a standard 1/4-inch spacer will leave you a hair tight, but well within acceptable tolerance for wood decking.
Total Gap Space shows the cumulative opening across all joints. At 6.5 inches total, roughly 4.5 percent of the deck surface is open, which is ideal for water drainage.
Tips for a Clean Layout
Start from one edge and work across, placing a spacer between every board. If the adjusted gap rounds nicely to a common spacer size (1/8, 3/16, or 1/4 inch), use that off-the-shelf spacer. If it falls between sizes, cut a plywood shim to the exact dimension or use an adjustable deck-spacing tool.
For long runs over 16 feet, check your lumber for crown and bow before committing to a fixed gap, as warped boards can eat into your spacing budget on one end while opening it on the other.