Modern PhysicsE_n = n²π²ℏ²/(2mL²)

Particle in a Box Simulator

Explore quantum confinement. See wave functions and probability densities for a particle confined to a 1D infinite potential well.

Parameters
Quantum number n
Box length L
nm

Computed
E_n0.0000 eV
E₁ (ground)0.0000 eV
E_n/E₁ ratio1
Nodes (ψ=0)0
λ_deBroglie0.000 nm
n1
L2.0 nm
E_n0.0000 eV
E₁0.0000 eV
Nodes0
λ_deBroglie0.000 nm

Particle in an Infinite Square Well

The particle-in-a-box (infinite square potential well) is the simplest exactly solvable problem in quantum mechanics. An electron (or any particle of mass m) is confined to a region 0 ≤ x ≤ L by infinitely high potential walls. Inside the box the potential is zero; outside it is infinite.

This model underlies the physics of quantum dots, nanowires, and conjugated molecule absorption. Real quantum dots are semiconductor nanocrystals where electrons are confined in all three dimensions, giving tunable emission colors.

Wave Functions

The allowed wave functions are standing waves that fit exactly inside the box: ψ_n(x) = √(2/L) sin(nπx/L). They satisfy ψ=0 at both walls (boundary conditions). The quantum number n (positive integer) counts the number of antinodes (half-wavelengths) in the box.

Energy Quantization

Only certain energies are allowed: E_n = n²π²ℏ²/(2mL²). The energy is proportional to n², so E_2 = 4E_1, E_3 = 9E_1, etc. Unlike classical mechanics, the particle cannot have zero energy — the ground state (n=1) has zero-point energy E_1 > 0.

💡Notice that smaller box (smaller L) means higher energy levels — E_n ∝ 1/L². This is why quantum dots emit different colors: smaller dots have higher energy transitions → shorter wavelength (blue), larger dots → longer wavelength (red).

Probability Density

The probability of finding the particle between x and x+dx is |ψ_n(x)|² dx = (2/L) sin²(nπx/L) dx. For n=1, the particle is most likely at the centre. For n=2, there are two peaks and a node (zero probability) at the centre. Higher n gives more nodes and a more uniform distribution in the classical limit.

nEnergy E_nNodes (ψ=0 inside box)Most probable positions
1E₁0Centre
24E₁1 (at L/2)L/4, 3L/4
39E₁2L/6, L/2, 5L/6
416E₁3L/8, 3L/8, 5L/8, 7L/8

Particle-in-Box Formulas

Allowed Energies

Wave Function

Probability Density

de Broglie Wavelength

SymbolNameValue
Reduced Planck constant1.055 × 10⁻³⁴ J·s
m_eElectron mass9.109 × 10⁻³¹ kg
LBox lengthm (or nm)
nQuantum number1, 2, 3, …
E_nEnergy of level nJ (or eV)
ψ_nWave functionm⁻¹/²

Frequently Asked Questions

Why can't the particle be at rest (zero energy) inside the box?

The Heisenberg uncertainty principle requires Δx·Δp ≥ ℏ/2. Confining the particle to a box of size L means Δx ≤ L, so Δp ≥ ℏ/(2L) > 0. A nonzero uncertainty in momentum means nonzero kinetic energy. This zero-point energy E₁ = π²ℏ²/(2mL²) is a purely quantum effect with no classical analog.

What does a 'node' in the wave function mean physically?

A node is a point where ψ_n = 0, meaning the probability density |ψ|² = 0. The particle has zero probability of being found at that point. Yet it can appear on either side of a node without 'crossing' through it — one of the many counterintuitive features of quantum mechanics.

How does the energy scale with box size L?

E_n ∝ 1/L². Doubling the box length reduces all energies by a factor of 4. This is why electrons confined to smaller structures (quantum dots, molecules) have larger energy gaps and absorb/emit higher-frequency (bluer) light.

What is the classical limit for large n?

For very large n, the probability density |ψ_n|² develops many closely-spaced peaks. Averaged over many peaks, the probability becomes nearly uniform across the box — matching the classical prediction that a bouncing particle spends equal time everywhere. This is Bohr's correspondence principle.

How does this model relate to quantum dots?

Semiconductor quantum dots confine electrons in all three dimensions, effectively creating a 3D box. The three-dimensional energy levels depend on quantum numbers n_x, n_y, n_z. By controlling the dot size (typically 2–10 nm), manufacturers tune the emission wavelength across the visible spectrum — the basis of quantum dot displays (QLED TVs).