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.
| Method | What it measures | Typical use |
|---|---|---|
| Atomic emission spectroscopy | Wavelengths emitted by excited atoms | Identifying elements in flames, stars, plasmas |
| Atomic absorption spectroscopy | Wavelengths absorbed by atoms in a sample | Trace metal analysis in water and blood |
| Infrared spectroscopy | Molecular bond vibrations | Identifying organic compounds, forensic analysis |
| UV-visible spectroscopy | Electronic transitions in molecules | Concentration measurement, pigment analysis |
| Raman spectroscopy | Vibrational modes from scattered light | Non-destructive material identification, pharmaceuticals |
| Nuclear magnetic resonance | Nuclear spin states in a magnetic field | Molecular 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
AdvertisementChecking for a video ad…
Frequently asked questions
Sources
- Introduction to Spectroscopy — National Institute of Standards and Technology
- James Webb Space Telescope: Spectroscopy — NASA
- Hubble's Law and the Expanding Universe — NASA/JPL Astrophysics
- Basics of UV-Vis, IR and Raman Spectroscopy — Royal Society of Chemistry
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
- Contact:
- luca@inquro.example
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.






