Diabetes mellitus (DM) is a metabolic disease with an increasing prevalence that is causing worldwide concern. The pre-diabetes stage is the only reversible stage in the patho-physiological process towards DM. Due to the limitations of traditional methods, the diagnosis and detection of DM and pre-diabetes are complicated, expensive, and time-consuming. Therefore, it would be of great benefit to develop a simple, rapid and inexpensive diagnostic test. Herein, the infrared (IR) spectra of serum samples from 111 DM patients, 111 pre-diabetes patients and 333 healthy volunteers were collected using attenuated total reflection Fourier-transform IR (ATR-FTIR) spectroscopy and this was combined with the multivariate analysis of principal component analysis linear discriminant analysis (PCA-LDA) to develop a discriminant model to verify the diagnostic potential of this approach. The study found that the accuracy of the test model established by ATR-FTIR spectroscopy combined with PCA-LDA was 97%, and the sensitivity and specificity were 100% and 100% in the control group, 94% and 98% in the pre-diabetes group, and 91% and 98% in the DM group, respectively. This indicates that this method can effectively diagnose DM and pre-diabetes, which has far-reaching clinical significance.