Energy Levels and Quantization in the 1D Box

A grain of confined light, an electron trapped between two walls a few ångströms apart, cannot possess just any energy. It is forced to choose from a discrete ladder of allowed values. These values are spaced further and further apart as the confinement tightens. This is the single most important lesson quantum mechanics teaches about matter at small scales. The particle-in-a-box model delivers it with total mathematical transparency. There are no approximations, no numerical solvers. There is just a differential equation, two boundary conditions, and an integer that falls out of the algebra. The result, En=n2h2/8mL2E_n = n^2h^2/8mL^2, looks almost too simple to carry real chemistry. Yet it explains why a conjugated dye absorbs at a particular color. It explains why a confined electron in a quantum dot glows in a size-tunable hue. It also explains why the notion of a continuous classical energy spectrum breaks down. This happens once you shrink a system to nanometer or sub-nanometer scale. The quantum number nn that appears in this formula is not a bookkeeping label. It is the mathematical signature of a standing wave that must vanish at both walls. Every physically distinct state of the box corresponds to exactly one positive integer nn. This article picks up where the setup of the box leaves off. That setup includes its potential, its Schrödinger equation, and its boundary conditions. We now ask the question those boundary conditions were built to answer. Which functions and which energies actually survive them? We show step by step how imposing ψ(0)=0\psi(0)=0 and ψ(L)=0\psi(L)=0 works. These conditions apply to the general solution of the free-particle Schrödinger equation. Imposing them collapses an infinite continuum of possible energies. What remains is a discrete, countable set indexed by n=1,2,3,…n = 1, 2, 3, \ldots. We track how the mass mm and box length LL control the spacing of that ladder. We also examine why n=0n=0 is forbidden. Finally, we show why the ground state energy can never be zero. This is a direct, quantitative embodiment of the Heisenberg Uncertainty Principle. By the end you will be able to derive the spectrum from scratch. You will compute transition energies and wavelengths for real molecular-scale boxes. You will diagnose when the classical continuum is recovered. You will also see precisely how this toy model seeds more elaborate machinery. That machinery includes the The 2D and 3D Box and the Box Model for Conjugated Molecules. The physics here is exact, the algebra is short. The payoff — an honest first look at energy quantization — is enormous.

Key takeaways
  • The time-independent Schrödinger equation inside a 1D box of infinite walls is −ℏ22mψ′′=Eψ-\dfrac{\hbar^2}{2m}\psi'' = E\psi, with general solution ψ(x)=Asin⁡(kx)+Bcos⁡(kx)\psi(x) = A\sin(kx) + B\cos(kx).
  • Boundary condition ψ(0)=0\psi(0)=0 forces B=0B=0; boundary condition ψ(L)=0\psi(L)=0 forces kL=nπkL = n\pi for a positive integer nn — this is where quantization is born.
  • The allowed energies are En=n2h28mL2E_n = \dfrac{n^2h^2}{8mL^2}, n=1,2,3,…n=1,2,3,\dots; n=0n=0 would give the null wavefunction and is excluded.
  • Energy spacing En+1−EnE_{n+1}-E_n grows linearly with nn and shrinks as 1/L21/L^2 and 1/m1/m, so quantization is only conspicuous for light particles in small boxes.
  • As L→∞L\to\infty or m→∞m\to\infty, spacings collapse to zero and the spectrum smoothly rejoins the classical continuum — the correspondence principle in action.
  • Key idea: confinement plus boundary conditions on a wave equation is sufficient by itself to force energy into a discrete, integer-indexed ladder — no extra postulate about quantization is needed.

Where this lives today

Quantum dots — nanocrystals of semiconductor material a few nanometers across — are the most vivid modern embodiment of this exact spectrum. Confining an electron (or an electron-hole pair) to a nanocrystal of tunable size LL reproduces the same 1/L21/L^2 scaling derived above, and it is precisely this scaling that lets manufacturers tune quantum-dot displays and biological fluorescent labels across the entire visible spectrum simply by growing crystals of different sizes: smaller dots have larger level spacing and emit bluer light, larger dots emit redder light, in direct qualitative (and reasonably good quantitative) agreement with the En∝1/L2E_n\propto1/L^2 law. In molecular spectroscopy, Kuhn's free-electron model remains a standard rapid estimator for the color of cyanine dyes and conjugated polyenes used in photographic sensitizers, laser dyes, and biological imaging probes — a chemist can estimate an absorption maximum to within tens of nanometers using nothing but the electron count and an estimated conjugation length, entirely from the formula derived here. The same reasoning underlies qualitative explanations of why longer conjugated systems (more double bonds, bigger effective LL) absorb at longer wavelengths, a rule of thumb used throughout organic and dye chemistry. In condensed-matter and materials science, the particle-in-a-box spectrum is the conceptual starting point for understanding quantum confinement in nanowires, thin films, and 2D materials, where reducing a physical dimension toward the nanometer scale reintroduces exactly the discrete-ladder physics derived here, superimposed on otherwise continuous band structure. It is also the pedagogical entry point for the The 2D and 3D Box, where the same boundary-value logic, applied independently along each Cartesian direction, produces sums of squared quantum numbers and — crucially — degeneracies absent in the strictly 1D case. Finally, this spectrum underlies elementary estimates of zero-point energy in confined nuclear motion, vibrational confinement in molecular cavities, and even coarse models of nucleons confined in a nuclear potential well, wherever a system is small enough and light enough that h2/8mL2h^2/8mL^2 is not negligible compared to thermal or chemical energy scales.

Ask the tutor: How would the energy spectrum change if the box had one infinite wall and one finite-height wall instead of two infinite walls?

The physical picture

Picture an electron free to slide along a wire of length LL, held in by walls so hard that the potential outside is infinite and inside is exactly zero. The particle obeys the time-independent Schrödinger equation inside the box,

−ℏ22md2ψdx2=Eψ(x),0<x<L,-\frac{\hbar^2}{2m}\frac{d^2\psi}{dx^2} = E\psi(x), \qquad 0 < x < L,

which is nothing but a statement that kinetic energy is the entire energy (potential energy is zero inside), so the curvature of ψ\psi is tied directly to EE. Outside the box the wavefunction must be exactly zero, because the infinite potential there makes any nonzero amplitude cost infinite energy. Continuity of ψ\psi then pins down two conditions at the walls: ψ(0)=0\psi(0)=0 and ψ(L)=0\psi(L)=0. The mathematics of a second-order linear differential equation with constant coefficients says the general solution inside the box is a superposition of a sine and a cosine, each with the same "wavenumber" k=2mE/ℏk=\sqrt{2mE}/\hbar. This is exactly analogous to a vibrating string of length LL clamped at both ends: the string cannot vibrate with an arbitrary wavelength, only with wavelengths that fit an integer number of half-wavelengths between the clamps. The electron's wavefunction is subject to the identical geometric constraint. That single geometric fact — a wave pinned to zero at two fixed points separated by LL — is the entire origin of quantization in this model. No new physical postulate is introduced beyond the Schrödinger equation itself; the discreteness is a consequence of geometry meeting a differential equation. Once the allowed wavenumbers are known, kn=nπ/Lk_n = n\pi/L, the corresponding energies follow immediately from E=ℏ2k2/2mE = \hbar^2k^2/2m, giving the celebrated ladder En=n2h2/(8mL2)E_n = n^2h^2/(8mL^2). Because En∝n2E_n\propto n^2, the rungs of this ladder are not evenly spaced — they spread apart quadratically, so the gap between the first and second levels is much smaller than the gap between the ninth and tenth. This is the opposite behavior from the evenly-spaced ladder of the Quantum Harmonic Oscillator, and it is a distinguishing experimental fingerprint of hard-wall confinement versus parabolic confinement.

Figure
Standing waves in a box: only integer half-wavelengths survive the walls
x = 0 x = L n = 1 n = 2 n = 3 Each ψₙ vanishes at both walls: k L = nπ, n = 1, 2, 3, …

The next figure shows how those forced wavenumbers translate into a quadratically-spaced energy ladder — the direct, quantitative output of the boundary-value problem.

Figure
The E_n ∝ n² ladder: spacing grows with n
E (units of h²/8mL²) n=1, E=1 n=2, E=4 n=3, E=9 n=4, E=16 ΔE = 3 ΔE = 5 ΔE = 7

Notice in the ladder figure that the spacing between consecutive rungs — 3, 5, 7 in these scaled units — increases by 2 each time, exactly the odd-number pattern predicted by En+1−En∝(2n+1)E_{n+1}-E_n \propto (2n+1). This quadratic spreading is a direct experimental signature: spectroscopically, transitions between higher rungs of a box-like system require more energy than transitions between lower rungs, unlike the evenly spaced harmonic oscillator.

The core ideas

Inside the box, the time-independent Schrödinger equation reduces to a free-particle wave equation because V(x)=0V(x)=0 there:

−ℏ22md2ψ(x)dx2=E ψ(x).-\frac{\hbar^2}{2m}\frac{d^2\psi(x)}{dx^2} = E\,\psi(x).

where:

  • ℏ=h/2π\hbar = h/2\pi is the reduced Planck constant,
  • mm is the particle's mass,
  • EE is the (as yet undetermined) total energy, purely kinetic inside the box,
  • ψ(x)\psi(x) is the spatial wavefunction on 0<x<L0<x<L.

Reading: this equation says the second derivative of ψ\psi is proportional to −ψ-\psi itself, so ψ\psi must oscillate — sines and cosines, not exponentials — whenever E>0E>0. Imposing the two boundary conditions ψ(0)=0\psi(0)=0 and ψ(L)=0\psi(L)=0 on the general oscillatory solution restricts the allowed wavenumber to

kn=nπL,n=1,2,3,…k_n = \frac{n\pi}{L}, \qquad n = 1, 2, 3, \ldots

where:

  • kn=2mEn/ℏk_n = \sqrt{2mE_n}/\hbar is the wavenumber of the nn-th standing wave,
  • LL is the box length,
  • nn is a positive integer quantum number — the count of "antinodes' worth" of the standing wave pattern.

Reading: only wavelengths λn=2π/kn=2L/n\lambda_n = 2\pi/k_n = 2L/n fit an integer number of half-wavelengths between the two walls; every other wavelength destructively interferes with itself upon reflection and cannot persist. Substituting knk_n back into E=ℏ2k2/2mE=\hbar^2k^2/2m gives the central result of this article:

En=n2h28mL2,n=1,2,3,…E_n = \frac{n^2 h^2}{8mL^2}, \qquad n = 1, 2, 3, \ldots

where:

  • EnE_n is the allowed total energy of the nn-th stationary state,
  • hh is Planck's constant (h=2πℏh=2\pi\hbar),
  • mm is the particle mass,
  • LL is the box length,
  • nn indexes the discrete, non-degenerate energy levels of the 1D box.

Reading: energy scales as the square of the quantum number, is inversely proportional to mass, and is inversely proportional to the square of the confinement length — light particles in short boxes have widely spaced, unmistakably quantum energy levels, while heavy particles in long boxes have levels so close together they mimic a classical continuum. The zero-point energy, the unavoidable minimum energy of confinement, follows by setting n=1n=1:

E1=h28mL2>0.E_1 = \frac{h^2}{8mL^2} > 0.

where:

  • E1E_1 is the ground-state (lowest allowed) energy,
  • the strict inequality E1>0E_1>0 signals that perfect rest (E=0E=0) is forbidden for any confined particle.

Reading: this is a direct, quantitative statement of the uncertainty principle — confining a particle to a region of size LL forces a minimum momentum spread, hence a minimum kinetic energy, that no classical particle would need to have.

Derivation AFrom the free-particle Schrödinger equation to the discrete ladder

Goal. Starting only from the Schrödinger equation inside the box and the two hard-wall boundary conditions, derive En=n2h2/8mL2E_n = n^2h^2/8mL^2 and show explicitly why nn must be a nonzero positive integer.

Step 1 — Write the equation and its general solution. Inside the box the potential is zero, so the time-independent Schrödinger equation is

−ℏ22mψ′′(x)=Eψ(x)    ⟹    ψ′′(x)=−2mEℏ2ψ(x).-\frac{\hbar^2}{2m}\psi''(x) = E\psi(x) \;\;\Longrightarrow\;\; \psi''(x) = -\frac{2mE}{\hbar^2}\psi(x).

Defining k≡2mE/ℏk \equiv \sqrt{2mE}/\hbar (real and positive, since bound-state energies inside a zero-potential region satisfy E>0E>0), this becomes ψ′′=−k2ψ\psi'' = -k^2\psi, whose most general solution is

ψ(x)=Asin⁡(kx)+Bcos⁡(kx),\psi(x) = A\sin(kx) + B\cos(kx),

with AA and BB arbitrary constants to be fixed by boundary conditions and normalization.

Step 2 — Apply the left-wall condition. Continuity of the wavefunction across the infinite step at x=0x=0 requires ψ(0)=0\psi(0)=0 (the wavefunction is identically zero for x≤0x\le 0, where the potential is infinite). Substituting x=0x=0:

ψ(0)=Asin⁡(0)+Bcos⁡(0)=B=0.\psi(0) = A\sin(0) + B\cos(0) = B = 0.

Hence B=0B=0 and the solution collapses to the pure sine form ψ(x)=Asin⁡(kx)\psi(x) = A\sin(kx). This already halves the freedom in the general solution — cosine solutions are eliminated entirely by this box's boundary conditions (contrast this with a box centered at the origin, where symmetry instead splits solutions into even and odd sets).

Step 3 — Apply the right-wall condition and extract quantization. The second condition, ψ(L)=0\psi(L)=0, gives

Asin⁡(kL)=0.A\sin(kL) = 0.

Since A=0A=0 would make ψ(x)≡0\psi(x)\equiv 0 everywhere — the trivial, physically meaningless "no particle" solution — we require instead

sin⁡(kL)=0.\sin(kL) = 0.

The sine function vanishes only at integer multiples of π\pi, so

kL=nπ,n=0,±1,±2,…kL = n\pi, \qquad n = 0, \pm1, \pm2, \ldots

The case n=0n=0 gives k=0k=0, hence ψ(x)≡0\psi(x)\equiv 0 again (a constant times sin⁡(0⋅x)\sin(0\cdot x) is identically zero) — it must be discarded as unphysical. Negative integers give sin⁡(−∣n∣πx/L)=−sin⁡(∣n∣πx/L)\sin(-|n|\pi x/L) = -\sin(|n|\pi x/L), which is the same physical state as +∣n∣+|n| up to an overall sign (an irrelevant global phase for a normalized wavefunction). Therefore the physically distinct, non-trivial solutions are labeled uniquely by

n=1,2,3,…,kn=nπL.n = 1, 2, 3, \ldots, \qquad k_n = \frac{n\pi}{L}.

Step 4 — Convert wavenumber back to energy. From the definition in Step 1, E=ℏ2k2/(2m)E = \hbar^2 k^2/(2m). Substituting kn=nπ/Lk_n = n\pi/L:

En=ℏ22m(nπL)2=ℏ2n2π22mL2.E_n = \frac{\hbar^2}{2m}\left(\frac{n\pi}{L}\right)^2 = \frac{\hbar^2 n^2 \pi^2}{2mL^2}.

Now replace ℏ=h/2π\hbar = h/2\pi, so ℏ2=h2/4π2\hbar^2 = h^2/4\pi^2:

En=n2π22mL2⋅h24π2=n2h28mL2.E_n = \frac{n^2\pi^2}{2mL^2}\cdot\frac{h^2}{4\pi^2} = \frac{n^2h^2}{8mL^2}.

This is the target spectrum. Every energy the box can possess is one of these discrete values — nothing between two consecutive EnE_n is an allowed stationary-state energy.

Step 5 — Confirm normalizability closes the story. Requiring ∫0L∣ψn(x)∣2 dx=1\int_0^L |\psi_n(x)|^2\,dx = 1 fixes A=2/LA = \sqrt{2/L} for every nn, giving the complete normalized eigenfunctions ψn(x)=2/L sin⁡(nπx/L)\psi_n(x) = \sqrt{2/L}\,\sin(n\pi x/L) — the subject taken up in depth when analyzing nodes and shapes of these wavefunctions, but the energy result of this derivation stands independent of that normalization constant, since AA cancels out of En=ℏ2kn2/2mE_n = \hbar^2k_n^2/2m.

Go deeper · Derivation B · 2 minEnergy spacing, its scaling laws, and the classical limit
Derivation BEnergy spacing, its scaling laws, and the classical limit

Goal. Derive a closed-form expression for the gap between adjacent energy levels, and show precisely how and when that gap vanishes to recover a classical-looking continuum — the correspondence principle applied to this exactly solvable model.

Step 1 — Write the spacing as a difference of squares. Using En=n2h2/8mL2E_n = n^2h^2/8mL^2, the gap between level n+1n+1 and level nn is

ΔEn≡En+1−En=h28mL2[(n+1)2−n2].\Delta E_n \equiv E_{n+1}-E_n = \frac{h^2}{8mL^2}\Big[(n+1)^2 - n^2\Big].

Step 2 — Expand the bracket.

(n+1)2−n2=n2+2n+1−n2=2n+1.(n+1)^2 - n^2 = n^2 + 2n + 1 - n^2 = 2n+1.

So the spacing between consecutive levels is exactly

ΔEn=h28mL2(2n+1).\Delta E_n = \frac{h^2}{8mL^2}(2n+1).

This confirms the odd-number progression seen in the ladder figure (n=1→2n=1\to2 gives factor 3; n=2→3n=2\to3 gives factor 5; n=3→4n=3\to4 gives factor 7) and shows explicitly that spacing grows linearly with nn — levels fan out, they do not stay evenly spaced as in the harmonic oscillator.

Step 3 — Compare the spacing to the energy itself. Form the ratio ΔEn/En\Delta E_n/E_n to see how "quantized" the spectrum feels relative to its own scale:

ΔEnEn=(2n+1)n2.\frac{\Delta E_n}{E_n} = \frac{(2n+1)}{n^2}.

For small nn (e.g. n=1n=1: ratio =3=3), the next level lies a huge fraction above the current one — highly quantum behavior. As nn grows, expand for large nn:

ΔEnEn≈2nn2=2n  ⟶  0as n→∞.\frac{\Delta E_n}{E_n} \approx \frac{2n}{n^2} = \frac{2}{n} \;\longrightarrow\; 0 \quad \text{as } n\to\infty.

So even though the absolute spacing ΔEn\Delta E_n grows with nn, it becomes relatively negligible compared to EnE_n itself — this is exactly the statement that highly excited states look increasingly classical (Bohr's correspondence principle), even though the model never stops being exactly quantized.

Step 4 — Take the macroscopic limit in mm and LL. Both EnE_n and ΔEn\Delta E_n carry an overall factor h2/(8mL2)h^2/(8mL^2). As either the mass m→∞m\to\infty (a macroscopic particle) or the box length L→∞L\to\infty (an unconfined or very large system), this prefactor vanishes:

lim⁡m→∞ΔEn=0,lim⁡L→∞ΔEn=0.\lim_{m\to\infty} \Delta E_n = 0, \qquad \lim_{L\to\infty} \Delta E_n = 0.

In both limits the discrete ladder collapses into an effectively continuous spectrum — recovering the classical picture of a free particle able to carry any energy whatsoever. This is why quantization is invisible for a marble rolling in a box the size of a room, but glaring for an electron confined to a molecule a few ångströms long.

Step 5 — Identify the two independent knobs that control "how quantum" a box is. Because ΔEn∝1mL2\Delta E_n \propto \dfrac{1}{mL^2}, an experimenter (or nature) has exactly two levers for making quantization observable: shrink LL, or shrink mm. Both appear squared or linear inside the same denominator, but LL enters squared — halving the box length quadruples the spacing, while halving the mass only doubles it. This asymmetry is the reason confinement length is usually the dominant design parameter in engineered quantum-confined systems such as quantum dots and conjugated polyene chains.

Worked examples

Example 1 — Foundational: energy levels of an electron in a 1.20 nm box. Take an electron (me=9.109×10−31 kgm_e = 9.109\times10^{-31}\,\text{kg}) confined to L=1.20×10−9 mL = 1.20\times10^{-9}\,\text{m} (a deliberately non-round length, representative of a short conjugated chain). Compute E1E_1, E2E_2, and the 1→21\to2 transition energy. First assemble the prefactor:

h28meL2=(6.626×10−34)28 (9.109×10−31) (1.20×10−9)2.\frac{h^2}{8m_eL^2} = \frac{(6.626\times10^{-34})^2}{8\,(9.109\times10^{-31})\,(1.20\times10^{-9})^2}.

Numerator: (6.626×10−34)2=4.392×10−67 J2s2(6.626\times10^{-34})^2 = 4.392\times10^{-67}\ \text{J}^2\text{s}^2. Denominator: 8×9.109×10−31×(1.44×10−18)=8×9.109×1.44×10−49=104.94×10−49=1.0494×10−47 kg m28 \times 9.109\times10^{-31} \times (1.44\times10^{-18}) = 8\times9.109\times1.44\times10^{-49} = 104.94\times10^{-49} = 1.0494\times10^{-47}\ \text{kg m}^2. So

h28meL2=4.392×10−671.0494×10−47=4.185×10−20 J.\frac{h^2}{8m_eL^2} = \frac{4.392\times10^{-67}}{1.0494\times10^{-47}} = 4.185\times10^{-20}\ \text{J}.

Then:

E1=12×4.185×10−20 J=4.185×10−20 J=0.261 eV,E_1 = 1^2\times4.185\times10^{-20}\ \text{J} = 4.185\times10^{-20}\ \text{J} = 0.261\ \text{eV},
E2=22×4.185×10−20 J=1.674×10−19 J=1.045 eV.E_2 = 2^2\times4.185\times10^{-20}\ \text{J} = 1.674\times10^{-19}\ \text{J} = 1.045\ \text{eV}.

The transition energy is

ΔE1→2=E2−E1=3×4.185×10−20 J=1.256×10−19 J=0.784 eV,\Delta E_{1\to2} = E_2 - E_1 = 3\times4.185\times10^{-20}\ \text{J} = 1.256\times10^{-19}\ \text{J} = 0.784\ \text{eV},

consistent with the Step 2 formula ΔE1=(2⋅1+1)×\Delta E_1 = (2\cdot1+1)\times prefactor =3×=3\times prefactor. Converting to a wavelength via λ=hc/ΔE\lambda = hc/\Delta E:

λ=(6.626×10−34)(2.998×108)1.256×10−19=1.987×10−251.256×10−19=1.582×10−6 m=1582 nm.\lambda = \frac{(6.626\times10^{-34})(2.998\times10^{8})}{1.256\times10^{-19}} = \frac{1.987\times10^{-25}}{1.256\times10^{-19}} = 1.582\times10^{-6}\ \text{m} = 1582\ \text{nm}.

That falls in the near-infrared — a reminder that a real electron this loosely confined needs a much shorter box (or a longer conjugated system, correspondingly weaker confinement) to land in the visible, a point taken up quantitatively when this model is fitted to real dye molecules. Limiting-case check: if instead the box were widened tenfold to L=12.0 nmL=12.0\,\text{nm}, the prefactor shrinks by 102=10010^2=100, so E1E_1 drops to 4.185×10−22 J4.185\times10^{-22}\,\text{J} — a hundredfold weaker confinement, exactly matching the predicted 1/L21/L^2 scaling.

Example 2 — Applied: proton vs. electron in the same box, and the mass scaling. Take the same box, L=1.20×10−9 mL=1.20\times10^{-9}\,\text{m}, but now confine a proton (mp=1.673×10−27 kgm_p = 1.673\times10^{-27}\,\text{kg}) instead of an electron, and find its ground-state energy. Since E1∝1/mE_1 \propto 1/m, and mp/me=1.673×10−27/9.109×10−31=1836.6m_p/m_e = 1.673\times10^{-27}/9.109\times10^{-31} = 1836.6, the proton's ground energy is smaller by that same factor:

E1(proton)=E1(electron)1836.6=4.185×10−20 J1836.6=2.279×10−23 J.E_1(\text{proton}) = \frac{E_1(\text{electron})}{1836.6} = \frac{4.185\times10^{-20}\ \text{J}}{1836.6} = 2.279\times10^{-23}\ \text{J}.

Converting to eV: 2.279×10−23/1.602×10−19=1.423×10−4 eV2.279\times10^{-23}/1.602\times10^{-19} = 1.423\times10^{-4}\ \text{eV} — nearly four orders of magnitude smaller than the electron's zero-point energy in the identical box. This directly illustrates the mass-scaling law En∝1/mE_n\propto 1/m: heavier particles confined to the same geometric region carry far smaller quantized energies, and their level spacing is correspondingly finer and harder to resolve spectroscopically. It is precisely why quantum confinement effects dominate electronic spectra of nanoscale systems (light electrons) while nuclear motion in the same-sized cavity behaves far more classically. Limiting-case check: as m→∞m\to\infty formally (a hypothetical infinitely heavy "particle"), E1→0E_1\to0 and every level spacing vanishes — the particle behaves as if free to sit at any energy, the classical limit anticipated in the derivation above.

Example 3 — Exam/competition level: matching a spectroscopic transition to extract an unknown box length. A conjugated molecule, modeled as an electron in a 1D box, is observed to absorb light at exactly λ=452.0 nm\lambda = 452.0\,\text{nm} for its lowest-energy electronic transition, identified as n=3→n=4n=3\to n=4 (appropriate for a chain with 3 electron pairs already filling n=1n=1 and n=2n=2, per the Box Model for Conjugated Molecules filling convention). Find the box length LL. The transition energy is

ΔE3→4=E4−E3=h28meL2(42−32)=h28meL2×7.\Delta E_{3\to4} = E_4 - E_3 = \frac{h^2}{8m_eL^2}\big(4^2-3^2\big) = \frac{h^2}{8m_eL^2}\times7.

This must equal the photon energy:

ΔE3→4=hcλ.\Delta E_{3\to4} = \frac{hc}{\lambda}.

Set the two expressions equal and solve for L2L^2:

7h28meL2=hcλ    ⟹    L2=7hλ8mec.\frac{7h^2}{8m_eL^2} = \frac{hc}{\lambda} \;\;\Longrightarrow\;\; L^2 = \frac{7h\lambda}{8m_ec}.

Insert numbers (h=6.626×10−34 J sh=6.626\times10^{-34}\,\text{J s}, λ=452.0×10−9 m\lambda=452.0\times10^{-9}\,\text{m}, me=9.109×10−31 kgm_e=9.109\times10^{-31}\,\text{kg}, c=2.998×108 m/sc=2.998\times10^{8}\,\text{m/s}): Numerator: 7×6.626×10−34×452.0×10−9=7×6.626×452.0×10−437\times6.626\times10^{-34}\times452.0\times10^{-9} = 7\times6.626\times452.0\times10^{-43}. Compute 6.626×452.0=2995.06.626\times452.0 = 2995.0 (to 4 s.f.), so numerator =7×2995.0×10−43=20965×10−43=2.0965×10−39=7\times2995.0\times10^{-43}=20965\times10^{-43}=2.0965\times10^{-39}. Denominator: 8×9.109×10−31×2.998×108=8×9.109×2.998×10−238\times9.109\times10^{-31}\times2.998\times10^{8} = 8\times9.109\times2.998\times10^{-23}. Compute 9.109×2.998=27.3139.109\times2.998 = 27.313, so denominator =8×27.313×10−23=218.5×10−23=2.185×10−21=8\times27.313\times10^{-23}=218.5\times10^{-23}=2.185\times10^{-21}.

L2=2.0965×10−392.185×10−21=9.596×10−19 m2.L^2 = \frac{2.0965\times10^{-39}}{2.185\times10^{-21}} = 9.596\times10^{-19}\ \text{m}^2.

Taking the square root:

L=9.596×10−19=9.796×10−10 m≈0.980 nm.L = \sqrt{9.596\times10^{-19}} = 9.796\times10^{-10}\ \text{m} \approx 0.980\ \text{nm}.

So an absorption at 452.0 nm assigned to the n=3→4n=3\to4 transition implies an effective conjugated-chain length near 0.98 nm — comparable to roughly four to five conjugated C–C bonds, a chemically sensible number for a small polyene and a good sanity check on the whole procedure. Limiting-case check: if the observed wavelength had instead been much longer, say deep infrared, the extracted LL would come out larger (since L2∝λL^2\propto\lambda), consistent with the physical expectation that longer conjugation length red-shifts the lowest transition — exactly the trend real polyene spectra display.

Limiting cases, scope & common traps

Regime / questionWhat the model saysWhy
n=0n=0?Forbidden — not part of the spectrumGives ψ≡0\psi\equiv0, the null (no-particle) state, violating normalization
L→∞L\to\inftyEn→0E_n\to0 for all finite nn; spectrum becomes continuousPrefactor h2/8mL2→0h^2/8mL^2\to0; free-particle limit recovered
m→∞m\to\inftySame collapse to a continuumSame 1/m1/m scaling; macroscopic particles show no observable quantization
Large nn (highly excited states)ΔEn/En→0\Delta E_n/E_n\to 0 even though ΔEn\Delta E_n itself growsCorrespondence principle: relative quantum graininess disappears at high excitation
Two different masses, same boxLighter particle has larger spacing, by exact factor m2/m1m_2/m_1Direct consequence of En∝1/mE_n\propto1/m
Degeneracy in 1DNone — every EnE_n corresponds to exactly one nnOnly in 2D/3D boxes with equal side lengths does degeneracy appear, from combinations nx2+ny2n_x^2+n_y^2 etc.
Zero-point energyE1=h2/8mL2>0E_1=h^2/8mL^2>0, never zeroDirect quantitative statement of the uncertainty principle applied to a confined particle

The chemist behind it

The particle-in-a-box problem, as a piece of applied mathematics, long predates quantum chemistry — the eigenvalue problem for a vibrating clamped string was solved in the eighteenth century. But its deployment as a genuine model for molecular electronic structure, and its systematic connection to observable spectra of real conjugated and metallic systems, is largely credited to the German physical chemist Hans Kuhn, working in the mid-twentieth century, who showed that treating π-electrons in a polyene or cyanine dye as particles confined to a 1D box of length equal to the conjugated chain reproduced observed absorption maxima with startling accuracy for such a crude model.

Origins · 1 minHans Kuhn and how this was discovered
HK
Hans Kuhn
1919–2012 · Göttingen and Basel, physical chemistry of dyes and molecular electronics

Kuhn built on the mathematics of Erwin Schrödinger's 1926 wave mechanics — itself built on boundary-value methods already classical in the physics of vibrating strings and electromagnetic cavities — and asked a chemist's question: could the simplest possible quantum model, a free particle confined by hard walls, predict real absorption spectra of dye molecules used in photography and textiles? His free-electron model treated the mobile π-electrons of a linear conjugated polyene or cyanine dye as independent particles in a 1D box whose length scaled with the number of conjugated bonds, filling the box's levels two electrons at a time according to the Pauli Exclusion Principle. The lowest allowed electronic transition, from the highest filled to lowest empty box level, predicted absorption wavelengths that tracked experimental UV-visible spectra of real cyanine dyes across a wide range of chain lengths — an early and durable triumph of applying an exactly solvable toy model directly to molecular spectroscopy, still taught today as the standard bridge between elementary quantum mechanics and real electronic spectra.

History
1926
— Schrödinger publishes wave mechanics; boundary-value quantization becomes the general machinery for bound states.
1928
— Early quantum-mechanical treatments of confined free particles appear in the developing quantum theory of metals and molecules.
1948–1949
— Hans Kuhn develops the free-electron (particle-in-a-box) model for π-electrons in cyanine dyes, fitting observed absorption maxima.
1950
s — The free-electron model becomes a staple teaching tool linking exactly solvable quantum mechanics to real UV-visible spectroscopy.
Present — The same spectrum En=n2h2/8mL2E_n=n^2h^2/8mL^2 underlies teaching and first-principles intuition for quantum dots, conjugated polymers, and nanoscale confinement effects.
Why does confining a particle to a finite region force its energy to be quantized at all?

Quantization arises from demanding that the wavefunction obey definite boundary conditions — here, vanishing at both walls — while also satisfying the Schrödinger equation inside. A general oscillatory solution Asin⁡(kx)+Bcos⁡(kx)A\sin(kx)+B\cos(kx) exists for any wavenumber kk, hence any energy E=ℏ2k2/2mE=\hbar^2k^2/2m. But only a discrete subset of wavenumbers, kn=nπ/Lk_n=n\pi/L, produces a function that is simultaneously a valid solution to the equation and zero at both walls. Every other value of kk gives a function that fails the boundary conditions and is therefore not an allowed stationary state. The finite domain — the "box" — is what turns a continuous parameter into a countable list, exactly as clamping both ends of a vibrating string permits only discrete standing-wave frequencies.

Does the particle-in-a-box model ever allow E = 0?

No, and this is one of its most chemically important features. The lowest allowed quantum number is n=1n=1, giving E1=h2/8mL2E_1=h^2/8mL^2, which is strictly positive for any finite mass and finite box length. A classical particle at rest inside the box would have exactly zero kinetic energy, but quantum mechanics forbids this: confining a particle to a region of size LL necessarily gives its wavefunction curvature (via ψ′′∝−Eψ\psi''\propto -E\psi), and curvature costs kinetic energy. This positive minimum, called the zero-point energy, is a direct, quantitatively testable manifestation of the Heisenberg Uncertainty Principle applied to position and momentum.

How does the 1D box spectrum connect to the color of real dye molecules?

Hans Kuhn's free-electron model treats the mobile π-electrons of a linear conjugated dye as independent particles confined to a 1D box whose length scales with the number of conjugated bonds. Electrons fill the box levels two at a time (spin up, spin down) from n=1n=1 upward, and the lowest-energy electronic transition — from the highest occupied level to the lowest empty one — determines the absorption wavelength via ΔE=hc/λ\Delta E = hc/\lambda. Longer conjugated chains correspond to a longer effective box length LL, which compresses the energy ladder (since En∝1/L2E_n\propto 1/L^2) and red-shifts the absorption. This qualitative and semi-quantitative success, despite ignoring electron-electron repulsion and the exact shape of the molecular potential, is why the model remains a standard teaching and estimation tool in the Box Model for Conjugated Molecules.

Why is the spacing between energy levels not constant, unlike the harmonic oscillator?

The 1D box energies go as En∝n2E_n\propto n^2, so the spacing between adjacent levels is ΔEn=(2n+1)×h2/8mL2\Delta E_n = (2n+1)\times h^2/8mL^2 — it grows linearly with nn. This is a direct algebraic consequence of squaring the quantum number, and it contrasts sharply with the Quantum Harmonic Oscillator, whose energies Ev=(v+12)ℏωE_v=(v+\tfrac12)\hbar\omega are exactly evenly spaced by ℏω\hbar\omega regardless of vv. The physical origin of the difference is the shape of the confining potential: the box has infinitely hard, flat walls, while the oscillator has a smoothly rising parabolic wall, and this difference in potential shape is imprinted directly onto the pattern of level spacings — a diagnostic spectroscopists use to distinguish confinement type from an observed spectrum.

What happens to the discrete spectrum as the box becomes macroscopically large?

As L→∞L\to\infty with mass and quantum number held fixed, the prefactor h2/8mL2h^2/8mL^2 shrinks toward zero, so both the absolute energies EnE_n and the spacings ΔEn\Delta E_n collapse toward zero. In this limit the discrete ladder becomes so finely spaced that it is experimentally indistinguishable from a continuous spectrum, recovering the classical free-particle picture in which any positive kinetic energy is allowed. The same collapse happens if the particle's mass mm becomes very large instead, which is why quantization is never observed for everyday macroscopic objects — a dust grain in a room-sized box has spacings so minute they are utterly unmeasurable, even though the underlying formula never stops applying.

Is the ground state (n=1) ever degenerate in the 1D box?

No. In exactly one spatial dimension with simple hard-wall boundaries, every allowed energy EnE_n corresponds to exactly one quantum number nn and hence exactly one (up to normalization and sign) wavefunction — the 1D box spectrum is entirely non-degenerate. Degeneracy — multiple distinct states sharing the same energy — only appears once you move to higher dimensions, as in the The 2D and 3D Box, where energies depend on sums like nx2+ny2n_x^2+n_y^2 and different combinations of quantum numbers can yield the same total energy, especially when the box has equal side lengths.

Can this same derivation be applied to something other than an electron, like a proton or an entire molecule?

Yes — nothing in the derivation assumes anything about the particle except that it has a well-defined mass mm and is confined to a region of length LL with hard walls. The formula En=n2h2/8mL2E_n=n^2h^2/8mL^2 applies equally to a proton, a neutron, an entire atom, or (as a crude approximation) a molecule's center of mass, with the mass simply swapped in accordingly. What changes dramatically between these cases is not the formula but the observability of quantization: because En∝1/mE_n\propto1/m, heavier particles confined to the same box have far smaller level spacings, which is why quantization of nuclear translational motion is far less conspicuous in ordinary chemistry than quantization of electronic motion in the same-sized region.

Before this

Where this leads