Harmonic Oscillator Energy Calculator
Find the energy levels of a quantum harmonic oscillator from its frequency.
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
- Enter a non negative whole quantum number.
- Enter the oscillation frequency in hertz.
- Read the energy in joules and electronvolts.
- Read the zero point energy of the ground state.
- Compare levels to confirm equal spacing.
- Remember that this is the ideal harmonic model.
Formula
- 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.
- Compute n plus one half: 1.5.
- Multiply Planck constant by frequency: 6.626e-34 x 1e12 = 6.626e-22 J.
- Multiply by 1.5: 9.939e-22 J.
- Divide by the electronvolt conversion: 0.00620 eV.
- Zero point energy is half of 6.626e-22, about 3.313e-22 J.
- The tool shows 9.939e-22 J, 0.00620 eV and 3.313e-22 J.
Reference table
| Level n | Energy | Electronvolts |
|---|---|---|
| 0 | 3.313e-22 J | 0.00207 eV |
| 1 | 9.939e-22 J | 0.00620 eV |
| 2 | 1.656e-21 J | 0.01034 eV |
| 3 | 2.320e-21 J | 0.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
- MIT OpenCourseWare: Quantum Mechanical Harmonic Oscillator
- UC San Diego, PHYS 142/242 Lecture 06: Harmonic Oscillator