This cross-sectional study examines trends in drug spending in Medicare Parts B and D and describes the share of total use and spending attributed to oncology drugs within each program.