Skip to content
LoveToCalc

Definition — what does that mean?

Particle in a box

Trap a particle between two walls and it can no longer have any energy it likes — only a ladder of levels, set by the size of the box.

In Swedish: Partikel i låda — energinivåer

Particle in a box — energy levels

The relation

Eₙ=n²h²8mL²

A particle confined to a box of length L can only have certain energies, growing with the square of the level. An electron in a box the size of a small molecule sits at tenths of an electronvolt.

A particle between two walls a distance L apart. Its allowed energy levels are the dashed horizontal lines, spaced further and further apart going up; the arrow measures the energy of one level above the bottom.
Solve for

Eₙ≈6.025 × 10⁻²⁰

Eₙ is approximately (1 squared times 6.626 times 10 to the power of minus 34 squared) divided by (8 times (9.109 times 10 to the power of minus 31 times 1 times 10 to the power of minus 9 squared)), is approximately (1 times 4.39 times 10 to the power of minus 67) divided by (8 times (9.109 times 10 to the power of minus 31 times 1 times 10 to the power of minus 18)), is approximately 4.39 times 10 to the power of minus 67 divided by (8 times 9.109 times 10 to the power of minus 49), is approximately 4.39 times 10 to the power of minus 67 divided by 7.288 times 10 to the power of minus 48, is approximately 6.025 times 10 to the power of minus 20

Working5 steps

The formula

n is the quantum number, 1, 2, 3 …, h the Planck constant, 6.626 · 10⁻³⁴ J·s, m the mass of the particle, L the width of the box, and Eₙ the energy of level n.

Holds for a particle in a one-dimensional box with infinitely high walls.

The particle can never be found outside the box. Inside, only standing waves fit — a whole number of half-wavelengths across the box, L = n · λ / 2 — and with de Broglie’s relation each allowed wavelength gives one allowed energy.

Worked examples

An electron in a 1 nm box. With m = 9.109 · 10⁻³¹ kg and L = 10⁻⁹ m, the lowest level is E₁ = h² / (8 · m · L²) ≈ 6.02 · 10⁻²⁰ J ≈ 0.376 eV.

The next levels are n² times as large: E₂ ≈ 1.50 eV and E₃ ≈ 3.38 eV.

The light it emits. Falling from n = 2 to n = 1 releases ΔE = 3 · E₁ ≈ 1.13 eV, a photon of λ = h · c / ΔE ≈ 1,100 nm, in the infrared. Make the box smaller and the light moves toward blue — which is exactly how the colour of quantum dots is tuned.

What the formula shows

Common mistakes

Questions people ask

Is a real atom a box? No — the Coulomb attraction is not a pair of hard walls, and the hydrogen levels fall off as 1 / n² instead of growing as n². But the box gets the size right, and it describes electrons in quantum dots, nanowires and long dye molecules surprisingly well.

What about a box in three dimensions? Each direction gets its own quantum number, and the energy is the sum of three terms of the same form.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
n8mL²Eₙh²8·9.109 × 10⁻³¹·1 × 10⁻⁹²·6.025 × 10⁻²⁰6.626 × 10⁻³⁴²1
h8mL²Eₙn²8·9.109 × 10⁻³¹·1 × 10⁻⁹²·6.025 × 10⁻²⁰1²6.626 × 10⁻³⁴
mn²h²8L²Eₙ1²·6.626 × 10⁻³⁴²8·1 × 10⁻⁹²·6.025 × 10⁻²⁰9.109 × 10⁻³¹
Ln²h²8mEₙ1²·6.626 × 10⁻³⁴²8·9.109 × 10⁻³¹·6.025 × 10⁻²⁰1 × 10⁻⁹
Eₙn²h²8mL²1²·6.626 × 10⁻³⁴²8·9.109 × 10⁻³¹·1 × 10⁻⁹²6.025 × 10⁻²⁰

Last reviewed October 6, 2026 ·How pages are reviewed

Modern physicsAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.