BackgroundThe triglyceride glucose (TyG) index, a metric for estimating insulin resistance (IR), is linked with cardiovascular disease (CVD) morbidity and mortality among the population regardless of diabetic status. However, IR prevalence and the association between the TyG index and heart failure (HF) in Americans is unclear.MethodsThe Nation Health and Nutrition Examination Survey (NHANES) (2009–2018) dataset was used. IR was defined by homeostatic model assessment of insulin resistance (HOMA-IR) > 2.0 and 1.5. The TyG index was calculated as Ln [fasting triglycerides (mg/dL) × fasting glucose (mg/dL)/2]. A weighted logistic regression was applied to evaluate the association between the TyG index and the prevalence of HF.ResultsThis study comprised 12,388 people, including 322 (2.6%) individuals with HF. The average prevalence of IR was found to be 13.9% and 22.7% for cutoff values greater than 2.0 and 1.5, respectively. HOMA-IR and the TyG index showed a moderate correlation (r= 0.30). There is a significant positive association between the TyG index and HF prevalence (per 1-unit increment; adjusted OR [aOR]: 1.34; 95% confidence interval [CI]: 1.02–1.76). Patients with higher TyG values were associated with a prevalence of HF (OR:1.41; 95% CI: 1.01,1.95) (quartiles 4 vs 1–3). The TyG index is associated with a higher prevalence of dyslipidemia, coronary heart disease, and hypertension but not a stroke (cerebrovascular disease).ConclusionsOur results show that IR does not considerably increase from 2008 to 2018 in American adults. A moderate correlation is noted between HOMA-IR and the TyG index. TyG index is associated with the prevalence of HF, as were other cardiovascular diseases.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12872-023-03294-9.