How the tables work
IRC 2021 prints eight rafter tables, R802.4.1(1) to (8): one pair for a 20 psf roof live load and one pair each for 30, 50 and 70 psf ground snow loads, each pair split by whether the ceiling is attached to the rafters (stiffer limit, L/240) or not (L/180). Find your wood, grade and spacing, read across at your dead load, and the first size that reaches your span is the one. Rafter span is measured level, along the horizontal projection.