Rydberg Hydrogen Spectrum Calculator

Hydrogen lines from the Rydberg formula, with isotopes.

  • Series and isotopes
  • Ions with Z
  • Energy levels
A small rounded clay table holding a soft clay ball circled by smooth clay arcs, with a fan of rounded rainbow-coloured rays spreading from it.

The guide

One formula gives every hydrogen line, and the weight of the nucleus shifts each one by about 0.05 percent

How the Rydberg formula places hydrogen's spectral lines, what the reduced-mass correction changes for deuterium and tritium, and why vacuum and air wavelengths differ.

  • 656.4696 nm Balmer-alpha of hydrogen, in vacuum
  • 0.1786 nm how much shorter deuterium's Balmer-alpha is than hydrogen's
  • 0.99946 mass factor that turns the infinite-mass constant into hydrogen's
  • 30.3797 nm He+ line from n = 2 to n = 1, with Z = 2
  • 13.5983 eV energy that binds hydrogen's ground level
Read the full guide Fold the guide 6 min · 17 sources

Heat hydrogen gas until it glows and the light splits into a handful of sharp lines. Four of them are visible, at about 410, 434, 486 and 656 nanometres. In 1885 Johann Balmer found an empirical equation that predicted them. Johannes Rydberg took the next step in the late 1880s. He noticed that lines fall into series and that the pattern became simple once he stopped counting wavelengths and counted wavenumbers instead. A wavenumber is the inverse of the wavelength: how many waves fit into one metre.

One formula for every line

For hydrogen the formula reads 1 / lambda = R (1 / n1^2 - 1 / n2^2). Here lambda is the wavelength in vacuum, R is the Rydberg constant for hydrogen, and n1 and n2 are whole numbers with n2 larger. For an atom with a single electron and a nucleus of charge Z, the same formula gains a factor Z^2.

Today we read n1 and n2 as the principal quantum numbers of two energy levels. Niels Bohr derived the constant from his model of the atom in 1913, and Rydberg’s constant stopped being an empirical fitting number. The same wavenumber, multiplied by h c, is also the energy of the photon.

The constant for an infinitely heavy nucleus, written R with a subscript infinity, equals alpha squared times the electron mass times the speed of light, divided by twice Planck’s constant, where alpha is the fine-structure constant. The 2022 CODATA value is 10,973,731.568157 per metre, with a standard uncertainty of 0.000012. Multiply it by h c and you get the Rydberg energy, 13.605693 eV, and every level of an infinitely heavy hydrogen-like nucleus sits at minus that energy divided by n squared.

Fix n1 and let n2 run upward, and you get a named series. Setting n1 to 1 gives the Lyman series in the ultraviolet. Then come Balmer (2), Paschen (3), Brackett (4), Pfund (5) and Humphreys (6), which are mostly infrared. Within a series the lines are named from the longest wavelength with Greek letters: n2 = 3 to n1 = 2 is Balmer-alpha.

Why do the series stop? As n2 grows, 1 / n2^2 shrinks toward zero and the lines crowd together. They pile up at a limit where the wavenumber is R Z^2 / n1^2. For hydrogen that puts the Lyman limit at 91.1763 nm and the Balmer limit at 364.7053 nm. The limit is also the smallest photon energy that can pull the electron out of the atom from level n1.

The series are not fenced off from each other. Paschen-alpha is at 1875.6 nm and the Paschen limit at 820.6 nm, while the Brackett series runs from 4052.3 nm down to a limit at 1458.8 nm. That limit falls between Paschen-alpha and Paschen-beta, which is at 1282.2 nm, so the shortest Brackett lines sit among the Paschen lines. Every later series overlaps in the same way.

A worked example you can reproduce: choose hydrogen with n1 = 2 and n2 = 3. The difference 1/4 - 1/9 is 5/36. Multiply by R for hydrogen, 10,967,758.34 per metre, and the wavenumber is 1,523,299.8 per metre. The wavelength is its inverse, 656.4696 nm. That is Balmer-alpha, the red line astronomers use to find hydrogen.

Its frequency is c times the wavenumber, 456.67 terahertz, and its photon energy is 1.8887 electronvolts. The same line from the energy side: the level n = 2 sits at minus 3.3996 eV and n = 3 at minus 1.5109 eV, and the gap between them is that 1.8887 eV.

The correction for a nucleus that moves

The classical formula assumes a nucleus of infinite mass. A real nucleus has finite mass, so the electron and the nucleus circle their common centre of mass. Quantum mechanics handles this by replacing the electron’s mass with a reduced mass, which is slightly smaller.

The effect on the Rydberg constant is compact. For a nucleus of mass M, R becomes the infinite-mass constant divided by 1 + m_e / M, where m_e is the electron mass. For the proton, whose mass is 1836.15 electron masses, the divisor is 1.000544 and the factor that multiplies the infinite-mass value is 0.99946.

That small factor matters. It also changes the energies. The ground level of hydrogen binds 13.5983 eV, deuterium 13.6020 eV and tritium 13.6032 eV, against 13.6057 eV for an infinitely heavy nucleus. Heavier nuclei hold the electron slightly more tightly.

The infinite-mass constant is 10,973,731.568157 per metre, and hydrogen’s is 10,967,758.34. A calculation for hydrogen that uses the infinite-mass constant puts Balmer-alpha at 656.1123 nm instead of 656.4696 nm. The line is misplaced by 0.36 nm, about 0.054 percent and about twice the whole hydrogen-deuterium shift described below.

Deuterium has a proton and a neutron, so its nucleus is nearly twice as heavy. Its constant is 10,970,742.66 per metre, a little larger than hydrogen’s, and its lines move to shorter wavelengths. Balmer-alpha comes out at 656.2910 nm for deuterium and 656.2316 nm for tritium.

The shift between hydrogen and deuterium is 0.1786 nm, which is 124 gigahertz in frequency. Deuterium’s line lies slightly to the blue of hydrogen’s because a heavier nucleus recoils less. Spectroscopists call this the mass shift, and it dominates the isotope shift of light elements. A second part, the field shift, comes from the nucleus’s charge distribution and is not in this calculation.

Ions and the square of Z

The Rydberg formula applies to any atom or ion with exactly one electron: hydrogen, singly ionised helium (He+), doubly ionised lithium and so on. Every energy level scales with Z^2, because the electron feels a stronger pull from a larger charge.

For He+ the ground level lies at minus 54.4153 eV. That is 4.0016 times hydrogen’s minus 13.5983 eV, not exactly 4, because the mass factor is slightly different for the helium-4 nucleus. The Lyman-alpha line of He+, from n = 2 to n = 1, lands at 30.3797 nm, deep in the ultraviolet. A transition from n = 4 to n = 3 falls at 468.7159 nm, which is blue and visible.

The formula cannot be stretched to atoms with several electrons. Inner electrons screen the nucleus by amounts that depend on the level, and the correction has its own name, the quantum defect. Only one-electron systems, or the outermost electron far from a core with charge plus one, behave like hydrogen.

Vacuum, air and what is left out

Every wavelength above is a vacuum wavelength. In air light is slower, and its wavelength is the vacuum value divided by the refractive index of air. The National Institute of Standards and Technology documents that relationship and lists an index of 1.0002718 at 633 nm in its table of worked values, for air at 20 degrees Celsius, zero humidity and 101.325 kilopascals.

Tables of hydrogen lines mix the two conventions. The Wikipedia table gives Balmer, Paschen and Brackett lines in air and Lyman, Pfund and Humphreys lines in vacuum. Its air figure for Balmer-alpha is 656.3 nm, so our vacuum value is 1.00026 times longer. Quote 656.4696 nm where a laboratory measured 656.3 and you have mixed the two.

The NIST list of strong hydrogen lines gives the Balmer-alpha components in air between 656.271 and 656.285 nm. Divide our vacuum 656.4696 nm by 1.0002718 and you get 656.291 nm, within 0.02 nm of those components. The difference between the vacuum and air figures is 0.178 nm, almost exactly the 0.1786 nm that separates hydrogen from deuterium. Reading an air table against a vacuum table would mistake a medium for an isotope.

Even in vacuum the simple formula is not the last word. The NIST handbook gives hydrogen’s ionisation energy as 109,678.7717 per centimetre, or 13.598433 eV. The formula with the reduced mass gives 109,677.5834 per centimetre, 11 parts per million lower. Its Lyman-alpha is 121.5684 nm against the handbook’s 121.5668 nm.

The gap comes from effects the formula leaves out, which include fine structure, the Lamb shift and hyperfine splitting. They split single lines into closely spaced groups. The calculator does not model them, nor line strengths, electric and magnetic fields, or thermal spectra.

What it does well is the bookkeeping that is easy to get wrong: the right constant for the right nucleus, the Z^2 scaling, the choice between vacuum and air, and a complete series table you can check line by line.

Sources

Every source consulted for this guide. Links checked November 10, 2026.

  1. Rydberg formula Wikipedia (CC BY-SA)
  2. Hydrogen spectral series Wikipedia (CC BY-SA)
  3. Rydberg constant Wikipedia (CC BY-SA)
  4. Reduced mass Wikipedia (CC BY-SA)
  5. Hydrogen-like atom Wikipedia (CC BY-SA)
  6. Isotopic shift Wikipedia (CC BY-SA)
  7. CODATA Value: Rydberg constant National Institute of Standards and Technology
  8. CODATA Value: electron mass National Institute of Standards and Technology
  9. CODATA Value: proton mass National Institute of Standards and Technology
  10. CODATA Value: deuteron mass National Institute of Standards and Technology
  11. CODATA Value: triton mass National Institute of Standards and Technology
  12. CODATA Value: alpha particle mass National Institute of Standards and Technology
  13. Atomic Data for Hydrogen (H) National Institute of Standards and Technology
  14. Strong Lines of Hydrogen (H) National Institute of Standards and Technology
  15. Index of Refraction of Air National Institute of Standards and Technology
  16. BigInt - JavaScript MDN Web Docs (CC BY-SA)
  17. Web Workers API MDN Web Docs (CC BY-SA)