A dark line in a spectrum caused by the absorption of specific wavelengths of light by atoms or ions in a gas.An absorption line is a dark line in a spectrum, appearing at a specific wavelength where a gas or plasma has absorbed light. When light from a hot, continuous source passes through a cooler gas, atoms and ions in that gas absorb photons at precise energies, corresponding to electron transitions between discrete energy levels. The absorbed wavelengths are missing from the otherwise continuous spectrum, leaving dark lines that act as a fingerprint of the chemical composition, temperature, and density of the intervening material.
The dark lines in the solar spectrum were first cataloged by Joseph von Fraunhofer in 1814, but their physical origin was explained by Gustav Kirchhoff and Robert Bunsen in 1859, who showed that each element produces a characteristic set of lines.
Photons with energies exactly matching the difference between two electron energy levels in an atom are absorbed, exciting the electron to a higher state. The absorbed energy is later re-emitted, but in all directions, so along the original line of sight the light is missing. The pattern of dark lines is unique to each element, allowing astronomers to identify what a gas is made of and how much of it lies between us and a light source.
Absorption lines are used to measure the composition of stars, galaxies, and planetary atmospheres, as well as to determine radial velocities via the Doppler shift, which is key to detecting exoplanets and measuring cosmic expansion.
The absorption lines in the Sun's spectrum are so numerous that they are still used today to identify over 70 chemical elements present in its atmosphere.







