Whether neonatal hyperbilirubinemia and/or phototherapy increase the risk of autism spectrum disorder (ASD) is unclear. We sought to quantify the risk of ASD associated with elevated total serum bilirubin (TSB) levels and with phototherapy. In a retrospective cohort study of 525?409 infants born at ?35 weeks’ gestation in 15 Kaiser Permanente Northern California (KPNC) hospitals, 1995-2011, we obtained all TSB levels and determined which infants received phototherapy. From the KPNC Autism Registry, we identified patients with ASD diagnosed at a KPNC Autism Center, by a clinical specialist, or by a pediatrician. We calculated Cox proportional hazard ratios (HRs) for time to diagnosis of ASD, adjusting for confounding factors. Among infants in the birth cohort, 2% had at least 1 TSB level ?20 mg/dL, and 8% received phototherapy. The rate of ASD was 13 per 1000 births. Crude analyses revealed an association between TSB ?20 and ASD (relative risk: 1.4; 95% confidence interval [CI]: 1.1-1.6), and between phototherapy and ASD (relative risk: 1.7; 95% CI: 1.5-1.8). After adjusting for confounders, TSB ?20 (HR: 1.09; 95% CI: 0.89-1.35) and phototherapy (HR: 1.10; 95% CI: 0.98-1.24) were no longer significantly associated with ASD. Independent risk factors for ASD included maternal and paternal age; maternal and paternal higher education; male sex; birth weight <2500 g or ?4200 g; and later year of birth. After adjustment for the effects of sociodemographic factors and birth weight, neither hyperbilirubinemia nor phototherapy was an independent risk factor for ASD.