Mass spectrometry is a technique that analyzes samples by generating ionized molecules from a sample and measuring their mass-to-charge ratios. It can determine molecular structures and weights using only a few picomoles of sample. A mass spectrometer consists of an ion source, mass analyzer, detector, and data system under high vacuum. Ions are separated by the mass analyzer based on their m/z ratios, detected, and the relative abundances are measured to produce a mass spectrum. This provides information about molecules and their fragments. Common applications include analyzing organic compounds, proteins, and metabolites.