Objective To explore the predictive value of stress hyperglycemia ratio(SHR)on in-hospital major adverse cardiovascular events(MACEs)in patients with acute myocardial infarction(AMI).Methods A total of 442 AMI patients with complete clinical data from January 2021 to December 2022 in the Department of Cardiology Center,Beijing Tongren Hospital were selected for retrospectively analyzed.SHR was calculated from the first blood glucose within 24 h after admission(ABG)and glycosylated hemoglobin(HbA1c)value.Patients were divided into MACEs group(n=79)and non-MACEs group(n=363)according to in-hospital MACEs.Logistic regression was used to analyze the risk factors for in-hospital MACEs.The receiver operating characteristic(ROC)curve was used to analyze SHR's predictive value.Results SHR in MACEs group was higher than that in non-MACEs group(1.30±0.44 vs 1.15±0.17,P<0.001).Multiple Logistic regression analysis indicated that elevated SHR level was an independent risk factor for in-hospital MACEs in AMI patients(OR=2.69,95%CI:1.26-5.73,P=0.011).ROC curve analysis showed that SHR(AUC=0.63,95%CI:0.57-0.70,P<0.001)had a certain predictive value for in-hospital MACEs in AMI patients,with the optimal cut-off value of 1.29,which is better than HbA1c(P=0.011).Conclusion SHR is a risk factor for in-hospital MACEs in AMI patients,and has predictive value for in-hospital MACEs,which is better than HbA1c.The optimal cut-off value is 1.29.