How to space deck joists evenly
A deck width rarely divides perfectly by 16 in or 12 in. If you start at one end and place joists every 16 in, the last space is often an awkward short gap. This calculator rounds the joist count up so no space is wider than your target, then shares the width evenly between all the spaces. The result is a slightly tighter, even spacing that you can mark out on the ledger and rim joist.
How to use the deck joist spacing calculator
- Measure the deck width along the ledger or beam, the direction the joists will be spread across.
- Enter your target maximum spacing on center, such as 16 in or 12 in.
- Select Calculate to see the joist count, the number of spaces (bays), and the adjusted on-center spacing.
Formula
Width in inches = deck width × 12
Joists = round up (width in inches ÷ target spacing) + 1
Bays = joists − 1
Adjusted spacing = width in inches ÷ bays
Example
The default values use a 12 ft wide deck at 16 in target spacing. 12 ft is 144 in, and 144 ÷ 16 = exactly 9 bays, so you need 10 joists at exactly 16.00 in on center.
Now try a 13 ft wide deck. 13 ft is 156 in, and 156 ÷ 16 = 9.75 bays, which rounds up to 10 bays and 11 joists. Spread evenly, that gives 156 ÷ 10 = 15.60 in on center, a little tighter than 16 in, with no short gap at the end.
Even spacing or standard spacing?
There are two common ways to lay out joists. Some builders keep exact 16 in centers so standard sheet goods and some decking layouts line up, and accept a short final bay. Others spread the width evenly as this calculator does. Either way, no bay should be wider than the maximum allowed by your decking manufacturer and local code.
Layout tips
- Mark the spacing on the ledger and the rim joist together so the joists run parallel.
- The measurement is center to center. Mark the edge of each joist by offsetting half the joist thickness from each center mark.
- Plan doubled joists where decking boards will butt end to end, and around stairs or railing posts.
- Check the decking instructions for maximum spacing, especially for composite boards and diagonal layouts.
Frequently asked questions
Why is my adjusted spacing smaller than 16 in?
Because the calculator rounds up the number of bays so that no bay is wider than your target. Sharing the width across more bays makes each one slightly narrower.
Does the joist count include the rim joists?
The count includes the first and last joists across the width. If your end joists are also your rim joists, do not add them twice. Rim joists on the other two sides are separate.
Can I enter the spacing in centimeters?
Yes. Change the spacing unit to centimeters and the width unit to meters, and the calculator converts them before working out the layout.
Should I use 12 in or 16 in spacing?
Follow the decking manufacturer and your local code. Closer spacing makes a stiffer floor and is often required for composite decking or diagonal boards.
How much joist lumber should I buy?
Use the Deck Joist Calculator, which turns the joist count into linear feet with a waste allowance.
Related deck calculators and guides
Deck Joist Calculator · Deck Board Spacing Calculator · Deck Screw Calculator · How to Calculate Deck Boards · All Deck Calculators
Disclaimer: Estimates are for planning purposes only. Maximum joist spacing and span depend on your decking product, joist size, and local building code. Verify your layout before building.