Infinite Square Well Energy Calculator
Find the energy levels of a particle in a one dimensional box of given width.
What it does
The infinite square well is the simplest solvable model in quantum mechanics. A particle is confined to a region of width L with impenetrable walls, so its wave function must vanish at both ends. That boundary condition allows only certain standing waves and therefore only certain energies.
The allowed energies are proportional to n squared, where n is a positive whole number. They also scale inversely with the square of the well width and inversely with the particle mass. Shrinking the box by a factor of ten raises the energies by a factor of a hundred.
The ground state has n equal to one. A value of zero would give a wave function that is zero everywhere, which cannot describe a particle. Higher levels are exact integer multiples of the ground state energy in this ideal model.
The tool prints the energy in electronvolts and joules and the de Broglie wavelength of the standing wave, which is twice the well width divided by n. That wavelength is a helpful check on the standing wave picture.
Real wells have finite barriers, so the energies differ and the particle can tunnel out. The model also assumes one dimension, a nonrelativistic particle and no interactions. It is a teaching model and a first approximation for quantum dots and thin layers.
How to use
- Enter a positive whole quantum number.
- Enter the well width in metres.
- Enter the particle mass as a ratio to the electron mass.
- Read the energy in electronvolts and joules.
- Read the de Broglie wavelength of the standing wave.
- Compare levels by changing n while keeping the geometry fixed.
Formula
- n
- Positive integer quantum number.
- L
- Well width in metres.
- m
- Particle mass, expressed as a ratio to the electron mass.
- hbar
- Reduced Planck constant, 1.054571817e-34 J s.
- E_n
- Energy of level n.
The energy zero is set by the potential inside the well, which this model takes as zero. Adding a constant potential shifts every level by the same amount. The calculation is nonrelativistic and assumes infinitely high barriers.
Worked example
Example: electron in a 1 nm well, ground state
Defaults: n = 1, L = 1e-9 m and mass ratio 1.
- Square the quantum number: 1² = 1.
- Compute pi squared times hbar squared divided by twice the electron mass and L squared.
- The result is about 6.025e-20 J.
- Divide by the electronvolt conversion to get 0.3760 eV.
- De Broglie wavelength is 2 x 1e-9 / 1 = 2e-9 m.
- The tool shows 0.3760 eV, 6.025e-20 J and 2e-9 m.
Reference table
| Width | Ground state energy |
|---|---|
| 10 nm | 0.003760 eV |
| 1 nm | 0.3760 eV |
| 0.1 nm | 37.60 eV |
Limits
- Assumes infinitely high barriers and one dimension.
- Uses a nonrelativistic free particle mass.
- Ignores interactions and any potential inside the well.
- Not valid when the energy approaches rest mass energy.
Common mistakes
- Entering n equal to zero.
- Using nanometres where metres are expected.
- Expecting evenly spaced levels; they scale with n squared.
- Applying the formula to a finite well without correction.
- Forgetting that mass appears in the denominator.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is the second level for the default well?
Energy scales with n squared, so it is four times 0.3760 eV, or 1.5041 eV as the tool shows, with a de Broglie wavelength of 1e-9 m.
What happens if the well is halved?
Energy rises by a factor of four because width appears squared in the denominator.
Why is n zero not allowed?
It would give a wave function that is zero everywhere and therefore no particle.
Questions
What is an infinite square well?
A model where a particle is confined to a region with infinitely high walls at the edges.
Why are energies quantised?
Only standing waves that vanish at both walls are allowed, which selects discrete wavelengths and energies.
What is the ground state?
The lowest allowed level, with n equal to one.
Does mass matter?
Yes. Heavier particles have lower energies for the same well width.
What is the de Broglie wavelength shown?
The wavelength of the standing matter wave, equal to twice the well width divided by n.
Is this realistic for atoms?
It is a useful approximation for confinement effects, but real potentials are finite and more complex.
Sources
- OpenStax University Physics III via LibreTexts: The Quantum Particle in a Box
- Physics LibreTexts, Bound Problems