Studies on vitamin D status during pregnancy and risk of type 1 diabetes mellitus (T1D) lack consistency and are limited by small sample sizes or single measures of 25-hydroxyvitamin D (25(OH)D). We investigated whether average maternal 25(OH)D plasma concentrations during pregnancy are associated with risk of childhood T1D. In a case-cohort design, we identified 459 children with T1D and a random sample (n = 1,561) from the Danish National Birth Cohort (n = 97,127) and Norwegian Mother and Child Cohort Study (n = 113,053). Participants were born between 1996 and 2009. The primary exposure was the estimated average 25(OH)D concentration, based on serial samples from the first trimester until delivery and on umbilical cord plasma. We estimated hazard ratios using weighted Cox regression adjusting for multiple confounders. The adjusted hazard ratio for T1D per 10-nmol/L increase in the estimated average 25(OH)D concentration was 1.00 (95% confidence interval: 0.90, 1.10). Results were consistent in both cohorts, in multiple sensitivity analyses, and when we analyzed mid-pregnancy or cord blood separately. In conclusion, our large study demonstrated that normal variation in maternal or neonatal 25(OH)D is unlikely to have a clinically important effect on risk of childhood T1D.