Mass spectrometry is an analytical technique for quantifying known materials, identifying unknown compounds, and elucidating molecular structures through the conversion of samples into gaseous ions characterized by their mass-to-charge ratios. The process involves various ionization methods, instrumentation components like ion sources, mass analyzers, and detectors, and applications across multiple scientific fields. Key techniques include electron impact, chemical ionization, and mass spectrometry variants like MALDI and ESI, which have distinct benefits for analyzing different sample types.