The objectives of this experiment were to evaluate the effects of feeding diets with 2 dietary cation-anion difference (DCAD) levels and supplemented with either cholecalciferol (CH) or calcidiol (CA) during late gestation on lactation performance and energetic metabolism in dairy cows. The hypothesis was that combining a prepartum acidogenic diet with calcidiol supplementation would benefit peripartum Ca metabolism and, thus, improve energy metabolism and lactation performance compared with cows fed an alkalogenic diet or cholecalciferol. Holstein cows at 252 d of gestation were blocked by parity (28 nulliparous and 51 parous cows) and milk yield within parous cows, and randomly assigned to 1 of 4 treatments arranged as a 2 × 2 factorial, with 2 levels of DCAD (positive, +130, and negative, -130 mEq/kg) and 2 sources of vitamin D, CH or CA, fed at 3 mg per 11 kg of diet dry matter (DM). The resulting treatment combinations were positive DCAD with CH (PCH), positive DCAD with CA (PCA), negative DCAD with CH (NCH), or negative DCAD with CA (NCA), which were fed for the last 21 d of gestation. After calving, cows were fed the same lactation diet. Body weight and body condition were evaluated prepartum and for the first 49 d postpartum. Blood was sampled thrice weekly prepartum, and on d 0, 1, 2, 3, and every 3 d thereafter until 30 d postpartum for quantification of hormones and metabolites. Lactation performance was evaluated for the first 49 d postpartum. Feeding a diet with negative DCAD reduced DM intake in parous cows by 2.1 kg/d, but no effect was observed in nulliparous cows. The negative DCAD reduced concentrations of glucose (positive = 4.05 vs. negative = 3.95 mM), insulin (positive = 0.57 vs. negative = 0.45 ng/mL), and insulin-like growth factor-1 (positive = 110 vs. negative = 95 ng/mL) prepartum. Treatments did not affect DM intake postpartum, but CA-supplemented cows tended to produce more colostrum (PCH = 5.86, PCA = 7.68 NCH = 6.21, NCA = 7.96 ± 1.06 kg) and produced more fat-corrected milk (PCH = 37.0, PCA = 40.1 NCH = 37.5, NCA = 41.9 ± 1.8 kg) and milk components compared with CH-supplemented cows. Feeding the negative DCAD numerically increased yield of fat-corrected milk by 1.0 kg/d in both nulliparous and 1.4 kg/d in parous cows. Minor differences were observed in postpartum concentrations of hormones and metabolites linked to energy metabolism among treatments. Results from this experiment indicate that replacing CH with CA supplemented at 3 mg/d during the prepartum period improved postpartum lactation performance in dairy cows.