Absorption lines for air, under indirect illumination, with the direct light source not visible, so that the gas is not directly between source and detector. Here, Fraunhofer lines in sunlight and Rayleigh scattering of this sunlight is the "source." This is the spectrum of a blue sky somewhat close to the horizon, pointing east at around 3 or 4 pm (i.e., Sun toward the west) on a clear day.

A spectral line is a dark or bright line in an otherwise uniform and continuous spectrum, resulting from emission or absorption of light in a narrow frequency range, compared with the nearby frequencies. Spectral lines are often used to identify atoms and molecules. These "fingerprints" can be compared to the previously collected "fingerprints" of atoms and molecules,[1] and are thus used to identify the atomic and molecular components of stars and planets, which would otherwise be impossible.

Spectral lines are the result of interaction between a quantum system (usually atoms, but sometimes molecules or atomic nuclei) and a single photon. When a photon has about the right amount of energy to allow a change in the energy state of the system (in the case of an atom this is usually an electron changing orbitals), the photon is absorbed. Then it will be spontaneously re-emitted, either in the same frequency as the original or in a cascade, where the sum of the energies of the photons emitted will be equal to the energy of the one absorbed (assuming the system returns to its original state).

A spectral line may be observed either as an emission line or an absorption line. Which type of line is observed depends on the type of material and its temperature relative to another emission source. An absorption line is produced when photons from a hot, broad spectrum source pass through a cold material. The intensity of light, over a narrow frequency range, is reduced due to absorption by the material and re-emission in random directions. By contrast, a bright emission line is produced when photons from a hot material are detected in the presence of a broad spectrum from a cold source. The intensity of light, over a narrow frequency range, is increased due to emission by the material.

Spectral lines are highly atom-specific, and can be used to identify the chemical composition of any medium capable of letting light pass through it. Several elements were discovered by spectroscopic means, including as helium, thallium, and caesium. Spectral lines also depend on the physical conditions of the gas, so they are widely used to determine the chemical composition of stars and other celestial bodies that cannot be analyzed by other means, as well as their physical conditions.

Mechanisms other than atom-photon interaction can produce spectral lines. Depending on the exact physical interaction (with molecules, single particles, etc.), the frequency of the involved photons will vary widely, and lines can be observed across the electromagnetic spectrum, from radio waves to gamma rays.

This section needs expansion. You can help by adding to it.(October 2008)

Strong spectral lines in the visible part of the spectrum often have a unique Fraunhofer line designation, such as K for a line at 393.366 nm emerging from singly ionized Ca+, though some of the Fraunhofer "lines" are blends of multiple lines from several different species. In other cases the lines are designated according to the level of ionization by adding a Roman numeral to the designation of the chemical element, so that Ca+ also has the designation Ca II. Neutral atoms are denoted with the roman number I, singly ionized atoms with II, and so on, so that for example Fe IX (IX, roman 9) represents eight times ionized iron. More detailed designations usually include the line wavelength and may include a multiplet number (for atomic lines) or band designation (for molecular lines). Many spectral lines of atomic hydrogen also have designations within their respective series, such as the Lyman series or Balmer series. Originally all spectral lines were classified into series of Principle series, Sharp series, and Diffuse series. These series exist across atoms of all elements and the Rydberg-Ritz combination principle is a formula that predicts the pattern of lines to be found in all atoms of the elements. For this reason, the NIST spectral line database contains a column for Ritz calculated lines. These series were later associated with suborbitals.

A spectral line extends over a range of frequencies, not a single frequency (i.e., it has a nonzero linewidth). In addition, its center may be shifted from its nominal central wavelength. There are several reasons for this broadening and shift. These reasons may be divided into two general categories – broadening due to local conditions and broadening due to extended conditions. Broadening due to local conditions is due to effects which hold in a small region around the emitting element, usually small enough to assure local thermodynamic equilibrium. Broadening due to extended conditions may result from changes to the spectral distribution of the radiation as it traverses its path to the observer. It also may result from the combining of radiation from a number of regions which are far from each other.

The uncertainty principle relates the lifetime of an excited state (due to spontaneous radiative decay or the Auger process) with the uncertainty of its energy. A short lifetime will have a large energy uncertainty and a broad emission. This broadening effect results in an unshifted Lorentzian profile. The natural broadening can be experimentally altered only to the extent that decay rates can be artificially suppressed or enhanced.[2]

The atoms in a gas which are emitting radiation will have a distribution of velocities. Each photon emitted will be "red"- or "blue"-shifted by the Doppler effect depending on the velocity of the atom relative to the observer. The higher the temperature of the gas, the wider the distribution of velocities in the gas. Since the spectral line is a combination of all of the emitted radiation, the higher the temperature of the gas, the broader the spectral line emitted from that gas. This broadening effect is described by a Gaussian profile and there is no associated shift.

The presence of nearby particles will affect the radiation emitted by an individual particle. There are two limiting cases by which this occurs:

Impact pressure broadening or collisional broadening: The collision of other particles with the emitting particle interrupts the emission process, and by shortening the characteristic time for the process, increases the uncertainty in the energy emitted (as occurs in natural broadening).[3] The duration of the collision is much shorter than the lifetime of the emission process. This effect depends on both the density and the temperature of the gas. The broadening effect is described by a Lorentzian profile and there may be an associated shift.

Quasistatic pressure broadening: The presence of other particles shifts the energy levels in the emitting particle,[clarification needed] thereby altering the frequency of the emitted radiation. The duration of the influence is much longer than the lifetime of the emission process. This effect depends on the density of the gas, but is rather insensitive to temperature. The form of the line profile is determined by the functional form of the perturbing force with respect to distance from the perturbing particle. There may also be a shift in the line center. The general expression for the lineshape resulting from quasistatic pressure broadening is a 4-parameter generalization of the Gaussian distribution known as a stable distribution.[4]

Pressure broadening may also be classified by the nature of the perturbing force as follows:

Linear Stark broadening occurs via the linear Stark effect, which results from the interaction of an emitter with an electric field of a charged particle at a distance r{\displaystyle r}, causing a shift in energy that is linear in the field strength. (ΔE∼1/r2){\displaystyle (\Delta E\sim 1/r^{2})}

Resonance broadening occurs when the perturbing particle is of the same type as the emitting particle, which introduces the possibility of an energy exchange process. (ΔE∼1/r3){\displaystyle (\Delta E\sim 1/r^{3})}

Quadratic Stark broadening occurs via the quadratic Stark effect, which results from the interaction of an emitter with an electric field, causing a shift in energy that is quadratic in the field strength. (ΔE∼1/r4){\displaystyle (\Delta E\sim 1/r^{4})}

Inhomogeneous broadening is a general term for broadening because some emitting particles are in a different local environment from others, and therefore emit at a different frequency. This term is used especially for solids, where surfaces, grain boundaries, and stoichiometry variations can create a variety of local environments for a given atom to occupy. In liquids, the effects of inhomogeneous broadening is sometimes reduced by a process called motional narrowing.

Electromagnetic radiation emitted at a particular point in space can be reabsorbed as it travels through space. This absorption depends on wavelength. The line is broadened because the photons at the line center have a greater reabsorption probability than the photons at the line wings. Indeed, the reabsorption near the line center may be so great as to cause a self reversal in which the intensity at the center of the line is less than in the wings. This process is also sometimes called self-absorption.

Radiation emitted by a moving source is subject to Doppler shift due to a finite line-of-sight velocity projection. If different parts of the emitting body have different velocities (along the line of sight), the resulting line will be broadened, with the line width proportional to the width of the velocity distribution. For example, radiation emitted from a distant rotating body, such as a star, will be broadened due to the line-of-sight variations in velocity on opposite sides of the star. The greater the rate of rotation, the broader the line. Another example is an imploding plasma shell in a Z-pinch.

Radiative broadening of the spectral absorption profile occurs because the on-resonance absorption in the center of the profile is saturated at much lower intensities than the off-resonant wings.Therefore, as intensity rises, absorption in the wings rises faster than absorption in the center, leading to a broadening of the profile. Radiative broadening occurs even at very low light intensities.

Each of these mechanisms can act in isolation or in combination with others. Assuming each effect is independent, the observed line profile is a convolution of the line profiles of each mechanism. For example, a combination of the thermal Doppler broadening and the impact pressure broadening yields a Voigt profile.

However, the different line broadening mechanisms are not always independent. For example, the collisional effects and the motional Doppler shifts can act in a coherent manner, resulting under some conditions even in a collisional narrowing, known as the Dicke effect.

Without qualification, "spectral lines" generally implies that one is talking about lines with wavelengths which fall into the range of the visible spectrum. However, there are also many spectral lines which show up at wavelengths outside this range. At the much shorter wavelengths of x-rays, these are known as characteristic X-rays. Other frequencies have atomic spectral lines as well, such as the Lyman series, which falls in the ultraviolet range.