Objectives were to determine the effects of feeding supplemental 25-hydroxyvitamin D 3 [25(OH)D 3 ] on concentrations of vitamin D metabolites and minerals in serum, mammary immune status, and responses to intramammary bacterial infection in dairy cows. Sixty multiparous, pregnant lactating Holstein cows with somatic cell count <200,000/mL were blocked by days in milk and milk yield and randomly assigned to receive a daily top-dressed dietary supplement containing 1 or 3 mg of vitamin D 3 (1mgD or 3mgD), or 1 or 3 mg 25(OH) D 3 (1mg25D or 3mg25D) for 28 d (n = 15/treatment). Cows were kept in a freestall barn and fed a total mixed ration in individual feeding gates. Individual dry matter intake (DMI) and milk yield were recorded daily, and milk and blood samples were collected at 0, 7, 14, and 21 d relative to the start of treatment. At 21 d, cows fed 1mgD and 3mg25D received an intramammary challenge with Streptococcus uberis. Cows were observed for severity of mastitis, and blood and milk samples were collected every 12 h to measure inflammation. The 1mg25D and 3mg25D cows had greater serum 25(OH)D 3 concentrations at 21 d compared with 1mgD and 3mgD cows (62 ± 7, 66 ± 8, 135 ± 15, and 232 ± 26 ng/mL for 1mgD, 3mgD, 1mg25D, and 3mg25D, respectively). The 3mg25D cows had greater concentrations of Ca and P in serum at 21 d compared with other treatments (Ca = 2.38, 2.4, 2.37, and 2.48 ± 0.02 mM, 1.87, 1.88, and 2.10 ± 0.08 mM for 1mgD, 3mgD, 1mg25D, and 3mg25D, respectively). Yields of milk and milk components, DMI, body weight, and concentrations of 1,25-dihydroxyvitamin D and Mg in serum did not differ among treatments. Abundance of mRNA transcripts for interleukin-1β (IL1B) and inducible ni-tric oxide synthase (iNOS) in milk somatic cells before S. uberis challenge were increased in cows fed 25(OH) D 3 compared with cows fed vitamin D 3. Furthermore, IL1B, iNOS, β-defensin 7, and β-defensin 10 in milk somatic cells increased as concentrations of 25(OH)D 3 increased in serum. Cows fed 3mg25D had less severe mastitis at 60 and 72 h after challenge with S. uberis compared with cows fed 1mgD. Concentrations of bacteria, somatic cells, and serum albumin in milk after challenge did not differ between treatments; however, an interaction between treatment and day was detected for lactate dehydrogenase in milk. Expression of adhesion protein CD11b on milk neutrophils after the S. uberis challenge was greater among 3mg25D cows compared with 1mgD cows. Transcripts of CYP24A1 and iNOS in milk somatic cells during mastitis also were greater in 3mg25D cows compared with 1mgD cows. Feeding 25(OH)D 3 increased serum 25(OH)D 3 more effectively than supplemental vitamin D 3 , resulting in increased serum mineral concentrations, increased expression of vitamin D-responsive genes, and altered immune responses to intramammary bacterial challenge.