There is considerable heterogeneity in opioid use before and after cancer diagnosis. Our findings suggest noncancer factors drive a significant proportion of postdiagnosis opioid use, but use increased significantly from the month of cancer diagnosis and never returned to prediagnosis levels.