ObjectiveTo evaluate the association between bedtime and infertility and to identify the optimal bedtime for women of reproductive age.MethodsWe conducted a cross-sectional study using data from 3,903 female participants in the National Health and Nutrition Examination Survey (NHANES) from 2015 to 2020. The effect of bedtime on female infertility was assessed using the binary logistic regression in different models, including crude model and adjusted models. To identify the non-linear correlation between bedtime and infertility, generalized additive models (GAM) were utilized. Subgroup analyses were conducted by age, body mass index (BMI), waist circumference, physical activity total time, marital status, smoking status, drinking status and sleep duration.ResultsAfter adjusting for potential confounders (age, race, sleep duration, waist circumference, marital status, education, BMI, smoking status, drinking status and physical activity total time), a non-linear relationship was observed between bedtime and infertility, with the inflection point at 22:45. To the left side of the inflection point, no significant association was detected. However, to the right of it, bedtime was positively related to the infertility (OR: 1.22; 95% CI: 1.06 to 1.39; P = 0.0049). Subgroup analyses showed that late sleepers with higher BMI were more prone to infertility than those with a lower BMI (BMI: 25–30 kg/m2: OR: 1.26; 95% CI: 1.06 to 1.51; P = 0.0136; BMI ≥ 30 kg/m²: OR: 1.21, 95% CI: 1.09 to 1.34; P = 0.0014).ConclusionBedtime was non-linearly associated with infertility, which may provide guidance for sleep behavior in women of childbearing age.