Astronomers can determine what distant stars are made of, measure the temperatures of planets, detect the motion of galaxies, and investigate the atmospheres of worlds orbiting other stars—all without traveling to those objects. They do it by analyzing light.
The technique behind much of this work is called spectroscopy, the study of how light interacts with matter and how its energy is distributed across different wavelengths. When astronomers spread light from a celestial object into a spectrum, they can find distinctive patterns that reveal its chemical composition, temperature, density, motion, and other physical properties.
This makes spectroscopy one of the most powerful tools in modern astronomy. A telescope collects light from an object that may be thousands, millions, or even billions of light-years away. Spectroscopic instruments then separate that light into its component wavelengths, allowing scientists to extract information that an ordinary image cannot provide.
The process is not simply a matter of matching colors to substances. It relies on well-understood principles of atomic physics, the behavior of light, and the ways radiation changes as it travels through space.
What spectroscopy reveals about light
Light is a form of electromagnetic radiation, which includes visible light, radio waves, infrared radiation, ultraviolet radiation, X-rays, and gamma rays. These forms differ primarily in wavelength and frequency, which are related to one another. Higher-frequency radiation carries more energy per photon, the basic unit of light.
Human eyes detect only a narrow portion of the electromagnetic spectrum. Astronomical objects, however, emit or interact with radiation across a much wider range. A cool cloud of gas may be especially visible in radio or infrared wavelengths, while extremely hot material can emit X-rays.
A spectrum separates radiation according to wavelength or frequency. In a simple visible-light spectrum, different wavelengths appear as different colors, from violet through red. Scientific spectra extend beyond what the eye can see and often represent light intensity as a graph rather than a band of colors.
The most useful information frequently appears as narrow features within that spectrum. Some wavelengths are unusually bright, producing emission lines. Others are unusually faint, producing absorption lines. Broad patterns across many wavelengths can also reveal important physical properties.
These features provide clues because matter does not interact with every wavelength equally. Atoms, ions, and molecules absorb and emit energy in characteristic ways. By identifying the resulting spectral patterns, astronomers can work backward from the light they receive to infer the physical conditions of the object that produced it.
Why atoms leave distinctive patterns in a spectrum
The foundation of astronomical spectroscopy is the relationship between light and the internal energy of atoms and molecules.
Electrons in atoms can occupy only certain allowed energy states. When an electron moves from a higher energy state to a lower one, the atom can release a photon. When an atom absorbs a photon with exactly the right energy, an electron can move to a higher state.
The energy of the photon corresponds to a particular wavelength or frequency. Because each chemical element has its own arrangement of allowed electron energy states, it produces a characteristic collection of spectral lines.
Hydrogen, helium, sodium, calcium, and iron, for example, each have distinct spectral patterns. These patterns act like identifying marks. Astronomers can compare observed lines with laboratory measurements to determine which elements are present in a distant star or cloud of gas.
The same basic principle applies to ions, which are atoms that have lost or gained electrons, and to molecules, which can absorb or emit energy through additional forms of motion and internal excitation. Molecules often produce more complex spectral patterns than individual atoms.
A spectral line is therefore not simply a color associated with an element. It corresponds to a specific energy transition under particular physical conditions. An element may produce many different lines, and which ones appear most strongly depends on factors such as temperature, density, ionization, and the intensity of the surrounding radiation.
How emission and absorption lines form
Emission lines form when atoms or ions release light at particular wavelengths. In a hot, thin gas, collisions and radiation can excite particles, which then emit photons as they return to lower energy states. If the gas is observed against a relatively dark background, its characteristic lines can stand out brightly.
Absorption lines form when light from a hotter source passes through cooler gas. Atoms or molecules in the gas absorb photons at particular wavelengths, removing some of that light from the beam. The resulting spectrum contains dark lines against a brighter, continuous background.
A star’s spectrum often contains absorption lines because light produced in its hot interior passes through cooler layers of its atmosphere before escaping into space. The atoms and ions in those layers absorb selected wavelengths.
The distinction is not absolute: the same substance can produce emission or absorption features under different conditions. What matters is the relationship between the material, the radiation passing through it, and the physical environment.
Astronomers also examine a spectrum’s continuum, the underlying distribution of light across a broad range of wavelengths. The continuum can reveal the temperature of an emitting object, while its spectral lines help identify the material and physical conditions responsible for the radiation.
How telescopes turn light into scientific evidence
Collecting light is only the first step. To obtain a spectrum, astronomers use an instrument called a spectrograph, which separates incoming radiation by wavelength and records its intensity.
A telescope gathers light from a celestial object and directs it toward the instrument. Depending on the design, the spectrograph uses a prism, a diffraction grating, or another optical system to separate the wavelengths. A detector then records the resulting spectrum, often as digital data.
A diffraction grating separates light by directing different wavelengths along different paths through interference, the interaction of light waves. Modern astronomical spectrographs can resolve very closely spaced spectral features, making it possible to measure subtle changes in wavelength.
Some instruments record a spectrum from a single point or a narrow region of an object. Others use multiple fibers or slits to collect spectra from many targets simultaneously. Integral-field spectrographs can record spectra across a two-dimensional region, allowing scientists to study how the properties of gas and stars vary across a galaxy or nebula.
The instrument must be designed for the wavelengths astronomers want to study. Visible-light spectrographs differ from infrared, ultraviolet, radio, and X-ray instruments because each part of the electromagnetic spectrum requires different detection methods and, in many cases, different optical technologies.
The resulting data are not automatically a clear chemical inventory. Astronomers must calibrate the instrument, correct for detector effects, account for background signals, and identify genuine spectral features. They then compare the measurements with laboratory data and physical models.
A weak line may be difficult to distinguish from noise. Several elements may have overlapping spectral features, and the intensity of a line may depend on conditions other than the abundance of the element. Reliable interpretation therefore requires more than recognizing a familiar pattern.
How scientists determine what stars are made of
Stars are among the most important targets for spectroscopy because their light carries information about the hot gas in their outer layers.
When astronomers analyze a stellar spectrum, they look for absorption lines associated with different elements and ionization states. The wavelengths of those lines help identify the substances present. Their strengths, shapes, and relative intensities provide additional information about the star’s temperature, surface gravity, chemical composition, and atmospheric conditions.
Temperature matters because it influences how atoms are distributed among their energy states and how easily they lose electrons. In a relatively cool stellar atmosphere, certain atoms may produce prominent absorption lines. At higher temperatures, those atoms may become ionized, changing the pattern of features in the spectrum.
As a result, a weak line does not necessarily mean that an element is scarce. The element might be present in a form that does not produce a strong line under the conditions being observed. Astronomers use models of stellar atmospheres to separate these effects and estimate chemical abundances.
The overall shape of a star’s continuum also helps constrain its temperature. A star emits radiation over a range of wavelengths, with the distribution depending in part on its temperature. A simplified model treats the star as a blackbody, an idealized object whose radiation is determined by its temperature. Real stellar atmospheres depart from this ideal because gases absorb and emit radiation at specific wavelengths, but the model provides a useful starting point.
Together, continuum measurements and spectral lines help astronomers classify stars, compare their chemical compositions, and investigate how they evolve. Differences in stellar abundances can also provide clues about the environments in which stars formed and the generations of stars that existed before them.
Spectroscopy can even reveal material around a star that is not itself producing much visible light. Gas surrounding a star may absorb some of the star’s radiation or emit its own characteristic lines, allowing scientists to study the material’s composition and motion.
How spectroscopy measures the motion of distant objects
Spectroscopy does more than identify substances. It also measures motion through the Doppler effect, the change in observed wavelength that occurs when a source and an observer move relative to one another along the line of sight.
When an object moves away from an observer, its spectral features generally shift toward longer wavelengths. This is called a redshift. When it moves toward the observer, the features shift toward shorter wavelengths, producing a blueshift.
To measure this motion, astronomers first identify spectral lines whose rest wavelengths are known from laboratory measurements. They then compare those reference wavelengths with the observed positions of the lines.
For speeds much smaller than the speed of light, the relationship between wavelength shift and line-of-sight velocity can be approximated by:
Δλλ0≈vc\frac{\Delta \lambda}{\lambda_0}\approx\frac{v}{c}λ0Δλ≈cv
Here, λ0\lambda_0λ0 is the rest wavelength, Δλ\Delta \lambdaΔλ is the difference between the observed and rest wavelengths, vvv is the radial velocity, and ccc is the speed of light. A positive shift corresponds to motion away from the observer under this convention.
The measurement reveals radial motion, meaning motion toward or away from us. It does not, by itself, determine how quickly an object moves across the sky. Astronomers measure that sideways motion through other techniques, including astrometry, which tracks an object’s position over time.
Radial velocity measurements have many uses. They help scientists map the motions of stars within galaxies, study gas flowing through nebulae, and investigate the gravitational interactions between stars and planets.
They also provide a way to detect planets around other stars. A planet’s gravity causes its host star to move slightly as both orbit their shared center of mass. This motion produces small, recurring shifts in the star’s spectral lines. By measuring the pattern over time, astronomers can infer the presence of an orbiting planet and estimate properties such as its orbital period and minimum mass.
The technique requires precise measurements because a planet may cause only a very small change in its star’s velocity. Stellar activity, including surface convection and magnetic phenomena, can also alter spectral lines and complicate the interpretation.
How redshift reveals the expanding universe
Redshift is especially important in the study of galaxies and the large-scale structure of the universe.
Astronomers measure the wavelengths of recognizable spectral features in distant galaxies and compare them with their known rest wavelengths. The resulting redshift provides information about how the light’s wavelength has changed during its journey to Earth.
For sufficiently distant galaxies, this redshift is primarily associated with the expansion of the universe. As space expands, the wavelengths of light traveling through it are stretched. The farther away a galaxy is, in general, the greater its cosmological redshift, although local gravitational effects and the galaxy’s own motion can also influence the measurement.
Redshift is commonly expressed as:
z=λobserved−λrestλrestz=\frac{\lambda_{\mathrm{observed}}-\lambda_{\mathrm{rest}}} {\lambda_{\mathrm{rest}}}z=λrestλobserved−λrest
A value of zero means the observed wavelength matches the rest wavelength. A positive value indicates that the feature has shifted toward longer wavelengths.
For nearby galaxies, redshift can often be related approximately to recession speed. At large cosmological distances, however, the relationship is more complicated, and interpreting a redshift as an ordinary velocity requires care.
The expansion of the universe also changes which instruments are useful for observing a distant object. Light that began as ultraviolet or visible radiation may arrive at much longer wavelengths after traveling across an expanding universe. This effect is one reason infrared observations are particularly valuable for studying many distant galaxies.
Spectroscopy can reveal more than a galaxy’s redshift. The strengths and ratios of emission lines can provide information about gas temperatures, densities, chemical abundances, and the energetic processes occurring within the galaxy. Astronomers use these measurements to investigate star formation, ionized gas, and the activity of matter falling toward black holes.
A single redshift measurement does not tell the entire story of a galaxy. Scientists combine it with imaging, brightness measurements, and physical models to build a more complete picture of its distance, structure, and evolution.
How scientists investigate the atmospheres of distant planets
Spectroscopy is also a central tool for studying planets beyond our solar system, known as exoplanets. These worlds are usually too far away and too faint for astronomers to examine in detail through direct observation alone. Yet their atmospheres can leave measurable signatures in the light collected by a telescope.
One important method is transmission spectroscopy. When an exoplanet passes in front of its star, some starlight travels through the planet’s atmospheric edge before reaching the observer. Atmospheric gases absorb selected wavelengths, leaving small changes in the star’s observed spectrum.
By comparing the spectrum during a transit with the spectrum outside the transit, astronomers can search for wavelength-dependent changes in the amount of starlight blocked by the planet. These changes can indicate the presence of atmospheric gases and provide clues about atmospheric structure.
Different molecules absorb radiation at characteristic wavelengths. Water vapor, carbon dioxide, methane, and other molecules have distinctive spectral features, although those features may overlap and vary in strength with temperature, pressure, and the composition of the atmosphere.
Another method is emission spectroscopy, which studies radiation emitted by a planet itself. Depending on the system and observing method, scientists may measure the planet’s thermal radiation or examine changes in the combined light from a star and planet as their relative positions change.
A planet’s spectrum can help constrain its atmospheric temperature, the presence of clouds or hazes, and the abundance of certain gases. Clouds and hazes are particularly important because they can obscure deeper atmospheric layers and weaken or alter expected spectral features.
These measurements require careful interpretation. A feature consistent with a particular molecule does not automatically prove that the molecule is present at a specific abundance. Different combinations of temperature, pressure, cloud properties, and chemical composition can sometimes produce similar spectra.
Claims about a planet’s habitability or the presence of life demand even greater caution. Detecting a molecule associated with life on Earth would not, on its own, establish that life exists elsewhere. Scientists must assess alternative nonbiological explanations, the planet’s environmental conditions, and the reliability of the detection.
Spectroscopy can provide powerful evidence about an exoplanet’s atmosphere, but the conclusions depend on the quality of the data and the physical models used to interpret them.
What spectral line shapes reveal about physical conditions
The location of a spectral line helps identify a transition and measure motion, but its shape contains additional information. Lines have widths and profiles that reflect the conditions in the emitting or absorbing material.
One cause of broadening is thermal motion. Atoms and molecules in a gas move at different speeds, and their motion shifts the wavelengths of the radiation they emit or absorb by small amounts. The combined effect broadens the spectral line. Higher temperatures generally produce greater thermal broadening for particles of the same mass.
Pressure can also broaden spectral lines. When particles collide or interact, the energy states associated with a transition can be affected, changing the line’s shape. In sufficiently dense environments, pressure broadening can become an important diagnostic.
Rotation produces another recognizable effect. Different parts of a rotating star or other extended object move toward or away from the observer at different radial velocities. Their combined light can broaden the observed spectral lines, allowing astronomers to estimate the object’s projected rotational speed.
Magnetic fields can split or modify spectral lines through an effect known as Zeeman splitting. The size and pattern of the splitting can provide information about the magnetic field in the emitting or absorbing region.
Line shapes can also reveal the movement of gas within an object. A spectrum may show features associated with inflowing or outflowing material, turbulence, or several components moving at different velocities. In some cases, astronomers can distinguish gas at different temperatures or densities because each component produces a different combination of lines and line profiles.
These interpretations are not always straightforward. Several mechanisms can broaden a line at the same time, and the instrument itself may blur the measured profile. Astronomers must account for instrumental resolution and consider competing explanations before drawing conclusions about the source.
Why different wavelengths require different space telescopes
Not all astronomical radiation reaches the ground equally well. Earth’s atmosphere absorbs much of the ultraviolet and infrared radiation from space, as well as essentially all X-rays and gamma rays. Visible light and portions of the radio spectrum pass through the atmosphere more readily, although atmospheric turbulence, weather, and other effects still influence observations.
Space-based observatories avoid many of these limitations by operating above the atmosphere. Their instruments can observe wavelengths that are difficult or impossible to study from the ground, making them especially valuable for ultraviolet, infrared, and high-energy spectroscopy.
Infrared observations are useful for studying relatively cool objects, dust-obscured regions, and redshifted light from distant galaxies. Ultraviolet spectroscopy can reveal hot stars, highly ionized gas, and energetic processes. X-ray spectroscopy probes extremely hot plasmas, including material around compact objects such as neutron stars and black holes.
Radio astronomy uses its own forms of spectroscopic analysis. Molecules in interstellar clouds emit or absorb radiation at characteristic radio and microwave frequencies, allowing astronomers to map molecular gas, investigate its temperature and density, and measure its motion.
The choice of wavelength depends on the scientific question and the properties of the target. A star may be studied in visible light to characterize its atmosphere, in ultraviolet light to examine hotter material, or in infrared light to investigate cooler surrounding dust. No single wavelength range provides every answer.
Space telescopes also face practical constraints. Their detectors must be sensitive enough to record faint signals, their instruments must remain sufficiently stable, and their observations must distinguish the target’s light from instrumental noise and background radiation. Infrared instruments often require cooling because heat emitted by the telescope itself can overwhelm faint astronomical signals.
Spectroscopy therefore depends on both fundamental physics and careful instrument design. The information is encoded in the light, but extracting it requires detectors and measurement techniques suited to the wavelengths being observed.
What spectroscopy cannot tell us on its own
Despite its power, spectroscopy does not provide a complete, unambiguous description of every object. Astronomers measure radiation, not the object directly. Their conclusions depend on how well they understand the physical processes that produced the observed spectrum.
Several substances can have spectral features close enough to overlap at a given instrument’s resolution. A weak feature may be difficult to distinguish from noise, while an apparent line may result from the instrument or from radiation emitted by Earth’s atmosphere rather than the target. Careful calibration and independent checks help identify these problems.
Chemical abundance measurements can also be affected by temperature, pressure, ionization, and the structure of the emitting or absorbing region. A model that assumes the gas is uniform may fail when the actual object contains several regions with different physical conditions. Scientists often compare multiple spectral lines and combine spectroscopy with other observations to reduce these uncertainties.
Distance, too, generally requires more than spectroscopy alone. Redshift provides important information about distant galaxies, but translating it into a distance depends on a model of cosmic expansion and can be complicated by local motions. For stars and nearby objects, astronomers often use other measurements, such as parallax, to establish distance more directly.
Finally, the absence of a detected spectral feature does not necessarily mean that a substance is absent. The relevant transition may be too weak, may fall outside the instrument’s wavelength range, or may be hidden by clouds, dust, overlapping features, or other effects.
These limitations do not undermine spectroscopy. They define how it must be used: as a precise method of measurement whose results are interpreted alongside physical models, instrument characteristics, and independent evidence.
How spectroscopy turns distant light into knowledge
Every spectrum is a record of physical interactions. Atomic energy levels determine where many lines appear. Temperature and density influence their strength and shape. Motion shifts their wavelengths. The expansion of the universe stretches light over enormous distances, while the atmospheres of stars and planets imprint additional features on the radiation that passes through them.
By measuring these effects, astronomers can identify chemical elements, investigate stellar evolution, map gas flows, measure the motion of galaxies, and study the atmospheres of planets beyond the solar system.
The essential advantage is that light carries information about the conditions under which it was produced and the material through which it traveled. Spectroscopy gives scientists a way to decode that information using the same physical principles established in laboratories on Earth.
A distant object may be far too remote to sample directly, yet its spectrum can still reveal what it contains, how hot it is, how its material behaves, and how it moves. In astronomy, that makes the careful study of light one of the closest things scientists have to direct access to the physical nature of the universe.