By optimizing the analytical method of Cefalexin polymer, it was confirmed that the main peak in the tested sample could be separated from its adjacent impurity peak at baseline. The LOD, LOQ, linear range, precision and durability of the optimized method were validated, and the method was simple and feasible, and could better separate Cefalexin and its polymer, and the precision and accuracy of the method could meet the requirements of quality control.