BackgroundThere has been a concerning rise in the incidence of major adverse cardiovascular and cerebrovascular events (MACCE) following noncardiac surgeries (NCS), significantly impacting surgical outcomes and patient prognosis. Glucose metabolism abnormalities induced by stress response under acute medical conditions may be a risk factor for postoperative MACCE. This study aims to explore the association between stress hyperglycemia ratio (SHR) and postoperative MACCE in patients undergoing general anesthesia for NCS.MethodsThere were 12,899 patients in this perioperative cohort study. The primary outcome was MACCE within 30 days postoperatively, defined as angina, acute myocardial infarction, cardiac arrest, arrhythmia, heart failure, stroke, or in-hospital all-cause mortality. Kaplan-Meier curves visualized the cumulative incidence of MACCE. Cox proportional hazard models were utilized to assess the association between the risk of MACCE and different SHR groups. Restricted cubic spline analyses were conducted to explore potential nonlinear relationships. Additionally, exploratory subgroup analyses and sensitivity analyses were performed.ResultsA total of 592 (4.59%) participants experienced MACCE within 30 days after surgery, and 1,045 (8.10%) within 90 days. After adjusting for confounding factors, compared to the SHR T2 group, the risk of MACCE within 30 days after surgery increased by 1.34 times (95% CI 1.08–1.66) in the T3 group and by 1.35 times (95% CI 1.08–1.68) in the T1 group respectively. In the non-diabetes group, the risk of MACCE within 30 days after surgery increased by 1.60 times (95% CI 1.21–2.12) in the T3 group and by 1.61 times (95% CI 1.21–2.14) in the T1 group respectively, while no statistically significant increase in risk was observed in the diabetes group. Similar results were observed within 90 days after surgery in the non-diabetes group. Additionally, a statistically significant U-shaped nonlinear relationship was observed in the non-diabetes group (30 days: P for nonlinear = 0.010; 90 days: P for nonlinear = 0.008).ConclusionIn this large perioperative cohort study, we observed that both higher and lower SHR were associated with an increased risk of MACCE within 30 and 90 days after NCS, especially in patients without diabetes. These findings suggest that SHR potentially plays a key role in stratifying cardiovascular and cerebrovascular risk after NCS.