Mass spectrometry is an analytical tool useful for measuring the mass-to-charge ratio (m/z) of one or more molecules present in a sample. These measurements can often be used to calculate the exact molecular weight of the sample components as well.
The principle is to ionize a sample, separate the resulting ions based on their m/z, and then detect and record the abundance of each ion. This information is then used to identify and quantify the components of the sample.