To explore the influencing factors of singletons with macrosomia, and to develop interventions for the prevention of macrosomia. A retrospective cohort study was conducted on 26,379 pregnant women who established the Maternal and Child Health Record and gave birth from January 1, 2019 to December 31, 2019 in a community health service center in Haidian district, Beijing. The study analyzed factors such as maternal age, ethnicity, education level, prepregnancy body mass index (BMI), parity, folic acid supplementation, gestational diabetes mellitus, gestational hyper, hypothyroidism in pregnancy (including subhypothyroidism), hyperthyroidism in pregnancy, and infant gender. Univariate analysis was performed using the χ2 test, and multivariate analysis was performed using non-conditional multivariate logistic regression analysis. Out of 26,379 live births, 5.8% (1522/26,379) were macrosomia and 94.2% (24,857/26,379) were non-macrosomia. Univariate analysis revealed that maternal age, prepregnancy BMI, education level, parity, hypothyroidism during pregnancy, and infant gender were identified as influencing factors for macrosomia (P < .05). Multivariate analysis showed that maternal age ≥ 35 years, education level of high school or below, pre-pregnancy BMI, hypothyroidism, male infant, and parity were all influencing factors for macrosomia (P < .05). Prepregnancy overweight or obesity, male infants, multiparity, and low education level are risk factors for macrosomia. Multiple factors can contribute to macrosomia, and therefore, maternal health care should be strengthened, and early interventions should be taken for the above-mentioned factors in the local area.