Particle in a Box Calculator

The infinite square well (particle in a box) is the foundational model of quantum confinement. A particle of mass m confined to a box of length L can only occupy discrete energy levels En = n^2 h^2 / (8mL^2), where n is a positive integer (quantum number) and h = 6.626 x 10^-34 J s. The ground state (n=1) has the minimum zero-point energy, and higher levels are quantized multiples: E2 = 4E1, E3 = 9E1, and so on. This model directly applies to semiconductor quantum dots, where tuning the nanoparticle size tunes the band gap and thus the color of emitted light. Enter the particle mass, box length, and quantum number n to compute the energy level.

Electron: 9.109e-31 kg
Enter box size in nanometers
Positive integer: 1 (ground), 2, 3...
0.00
0.00
0.00

Particle in a box energy formula

En = n^2 * h^2 / (8 * m * L^2)
E1 = h^2 / (8 * m * L^2) (zero-point energy)
En = n^2 * E1

h = 6.62607015 x 10^-34 J s, m in kg, L in meters. For an electron in a 1 nm box: E1 = 0.376 eV. For a 10 nm quantum dot: E1 = 3.76 meV, much smaller due to the 1/L^2 scaling.

Energy levels for electron in 1 nm box

  • n = 1 (ground state): E1 = 0.376 eV (zero-point energy).
  • n = 2: E2 = 4 * 0.376 = 1.504 eV, transition from E2 to E1 emits 1.128 eV photon (1,100 nm, near-IR).
  • n = 3: E3 = 9 * 0.376 = 3.382 eV.
  • n = 4: E4 = 16 * 0.376 = 6.008 eV.
  • Increasing L from 1 to 2 nm reduces all energies by factor 4 (E1 = 0.094 eV).

Particle in a box: frequently asked questions

What is the particle in a box model?

The particle in a box (infinite square well) is the simplest quantum mechanics model: a particle confined between two impenetrable walls of separation L. The allowed energies are En = n^2 h^2 / (8mL^2) for n = 1, 2, 3..., where h is Planck's constant, m is the particle mass, and L is the box length. Only discrete energy values are allowed because the wavefunction must be zero at the walls.

Why are only discrete energy levels allowed?

The wavefunction must satisfy boundary conditions: psi = 0 at both walls. This requires the box to contain an integer number of half-wavelengths: L = n * lambda/2, so lambda = 2L/n. The de Broglie relation p = h/lambda gives p = nh/(2L), and kinetic energy E = p^2/(2m) = n^2 h^2/(8mL^2). Only specific values of n (positive integers) satisfy the boundary conditions.

What is zero-point energy?

The ground state (n=1) has energy E1 = h^2/(8mL^2), which is nonzero. This is the zero-point energy: the minimum energy a confined quantum particle must have, even at absolute zero. It arises from the Heisenberg uncertainty principle: confining the particle gives it a position uncertainty, requiring nonzero momentum uncertainty, and therefore nonzero kinetic energy.

What are practical applications of the particle in a box?

The model approximates electrons confined in: (1) conjugated molecules (pi electron systems), where the box length relates to the molecular length and gives the UV/visible absorption wavelength; (2) quantum dots, where the box is the semiconductor nanoparticle and the energy levels are tunable by size; (3) nanostructures and quantum wells in semiconductor devices.

How does box size affect energy levels?

Energy levels scale as 1/L^2. Doubling the box length decreases all energy levels by a factor of 4. This explains why quantum dots (3 to 10 nm) have size-tunable optical properties: larger dots absorb and emit lower energy (red-shifted) light. The energy spacing between levels also decreases as 1/L^2, so large boxes approach the classical continuum.

Official sources

Reviewed by the CalculatorHub team, edited by James Graham, 15 June 2026. See our methodology.