Mass spectrometry (MS) is an analytical chemistry technique that helps identify the amount and type of chemicals present in a sample by measuring the mass-to-charge ratio and abundance of gas-phase ions. A mass spectrum (plural spectra) is a plot of the ion signal as a function of the mass-to-charge ratio.