Mass spectrometry is a versatile analytical technique used to characterize molecules through determination of molecular weight, elemental composition, and presence of functional groups. It is used for mechanistic studies of gas-phase ion chemistry, as a detector coupled to chromatography instruments, and integrated into vacuum systems. Mass spectrometry involves the steps of sample introduction, ionization, mass analysis, and ion detection/data analysis.