In an effort to measure vitamin D, ultra-high-performance liquid chromatography with tandem mass spectrometry (UHPLC-MS/MS) was applied to samples. The use of UHPLC-MS/MS decreased the run time by 50%. The UHPLC-MS/MS achieved equal or better separation efficiency with complex food matrixes compared to HPLC-MS/MS. It was also observed that under the optimized conditions of UHPLC, all previtamins of vitamin D3, D2, and isotope-labeled vitamin D3 were baseline-separated from their corresponding vitamins. The sterol isomers found in complex food matrixes that interfere in the analysis were well separated from the analytes. The accuracy of the method was evaluated by analyzing National Institute of Standards and Technology Standard Reference Material 1849 infant reference material. The average vitamin D3 concentration was 0.251 +/- 0.012 microg/g. This showed excellent agreement with the certified value of 0.251 +/- 0.027 microg/g. The spike recovery study of a commercial infant formula matrix showed a range of recovery from 100 to 108%. The LOQ values determined were 0.0022 and 0.0028 microg/g for vitamins D3 and D2, respectively; LOD values were 0.00065 and 0.00083 microg/g for vitamins D3 and D2, respectively.