ScienceMeasurement Science

How spectroscopy identifies materials from light alone

Every element and molecule absorbs and emits light at its own fingerprint of wavelengths. How spectroscopy reads that fingerprint to identify substances from a drop of blood to the atmosphere of a distant planet.

LMDr. Luca Marchetti — Science Editor, PhD, Environmental PhysicsPublished 22 October 2025Last reviewed 30 January 20269 min readIntermediate1,710 words

Fact-checked by Dr. Rina Halvorsen, Editor-in-Chief (PhD, Cognitive Science) · 4 primary sources cited · how we review

Engraved illustration of light passing through a prism into a spectrum of separated colours

In short

Atoms and molecules absorb and release light only at specific, repeatable wavelengths determined by their internal structure, producing a spectral pattern as distinctive as a fingerprint. Spectroscopy exploits that pattern to identify substances without touching or destroying them, from diagnosing a patient's blood chemistry to reading the composition of a star hundreds of light-years away.

Shine white light through a prism and it spreads into a continuous rainbow. Shine that same light through a specific gas first, and dark lines appear at exact points within the rainbow, wavelengths the gas has absorbed. Heat that gas until it glows and it emits light at those very same wavelengths and almost no others. This pattern of absorbed or emitted wavelengths is unique to each element and molecule, and spectroscopy is the science of reading it to determine what a sample is made of.

Why atoms absorb and emit only specific colours

Electrons in an atom occupy discrete energy levels rather than a continuous range, a consequence of quantum mechanics established in the early twentieth century. An electron can jump to a higher level only by absorbing a photon carrying exactly the energy difference between the two levels, and it can fall back down only by emitting a photon of that same exact energy. Because energy and wavelength of light are directly related, this restricts each element to absorbing and emitting light only at a specific, calculable set of wavelengths.

No two elements share an identical set of energy level spacings, because each has a different number of protons and electrons arranged in a different configuration. The resulting pattern of spectral lines is therefore as distinctive as a fingerprint, and it was through exactly this reasoning that helium was discovered in 1868 from an unexplained line in the sun's spectrum, decades before it was found on Earth.

Absorption versus emission spectra

An emission spectrum is produced by a hot or energetically excited sample releasing light as its electrons fall to lower energy states, appearing as bright lines against a dark background at the sample's characteristic wavelengths. An absorption spectrum is produced by shining a broad range of light through a cooler sample and looking at what wavelengths have been removed, appearing as dark lines or dips against a bright continuous background. Both reveal the same underlying energy level structure and, for a given substance, the dark absorption lines fall at the same wavelengths as its bright emission lines.

Common spectroscopic methods and what they reveal
MethodWhat it measuresTypical use
Atomic emission spectroscopyWavelengths emitted by excited atomsIdentifying elements in flames, stars, plasmas
Atomic absorption spectroscopyWavelengths absorbed by atoms in a sampleTrace metal analysis in water and blood
Infrared spectroscopyMolecular bond vibrationsIdentifying organic compounds, forensic analysis
UV-visible spectroscopyElectronic transitions in moleculesConcentration measurement, pigment analysis
Raman spectroscopyVibrational modes from scattered lightNon-destructive material identification, pharmaceuticals
Nuclear magnetic resonanceNuclear spin states in a magnetic fieldMolecular structure determination in chemistry

Molecules add vibration and rotation to the picture

Molecules produce richer spectra than single atoms because, in addition to electron transitions, their chemical bonds can stretch, bend and rotate, and each of these motions is also quantised, occurring only at specific allowed energies. Infrared spectroscopy exploits bond vibrations in particular: a carbon-hydrogen bond, a carbon-oxygen double bond and an oxygen-hydrogen bond each absorb infrared light at their own characteristic frequency, largely independent of the rest of the molecule they sit within. This lets chemists identify functional groups within an unknown compound by matching its infrared absorption pattern against reference libraries.

Regions of the electromagnetic spectrum used in common spectroscopic techniques

approximate wavelength, micrometres (log scale representation)

Illustrative central wavelength ranges; actual technique boundaries vary by instrument and application.

Reading intensity as well as wavelength

Wavelength alone reveals what elements or bonds are present; the intensity of absorption or emission at each wavelength reveals how much of the substance is present. The Beer-Lambert law describes this relationship for absorption: the fraction of light absorbed increases predictably with the concentration of the absorbing substance and the distance the light travels through it. This is the basis of routine laboratory tests, such as measuring haemoglobin concentration in a blood sample or the concentration of a compound in a chemical reaction, by comparing measured absorbance against a calibration curve built from samples of known concentration.

Distinguishing spectroscopy from spectrometry and mass spectrometry

The terms are often used loosely but describe related, distinct techniques. Spectroscopy generally refers to studying how matter interacts with light across a range of wavelengths. Spectrometry more specifically refers to the quantitative measurement of a spectrum, often using an instrument called a spectrometer. Mass spectrometry is a different technique entirely: rather than analysing light, it ionises a sample, accelerates the ions through a magnetic or electric field, and measures how their mass-to-charge ratio affects their path, identifying compounds by molecular mass and fragmentation pattern rather than by light absorption.

  • Spectroscopy: studies interaction between matter and electromagnetic radiation.
  • Spectrometry: the quantitative measurement process, often using a spectrometer instrument.
  • Mass spectrometry: identifies substances by ion mass-to-charge ratio, not by light.
  • The two are frequently combined, for example gas chromatography-mass spectrometry paired with infrared confirmation, to identify unknown compounds with greater confidence.

From forensic labs to exoplanet atmospheres

The same underlying principle scales from a bench-top instrument to a space telescope. Forensic laboratories use infrared and Raman spectroscopy to identify unknown powders, fibres and paints without destroying the evidence. Clinical laboratories use spectroscopic methods to measure blood oxygen, glucose and electrolyte concentrations. Remote sensing satellites use reflected sunlight spectra to map vegetation health and mineral composition across entire landscapes. The James Webb Space Telescope analyses the light from a star that has passed through an exoplanet's atmosphere during a transit, looking for the absorption fingerprints of water, carbon dioxide and other molecules many light-years away, using precisely the same physical principle as a school prism experiment.

Key points

  • Atoms and molecules absorb and emit light only at specific wavelengths set by their quantised internal energy levels.
  • This produces a spectral fingerprint that identifies a substance without consuming or damaging the sample.
  • Emission spectra show bright lines from excited atoms; absorption spectra show dark lines removed from a broad light source.
  • Molecular spectroscopy also uses bond vibration and rotation, extending identification to organic compounds.
  • The same principle identifies elements in a flame test and molecules in the atmosphere of a planet light-years away.

Sponsored video

Advertisement

Checking for a video ad…

Frequently asked questions

Sources

About the author

Dr. Luca Marchetti — Science Editor

Luca translates primary research into readable explanation. He reviews every science and health article for claim strength, checks that each figure traces back to a named dataset, and flags anywhere a study's finding has been stretched beyond what its method supports.

Qualifications
  • PhD, Environmental Physics — University of Bologna
  • MSc, Physics — Sapienza University of Rome
Experience
  • Ten years of published research on atmospheric measurement records
  • Six years as a reviewer for science communication projects
Subject areas:
Climate systems, Measurement, Scientific literacy

Reviewed for factual accuracy by Dr. Rina Halvorsen, Editor-in-Chief (PhD, Cognitive Science), on 30 January 2026.

Structure, claim strength and whether an explanation actually answers the question a reader arrived with.

Inquro articles are commissioned, sourced, reviewed and re-checked under a published editorial policy. Corrections are made in place and dated — write to editorial@inquro.example if you find an error.

Related explainers

More from Science and connected clusters across the full library.

ScienceMeasurement Science

How the seven SI base units are defined today

How the metre, kilogram, second and the other SI base units moved from physical artefacts to exact definitions fixed by fundamental constants.

Dr. Luca MarchettiUpdated 30 June 202611 min
ScienceMeasurement Science

Measurement uncertainty explained: what error bars really tell you

Why every measurement carries an uncertainty, how random and systematic components differ, what a confidence interval does and does not claim, and how calibration chains make instruments trustworthy.

Dr. Luca MarchettiUpdated 22 July 20267 min
ScienceMeasurement Science

How GPS satellites calculate position on the ground

How a receiver turns signals from orbiting atomic clocks into a location, why four satellites are needed rather than three, and how relativistic time corrections keep the system accurate.

Dr. Luca MarchettiUpdated 11 February 20269 min
ScienceClimate & Environment

How scientists measure Earth's energy balance

An explanation of Earth's energy budget: how satellites measure incoming and outgoing radiation, how ocean floats confirm the imbalance, what radiative forcing means, and where the uncertainty lies.

Dr. Luca MarchettiUpdated 8 July 20269 min

Keep reading

Definitions used here

Go deeper