Mass spectrometry is an instrument that ionizes a sample and measures the mass-to-charge ratio of the resulting ions, providing qualitative and quantitative information about the elemental, isotopic, and molecular composition of organic and inorganic samples. It can analyze samples from gas, liquid, or solid states ranging from single atoms to proteins. J.J. Thompson constructed the first mass spectrometer in 1912, which was primarily used by physicists to study atomic weights and isotopic abundances of elements.