Skip to content
Omnikalc

Particle in a box calculator: energy levels of a confined electron

Choose a particle and the width of the box, then enter two levels to get the quantized energies and the wavelength of the photon emitted or absorbed in the jump.

Updated on
Your inputs
nm

Value out of range

Value out of range

Value out of range

Results

Wavelength of the photon for the transition

412.1 nm

Ground-state energy E₁
0.3760 eV
Energy of the initial level
3.3843 eV
Energy of the final level
0.3760 eV
Photon energy of the transition
3.0082 eV

A particle trapped between two walls can only have certain energies. The particle in a box calculator gives these quantized energy levels for an electron, a proton or a neutron in a one-dimensional box of a given width. It also gives the photon energy and the wavelength for a jump between two levels.

How the calculation works

  • Choose the particle (electron, proton or neutron), the width of the box and the initial and final energy levels n.
  • The allowed energies of a particle trapped in a one-dimensional box with impenetrable walls are Eₙ = n² h² / (8 m L²), with n = 1, 2, 3, …
  • The ground-state energy E₁ falls with the mass and with the square of the width.
  • A jump between two levels absorbs or emits a photon of energy ΔE = |E_f − E_i| and wavelength λ = h c / ΔE.

Example

An electron in a box 1 nm wide has a ground-state energy E₁ = 0.376 eV. The level n = 3 has 9 × 0.376 = 3.384 eV. A jump from n = 3 down to n = 1 releases 3.008 eV, a photon of wavelength 412 nm, which is violet light.

Why it matters

The particle in a box is a first example in every course of quantum mechanics and physical chemistry. It explains the absorption of light by conjugated dyes and the color of quantum dots, and it shows how confinement leads to quantization and to a zero-point energy.

Good to know

The model is a particle in an infinite potential well in one dimension, with walls that are impenetrable. In real systems, the walls have a finite height, the particle may move in two or three dimensions, and the electrons interact with each other. The result is an approximation, accurate in order of magnitude for molecules and nanostructures, and the calculator takes the mass of the free particle, not an effective mass.

The de Broglie wavelength calculator gives the matter wave behind the standing waves, the Heisenberg uncertainty calculator explains the zero-point energy, the photon energy calculator converts energy to wavelength, and the Rydberg calculator covers the levels of hydrogen.

Frequently asked questions

What is the particle in a box?

It is the simplest model of quantum mechanics: a particle moves freely between two walls that it cannot cross. The wave function must be zero at the walls, so only standing waves with a whole number of half wavelengths fit in the box. This gives energy levels Eₙ = n² h² / (8 m L²) that are quantized, and the lowest energy is not zero.

Why is the lowest energy not zero?

A particle confined to a width L has a position uncertainty of about L, so by Heisenberg’s principle its momentum cannot be zero. The ground state energy E₁ is this zero-point energy. A narrower box gives a larger E₁, which is why confinement of electrons in a nanostructure raises their energy.

Where does the model apply in real life?

It gives the color of conjugated molecules, where π electrons move along a chain (the dyes of carotene, the absorption of butadiene), the energy levels of quantum dots, quantum wells in LEDs and lasers, and the energy of a nucleon in a nucleus. It is a first approximation, because real boxes have walls of finite height.

How does the level spacing change?

The spacing between neighbor levels, Eₙ₊₁ − Eₙ = (2n + 1) E₁, grows with n. The energy goes as 1/L², so a box twice as wide has levels four times closer. For a heavy particle or a large box, the levels are so close that the energy looks continuous, which is the classical limit.

Was this calculator helpful?

Thanks for your feedback!

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