Summary: Background: Elevated body mass index (BMI) ≥25 kg/m2 is a major preventable cause of cancer. A single BMI measure does not capture the degree and duration of exposure to excess BMI. We investigate associations between adulthood overweight-years, incorporating exposure time to BMI ≥25 kg/m2, and cancer incidence, and compare this with single BMI. Methods: In this cohort study and individual participant data meta-analysis, we obtained data from the ABACus 2 Consortium, consisting of four US cohorts: Atherosclerosis Risk in Communities (ARIC) study (1987–2015), Women's Health Initiative (WHI; 1991 to 2005 [main study], to 2010 [Extension 1], and to 2020 [Extension 2]), Prostate, Lung, Colorectal, Ovarian Cancer Screening (PLCO) Trial (1993–2009), NIH-AARP Diet and Health Study (1996–2011), and one European cohort, the European Prospective Investigation into Cancer and Nutrition (EPIC; participants enrolled in 1990 and administrative censoring was centre-specific). Participants with at least 3 BMI measurements and complete cancer follow-up data were included. We calculated overweight-years: degree of overweight (BMI ≥25 kg/m2) multiplied by the duration of overweight (years). Using random effects two-stage individual participant data meta-analyses, associations between cancer and overweight-years, single BMI, cumulative overweight degree and duration, measured at the same time and captured over a median of 41 years in men and 39 years in women, were evaluated with Cox proportional hazards models. Models were age-adjusted or multivariable (MV) adjusted for baseline age, ethnicity, alcohol, smoking and hormone replacement therapy (HRT). Harrell's C-statistic of metrics were compared. This study is registered at PROSPERO, CRD42021238270. Findings: 720,210 participants, including 312,132 men and 408,078 women, were followed up for cancer incidence over a median 9.85 years (interquartile range (IQR) 8.03, 11.67) in men and 10.80 years (IQR 6.05, 15.55) in women. 12,959 men (4.15%) and 36,509 women (8.95%) were diagnosed with obesity-related cancer. Hazard ratios for obesity-related cancers in men, per 1 standard deviation (SD) overweight-years were 1.15 (95% CI: 1.14, 1.16, I2: 0) age-adjusted and 1.15 (95% CI: 1.13, 1.17, I2: 0%) MV-adjusted and per 1SD increment in single BMI were 1.17 (95% CI: 1.16, 1.18, I2: 0) age-adjusted and 1.16 (95% CI: 1.15, 1.18, I2: 0%) MV-adjusted. The HR for overweight-years in women per 1 SD increment was 1.08 (95% CI: 1.04, 1.13, I2: 82%) age-adjusted and 1.08 (95% CI: 1.04, 1.13, I2: 83%) MV-adjusted and per 1SD increment in single BMI was 1.10 (95% CI: 1.07, 1.14, I2: 72%) age-adjusted and 1.11 (95% CI: 1.07, 1.15, I2: 79%) MV-adjusted. C-statistics for overweight-years and single BMI for obesity-related cancers were 0.612 (95% CI: 0.578, 0.646) and 0.611 (95% CI: 0.578, 0.644) respectively for men and 0.566 (95% CI: 0.534, 0.598) and 0.573 (95% CI: 0.546, 0.600) for women. Interpretation: Adulthood degree and duration of excess BMI were associated with cancer risk. Both factors should be considered in cancer prevention strategies and policies. This study only focused on adulthood exposure to excess BMI, so the minimal differences in the predictive performance between adiposity metrics may be due to underestimation of cumulative excess BMI exposure. Funding: Cancer Research UK, the Manchester NIHR Biomedical Research Centre, the National Cancer Institute, the National Heart, Lung, and Blood Institute, National Institutes of Health, Department of Health and Human Services, U.S. Department of Health and Human Services, the Intramural Research Program of the National Cancer Institute, the International Agency for Research on Cancer, Imperial College London, European Commission (DG-SANCO), the Danish Cancer Society, Ligue Contre le Cancer, Institut Gustave-Roussy, Mutuelle Générale de l'Education Nationale, Institut National de la Santé et de la Recherche Médicale, Deutsche Krebshilfe, Deutsches Krebsforschungszentrum, German Federal Ministry of Education and Research, the Hellenic Health Foundation, Associazione Italiana per la Ricerca sul Cancro-AIRC-Italy and National Research Council, Dutch Ministry of Public Health, Welfare, and Sports, Netherlands Cancer Registry, LK Research Funds, Dutch Prevention Funds, Dutch Zorg Onderzoek Nederland, World Cancer Research Fund, Statistics Netherlands, Health Research Fund, Instituto de Salud Carlos III, regional Spanish governments of Andalucía, Asturias, Basque Country, Murcia, and Navarra, the Catalan Institute of Oncology, Swedish Cancer Society, Swedish Scientific Council, and Region Skåne and Region Västerbotten, and the Medical Research Council.