The influence of feeds containing varying dietary cation–anion differences (DCADs) with and without supplements of 25-hydroxyvitamin D (25(OH)D) on urine pH and excretion of macro minerals was determined in fistulated crossbred steers (mean live weight 315 ± 45 kg). A basal forage diet comprising lucerne hay and wheat chaff was used, to which varying quantities of MgCl2 or K2CO3 were added to achieve four levels of DCAD: −300, 50, 150 or 250 mEq/kg dry matter (DM). Steers were allocated to one of six treatments, one treatment for each diet and a further treatment for both the 50 and 150 mEq/kg DCAD diets, which were supplemented with 25(OH)D at a rate of 3 mg/steer per day. Urine pH from steers offered the diets comprising DCADs of 50, 150 and 250 mEq/kg ranging from 8.3 to 8.8. In treatments not containing 25(OH)D with DCADs of 50 to 250 mEq/kg, there were no significant differences in urine pH or Ca excretion. However, steers offered the diet with a DCAD of −300 mEq/kg DM produced urine with a significantly lower pH (6.5 to 7.5). Daily output of Ca in urine was also significantly higher from steers given this diet. Supplementation with 25(OH)D significantly increased urinary Ca excretion from steers offered diets of DCADs 50 and 150 mEq/kg DM. Estimates of daily urinary Ca excretion, calculated using the ratio of creatinine to Ca in ‘spot’ urine samples, were less variable than those based on total collection (residual mean square of 0.54 and 0.63, respectively).