Background: Ventriculoperitoneal (VP) shunt placement, the mainstay of treatment for hydrocephalus, can place a substantial burden on patients and health care systems because of high complication and revision rates. We aimed to identify factors associated with 30-day VP shunt failure in children undergoing either initial placement or revision. Methods: VP shunt placements performed on patients in the 2012-2013 American College of Surgeons National Surgical Quality Improvement Program (NSQIP) Pediatric were identified. Results: VP shunts were placed in 3,984 patients either as an initial placement (n = 1,093) or as a revision (n = 2,891). Compared to the initial-placement group, the revision group was significantly more likely to experience shunt failure (14 vs. 8%, p < 0.0001). In the initial-placement group, congenital hydrocephalus was independently associated with shunt failure (OR 1.83; 95% CI 1.01-3.31, p = 0.047). In the revision group, cardiac risk factors (OR 1.38; 95% CI 1.00-1.90, p = 0.047), a chronic history of seizures (OR 1.33; 95% CI 1.04-1.71, p = 0.022), and a history of neuromuscular disease (OR 0.61; 95% CI 0.41-0.90, p = 0.014) were independently associated with shunt failure. Conclusions: Identifying the factors associated with VP shunt failure may allow the development of interventions to decrease failures. Further refinement of the collected variables in the NSQIP Pediatric specific to neurosurgical procedures is necessary to identify modifiable risk factors.