Micellar electrokinetic capillary chromatography (MEKC) was examined for analysis of cefalexin and its related substances. Good selectivity was obtained with two different buffer solutions: a sodium acetate buffer (50 mM, pH 5.25) containing sodium dodecyl sulfate (50 mM SDS) or sodium phosphate buffer (40 mM, pH 7.0) containing 100 mM SDS. Both methods permit cefalexin to be completely separated from its ten related substances within 20 min. The robustness of the method, using pH 5.25 acetate buffer, was examined by means of a full-fraction factorial design to test the influence of buffer pH, concentration of SDS and buffer concentration. The parameters for validation such as linearity, precision, limit of detection and limit of quantitation are also reported. The results show that method 1 is suitable for the analysis of cefalexin.