Understanding the postoperative length of stay (LOS) by surgical procedure is important for hospital medicine clinicians involved in surgical co-management. We assessed variation in postoperative LOS for children after elective surgical procedures and risk factors for prolonged LOS. This study is a retrospective analysis of pediatric patients undergoing elective surgical procedures between January 1, 2018 and October 1, 2021 with postoperative hospitalization for recovery at a freestanding children's hospital. The postoperative LOS (number of days) was compared across types of surgery and by the number of chronic conditions (assessed with the Agency for Healthcare Research and Quality Condition Indicator system) using multivariable quantile regression. The median (interquartile range) LOS across all 347 types of surgical procedures combined was 2 (interquartile range 1-4). Surgical procedures (n = 85) with a median LOS between 3.0 and <5.0 days (eg, spinal fusion, Chiari decompression) accounted for 20.9% of all hospitalizations (N = 12 139) and 23.1% of all postoperative bed days. Procedures (n = 46) with a median LOS of ≥5.0 days (eg, femoral osteotomy, bladder reconstruction) accounted for 15.0% and 46.8% of all hospitalizations and bed days, respectively. After controlling for the type of procedure, having ≥4 (versus none) chronic conditions was significantly associated with experiencing a prolonged LOS (90th percentile: 5.2 days); patients with 4 to 6, versus no, chronic conditions stayed a median of 1.4 (95% confidence interval [CI] 0.7-2.2) days longer, those with 7 to 9 chronic conditions stayed a median of 1.9 (95% CI 1.0-2.7) days longer, and those with ≥10 chronic conditions stayed a median of 4.0 (95% CI 3.3-4.7) days longer. Hospital medicine clinicians can use the type of surgery in combination with the number of chronic conditions to estimate postoperative LOS after elective surgical procedures in children.