Inpatient glucose team-based management demonstrated significant improvements in glycemic control among surgical patients with diabetes, resulting in reduced hospital days and associated costs. The developed nomogram also exhibited promising potential in predicting hospital days, offering valuable clinical applications.