The prevalence of high birth weight or large for gestational age (LGA) infants is increasing, with increasing evidence of pregnancy-related factors that may have long-term impacts on the health of the mother and baby. We aimed to determine the association between excessive fetal growth, specifically LGA and macrosomia, and subsequent maternal cancer by performing a prospective population-based cohort study. The data set was based on the Shanghai Birth Registry and Shanghai Cancer Registry, with medical records from the Shanghai Health Information Network as a supplement. Macrosomia and LGA prevalence was higher in women who developed cancer than in women who did not. Having an LGA child in the first delivery was associated with a subsequently increased risk of maternal cancer (hazard ratio [HR] = 1.08, 95% confidence interval [CI] 1.04–1.11). Additionally, in the last and heaviest deliveries, there were similar associations between LGA births and maternal cancer rates (HR = 1.08, 95% CI 1.04–1.12; HR = 1.08, 95% CI 1.05–1.12, respectively). Furthermore, a substantially increased trend in the risk of maternal cancer was associated with birth weights exceeding 2500 g. Our study supports the association between LGA births and increased risks of maternal cancer, but this risk requires further investigation.