Klotho, an anti-aging protein, is believed to participate in metabolic diseases and play a potential protective role by regulating insulin sensitivity. This study aimed to explore the relationship between the triglyceride-glucose (TyG) index (a simple marker of insulin resistance) and serum soluble Klotho (S-Klotho) levels. The cross-sectional study comprised 5237 adults aged 40–79 years who participated in the National Health and Nutrition Examination Surveys (NHANES) 2007–2016. The TyG index was calculated as ln [fasting triglycerides (mg/dL) × fasting glucose (mg/dL)/2]. The serum levels of S-Klotho were measured by enzyme-linked immunosorbent assay. The association between the TyG index and S-Klotho levels was investigated by multiple linear regression models, smoothed curve fitting, segmented linear regression models, subgroup analyses, and interaction tests. The TyG index was inversely associated with serum S-Klotho level after full adjustment (β = − 45.11, 95% CI (− 79.53, − 10.69), P = 0.011). Furthermore, we also found a non-linear correlation and saturation phenomenon between the TyG index and serum S-Klotho levels, with a turning point of 9.56. In addition, a significant interaction effect of sex was found between the two (P for interaction < 0.001), with a more pronounced association observed in females. Further studies are required to explore the mechanisms and verify the correlation.