Over the years, obesity has become more commonplace and has had a substantial impact on several medical specialties, including reproductive medicine. The potential correlation between the visceral adiposity index (VAI) and infertility has yet to be determined. Women between the ages of 18 and 45 were included in this cross-sectional study, which was conducted as part of the National Health and Nutrition Examination Survey (NHANES) between 2015 and 2020. Three tertiles were used to group VAI levels. Subgroup analysis and weighted binary logistic regression were employed to investigate the independent relationship between VAI and infertility. Smooth curve fitting was used to explore nonlinear relationships. This cross-sectional study followed the criteria of the STROBE guidelines. Of the 1231 participants, 127 were infertile women aged 18–45 years. A higher VAI was associated with a higher prevalence of infertility (OR = 1.22, 95% CI:1.03–1.45), which remained consistent across all subgroups (p > 0.05 for all interactions). We demonstrated a positive nonlinear association between VAI and infertility using a smooth curve fit. A higher visceral adiposity index level is positively correlated with a higher incidence of infertility among women in the United States. Women who are infertile can be identified using the visceral obesity index, and controlling visceral obesity may help lower the chances of becoming infertile.