InchesCalculator

Construction

Deck Board Spacing Calculator

Quickly determine the number of boards required to span your deck and the precise adjusted gap between each board for a clean, evenly spaced layout.

Boards Needed
25
Adjusted Gap
0.2708 in
Total Gap Space
6.50 in

The calculator finds how many whole boards fit within the deck width at the desired gap, then redistributes the remaining space evenly across all gaps.

I
Written by
Inchs Calculator Team
Editorial Team

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.

About the formula: The calculator finds how many whole boards fit within the deck width at the desired gap, then redistributes the remaining space evenly across all gaps.

Frequently Asked Questions

What is the standard gap between deck boards?+

Most building codes and manufacturers recommend a 1/4-inch (0.25 in) gap between deck boards to allow for drainage and seasonal wood expansion. Composite boards often specify 3/16 inch.

Why is the adjusted gap different from the gap I entered?+

Because only whole boards can be used, the leftover space after fitting all boards is divided equally among the gaps. This adjusted value is what you should actually set your spacers to for a perfectly even layout.

Should I account for board shrinkage when choosing a gap size?+

Yes. Pressure-treated lumber installed wet can shrink up to 1/8 inch across its width as it dries, so many builders start with a 1/8-inch gap knowing it will widen. Kiln-dried or composite boards need the full recommended gap from day one.

Related calculators