Particle in a Box Calculator – Energy Levels n²h²/(8mL²)
Use this free Particle in a Box Calculator to find the quantised energy levels of a particle trapped in a one-dimensional box of width L. Squeeze a particle into a tiny space and its energy can only take the values En = n²h² / (8mL²) — the smaller the box, the bigger the energies.
Formula
Only standing waves that fit the box are allowed, which forces the energy to be En = n²h² / (8mL²) for n = 1, 2, 3, ... The ground state (n = 1) is E₁ = h² / (8mL²), and every other level is n² times larger. Energy grows with the square of n and shrinks with the square of the box width.
How to use
- Pick a particle, or choose "Custom mass" and type a mass in kg (like 9.11e-31).
- Enter the box width L in nanometres and the quantum number n.
- Click "Calculate Energy Level" to see E₁ and En in joules and electronvolts.
Worked example
An electron in a box of width L = 1 nm:
E₁ = h² / (8mL²) = (6.626 × 10⁻³⁴)² / (8 × 9.11 × 10⁻³¹ × (1 × 10⁻⁹)²)
= 6.024 × 10⁻²⁰ J = 0.376 eV
For n = 2: E₂ = 4 × E₁ = 1.504 eV
These are the energy scales of real quantum dots — nanometre-sized boxes that trap electrons in modern electronics.
FAQ
Why can't the particle have zero energy?
A standing wave must fit in the box, so the shortest possible wavelength is 2L. That gives the particle a minimum momentum and hence a minimum (zero-point) energy — it can never sit perfectly still.
Why do the levels spread out as n grows?
Because En grows with n², the gaps widen: E₂ − E₁ = 3E₁, E₃ − E₂ = 5E₁, and so on. This is different from the harmonic oscillator, whose levels are evenly spaced.
Where is the particle-in-a-box model used?
It explains the colour of dye molecules (electrons in a molecular "box"), the behaviour of quantum dots and nanowires, and gives a first estimate of energy levels in any tightly confined quantum system.