Mass spectrometry is a technique that identifies and measures molecules by weighing them at the atomic level. It works by converting molecules into electrically charged particles called ions, sorting those ions by weight, and then counting how many of each weight are present. The result is a kind of molecular fingerprint that reveals exactly what’s in a sample, whether that sample is a drop of blood, a vial of river water, or a scoop of Martian soil.
How a Mass Spectrometer Works
Every mass spectrometer, from a tabletop lab instrument to one riding on a Mars rover, follows the same three-step process: ionize, separate, detect.
First, an ion source converts the sample’s molecules into charged particles. This is necessary because neutral molecules can’t be steered or sorted by electric or magnetic fields. Second, a mass analyzer applies electromagnetic fields to sort those ions by their mass-to-charge ratio, commonly written as m/z. Lighter ions and more highly charged ions respond differently to these fields than heavier or less charged ones, so they travel along different paths or arrive at different times. Third, a detector counts the ions at each m/z value, and a computer turns that count into a graph called a mass spectrum.
That spectrum is essentially a bar chart. The horizontal axis shows m/z values (think of it as molecular weight for most practical purposes), and the vertical axis shows how many ions hit the detector at each value. The tallest peak, called the base peak, is set to 100%, and everything else is measured relative to it. By reading the pattern of peaks, a scientist can determine a molecule’s weight, its chemical formula, and often its exact structure.
Ionization: Turning Molecules Into Charged Particles
Different types of molecules need different ionization methods. Two of the most widely used are electrospray ionization (ESI) and matrix-assisted laser desorption/ionization (MALDI).
ESI works on samples dissolved in liquid. The solution is sprayed through a tiny, electrically charged nozzle that produces a fine mist of highly charged droplets. As the solvent evaporates, the charge transfers to the molecules themselves, often giving each molecule multiple charges. This makes ESI ideal for large biomolecules like proteins, because multiple charges reduce the effective m/z value and bring it into a range the analyzer can handle.
MALDI takes the opposite approach. The sample is mixed with a light-absorbing chemical matrix and dried into a solid spot on a metal plate. A laser pulse hits the spot, the matrix absorbs the energy and explodes into a plume of gas, carrying the sample molecules with it and transferring a single charge to each one. Because MALDI produces singly charged ions, the resulting spectra are simpler to read. It also requires less sample and works well with complex mixtures, making it popular for analyzing tissues, polymers, and large biological molecules.
Older techniques like electron ionization, commonly used for small organic molecules and gases, blast the sample with a beam of electrons. This is a harsher process that tends to break molecules into fragments, but those fragmentation patterns are themselves useful for identification, like a shattered vase whose pieces are unique to the original shape.
Mass Analyzers: Sorting Ions by Weight
Once ions are created, the mass analyzer separates them. Four main types dominate modern instruments, each with trade-offs in speed, precision, and cost.
- Quadrupole filters use four parallel metal rods with oscillating electric fields. At any given setting, only ions within a narrow mass range maintain stable paths through the rods. Everything else crashes into the rods and is lost. The instrument rapidly scans through different settings to build a complete spectrum. Quadrupoles are rugged, relatively inexpensive, and fast.
- Time-of-flight (TOF) analyzers accelerate all ions with the same energy pulse and let them fly down a long tube. Lighter ions travel faster and reach the detector first. TOF instruments can capture a full spectrum in microseconds and handle a very wide mass range, making them excellent for large molecules.
- Ion traps hold ions in a confined space using electric fields, then eject them selectively by mass. They’re compact and sensitive, which makes them common in portable instruments and clinical labs.
- Orbitrap analyzers trap ions in orbit around a spindle-shaped electrode. The frequency of each ion’s oscillation depends on its mass, and the instrument reads these frequencies to determine m/z values with extremely high precision. Orbitrap instruments routinely achieve resolution of 50,000 or higher, meaning they can distinguish between two molecules whose masses differ by a tiny fraction of a single atomic mass unit.
Many modern instruments combine two analyzers in sequence. A quadrupole might pre-select a specific ion, fragment it in a collision cell, and then send the fragments into a TOF or Orbitrap for precise measurement. This “tandem” approach, often written as MS/MS, dramatically increases the information you get from a single experiment.
Reading a Mass Spectrum
A mass spectrum of a simple organic compound like pentane (the five-carbon component of gasoline) illustrates how interpretation works. The heaviest peak, at m/z 72, corresponds to the intact molecule with one electron removed: the molecular ion. This immediately tells you the molecule’s weight.
But the molecular ion is fragile. It breaks apart inside the instrument, and each fragment produces its own peak. In pentane’s spectrum, a prominent peak at m/z 57 corresponds to a four-carbon fragment that lost a single carbon group. The base peak at m/z 43 comes from a three-carbon fragment. The pattern of fragments acts like a puzzle. By working out which pieces fit together, a chemist can reconstruct the molecule’s structure.
Fragmentation isn’t random. Molecules break at their weakest bonds, and the fragments that form the most stable ions produce the tallest peaks. Tertiary carbocations (ions where the charged carbon is attached to three other carbons) are more stable than secondary ones, which are more stable than primary ones. This predictable hierarchy means that the spectrum’s peak pattern reflects real structural features of the molecule.
Sensitivity: Finding a Needle in a Molecular Haystack
Modern mass spectrometers are extraordinarily sensitive. High-end instruments can detect substances at attomole levels, meaning they can identify as few as roughly 600,000 molecules in a sample. To put that in perspective, a single grain of table salt contains about 10 quintillion (10^19) sodium and chloride ions. Attomole detection is like finding one specific grain of sand on an entire beach.
This sensitivity is what makes mass spectrometry indispensable when trace amounts matter. The U.S. Geological Survey uses tandem mass spectrometry to test stream and groundwater for 229 pesticide compounds, detecting them at concentrations as low as 1 to 106 nanograms per liter. That’s roughly equivalent to detecting a single drop of a substance dissolved in an Olympic swimming pool. The method requires only 100 microliters of filtered water, with no additional preparation, making it practical for routine environmental monitoring across thousands of sampling sites.
Medical and Clinical Uses
If you were born in a hospital in the United States or most other developed countries, mass spectrometry likely played a role in the first days of your life. Newborn screening programs use tandem mass spectrometry to analyze a few drops of blood from a heel prick, measuring amino acids, free carnitine, and related metabolites. The concentration profiles from this single test can flag dozens of rare but treatable inborn errors of metabolism. Catching these conditions in the first week of life, before symptoms appear, can prevent intellectual disability, organ damage, or death. The test is a screening tool, not a final diagnosis. Abnormal results are confirmed with additional testing.
Beyond newborn screening, clinical labs rely on mass spectrometry for therapeutic drug monitoring (measuring whether a patient’s medication levels are in the right range), toxicology screens, hormone testing, and identifying infectious organisms. Its ability to measure many compounds simultaneously from a tiny sample makes it faster and more informative than older methods that test for one substance at a time.
Environmental Monitoring
Detecting pesticides in drinking water sources is one of the most consequential applications of mass spectrometry. The USGS method mentioned above covers 113 active pesticides and 116 of their breakdown products, selected based on how heavily they’re used, how likely they are to reach water supplies, and how toxic they are to humans or aquatic life. Running each sample twice, once in positive ionization mode and once in negative mode, ensures that the method catches compounds with very different chemical properties. This kind of broad, sensitive surveillance would be impossible with simpler analytical techniques.
Space Exploration
NASA’s Curiosity rover, which landed on Mars in 2012, carries a quadrupole mass spectrometer as part of its Sample Analysis at Mars (SAM) instrument suite. SAM analyzes gases drawn directly from the Martian atmosphere or baked out of rock and soil samples. Working alongside a gas chromatograph and a laser spectrometer, the mass spectrometer identifies the chemical composition of these gases, helping scientists understand Mars’s geology, climate history, and potential to have once supported life. The instrument is essentially a miniaturized version of the same technology used in Earth-based labs, hardened to survive the journey through space and the harsh conditions on the Martian surface.
Portable Mass Spectrometers
For most of its history, mass spectrometry required a dedicated laboratory with stable power, climate control, and trained operators. That is changing. Portable mass spectrometers small enough to carry to a crime scene, a border checkpoint, or a patient’s bedside are now in active use. These miniaturized instruments typically use ion trap or quadrupole analyzers, which lend themselves to compact designs. They sacrifice some of the resolution and sensitivity of full-size lab instruments, but they deliver results in minutes rather than the hours or days it takes to ship a sample to a central lab.
Law enforcement agencies have used portable systems to rapidly identify drugs at international mail facilities. Clinical researchers are developing point-of-care applications, such as on-site urine testing for morphine using fast chemical preparation and a miniature mass spectrometer. As these instruments shrink further and become easier to operate, mass spectrometry is moving from a specialized lab technique toward something closer to a universal chemical sensor.

