Quantum mechanics

Hydrogen Spectrum Calculator

Pick the level an electron drops from and the level it lands on, and see the exact wavelength, photon energy and colour of the light the hydrogen atom emits — computed live from the Rydberg formula.

Real Larzscript running in your browser454 automated checksOpen source · MITNo sign-up · your inputs never leave your device

Choose the transition

Wavelength in vacuum
—
Wavelength in air
—
Photon energy
—
Frequency
—
Region
—
Energy levels
—

The colour of this line

Other lines in the same series

Hydrogen energy levels

Show the Larzscript program that just ran
Run a calculation to see the exact program.

This is the real program the page sent to the Larzscript interpreter (compiled to WebAssembly) in your browser. The library it imports is the same code the automated tests check.

Rydberg formula and the Bohr levels

An electron in hydrogen can only have certain energies. In the Bohr model the level with principal quantum number n has energy En = −hcR / n², where R is the Rydberg constant. When the electron drops from level nu to a lower level nl the atom emits a photon of wavelength λ:

1/λ = R · (1/nl² − 1/nu²)   ·   Ephoton = hc/λ

The ground state (n = 1) sits at −13.6 eV, the energy needed to strip the electron away entirely. Each series of lines is named for the level it ends on: Lyman (n=1, ultraviolet), Balmer (n=2, visible), Paschen (n=3, infrared), and so on.

The Balmer lines, computed above

For real hydrogen, with the proton's finite mass included, the four visible Balmer lines fall at:

LineTransitionVacuum wavelengthAir wavelengthPhoton energy
Hα (H-alpha)3→2656.47 nm656.288 nm1.8887 eV
Hβ (H-beta)4→2486.274 nm486.138 nm2.5497 eV
Hγ (H-gamma)5→2434.173 nm434.051 nm2.8556 eV
Hδ (H-delta)6→2410.294 nm410.178 nm3.0218 eV
Hε7→2397.124 nm397.011 nm3.1221 eV

The air values match the accepted laboratory wavelengths (656.28, 486.13, 434.05 and 410.17 nm) to within about 0.01 nm, roughly one part in 50,000 — the accuracy limit of the Bohr model. The series converges to the Balmer limit at 364.705 nm (vacuum). The Lyman-α line, the strongest line in the universe's hydrogen, is at 121.568 nm.

What is verified

The ground-state energy matches the CODATA Rydberg energy (13.605693122994 eV) to 10 significant figures for an infinitely heavy nucleus, and the visible Balmer lines, Lyman-α and the Balmer limit agree with measured wavelengths to within the accuracy of the model. The reduced-mass shift and the vacuum-to-air conversion have their own tests.

Limits: this is the Bohr model with a reduced-mass correction. It does not include fine structure, the Lamb shift or hyperfine structure, so wavelengths are good to about 10 parts per million. It is for hydrogen only; hydrogen-like ions have their levels scaled by the nuclear charge squared.

Frequently asked questions

How does the Bohr model explain the hydrogen spectrum?

Niels Bohr proposed in 1913 that the electron can only occupy certain energy levels En = −13.6 eV / n². When it drops from a higher level to a lower one it emits a photon whose energy equals the difference, and because the levels are discrete the emitted light has only certain wavelengths — the atom's spectral lines.

Why does this page give 656.47 nm for H-alpha when textbooks say 656.28 nm?

The textbook 656.28 nm is the wavelength in air; light slows down slightly in air, so its wavelength shrinks. This page reports the vacuum wavelength, 656.47 nm, and converts to air with the standard Edlén formula, giving 656.288 nm. Astronomers and spectroscopists must always check which convention a wavelength uses.

What is the infinite nuclear mass option?

The simplest form of the Rydberg formula assumes the nucleus stays perfectly still. In reality the electron and proton orbit their common centre of mass, which changes every level by about 1 part in 1,836 (the ratio of the electron and proton masses). With an infinitely heavy nucleus H-alpha comes out at 656.112 nm instead of 656.47 nm — the same effect that made deuterium's discovery possible from its slightly shifted lines.

Is the Bohr model exact?

It reproduces the gross structure of hydrogen very well — wavelengths agree with measurements to about one part in 100,000 — but real hydrogen also has fine structure, the Lamb shift and hyperfine splitting, which split each line further. Full quantum mechanics (the Schrödinger and Dirac equations, then quantum electrodynamics) is needed to explain those.

Which hydrogen lines can I see?

Only transitions ending on level 2 — the Balmer series — fall in the visible range: H-alpha is red, H-beta blue-green, H-gamma and H-delta violet. Transitions to level 1 (the Lyman series) are ultraviolet; those to level 3 and above (Paschen, Brackett) are infrared.

Every number on this page is computed by the open-source larzscript-cosmos library (qmech, physconst, physmath), written in Larzscript, and checked against independent references in its test suite. How it is verified →

All physics calculators → · Science calculators hub · Chemistry calculators →