Most decks are framed with joists 16 inches on center, and 12 inches on center when the decking runs diagonally. On a 16 ft ledger that works out to 13 joists at 16 in, or 17 at 12 in. To count them, divide the ledger length in inches by the spacing, round up, and add one so both ends have a joist.
This calculator needs JavaScript. The formula and a worked example are explained in the article below.
Quick chart: joist count by deck length
Lengths are measured along the ledger or beam, the direction the joists are spaced out. Counts include the joists at both ends.
| Ledger length | Joists at 16 in o.c. | Joists at 12 in o.c. |
|---|---|---|
| 8 ft | 7 | 9 |
| 12 ft | 10 | 13 |
| 16 ft | 13 | 17 |
| 20 ft | 16 | 21 |
| 24 ft | 19 | 25 |

These lengths all divide evenly by 16 in. When yours doesn’t (a 10 ft or 14 ft deck at 16 in, for example), the last bay is shorter than the others and you still need a joist at the very end. The calculator rounds up, so it already counts it: a 10 ft ledger at 16 in o.c. needs 9 joists.
What “on center” means
On center (o.c.) is the distance from the middle of one joist to the middle of the next, not the open gap between them. Measuring center to center keeps the spacing true no matter how thick the joists are.
To lay them out, hook a tape on the end of the ledger and mark every 16 in (or 12 in) along it. Many tapes highlight the 16 in marks for this reason. Mark the same spacing on the rim or beam at the other end so the joists run parallel.
The formula
joists = ledger length (in) ÷ spacing (in), rounded up, + 1
The +1 is the joist at the start. Rounding up covers the last, narrower bay when the division leaves a remainder.
A deck runs 16 ft along the house, with composite decking laid straight across the joists.
16 × 12 = 192 in.
192 ÷ 16 = 12 bays, + 1 = 13 joists.
Laid diagonally instead, at 12 in o.c.: 192 ÷ 12 = 16, + 1 = 17 joists.
If every joist is hung at both ends: 13 × 2 = 26 joist hangers.
The hanger figure assumes each joist hangs from the ledger at one end and from a rim or flush beam at the other. Joists that sit on top of a dropped beam only need hangers at the ledger, so halve it.
When to use 16 in and when to use 12 in
Spacing comes from the decking, the layout and the structure, not just habit.
- Standard decking, square to the joists: Trex says joists should generally be no more than 16 in o.c., and Simpson Strong-Tie gives the same 16 in limit for decking perpendicular to the joists.
- Diagonal decking: both Trex and Simpson Strong-Tie call for 12 in o.c. A board laid at an angle spans farther between joists than one laid square, so the joists come closer together.
- Heavier loads or longer spans: Trex notes that joists carrying heavier loads or spanning farther may need 12 in spacing or less.
- Stairs: Trex says stringers should match the tread material’s requirement, usually 12 in o.c. or less.
- Herringbone, borders and other patterns: these usually need extra blocking. Read the decking maker’s installation guide before you frame.
Spacing at 24 in o.c. still appears in code span tables, but Trex and Simpson Strong-Tie both cap decking support at 16 in. Always check the span rating on your decking. If you are re-decking an old frame at 24 in, Trex suggests adding a new joist between each existing pair, which brings the spacing to 12 in.
Joist size and span: follow the code tables
How deep a joist must be (2×6, 2×8, 2×10 or 2×12) and how far it can span depend on the wood species and grade, the spacing, the load and any cantilever. That is engineering, and it comes from code tables, not a rule of thumb.
- The American Wood Council’s DCA 6 deck guide has a joist span table (Table 2) covering common species, joist sizes from 2×6 to 2×12, and spacings of 12, 16 and 24 in. The 2021 IRC has its own table (R507.6).
- DCA 6 also states that all construction and materials must be approved by the authority having jurisdiction. In practice, that is your local building department.
Many areas require a permit for a deck, and inspectors typically check joist size, spacing, hangers and the ledger connection. Get the span and spacing approved before you buy lumber. Closer spacing can sometimes let you use a smaller joist, but only the tables and your inspector can confirm that for your deck.
Hangers and fasteners
Joist hangers are counted separately and fastened with the nails or screws the hanger maker lists. Trex’s install guide sets each joist flush with the top of the ledger first, then fits the hanger tight from below, rather than dropping the joist into a hanger already nailed up. Simpson Strong-Tie adds that hanger fasteners should match the hanger’s corrosion resistance, and stainless hangers need stainless fasteners. If your frame is pressure-treated lumber, check that the hangers and fasteners are rated for it.
Once the frame is set, count the decking with the deck board calculator and the fasteners with the deck screw calculator. Closer joists mean more screws: with boards laid square to the joists, a 12 in frame takes a third more than a 16 in one.
Frequently asked questions
Is 16 inch joist spacing enough for composite decking?
For standard installs, Trex calls for joists no more than 16 in o.c. Other brands and board types have their own limits, so check the installation guide for the exact board you are buying.
How far apart should joists be for diagonal decking?
Trex and Simpson Strong-Tie both say 12 in on center when the decking runs diagonally to the joists. Patterns such as herringbone may need more blocking still.
Does joist count include the rim joists?
The calculator counts the joists at both ends of the ledger. The rim boards that cap the joist ends (the band or header at the outer edge) are separate boards that run along the outer edge, so count them on their own.
Can I use 24 inch joist spacing for a deck?
Code tables include 24 in spacing for some joists, but most decking is not rated to span that far. Check the decking’s span rating and your local code, and expect your inspector to ask.
