Joist & rafter span checker

Say what the member is, how far it spans and its spacing, and see which No. 2 lumber sizes the IRC span tables allow.

Result

2×10 minimum deck joist
12 ft span · Doug fir-larch / Hem-fir / SPF No. 2 · 16" OC · 40 psf live — ground snow ≤ 40 psf
Table allows at 2×1013 ft 7 in
2×6 8 ft 4 in2×8 11 ft 1 in2×10 13 ft 7 in2×12 15 ft 9 in

At 16" OC you need 2×10 — but 2×8 clears it at 12" OC (12 ft 6 in). More deck joists of smaller stock, same code.

Allowable spans at true scale — Doug fir-larch / Hem-fir / SPF, 16" OC
2×68 ft 4 in2×811 ft 1 in2×1013 ft 7 in · min2×1215 ft 9 inyour span 12 ftbar = max span the table allows each size · dashed = table lists it only as “over 26 ft”

Formula sources: IRC 2021 Table R507.6 — maximum deck joist spans (No. 2, wet service, DL 10 psf, L/Δ 360), IRC 2021 Tables R802.4.1(1)(3)(5)(7) — rafter spans, ceiling not attached (No. 2, DL 10 psf, L/Δ 180), IRC 2021 Tables R502.3.1(1)(2) — floor joist spans, sleeping and living areas (No. 2, DL 10 psf, L/Δ 360)

Curated to the common case: No. 2 grade, 10 psf dead load, rafters with the ceiling not attached and rafter ties at the plate. Heavy roofing (tile), attached ceilings, heavy floors (DL 20), 19.2 in spacing, other grades, cantilevers and beam sizing are in the full code tables — and your local amendments and inspector always win. Verify before you frame.