How the table works
The International Residential Code (IRC 2021) prints the longest span for each joist size by wood species, grade and spacing: Table R502.3.1(2) for living areas (40 psf live load), R502.3.1(1) for bedrooms and attics reached by a fixed stair (30 psf; a storage-only attic is ceiling joists, R802.5), and Table R507.6 for decks. Find your row, read across to the span, and the first size that reaches your span is the one to use. Spans are clear spans, from the face of one support to the face of the next.