Skip to content
Omnikalc

Quantum harmonic oscillator calculator: how a molecule vibrates and absorbs infrared light

Choose a diatomic molecule and a vibrational level to get the vibrational frequency and wavenumber, the energy of the level, the zero-point energy and the infrared wavelength.

Updated on
Your inputs

Value out of range

Results

Vibrational wavenumber

2,144.1 cm⁻¹

Vibrational frequency
64.28 THz
Energy of level v
0.6646 eV
Zero-point energy
0.1329 eV
Zero-point energy per mole
12.82 kJ/mol
Energy spacing between levels
0.2658 eV
Wavelength of the infrared photon
4.664 µm

Molecules vibrate, and their vibration is quantized. The quantum harmonic oscillator calculator uses the force constant and the reduced mass of a diatomic molecule to give its vibrational frequency, wavenumber, energy levels, zero-point energy and the infrared wavelength at which it absorbs.

How the calculation works

  • Choose a diatomic molecule. The calculator uses its force constant k (the stiffness of the bond) and its reduced mass μ.
  • The molecule vibrates like a mass on a spring at the frequency ν = (1/2π) √(k/μ), and its energy levels are E_v = (v + ½) h ν.
  • The wavenumber ν̃ = ν / c, in cm⁻¹, is the unit used in infrared spectroscopy.
  • Enter the quantum number v to see the energy of that level, the zero-point energy ½ h ν, the spacing and the wavelength of the infrared photon.

Example

For carbon monoxide, with k = 1,857 N/m and a reduced mass of 6.856 u, the vibrational frequency is 64.28 THz, which is a wavenumber of 2,144 cm⁻¹. The spacing between levels is 0.266 eV, the zero-point energy is 0.133 eV (12.8 kJ/mol), and the level v = 2 is at 0.665 eV. A jump of one level absorbs infrared light of 4.66 µm.

Why it matters

The quantum harmonic oscillator is the base of infrared and Raman spectroscopy, of the thermal properties of gases and solids (heat capacity) and of quantum optics. The calculator turns the formula into the numbers a chemist reads on a spectrum: the position of an absorption band in cm⁻¹ and in micrometers.

Good to know

The calculator uses the harmonic approximation, with typical values of the force constants and of the reduced masses of five gas-phase molecules. Real molecules have anharmonicity, rotation (which gives the fine structure of the band) and isotopes that change the reduced mass. The wavenumbers are close to the measured fundamentals but not equal to them, and the higher levels are less accurate.

The photon energy calculator converts energy to wavelength and frequency, the equipartition theorem calculator covers the classical energy of a vibration, the Boltzmann factor calculator gives the populations of the levels, and the wavelength calculator covers the relation between frequency and wavelength.

Frequently asked questions

What is a quantum harmonic oscillator?

It is the quantum version of a mass on a spring. Its energy levels are equally spaced, Eᵥ = (v + ½) h ν, with v = 0, 1, 2, …, and the spacing is h ν. It is the model for the vibration of the atoms of a molecule, the oscillation of atoms in a crystal (phonons) and the modes of the electromagnetic field (photons).

What is the zero-point energy?

The lowest level, v = 0, has the energy ½ h ν, not zero. A molecule cannot be completely at rest, by Heisenberg’s uncertainty principle: it cannot have exactly zero momentum and exactly the equilibrium position at the same time. The zero-point energy is why the isotopes of a molecule, such as H₂ and D₂, have different bond energies.

How is it linked to infrared spectroscopy?

A molecule absorbs infrared light when the photon energy equals the spacing h ν between two levels, and when the vibration changes the electric dipole of the molecule. CO and HCl absorb strongly in the infrared, but N₂, O₂ and H₂ do not (they have no dipole), although their vibrational frequencies are well defined.

Why do the real wavenumbers differ a little?

A real bond is not a perfect spring: it is anharmonic, and the levels get closer as v grows until the molecule dissociates. The measured fundamental of CO is 2,143 cm⁻¹ and that of HCl 2,886 cm⁻¹, so the harmonic model is good to a few percent for low levels.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.