Deck Board Spacing: Material-by-Material Gap Guide

How much gap to leave between deck boards — wood, cedar, hardwood and composite — and the arithmetic that keeps every gap even across the whole surface.

The gap between deck boards is not a finish detail you pick by eye. It is the expansion joint that lets the surface shed water, dry from underneath, and survive the season it was installed in. Set it wrong and the deck either cups and traps water (too tight) or looks like a ladder and grows weeds (too wide).

The right number depends on what the board is made of, not on a single universal figure. Here is the short answer, then the reasoning and the math.

How much gap between deck boards?

For softwood, the field rule is 1/8″ in a dry climate and 1/4″ where it is humid. For composite, the manufacturer's spec governs — and it is not the same for every brand. Pressure-treated lumber sold wet is the one case where you deliberately install it almost tight and let the gap open as the board dries.

Recommended side-to-side deck board spacing by material
MaterialTypical side gapWhy
Pressure-treated pine (wet from the yard)Install tight, or 0″–1/8″Boards are sold wet and shrink as they season, so the gap opens on its own.
Softwood, kiln-dried / acclimated (treated, pine, fir)1/8″ dry – 1/4″ humidThe classic rule of thumb; sets up drainage without leaving a gap you can lose a screw head in.
Cedar (western red / white)1/8″–1/4″ (3/16″ common)Dealer guidance — cedar is decay-resistant but still moves with moisture.
Hardwood — ipe, cumaru, mahogany1/16″ minimumDimensionally stable tropical hardwood; installer specs call for a tight, uniform gap.
Composite — Trex3/16″–3/8″Manufacturer spec — wider than wood because the board moves with temperature.
Composite — TimberTech / AZEK1/8″–1/4″ (≈3/16″ typical)Manufacturer spec — a fixed 3/16″ is what their hidden-clip systems produce.

Treat the wood rows as a planning range, not a code requirement. The International Residential Code governs how far the joists may be spaced under the decking; it never specifies the gap between the boards themselves. That number is manufacturer spec and trade practice.

Why the gap changes with the material

Wood moves almost entirely across its width — the length barely changes. A 5.5″ board that measures its full width in dry June air is wider in an August humidity spell and narrower again in January. The gap is the room you leave for that swing. A board installed tight in a humid month has nowhere to go when it swells, so it pushes against its neighbor, lifts at the edges, and pops fasteners.

Composite moves for a different reason: heat, not moisture. That is why the composite gap is a fixed expansion allowance set by the temperature range the board will see, and why two brands can publish different numbers for boards that look identical.

Pressure-treated lumber: the wet-board exception

Treated boards leave the lumberyard soaked from the treating process. They shrink noticeably as they dry over the first season, so the accepted practice is to install them nearly tight or with a narrow 1/8″ gap and let the spacing open on its own. Install them at a full 1/4″ while wet and many will end the summer with gaps near 3/8″.

If you are working with boards that have already dried and acclimated on site — or kiln-dried after treatment — they behave like ordinary softwood: 1/8″ in the dry, up to 1/4″ in a humid climate. The moisture content of the board in your hand, not the label on the tag, is what decides the gap.

Composite: read the manufacturer, not the wood rule

Composite decking is where the "1/8″ or 1/4″" rule breaks down, because each manufacturer sets its own expansion allowance:

Two consequences. First, "composite wants a bigger gap than wood" is not universally true — it depends on the brand, and ignoring the spec can void the warranty. Second, if you use a hidden clip system, the clip is your spacer, and the gap it produces is the gap the manufacturer designed for. Do not try to widen it.

Hardwood and cedar

Tropical hardwoods such as ipe and cumaru are dense and dimensionally stable, and the installation guidance calls for a tight, uniform gap of about 1/16″ — enough for air and water to move, not enough to see through. Cedar sits in the wood camp: dealers recommend 1/8″ to 1/4″, with 3/16″ a common choice, because cedar still takes on moisture and moves even though it resists rot.

Worked example: make the gaps come out even

Say the deck is 12 ft wide across the joists (144″) and you are using 5.5″ boards at a 1/4″ target gap. The pitch — one board plus one gap — is 5.5″ + 0.25″ = 5.75″. Divide: 144 ÷ 5.75 = 25.04, so use 25 boards.

Twenty-five boards do not fill 144″ exactly, so let the last gap absorb the difference. The honest gap is:

gap = (deck width − total board width) ÷ (boards − 1)

Now every gap is 0.271″, the last board lands flush with the far rim, and there is no half-inch of drift to hide at the edge. The deck board spacing calculator runs the board count and linear feet for you; the pitch formula above is what it is doing under the hood.

Gap and joist spacing are two different numbers

Do not confuse the gap between boards with the spacing of the joists under them. IRC 2021 R507.7 sets the joist spacing the decking may span — it says nothing about the gap:

Stairways are excluded from R507.7. If you are laying diagonal decking, the joists need to be closer together — check the deck joist span table and the beam and joist span calculator before you frame.

How to keep gaps even

Eyeballing the gap across 20-plus boards produces a wavy deck. The mistake is chaining: set a board, drop in a spacer, set the next against it, repeat. Land each gap just 1/16″ off and twenty of them compound into an inch and a quarter of drift at the far rim.

Instead, mark every course from one fixed reference edge. Lay out the pitch from the formula above, snap a chalk line for each board's near edge, and set the board on its mark. A bad mark then stays in its own course instead of pushing every later board off target. Reliable spacing tools for the actual install:

Common mistakes

If you're installing wet treated lumber: it will shrink. Set it nearly tight and let the first dry season open the gap for you — do not start at 1/4″ or you will finish the year closer to 3/8″.

Deck board spacing FAQ

How much gap should be between deck boards?

For wood, the classic rule is 1/8″ in a dry climate and 1/4″ where it is humid, because boards swell across their width as they take on moisture. For composite boards, follow the manufacturer: Trex calls for 3/16″ to 3/8″, and TimberTech/AZEK call for 1/8″ to 1/4″ (about 3/16″ in practice).

What gap should I use for pressure-treated lumber?

Pressure-treated lumber leaves the yard wet and shrinks as it dries, so many builders install it nearly tight (0″ to 1/8″) and let the gap open on its own. If the boards are already dry or acclimated, use the normal wood rule: 1/8″ in a dry climate, 1/4″ in a humid one.

What gap should composite decking have?

Follow the board you bought. Trex specifies 3/16″ to 3/8″ between boards; TimberTech and AZEK specify 1/8″ to 1/4″, and their hidden-clip systems produce about 3/16″. Composite moves with temperature, not moisture, so the gap is a fixed expansion allowance rather than a seasonal one.

Why do deck boards need a gap at all?

Gaps do two jobs: drainage — water that sits between boards soaks the ends and the joists underneath, so a gap lets it fall through — and airflow, because trapped moisture under a deck grows mildew and corrodes fasteners.

How do I keep deck board gaps even?

Do not eyeball it and do not chain each gap off the last board. Work out the pitch — (deck width − total board width) ÷ (number of boards − 1) — mark every course from one fixed reference edge, and set each board on its mark. Spacer nails, rip strips, or a clip system all help, but the marks are what keep 21 gaps from drifting into a wavy deck.

Where to go next

This page sets the surface gap; the framing has its own math. The deck board spacing calculator counts boards and linear feet, the deck joist span table gives the R507.6 spans that R507.7 assumes, and the beam and joist span calculator checks a specific size. For the rest of the deck, the deck footing calculator sizes the piers, the deck stairs guide covers the steps, and the concrete calculator handles the pour.