Deck Board Spacing Calculator

A free deck spacing calculator that answers how much space between deck boards you actually need for a known width — enter a desired gap to see how many boards fit and the exact spacing to use, or enter a board count to get the exact gap between them.

Free Instant No signup required

Your Measurements

Deck Width

The total width you are spacing boards across — a full deck, or a single row or section.

Enter the actual width, not the nominal lumber size. A 2x6 is about 5.5″ wide, not 6″. Composite widths vary by brand — check the spec sheet.

What do you know?

Your Spacing

Number of Boards
Exact Spacing Needed Even, edge to edge
Leftover Edge Space At your desired gap

Estimates only. This calculator works out spacing math — it does not determine board joint placement, structural requirements, or code compliance. Follow the decking manufacturer's installation instructions and verify local building codes. Read the full disclaimer.

How to Use the Deck Board Spacing Calculator

Enter the width you are spacing boards across and the actual board width, then pick one of two modes depending on what you already know.

Deck width
The total width you are laying boards across, in feet and inches. This can be a full deck, or just one row or section you are planning separately.
Board width
The actual width in inches, not the nominal lumber name. Use the presets for 3.5 in and 5.5 in, or type your own for composite boards.
My desired gap (Mode A)
Pick this when you have a target spacing in mind. You get the number of boards that fit, the exact spacing to use them evenly, and any leftover edge space.
My board count (Mode B)
Pick this when you already know how many boards you have — a fixed order, or boards already on site. Think of it as a deck board gap calculator in reverse: you get the exact even gap those boards need.

How Much Space Should Be Between Deck Boards?

Spacing lets water and debris drain through the deck surface and gives boards room to expand and contract with humidity and temperature.

Three gaps come up most often: 1/8 inch, 3/16 inch, and 1/4 inch. None of them is a universal answer, and the right choice depends on your material and its condition at installation. This decking board spacing calculator works for wood and composite boards alike — the math is the same, only the typical gap range changes.

  • 1/8 inch (0.125 in) — common for wet, freshly treated lumber, which shrinks as it dries and opens the gap further on its own.
  • 3/16 inch (0.1875 in) — a middle ground for drier stock and many composite products.
  • 1/4 inch (0.25 in) — favored for kiln-dried boards or where drainage and debris are a bigger concern.

Follow your decking manufacturer's installation instructions. For composite and PVC decking especially, spacing is often tied to the product warranty, and it can change with the installation temperature.

Anything code-related — guard rails, stair gaps, or gaps near a swimming pool — should be confirmed with your local building department.

How to Calculate Even Deck Board Spacing

A gap you pick from a table rarely divides your exact deck width into whole boards. This calculator finds the board count that fits, then solves for the small adjustment that spreads any leftover evenly across every gap — so the boards land flush with both edges instead of drifting off to one side.

My desired gap (Mode A)

  1. Boards = (deck width + gap) ÷ (board width + gap), rounded down
  2. Leftover edge space = deck width − (boards × board width + (boards − 1) × gap)
  3. Exact spacing = (deck width − boards × board width) ÷ (boards − 1)

My board count (Mode B)

  1. Exact spacing = (deck width − boards × board width) ÷ (boards − 1)

Boards are rounded down in Mode A because the deck width is a fixed boundary — unlike buying materials, you cannot simply purchase a bit more width. The deck board calculator rounds board counts up instead, because it answers a shopping question: how many boards to buy to cover the whole deck without running short. Both are correct for what they are solving.

What this assumes: a single straight run of boards across a known, fixed width, with equal spacing on every gap.

It does not account for picture-frame borders, diagonal layouts, or multiple deck sections at once — calculate each section separately.

Actual vs Nominal Board Width

A board sold as a "2x6" does not measure 6 inches. It starts near that size rough-sawn, then loses material as it is dried and planed smooth on all four sides.

What actually reaches the shelf is closer to 5.5 inches. Spacing math is sensitive to this difference: entering 6 inches instead of 5.5 understates how many boards fit and throws off the exact spacing figure.

Nominal names and the actual widths they usually measure.
Nominal size Actual width Enter in the calculator
2x4about 3.5″3.5
2x6about 5.5″5.5
5/4x6about 5.5″5.5
2x8about 7.25″7.25

Composite and PVC decking do not follow the softwood naming convention at all. Measure a sample board or pull the actual width from the manufacturer's spec sheet before you calculate.

Deck Board Spacing Example

A 120-inch (10 ft) wide deck, built with 5.5-inch boards, and a desired gap of 1/8 inch (0.125 in).

  1. Board pitch: 5.5 in board + 0.125 in gap = 5.625 in
  2. Boards that fit: (120 + 0.125) ÷ 5.625 = 21.36 → rounded down to 21 boards
  3. Space used at 21 boards, exact 1/8 in gaps: 21 × 5.5 + 20 × 0.125 = 118 in
  4. Leftover edge space: 120 − 118 = 2 in
  5. Exact even spacing: (120 − 21 × 5.5) ÷ 20 = 4.5 ÷ 20 = 0.225 in

Use 21 boards spaced at exactly 0.225 inches to land flush on both edges with nothing left over, or keep the simpler 1/8-inch gauge block and split the 2 inches of leftover as a small margin at the edges. If you already own 21 boards for this deck, switching to board count mode gives the same 0.225-inch answer directly.

Frequently Asked Questions

How much space should be between deck boards?

There is no single correct gap. 1/8 inch (0.125 in) is common for wet, freshly treated lumber, which shrinks as it dries and opens the gap further on its own.

3/16 inch (0.1875 in) and 1/4 inch (0.25 in) are common for drier stock and composite or PVC decking.

Your decking manufacturer's installation instructions are the final word, since spacing is often tied to the warranty.

How do I calculate even deck board spacing?

Divide the deck width by the board width plus your desired gap, rounded down, to find how many boards fit.

Then take the deck width, subtract the total board width, and divide by the number of gaps between boards — that gives the exact even spacing that uses the full width with nothing left over.

What if my exact gap doesn't fit evenly across the deck?

It almost never does on the first try, which is normal.

The calculator finds the largest board count that fits at or under your desired gap, then works out the slightly different spacing that divides the leftover evenly across every gap.

You can use that exact spacing, or keep your original gap and treat the leftover as a small edge margin.

Do I use nominal or actual board width for spacing?

Always the actual width. A nominal 2x6 measures about 5.5 inches, not 6, and a 2x4 measures about 3.5 inches.

Using the nominal size overstates how much width your boards use, which throws off both the board count and the spacing. Composite and PVC widths vary by brand, so check the spec sheet.

Can I calculate spacing if I already know how many boards I have?

Yes. Switch to board count mode, enter the deck width, board width, and how many boards you have, and the calculator solves for the exact even gap between them directly — no desired gap needed.

Does this replace the deck board calculator?

No, the two answer different questions. The deck board calculator works out how many boards to buy to cover an entire deck, including length, waste, and cost.

This tool works out even spacing across a fixed width you already know, such as one row or a single section, and does not calculate total materials or cost.

Disclaimer

The results produced by DeckBoardEstimator.com are estimates only, intended for general planning purposes. Actual spacing needs vary with decking material, moisture content at installation, temperature, and the manufacturer's own requirements.

This calculator works out spacing math only. It does not determine board joint placement, structural design, joist layout, footing requirements, or code compliance, and it is not a substitute for the decking manufacturer's installation instructions or a permit set.

Always confirm spacing requirements with your decking manufacturer, and verify structural and permit requirements with your local building department and applicable building codes before purchasing materials or beginning construction.

DeckBoardEstimator.com makes no warranty as to the accuracy of these calculations and accepts no liability for any loss, cost, or damage arising from their use.