Mass spectrometry (MS) is a chemical analytical technique used to determine the composition and structure of molecules in a sample, through measuring the mass-to-charge ratio (m/z) of ions. Mass spectrometry helps determine the molecular mass of chemical compounds, determine the structure of molecules, and study their chemical reactions or decomposition processes.