Pluck a guitar string and you don't get just any pitch — you get a fundamental note and its overtones, never anything in between. A jump rope is the same: you can shake it into one hump, or two, or three, but never two-and-a-half. An electron trapped between two hard walls behaves exactly like that jump rope. Only certain standing-wave shapes "fit," so the electron can only have certain energies. Energy comes in steps, not a smooth ramp — and that is the whole meaning of the word quantized.
Three things set the size of those steps: the level number $n$ (1 for the fundamental shape, 2 for the next, and so on), the box length $L$, and the particle's mass $m$. The allowed energies are
where $h$ is Planck's constant. Two big lessons hide in that one line: energy climbs like $n^2$, so the gaps get wider as you go up; and energy shrinks like $1/L^2$, so a bigger box gives lower, more tightly packed levels. For an electron in a $1\text{ nm}$ box the lowest rung is already $E_1 = 0.38\text{ eV}$ — small, but not zero. Even the ground state is never perfectly still.
Going deeper, each level carries a wave shape $\psi_n(x)=\sqrt{2/L}\,\sin(n\pi x/L)$, and the thing you can actually measure is $|\psi_n|^2$ — the probability of finding the particle at each point. Level $n$ has exactly $n-1$ nodes, spots where the particle is never found, just like the still points on a vibrating string. The "$n^2$ ladder" is forced by the walls: the wave must drop to zero at both ends, so only whole numbers of half-wavelengths can fit. In the sim, the $n$ slider picks the shape, the $L$ slider stretches the box, and the mass slider lets you swap the electron for something heavier (a proton is about $1836\times$ heavier).
Try this in the sim above: (1) Slide $n$ from 1 to 5 and count the nodes — you always get $n-1$. (2) Open the "E vs L" graph and drag $L$ wider; watch every level slide down toward zero. (3) Push the mass slider up: the heavier the particle, the smaller the energy gaps, until the quantum steps blur into the smooth classical world.
| Symbol | Meaning | Unit |
|---|---|---|
| \(E_n\) | Energy of level n | J or eV |
| \(n\) | Quantum number = 1,2,3,… | dimensionless |
| \(h\) | Planck's constant = 6.626×10⁻³⁴ | J·s |
| \(m\) | Particle mass | kg |
| \(L\) | Box length | m |
| \(\psi_n\) | Wavefunction (normalized) | m⁻¹/² |
| \(|\psi_n|^2\) | Probability density | m⁻¹ |
m = mₑ = 9.109×10⁻³¹ kg, L = 1.0×10⁻⁹ m, n = 1
\(E_1 = \dfrac{(6.626\times10^{-34})^2}{8\times9.109\times10^{-31}\times(10^{-9})^2} = 6.02\times10^{-20}\text{ J} = 0.376\text{ eV}\)
Energy spacing E₂ − E₁ = E₁(4−1) = 3×0.376 = 1.13 eV → photon λ = hc/ΔE = 1100 nm (near-IR)
Reference: Atkins & de Paula — Physical Chemistry, 11th Ed., §7C "Translational Motion: The Particle in a Box"
Reference: LibreTexts Chemistry — "Particle in a Box" https://chem.libretexts.org/Bookshelves/Physical_and_Theoretical_Chemistry_Textbook_Maps/Physical_Chemistry_(LibreTexts)/03%3A_The_Schrödinger_Equation_and_a_Particle_in_a_Box | MIT OCW 5.61 Physical Chemistry https://ocw.mit.edu/courses/5-61-physical-chemistry-fall-2017/
Section 4 reference: Taber, K.S. — Chemical Misconceptions (RSC, 2002) | Tsaparlis, G. & Papaphotis, G. — Quantum chemical concepts: are they helpful to students? Chem. Educ. Res. Pract. 2002, 3, 129