Mass spectrometry works by converting molecules into charged particles, sorting those particles by their mass-to-charge ratio, and recording what comes out the other side. The basic workflow has remained remarkably stable since J.J. Thomson first deflected ion beams through electric and magnetic fields over a century ago, though the technology at each step has grown enormously more sophisticated. Whether you are analyzing a blood sample for drugs, identifying proteins in a tissue biopsy, or checking the purity of a pharmaceutical compound, the process follows the same core sequence: prepare your sample, introduce it into the instrument, ionize the molecules, separate the resulting ions, detect them, and interpret the data.
Preparing the Sample
The quality of your mass spectrometry data depends heavily on what happens before anything enters the instrument. Raw biological or environmental samples are messy. Blood contains salts, proteins, lipids, and cellular debris that can suppress the signal from whatever you are actually trying to measure. Soil, food, and wastewater carry their own cocktails of interfering substances. The goal of sample preparation is to isolate and concentrate the compounds of interest while removing as much of this background noise as possible.
For biological fluids like blood plasma, a common approach is solid-phase extraction, where the sample passes through a cartridge or plate packed with material that selectively binds certain classes of molecules while letting contaminants wash through. One study developing methods for plasma metabolite analysis used phospholipid filtration plates to strip out more than 94% of the dominant phospholipid species, which are notorious for suppressing ionization signals, while recovering most of the target compounds at rates between 60 and 104%.1Journal of Chromatography A. A new approach for plasma (xeno)metabolomics based on solid-phase extraction and nanoflow liquid chromatography-nanoelectrospray ionisation mass spectrometry After a second cleanup step, recoveries settled between 50 and 81%, a tradeoff between purity and losing some analyte along the way.
The complexity of sample preparation scales with how difficult the matrix is. Plasma is already relatively clean compared to whole blood, which adds red blood cells, white blood cells, and clotting factors to the mix. Researchers have developed 3D-printed devices that preconcentrate drugs directly from whole blood for rapid analysis, aiming to simplify what has traditionally been a labor-intensive cleanup process.2PubMed Central. Analysis of Drugs in Whole Blood by Paper Spray Mass Spectrometry with Integrated Solid-Phase Extraction In forensic and clinical toxicology settings, simpler preparation means faster results, which can matter when a patient is in the emergency room or a crime lab is working under deadline.
Separating Compounds Before They Enter the Instrument
Most real-world samples contain hundreds or thousands of different molecules. If you ionized them all at once and sent them into the mass analyzer simultaneously, you would get a congested, uninterpretable mess. That is why mass spectrometry is almost always paired with a separation technique, most commonly gas chromatography or liquid chromatography.
Gas chromatography (GC) vaporizes the sample and carries it through a long, coated column using an inert gas. Molecules interact differently with the column coating, so they exit at different times. GC works well for small, volatile, thermally stable molecules. When coupled with mass spectrometry, it provides detailed compositional information, including structural details that other methods might miss.3Carbohydrate Polymer Technologies and Applications. Gas chromatography-mass spectrometry and liquid chromatography-mass spectrometry metabolomics platforms: Tools for plant oligosaccharides analysis Time-of-flight mass analyzers paired with GC capture thousands of mass spectra in rapid succession, which improves reproducibility and allows detection of trace-level compounds.
Liquid chromatography (LC) keeps the sample dissolved in a liquid solvent and pushes it through a column packed with solid particles. Because nothing needs to be vaporized, LC handles heat-sensitive and large molecules that would decompose in a GC oven. LC coupled with tandem mass spectrometry is considered particularly powerful for quantifying specific molecules in complex mixtures, combining the separation power of chromatography with the sensitivity and selectivity of mass analysis.3Carbohydrate Polymer Technologies and Applications. Gas chromatography-mass spectrometry and liquid chromatography-mass spectrometry metabolomics platforms: Tools for plant oligosaccharides analysis The choice between GC and LC depends on the properties of your target molecules.
Ionizing the Sample
Once molecules are separated and ready to enter the mass spectrometer, they need to be converted into ions, meaning they need to gain or lose an electrical charge. This is the step that makes mass spectrometry possible: uncharged molecules cannot be steered or sorted by electric and magnetic fields. How you ionize the sample has a major impact on what information you get out.
Hard Ionization
Electron ionization, the oldest and still most common technique for GC-MS, bombards molecules with a beam of energetic electrons. This knocks one or more electrons off the molecule almost instantaneously, creating a positively charged ion. Because the process dumps a lot of energy into the molecule, it also breaks chemical bonds, shattering the molecule into a predictable pattern of fragments.4Accounts of Chemical Research. Tracking Molecular Fragmentation in Electron–Ionization Mass Spectrometry with Ultrafast Time Resolution Those fragment patterns act like fingerprints. Searchable libraries of electron ionization spectra contain hundreds of thousands of compounds, making identification straightforward for known molecules. The downside is that fragmentation can be so extensive that the intact molecular ion barely shows up, making it hard to determine the molecule’s actual mass.
Soft Ionization
When you need to keep molecules largely intact, soft ionization methods are the answer. Electrospray ionization (ESI), the workhorse of LC-MS, works by spraying the liquid sample through a charged needle to create a fine mist of charged droplets. As the solvent evaporates from each droplet, the charge density on its surface increases until the droplet undergoes a series of explosions, eventually producing gas-phase ions.5PubMed. Electrospray: from ions in solution to ions in the gas phase, what we know now For large molecules like proteins, the droplets shrink until the surface tension can no longer hold the spherical shape against the repulsive charges, stretching into elongated structures that shed solvent to leave behind multiply charged ions.6Analytica Chimica Acta. Electrospray ionization of large multiply charged species proceeds via Dole’s charged residue mechanism Those multiple charges are actually useful: they bring the mass-to-charge ratio of very large proteins down into a range that standard instruments can measure.
Matrix-assisted laser desorption/ionization (MALDI) takes a different approach. You mix your sample with a chemical matrix, a small organic compound that absorbs laser light, and spot the mixture onto a metal plate. When a pulsed laser hits the spot, the matrix absorbs the energy and helps launch your analyte molecules into the gas phase as ions. Over four decades of development since the mid-1980s, researchers have discovered and tested hundreds of different matrix compounds, though only a handful have gained widespread use.7ACS Publications. MALDI Matrix: Origins, Innovations, and Frontiers MALDI tends to produce singly charged ions, which simplifies the resulting spectra, and it tolerates salts and buffers better than ESI, making it a natural fit for rapid screening and tissue imaging.
Sorting Ions by Mass
After ionization, the charged molecules enter the mass analyzer, the heart of the instrument. Its job is to separate ions based on their mass-to-charge ratio. Several designs exist, each with different strengths.
Quadrupole mass analyzers use four parallel metal rods with oscillating electric fields to create a stability window that lets only ions of a specific mass-to-charge ratio pass through at any given moment. They are rugged, relatively inexpensive, and fast at scanning through a range of masses, which makes them popular for routine analysis. Time-of-flight analyzers accelerate all ions through the same voltage and measure how long each takes to reach the detector. Lighter ions arrive first, heavier ones later. Because every ion gets measured on every pulse, time-of-flight instruments are efficient and can cover a broad mass range in a single shot.
For applications demanding the highest mass accuracy, Orbitrap analyzers represent a major leap. In an Orbitrap, ions orbit around a central spindle-shaped electrode while oscillating back and forth along its axis. The frequency of that axial oscillation depends on the ion’s mass-to-charge ratio and, critically, is independent of the ion’s energy or spatial spread, which is what gives the Orbitrap its exceptional resolving power.8PubMed. The Orbitrap: a new mass spectrometer Rather than destroying ions when they hit a detector, the Orbitrap measures the tiny electrical current the orbiting ions induce on outer electrodes, then uses mathematical transforms to convert those signals into a mass spectrum. This non-destructive detection means ions can be measured repeatedly, boosting sensitivity.
Breaking Ions Apart for Deeper Information
A single mass measurement tells you how heavy a molecule is, but not how it is built. Tandem mass spectrometry, often written as MS/MS, adds a second stage of analysis. In the most common version, you select a specific ion from the first mass analyzer (the “precursor”), energize it so it collides with an inert gas, and then analyze the fragments that result. The collision breaks the molecule at its weakest chemical bonds, producing a pattern of fragment ions that reveals structural details.9PubMed. Collision-induced dissociation tandem mass spectrometry for structural elucidation of glycans
This fragmentation step is essential in proteomics, metabolomics, and drug analysis. By reading the fragment pattern, you can distinguish between molecules that have identical masses but different structures. Deep learning models are now being developed to simulate this fragmentation process computationally, predicting what fragments a given molecular structure would produce under specific collision conditions.10PubMed Central. Neural Spectral Prediction for Structure Elucidation with Tandem Mass Spectrometry These tools help researchers identify unknown compounds by comparing predicted spectra against experimental data, expanding the reach of mass spectrometry into uncharted chemical territory.
Choosing a Data Acquisition Strategy
When running tandem mass spectrometry experiments, you have to decide how the instrument selects which ions to fragment. The traditional approach, data-dependent acquisition, lets the instrument pick the most intense ions it sees in each scan cycle and fragments them one at a time. This works well when you know roughly what you are looking for or when your sample is not overwhelmingly complex, but it tends to miss low-abundance compounds that never rise above the selection threshold.
Data-independent acquisition takes the opposite philosophy. Instead of cherry-picking individual ions, it systematically fragments everything within a wide mass range, regardless of intensity. This provides broader coverage, improved reproducibility, better sensitivity for low-abundance species, and more accurate quantification. The tradeoff is that the resulting spectra are more complex, because fragments from multiple precursor ions are mixed together, requiring more sophisticated computational processing to untangle.
Making Sense of the Data
A raw mass spectrum is a graph of signal intensity versus mass-to-charge ratio. Turning that into useful chemical information requires several layers of processing. The first challenge is figuring out which peaks belong together. Many molecules, especially large ones like proteins, produce clusters of peaks spaced one mass unit apart due to the natural distribution of heavier isotope variants of carbon, hydrogen, and other elements. Algorithms that identify and collapse these isotope clusters down to a single monoisotopic mass are critical for accurate identification.11PubMed Central. Features-based deisotoping method for tandem mass spectra
For proteins analyzed by electrospray, a single protein produces a series of peaks at different charge states, each representing the same molecule carrying a different number of protons. Charge state deconvolution algorithms combine these peaks to determine the protein’s true mass and to detect low-abundance variants, called proteoforms, that might otherwise be buried in the noise.12PubMed Central. Fast and Accurate Charge State Deconvolution of Protein Mass Spectra In complex mixtures, peaks from different molecules often overlap, and automated deconvolution methods apply statistical techniques to tease apart which peaks belong to which molecule.13PubMed. Automatic deconvolution of isotope-resolved mass spectra using variable selection and quantized peptide mass distribution
After the raw data has been cleaned up, identification typically involves searching the processed spectra against databases. For proteomics, you compare fragment patterns against theoretical spectra generated from known protein sequences. For metabolomics or small molecules, you match against libraries of reference spectra. The confidence of a match depends on spectral quality, the completeness of the database, and how well the instrument was calibrated.
Getting Accurate Numbers With Internal Standards
Detecting that a molecule is present is one thing. Knowing exactly how much of it is in your sample is a harder problem. The ionization efficiency of any given compound depends on what else is in the sample at the same moment, a phenomenon known as matrix effects. Co-eluting salts, lipids, or other molecules can suppress or enhance ionization unpredictably, throwing off your quantification.
The gold standard for dealing with this is isotope dilution, where you spike the sample with a known amount of a version of your target molecule that has been labeled with stable heavy isotopes (typically carbon-13 or deuterium). Because the labeled version behaves almost identically to the natural molecule during sample preparation, chromatography, and ionization, any matrix effects hit both molecules equally, and the ratio between them stays constant.14PubMed Central. Mitigating Matrix Effects in LC-ESI-MS-MS Analysis of a Urinary Biomarker of Xylenes Exposure
In practice, the match is not always perfect. Deuterium-labeled internal standards sometimes separate slightly from the natural compound during chromatography because the heavier hydrogen isotope subtly changes the molecule’s interaction with the column. When the labeled standard and the target compound arrive at the ionization source at different times, they experience different matrix conditions, undermining the correction.15PubMed. Evaluation of matrix effect in isotope dilution mass spectrometry based on quantitative analysis of chloramphenicol residues in milk powder Carbon-13-labeled standards tend to co-elute more reliably. One approach using singly carbon-13-labeled versions of target drugs, combined with mathematical deconvolution of the overlapping isotope patterns, achieved accurate quantification of compounds in urine and liver tissue even at very low concentrations and in the presence of significant matrix effects.16PubMed. Overcoming matrix effects in electrospray: quantitation of β-agonists in complex matrices by isotope dilution liquid chromatography-mass spectrometry using singly (13)C-labeled analogues
Watching Out for Space Charge Artifacts
One of the less obvious pitfalls in mass spectrometry, especially with trapping instruments, is space charge effects. When too many ions are packed into a trap or analyzer at the same time, their mutual electrical repulsion starts distorting the measurements. The consequences can be surprisingly severe: simulations of Fourier transform quadrupole ion traps showed that even at low absolute numbers of trapped ions, space charge could cause complete fusion of neighboring isotope signals, suppression of individual peaks, and severe distortion of signal shapes.17PubMed. Simulation of Space Charge Effects in Fourier Transform Quadrupole Ion Traps (FT-QITs) In Fourier transform ion cyclotron resonance instruments, failing to account for ion population when calibrating can produce mass errors exceeding 100 parts per million, which is enormous by modern standards.18PubMed. Routine Part-per-Million Mass Accuracy for High-Mass Ions: Space-Charge Effects in MALDI FT-ICR
Instrument designers have developed various workarounds. One approach uses a diamond-shaped (rhombic) ion excitation and ejection scheme in linear ion traps, which reduced space-charge-induced mass shifts by roughly half and improved resolving power by about two times under the tested conditions.19PubMed. Reducing Space Charge Effects in a Linear Ion Trap by Rhombic Ion Excitation and Ejection Automatic gain control, a feature built into most modern trapping instruments, limits the number of ions allowed into the trap for each scan cycle based on a quick pre-scan. Getting this setting right is one of the more underappreciated aspects of method development, and overlooking it is a common source of puzzling mass accuracy problems for newcomers.
Ambient Ionization and Skipping the Prep
The traditional workflow described above assumes you have time and resources for sample preparation, chromatographic separation, and careful method optimization. But an entire class of newer techniques aims to skip most of that. Ambient ionization methods like desorption electrospray ionization (DESI) and direct analysis in real time (DART) let you analyze raw samples in the open air with minimal or no preparation.20PubMed. Comprehensive comparison of ambient mass spectrometry with desorption electrospray ionization and direct analysis in real time for direct sample analysis You can spray a charged solvent onto a tablet, a banknote, a leaf, or a piece of meat and get a mass spectrum within seconds. The tradeoff is less control over matrix effects and lower quantitative precision, but the speed is transformative for applications like point-of-care diagnostics, food safety screening, and forensic analysis at crime scenes.
DESI works by directing a spray of charged solvent droplets at a surface. The droplets dissolve and pick up analyte molecules, then bounce off and carry ions into the mass spectrometer inlet. DART instead uses a heated stream of excited gas atoms (usually helium or nitrogen) to ionize molecules directly from surfaces or from the surrounding air. Both techniques have found widespread use, though each has its niche: DESI tends to work better on flat solid surfaces, while DART handles liquids and gases more easily.
Imaging Molecules Directly in Tissue
One of the most visually striking applications of mass spectrometry is imaging, where the goal is not just to identify what molecules are present, but to map exactly where they sit within a biological tissue. MALDI imaging mass spectrometry scans a laser across a thin tissue section point by point, collecting a mass spectrum at each position and building two-dimensional maps of molecular distributions. This provides an unbiased view of how biomolecules are arranged in tissue, adding a spatial dimension to histological analysis that traditional staining cannot offer.21PubMed Central. MALDI imaging mass spectrometry: spatial molecular analysis to enable a new age of discovery
A persistent challenge in imaging has been combining spatial information with the structural identification that tandem mass spectrometry provides. Acquiring fragmentation data at every pixel would take prohibitively long, so clever sampling strategies have emerged. One approach clusters similar pixels together and performs tandem MS only at representative points, capturing both location and structural identity from a single tissue section.22Analytical Chemistry. InSitu Untargeted Metabolite Identification and Spatial Mapping by Clustering Resampling Mass Spectrometry Imaging Newer correlative imaging methods using nanospray desorption electrospray ionization can map lipids, metabolites, peptides, and proteins with cellular-level spatial resolution in a single experiment.23PubMed Central. Correlative Imaging for Comprehensive Molecular Mapping of Individual Cell Types in Biological Tissues This kind of molecular cartography is proving valuable in cancer research, drug distribution studies, and neuroscience, where knowing that a molecule is present somewhere in the brain is far less useful than knowing it accumulates specifically in a particular cell layer.
How Mass Spectrometry Found Its Start
The technique traces its roots to experiments with cathode rays and canal rays at the turn of the twentieth century. J.J. Thomson, better known for discovering the electron, was using electric and magnetic fields to deflect ion beams when he noticed something unexpected in 1913: analyzing neon gas, he saw a strong line at mass 20, as expected, but also a weaker line at mass 22.24PubMed. Mass spectrometry and isotopes: a century of research and discussion That faint signal was the first experimental evidence that an element could exist in forms with different masses, what we now call isotopes. Francis Aston refined the instruments further and obtained the mass spectrum of chlorine, resolving it into masses at 35 and 37. Mass spectrometry was born not as a tool for chemists analyzing complex mixtures, but as a physics experiment that rewrote our understanding of the atom itself. The analytical applications came decades later, and the field has been expanding its reach ever since.