With growing emphasis on high-value care, many institutions have been working on improving surgical efficiency, quality, and complication reduction. Unfortunately, data are limited regarding perioperative factors that may influence length of stay (LOS) following transforaminal lumbar interbody fusion (TLIF). We sought to design a predictive algorithm that determined patients at risk of prolonged LOS after TLIF. The goal was to identify patients who would benefit from preoperative intervention aimed to reduce LOS. We conducted a review of perioperative data for patients who underwent TLIF between 2014 and 2019. Univariate and multivariate stepwise regression models were used to analyze risk factor effects on postoperative LOS. Two hundred and sixty-nine patients were identified (57.2% women). Mean age at surgery was 61.7 ± 12.3years. Mean postoperative LOS was 3.08 ± 1.54days. In multivariate analysis, American Society of Anesthesiologists class (odds ratio [OR] = 1.441, 95% confidence interval [CI] 1.321-1.571), preoperative functional status (OR = 1.237, 95% CI 1.122-1.364), Oswestry Disability Index (OR = 1.010, 95% CI 1.004-1.016), and estimated blood loss (OR = 1.050, 95% CI 1.003-1.101) were independent risk factors for postoperative LOS ≥ 5days. The final model had an area under the curve of 0.948 with good discrimination and was implemented in the form of an online calculator ( https://spine.shinyapps.io/TLIF_LOS/ ). The prediction tool derived can be useful for assessing likelihood of prolonged LOS in patients undergoing TLIF. With external validation, this calculator may ultimately assist healthcare providers in identifying patients at risk for prolonged hospitalization so preoperative interventions can be undertaken to reduce LOS, thus reducing resource utilization.