Acute pancreatitis (AP) results in potentially harmful blood glucose fluctuations, affecting patient prognosis. This study aimed to explore the relationship between blood glucose-related indicators and in-hospital mortality in critically ill patients with AP. We extracted data on AP patients from the Multiparameter Intelligent Monitoring in Intensive Care III database. Initial glucose (Glucose_initial), maximum glucose (Glucose_max), minimum glucose (Glucose_min), mean glucose (Glucose_mean), and glucose variability (glucose standard deviation [Glucose_SD] and glucose coefficient of variation [Glucose_CV]) were selected as blood glucose-related indicators. Logistic regression models and the Lowess smoothing curves were used to display the association between significant blood glucose-related indicators and in-hospital mortality. Survivors and non-survivors showed significant differences in Glucose_max, Glucose_mean, Glucose_SD, and Glucose_CV (P < 0.05). Glucose_max, Glucose_mean, Glucose_SD, and Glucose_CV were risk factors for in-hospital mortality in AP patients (OR > 1; P < 0.05). According to the Lowess smoothing curve, the overall trends of blood glucose-related indicators showed a non-linear correlation with in-hospital mortality. Glucose_max, Glucose_mean, Glucose_SD, and Glucose_CV were associated with in-hospital mortality in critically ill patients with AP.