Harmonic Oscillator Energy Calculator

Find the energy levels of a quantum harmonic oscillator from its frequency.

Physics and EnergyUpdated 2026-11-202 min read
Harmonic Oscillator Energy Calculator
Non negative integer. n = 0 is the ground state.
Energy level
...
Energy in electronvolts...
Zero point energy...

What it does

The quantum harmonic oscillator is one of the most important solvable systems in physics. It models a particle in a quadratic potential and appears in molecular vibrations, lattice vibrations and the quantisation of electromagnetic modes. Its energy levels are evenly spaced, which makes it unusually simple.

Each level is Planck constant times frequency multiplied by n plus one half. The quantum number n is a non negative integer. Even at n zero the energy is not zero, which is the zero point energy required by the uncertainty principle.

The tool takes the ordinary frequency in hertz rather than angular frequency. Since angular frequency is two pi times ordinary frequency, the equivalent form is h bar omega times n plus one half. The result is printed in joules and electronvolts.

For a frequency of one terahertz, adjacent levels are separated by about 0.00414 electronvolts, and the first excited level sits at about 0.00620 electronvolts. Those energies are typical of molecular vibrational transitions in the infrared.

The model assumes an ideal quadratic potential and a nonrelativistic particle. Real molecular bonds are anharmonic, so their levels get closer together at high quantum numbers. This calculator gives the ideal result only.

How to use

  1. Enter a non negative whole quantum number.
  2. Enter the oscillation frequency in hertz.
  3. Read the energy in joules and electronvolts.
  4. Read the zero point energy of the ground state.
  5. Compare levels to confirm equal spacing.
  6. Remember that this is the ideal harmonic model.

Formula

E_n = (n + 1/2) h f, with f the ordinary frequency in hertz.
n
Non negative integer quantum number.
h
Planck constant, 6.62607015e-34 J s.
f
Ordinary frequency in hertz.
E_n
Energy of level n.

The angular frequency form E = (n + 1/2) h bar omega is equivalent because omega equals two pi f. The zero point energy is half of h f. The Planck constant is an exact SI defining constant.

Worked example

Example: first excited level at 1 THz

Defaults: level 1 and frequency 1e12 Hz.

  1. Compute n plus one half: 1.5.
  2. Multiply Planck constant by frequency: 6.626e-34 x 1e12 = 6.626e-22 J.
  3. Multiply by 1.5: 9.939e-22 J.
  4. Divide by the electronvolt conversion: 0.00620 eV.
  5. Zero point energy is half of 6.626e-22, about 3.313e-22 J.
  6. The tool shows 9.939e-22 J, 0.00620 eV and 3.313e-22 J.

Reference table

Energy levels at 1 THz
Level nEnergyElectronvolts
03.313e-22 J0.00207 eV
19.939e-22 J0.00620 eV
21.656e-21 J0.01034 eV
32.320e-21 J0.01448 eV

Limits

  • Assumes an ideal quadratic potential.
  • Ignores anharmonicity and rotational structure.
  • Uses a nonrelativistic particle.
  • Takes frequency as an input rather than deriving it from a force constant.

Common mistakes

  • Entering angular frequency where hertz is expected.
  • Starting the quantum number at one.
  • Expecting zero energy at the ground state.
  • Applying the ideal formula to strongly anharmonic vibrations.
  • Confusing this oscillator with the infinite square well.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is the ground state energy at 1 THz?

The zero point energy is 3.313e-22 J, or about 0.00207 eV.

How large is the spacing between adjacent levels?

The spacing is h times f, about 6.626e-22 J or 0.00414 eV at 1 THz.

What if the level is entered as a negative number?

The tool returns the error Enter a whole quantum number from 0 to 1000, because levels start at zero.

Questions

What is a quantum harmonic oscillator?

A particle in a quadratic potential with evenly spaced quantum energy levels.

Why is there zero point energy?

The uncertainty principle prevents the oscillator from having exactly zero energy.

Does the formula use hertz or radians per second?

This page uses hertz. The equivalent angular form uses h bar and omega.

Where does this model appear?

In molecular vibrations, crystal phonons and quantised electromagnetic modes.

Are real oscillators exactly harmonic?

No. Real bonds become anharmonic, so levels are not perfectly evenly spaced.

Can n be zero?

Yes. Zero is the ground state and is the allowed lowest quantum number.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.