To investigate the correlation between albumin-corrected anion gap(ACAG) within the first 24 hours of admission and in-hospital mortality in trauma patients in intensive care unit(ICU). We utilized the MIMIC-Ⅲ and MIMIC-Ⅳ databases to examine trauma patients admitted to the ICU. The relationship between ACAG and in-hospital mortality in trauma patients was analyzed using Receiver Operating Characteristic(ROC) curve, Kaplan-Meier (K-M) survival curve, and Cox regression model. Propensity score matching (PSM) and subgroup analysis were conducted to enhance stability and reliability of the findings. Mortality at 30-day and 90-day served as secondary outcomes. The study enrolled a total of 1038 patients. The AUC for ACAG (0.701, 95%CI: 0.652-0.749) was notably higher than that for anion gap and albumin. The Log-rank test revealed that the optimal cut-off point of ACAG for predicting in-hospital mortality was determined to be 20.375mmol/L. The multivariate Cox regression analysis demonstrated an independent association between high ACAG level and a higher risk of in-hospital mortality (HR = 3.128, 95% CI: 1.615-6.059). After PSM analysis, a matched cohort consisting of 291 subjects was obtained. We found no signifcant interaction in most stratas. Finally, The in-hospital, 30-day, and 90-day survival rates in the high ACAG group exhibited a statistically decrease compared to those in the low ACAG group both pre- and post-matching. The elevated level of ACAG was found to be independently associated with increased in-hospital mortality among trauma patients in the ICU.