Skip to main content
Construction

Exact Deck Board Spacing Calculator

The deck board spacing calculator finds the exact gap between boards so each row fits evenly across your deck width. It takes three inputs: deck width, board width, and your preferred gap size. The result is a symmetric gap that fills the full width without leaving a partial board at the edge. Homeowners, contractors, and DIYers use it before the first board goes down.

Inputs

Adjust your numbers

Results update as you type.

Enter dimensions in inches. Use actual board width and subtract any picture-frame border from the deck width first.

Measure perpendicular to the boards. Use the field width after subtracting borders or picture-frame boards.
Use the finished face width: nominal 6 in decking is usually 5.5 in actual; nominal 4 in is usually 3.5 in.
Starting target for board spacing. The calculator may nudge it so both deck edges land symmetrically.
Used for linear feet, joist count, and fastener estimates.
Typical values are 12, 16, or 24 inches on center depending on material and installation angle.
Use 2 for two-screw face fastening or 1 for many hidden-clip systems.
Adds extra linear footage for cuts, defects, and ordering buffer.
Results

Live answer

Boards across 25
Achieved gap 0.250 in (≈ 1/4 in)
Edge margin 0.250 in (≈ 1/4 in)
Board-start marks

Showing first 12 of 25. Every 5th board highlighted for tape-measure scanning.

  1. #10.250 in (≈ 1/4 in)
  2. #26.000 in (≈ 6 in)
  3. #311.750 in (≈ 11 3/4 in)
  4. #417.500 in (≈ 17 1/2 in)
  5. #523.250 in (≈ 23 1/4 in)
  6. #629.000 in (≈ 29 in)
  7. #734.750 in (≈ 34 3/4 in)
  8. #840.500 in (≈ 40 1/2 in)
  9. #946.250 in (≈ 46 1/4 in)
  10. #1052.000 in (≈ 52 in)
  11. #1157.750 in (≈ 57 3/4 in)
  12. #1263.500 in (≈ 63 1/2 in)
  13. #1369.250 in (≈ 69 1/4 in)
  14. #1475.000 in (≈ 75 in)
  15. #1580.750 in (≈ 80 3/4 in)
  16. #1686.500 in (≈ 86 1/2 in)
  17. #1792.250 in (≈ 92 1/4 in)
  18. #1898.000 in (≈ 98 in)
  19. #19103.750 in (≈ 103 3/4 in)
  20. #20109.500 in (≈ 109 1/2 in)
  21. #21115.250 in (≈ 115 1/4 in)
  22. #22121.000 in (≈ 121 in)
  23. #23126.750 in (≈ 126 3/4 in)
  24. #24132.500 in (≈ 132 1/2 in)
  25. #25138.250 in (≈ 138 1/4 in)
Linear feet 440.0 ft
Joists 13
Fasteners 650
How it works

How your inputs become the answer

Enter your deck field width, actual board width, and preferred gap, then add the deck length, joist spacing, fastener pattern, and waste allowance if you want a material estimate. The calculator solves the number of full boards that fit, adjusts the gap so both outside margins match, and shows board-start marks along with linear feet, joists, and fasteners.

How the math works

The formulas and what each part means

Edge symmetric gap solver

Add the preferred gap to the deck width, divide by board-plus-gap, then drop the decimal. Spread leftover space into equal margins for a symmetric look.

Board Count = floor((Deck Width + Preferred Gap) / (Board Width + Preferred Gap)); Symmetric Gap = (Deck Width - Board Count × Board Width) / (Board Count + 1)
Per board layout position list

Set the edge margin equal to the symmetric gap. Then find each board's position by adding the margin plus the board index times board-width-plus-gap.

Edge Margin = Symmetric Gap; Position[Board Index] = Edge Margin + Board Index × (Board Width + Symmetric Gap)
Linear feet of decking

Multiply board count by deck length in feet to get the raw footage. Scale that up by the waste factor to find total board stock to buy.

Linear Feet = Board Count × (Deck Length / 12) × (1 + Waste Percent / 100)
Joist count

Divide deck length by joist spacing, drop any fraction, then add one for the joist at the starting end.

Joist Count = floor(Deck Length / Joist Spacing) + 1
Fastener count

Multiply board count by joist count, then by fasteners per joist. The result is total fastener events across the deck.

Fastener Count = Board Count × Joist Count × Fasteners Per Joist
Methodology

How the answer is computed

The calculator starts by finding how many full boards fit across the deck width using your preferred gap. It then adjusts that gap slightly so all boards and gaps fill the width exactly, giving you the symmetric gap. From there, it multiplies board count by board length to get total linear feet. A waste factor is added so you order enough material. Finally, it uses your joist spacing to find fasteners per board, then sums those up for the whole deck.

Worked examples

See the math step by step

12×16 composite deck with 5.5-inch boards and quarter-inch gaps

Sarah is building a 12-foot wide deck in her Portland backyard. The boards run the full 16-foot length. She chose 5.5-inch composite planks and wants a 1/4-inch gap between each board.

To find how many boards fit, Sarah adds the preferred gap to the board width. She divides that sum into the full deck width: 144.25 ÷ 5.75 = 25.09, which floors to 25 boards. With 25 boards in place, 6.5 inches of space remains. Divided across 26 gaps, that yields 6.5 ÷ 26 = 0.25 inches at every joint and along each edge.

Each board spans the full 16-foot run, so the raw footage is 25 × 16 = 400 linear feet. Adding 10 percent for cuts and waste brings the order to 400 × 1.10 = 440 linear feet.

The deck rests on joists 16 inches on center, and 13 joists cross the span. With 2 fasteners per joist per board, the full hardware count is 25 × 13 × 2 = 650 fasteners.

10×20 cedar cabin deck with 6-inch boards and 5/16-inch gaps

Marco is planking a 10-foot wide lake cabin deck in northern Wisconsin. The deck runs 20 feet long, with 6-inch cedar boards and a preferred 5/16-inch gap.

To count the boards, Marco divides the adjusted deck width by the adjusted board pitch. That gives 120.31 ÷ 6.31 = 19.07, which floors to 19 boards. The remaining space across 20 gaps comes to 120 − 114 = 6 inches. Dividing gives 6 ÷ 20 = 0.30 inches per gap, running from edge to edge.

Each board covers the full 20-foot length, so the base footage is 19 × 20 = 380 linear feet. Marco adds 12 percent for knots and end cuts. That brings the order to 380 × 1.12 = 425.6 linear feet.

When to use this calculator

Use this calculator when planning a new deck and confirming your board count before ordering materials. It helps most when your deck width does not divide evenly by a standard board width plus a preferred gap. A good second use is replacing old decking when new boards have a different width than the originals. It is also useful before the first cut, to confirm your preferred gap gives clean edge margins.

Preferred Gap vs. Symmetric Gap

Your preferred gap is the target — often 3/16 inch or 1/4 inch between boards. The symmetric gap is what the calculator finds after fitting a whole number of boards across the width. The two numbers are usually very close, often within a few hundredths of an inch. In practice, set your spacer to the symmetric gap. That ensures every board lands perfectly from edge to edge.

Edge Margins

An edge margin is the space between the rim joist and the first board on each side. Good deck layout keeps these margins consistent on both sides. When you enter your deck width, the calculator treats it as the full span from edge to edge. The symmetric gap and edge margin match when the spacing is done right.

Joist Spacing and Fastener Counts

Joist spacing describes how far apart the structural supports run beneath your deck boards. Standard spacing is 16 inches on center, though composite boards often call for 12 inches on center. The calculator counts how many joists fall under each board, then figures out how many fasteners you need per board. Multiply that by your total board count and you get a fastener order that covers the whole deck.

Assumptions

What we assume

  • The formula assumes all boards share the same nominal width from the first row to the last.
  • The result treats joists as evenly spaced, so uneven joist bays are not reflected in the output.
  • The formula assumes boards run straight and parallel, with no angle cuts or herringbone patterns.
  • The result assumes the deck is a single flat level with no steps, ramps, or cutouts.
  • The formula interprets each board as running the full length of the deck without splicing.
Limitations

What this skips

  • Does not handle decks with boards of two or more different widths in the same run.
  • Excludes diagonal and angled board layouts, where cut lengths and board count differ significantly.
  • Does not cover L-shaped, T-shaped, or other non-rectangular deck footprints.
  • Ignores manufacturer-specific gap requirements for composite and PVC decking products.
  • Excludes stair treads, fascia boards, and other surfaces outside the main deck field.
  • Does not account for structural posts or columns that interrupt a run of boards.
Common mistakes

What people miss

  • You measure in inches but enter feet, which throws the board count off by a factor of 12.
  • Mixing up the desired gap with the board width reverses the two key inputs and produces a wrong board count.
  • Forgetting to count both end margins gives you boards that overhang the rim joist on one side.
  • You apply one gap size across the whole deck and skip adjusting for the last board near the house wall.
References

References

  1. How to calculate how much decking you need — timbertech.com

    timbertech.com · accessed 2026-05-11

  2. How to calculate deck board spacing and layout with a deck calculator — hellolovelyliving.com

    hellolovelyliving.com · accessed 2026-05-11

  3. Decking calculator — decks.com

    decks.com · accessed 2026-05-11

  4. Deckboardseng — blocklayer.com

    blocklayer.com · accessed 2026-05-11

  5. Deck board set out — quickchippy.au

    quickchippy.au · accessed 2026-05-11

  6. Deckcalculatoreng — blocklayer.com

    blocklayer.com · accessed 2026-05-11

  7. Deck calculator — ls-usa.com

    ls-usa.com · accessed 2026-05-11

  8. Deckboards — blocklayer.com

    blocklayer.com · accessed 2026-05-11

Frequently asked questions

What is the ideal gap size between deck boards?
Dry wood needs a 1/8 inch gap; wet or treated wood needs up to 1/4 inch. Composite boards follow manufacturer specs, which often call for at least 1/8 inch.
How many boards do I need for a specific deck size?
Divide your deck width in inches by the sum of one board width plus one gap width. Round up to the next whole number, since partial boards are not sold. Add 10 percent for waste, though cuts at row ends often push real waste above that figure.
How do I calculate deck board spacing for my project?
Measure your deck in the direction that runs across the boards, not along them. If you flip length and width in the calculator, your board count will be wrong.
What formula should I use for even deck board layout?
The core formula divides deck width by board width plus gap width, then rounds up to a whole number. Once you know the board count, subtract all board widths from deck width. Divide the remaining space by the number of gaps to get an even fit at both edges.
How does board width affect spacing calculations?
Wider boards cover more area per piece, so you need fewer boards to span the same deck. The key input is the actual face width, not the nominal size on the label. Using the wrong width shifts every gap in your layout and may leave you short at the far edge.