Atoms and Chemical Bonding

Line Spectra and What They Reveal About Electron Energy Levels

Learn why gases glow in sharp colored lines, how to turn a wavelength into an energy gap and what spectra say about atoms and stars.

Key takeaways

  • A line spectrum appears because electron energies in an atom are quantized, meaning limited to specific values.
  • Each emitted or absorbed photon has an energy equal to the difference between two levels.
  • Shorter wavelengths correspond to larger energy gaps.
  • Every element has a distinctive line pattern, which makes spectra a powerful tool for identification.

A gas of atoms, energized by heat or electricity, gives off light only at certain wavelengths. Those sharp lines show that electrons in atoms can have only certain energies, and each line records the gap between two of them.

Because each element has its own set of levels, each has its own pattern of lines. That pattern works as a fingerprint, readable from a lamp on a lab bench or from a star far away.

Continuous and line spectra

Pass white light from a glowing filament through a prism and you see a smooth band of colors, each fading into the next. This is a continuous spectrum.

Now pass an electric current through a tube of hydrogen gas and split its pinkish glow the same way. You see only a few thin, bright lines on a dark background. This is an emission line spectrum.

A third kind appears when white light travels through a cooler gas. The otherwise continuous band is crossed by dark lines, exactly where that gas would emit. This is an absorption spectrum.

Why the lines are sharp

An electron bound in an atom cannot take just any energy. It occupies one of a set of discrete states, called energy levels. The lowest is the ground state and the rest are excited states.

Energy from heat, electric discharge or light can lift an electron to a higher level. It does not stay there long. When it falls back, the atom releases the difference as a single photon, a packet of light.

ΔE = h × f = h × c ÷ λ

h = Planck's constant, 6.626 × 10⁻³⁴ J·s
c = speed of light, 2.998 × 10⁸ m/s
f = frequency (Hz),  λ = wavelength (m)

Only certain differences exist, so only certain wavelengths appear. If electrons could hold any energy, atoms would emit a continuous smear.

From energy input to a spectral line
1 Excitation Heat, current or light raises an electron to a higher level. 2 Short stay The excited state is temporary. 3 Drop The electron falls to a lower allowed level. 4 Photon Light leaves with energy equal to the gap. 5 Line A spectroscope records it at one wavelength. Excitation Heat, current or light raises an electron to a higher level. 1 Short stay The excited state is temporary. 2 Drop The electron falls to a lower allowed level. 3 Photon Light leaves with energy equal to the gap. 4 Line A spectroscope records it at one wavelength. 5

Hydrogen, the model case

Hydrogen has one electron, and its levels follow a simple rule.

E(n) ≈ −13.6 eV ÷ n²       n = 1, 2, 3, ...
E(1) = −13.60 eV
E(2) =  −3.40 eV
E(3) =  −1.51 eV
E(4) =  −0.85 eV

An electronvolt (eV) is a small energy unit, about 1.602 × 10⁻¹⁹ J. The negative sign means the electron is bound: zero corresponds to an electron just freed from the atom. It takes 13.6 eV, about 1,312 kJ per mole, to ionize hydrogen from its ground state.

The levels crowd together as n rises. The first gap is large, and higher gaps get steadily smaller.

Worked example: the red hydrogen line

Find the wavelength emitted when the electron drops from n = 3 to n = 2. A handy shortcut is that photon energy in eV times wavelength in nanometers is about 1,240.

ΔE = E(3) − E(2) = −1.51 − (−3.40) = 1.89 eV
λ  = 1240 eV·nm ÷ 1.89 eV ≈ 656 nm     (red)

The measured line sits near 656 nm. To express the gap per mole of photons, convert 1.89 eV to about 3.03 × 10⁻¹⁹ J and multiply by Avogadro's constant, 6.022 × 10²³ per mole. The result is roughly 182 kJ/mol.

The same line comes from the Rydberg formula, found from measurements before anyone could explain it:

1 ÷ λ = R × (1/n₁² − 1/n₂²),   R ≈ 1.097 × 10⁷ m⁻¹,  n₂ > n₁
n₁ = 2, n₂ = 3:  1/4 − 1/9 = 5/36
1 ÷ λ ≈ 1.524 × 10⁶ m⁻¹,  λ ≈ 656 nm

Series of lines

Lines that end on the same lower level form a series.

Series Electron lands on Region of light
Lyman n = 1 ultraviolet
Balmer n = 2 visible and near ultraviolet
Paschen n = 3 infrared

The visible Balmer lines of hydrogen sit near 656, 486, 434 and 410 nm, coming from n = 3, 4, 5 and 6. Each series bunches toward a limit as the starting level climbs, mirroring the crowding of the levels themselves.

This agreement was the great success of Bohr's model, part of the story of how atomic models changed.

Counting the possible jumps

A collection of excited hydrogen atoms can emit several different lines on the way down, because an electron need not fall to the ground state in one step. Suppose many atoms start in n = 4. Some drop straight to 1, while others go by way of 3 or 2.

from n = 4:  4→3,  4→2,  4→1
from n = 3:  3→2,  3→1
from n = 2:  2→1
total distinct jumps = 6

for a starting level n:  n(n − 1) ÷ 2

The energies add up consistently. The 4→1 photon carries the same energy as the 4→2 and 2→1 photons combined. Spectroscopists noticed such sums among measured frequencies, known as the combination principle, before the idea of energy levels explained it.

Each single atom follows only one route at a time. All six lines appear because a lamp contains an enormous number of atoms taking different routes.

One He⁺ comparison

A helium ion with one electron behaves like hydrogen with a stronger nucleus. For any one-electron species the levels scale with the square of the nuclear charge Z.

E(n) ≈ −13.6 eV × Z² ÷ n²
He⁺ (Z = 2), ground state:  −13.6 × 4 = −54.4 eV

All the gaps are about four times larger than in hydrogen, so the corresponding lines move to shorter wavelengths. The hydrogen jump from 3 to 2, red at 656 nm, has a He⁺ counterpart near 164 nm in the ultraviolet. This pattern shows directly how nuclear charge controls how tightly electrons are held.

Atoms with many electrons

With more than one electron, there is no simple formula. Electrons repel each other, and sublevels within a shell (s, p, d and f) have different energies. The number of possible jumps rises quickly, and heavy elements such as iron have spectra with a great many lines.

Not every conceivable jump shows up strongly. Quantum mechanics provides selection rules that make some transitions likely and others very rare.

The pattern remains unique to each element. Sodium shows a close pair of intense yellow lines near 589 nm, the source of the color of sodium street lamps. Understanding which levels are filled starts with electron configurations.

Second worked example: reading a gap from a color

Spectra are often used in the opposite direction. You measure a wavelength and deduce the spacing of levels. Take the yellow light of sodium at about 589 nm.

ΔE = 1240 eV·nm ÷ 589 nm ≈ 2.11 eV
per mole: 2.11 eV × 96.485 kJ/mol per eV ≈ 203 kJ/mol

This tells you that the excited level reached by sodium's outer electron lies about 2.1 eV above its ground state. The electron moves from the 3s sublevel to 3p and back. The pair of closely spaced lines arises because the upper 3p level is itself split into two slightly different energies, an effect connected with electron spin.

For comparison, 203 kJ/mol is in the same range as the energies of some weaker chemical bonds. Visible and ultraviolet light carry enough energy to disturb electrons, which is why such light can start certain chemical reactions.

Spectra as fingerprints

In the mid-nineteenth century Robert Bunsen and Gustav Kirchhoff established that elements can be identified by their lines, and they discovered cesium and rubidium this way. A line seen in sunlight in 1868 matched no known element and was attributed to a new one, helium, named for the Sun and later found on Earth.

Astronomers read dark absorption lines in starlight to learn what stellar atmospheres contain, and shifts in line positions reveal motion toward or away from us. In the laboratory, atomic absorption spectroscopy measures how much light at an element's own wavelength a sample soaks up, which gives its concentration.

The colors of a flame test are a rough, visual version of the same idea.

Lines versus bands

Molecules also absorb and emit light, but their spectra often look like broad bands. Besides electronic levels they have vibrational and rotational levels, so each electronic jump splits into many closely spaced ones. In liquids and solids, collisions and neighbors blur these into smooth humps.

Even atomic lines are not infinitely thin. The motion of the atoms, collisions and the limited lifetime of excited states all give them a small width. Instruments add some width of their own.

A checklist for spectrum problems

  1. Decide whether light is being emitted (the electron drops) or absorbed (the electron rises).
  2. Find the two levels and subtract to get the size of the gap, keeping it positive for the photon.
  3. Convert with λ = 1240 eV·nm ÷ ΔE, or use h × c ÷ ΔE with the energy in joules per photon.
  4. Sanity check the region: visible light spans roughly 400 to 700 nm, shorter is ultraviolet and longer is infrared.

If an answer for a jump down to n = 1 in hydrogen lands in the visible range, something has gone wrong, since every Lyman line is ultraviolet.

Common questions

Does a brighter line mean a bigger energy gap?

No. Position tells you the size of the gap. Brightness depends on how many atoms make that particular jump each second, which is affected by temperature, the amount of gas and how probable the transition is.

Why do emission and absorption lines match?

Both involve the same pair of levels. An atom absorbs a photon whose energy equals the upward gap, and emits that energy when it comes back down.

Is it safe to look at a discharge tube?

Classroom spectrum tubes run on high voltage and some give off ultraviolet light. They should be set up and handled by an instructor, with the power supply left alone by everyone else. Never look at the Sun through a prism, spectroscope or any other optic.

Written for 4Chemistry with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 45 articles in Atoms and Chemical Bonding →

Latest news on this topic