To investigate the possible link between ovarian cancer and cardiometabolic index (CMI). A cross-sectional investigation was conducted using data from the National Health and Nutrition Examination Survey (NHANES) 1999-2018. Sensitivity analysis, smooth curve fitting, and weighted multivariate logistic regression were employed to explore the relationship between CMI and ovarian cancer. The effectiveness of CMI in detecting ovarian cancer was also assessed using eXtreme Gradient Boosting and receiver operating characteristic analysis. Furthermore, subgroup analysis and interaction tests were employed to examine the stability of the connection across different populations. In this study involving 8814 individuals aged ≥ 20 years, CMI was found to be positively correlated with ovarian cancer. Each unit increase in CMI was associated with 10 % increased odds of ovarian cancer in the fully adjusted model {odds ratio [OR] 1.10 [95 % confidence interval (CI) 1.02-1.17]}. The prevalence of ovarian cancer was higher in individuals in the highest CMI tertile [OR 3.68 (95 % CI 1.10-12.35)] compared with those in the lowest CMI tertile. There was a non-linear dose-response association (p for non-linearity = 0.004) between the odds of ovarian cancer and CMI. The results of subgroup analysis and interaction tests show that, apart from race, the relationship between CMI and ovarian cancer was consistent across subgroups. Increased prevalence of ovarian cancer is associated with elevated CMI levels. Improving cholesterol levels and management of dyslipidaemia may help reduce the odds of ovarian cancer.