IntroductionManaging postsurgical complications is crucial in optimizing the outcomes of bariatric surgery, for which preoperative nutritional assessment is essential. In this study, we aimed to evaluate and validate the efficacy of vitamin D levels as an immunonutritional biomarker for bariatric surgery prognosis.MethodsThis matched retrospective cohort study included adult patients who underwent bariatric surgery at a tertiary medical center in China between July 2021 and June 2022. Patients with insufficient and sufficient 25(OH)D (< 30 ng/mL) were matched in a 1:1 ratio. Follow-up records of readmission at 3 months, 6 months, and 1 year were obtained to identify prognostic indicators.ResultsA matched cohort of 452 patients with a mean age of 37.14 ± 9.25 years and involving 69.47% females was enrolled. Among them, 94.25 and 5.75% underwent sleeve gastrectomy and gastric bypass, respectively. Overall, 25 patients (5.54%) were readmitted during the 1-year follow-up. The prognostic nutritional index and controlling nutritional status scores calculated from inflammatory factors did not efficiently detect malnourishment. A low 25(OH)D level (3.58 [95% CI, 1.16–11.03]) and surgery season in summer or autumn (2.68 [95% CI, 1.05–6.83]) increased the risk of 1-year readmission in both the training and validation cohorts. The area under the receiver operating characteristic curve was 0.747 (95% CI, 0.640–0.855), with a positive clinical benefit in the decision curve analyses. The relationship between 25(OH)D and 6-month readmission was U-shaped.ConclusionSerum 25(OH)D levels have prognostic significance in bariatric surgery readmission. Hence, preferable 25(OH)D levels are recommended for patients undergoing bariatric surgery.