Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Spectroscopy lab

Hydrogen spectral lines from the Rydberg formula, blackbody glow from Planck's law with Wien's peak, and redshift that slides the lines across the spectrum.

How to use

  1. Hydrogen lines: pick a series. Each line is light given out when the electron drops from a higher level n to the series' lower level. The table gives the wavelength in vacuum and in air, the photon energy and the region of the spectrum; the diagram shows the jumps.
  2. Blackbody glow: type a temperature in kelvin or pick an example. The curve shows how bright the glow is at each wavelength; the table gives the peak, the total power and how much of it is visible light.
  3. Redshift: type a redshift or a speed. The hydrogen lines of a moving source slide to longer (redder) wavelengths when it moves away and to shorter ones when it comes closer.

Keyboard and touch

TabMove between tabs, boxes and buttons
Enter in a boxShow the result
Changing a listUpdates the result straight away

Tips

  • The red line of hydrogen, H-alpha, is at about 656.3 nm in air (656.5 nm in vacuum). It gives glowing gas clouds in space their pink-red colour.
  • Lines crowd together towards the series limit: that is where the electron leaves the atom completely.
  • The Sun's surface peaks near 500 nm, in the green, but looks white because it shines across the whole visible band.
  • A filament bulb at 2,700 K gives out only about 7 % of its energy as visible light; the rest is heat (infrared). That is why such bulbs were phased out.
  • A person at 310 K glows too, at about 9.3 micrometres: thermal cameras see it.

About this lab

Hydrogen wavelengths come from the Rydberg formula 1/λ = RH (1/n1² − 1/n2²), where RH = R∞ / (1 + me/mp) uses the CODATA 2022 values of the Rydberg constant and the proton-to-electron mass ratio. This simple formula ignores fine structure and other tiny shifts, so the results agree with measured lines to about 0.01 nm. Air wavelengths divide by the refractive index of standard air (Morton 2000 formula, used above 200 nm). Level energies are −13.6 eV / n².

The blackbody tab uses Planck's law with the exact SI values of the Planck and Boltzmann constants and the speed of light; Wien's displacement constant b = 2.897771955 × 10⁻³ m K; and the Stefan-Boltzmann constant σ = 5.670374419 × 10⁻⁸ W m⁻² K⁻⁴. The visible share is integrated numerically. The colour swatch is only a rough guide, made by weighting a simple rainbow by the Planck curve. Redshift uses observed = rest × (1 + z) and the relativistic Doppler formula 1 + z = √((1 + v/c) / (1 − v/c)); for distant galaxies, redshift comes mostly from the expansion of space rather than motion, so the speed is only a way of picturing it. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product