Particle in a Box Calculator

Energy of level n = 2150.41 eV
Ground-state energy E137.60 eV
Photon wavelength, level 2 to 110.99 nm
Energy of level n in joules2.41 x 10^-17 J
How this was calculated
  1. For a particle in a one-dimensional box, E_n = n^2 h^2 / (8 m L^2). Here the particle is a electron (m = 9.11 x 10^-31 kg) in a well 0.1 nm wide.
  2. Ground state: E1 = h^2 / (8 m L^2) = 37.60 eV.
  3. Level 2: E_2 = 2^2 x E1 = 150.41 eV (2.41 x 10^-17 J).
  4. A photon emitted dropping from level 2 to level 1 carries E = 112.81 eV, so its wavelength is hc / E = 10.99 nm.

The Particle in a Box Calculator gives you the quantized energy levels of a particle confined to a one-dimensional well of finite width. Enter the particle's mass and the box width, and it returns the ground-state energy and higher levels. The results follow the standard infinite-square-well model, so an electron in a 0.1 nm box comes out at a ground-state energy of 37.60 eV and a level-2 energy of 150.41 eV — the latter equal to 2.41 x 10^-17 J. That same model predicts the photon emitted when the electron drops from level 2 to level 1 has a wavelength of 10.99 nm, in the extreme ultraviolet. Change the inputs and the pattern holds: an electron in a 1 nm quantum dot has a ground state of 0.376 eV and a level-3 energy of 3.38 eV, while a proton confined in a 10 fm nuclear well has a ground state of 2.05 MeV and a level-2 energy of 8.19 MeV.

The method is the accepted standard for this kind of calculation because the infinite square well is the textbook model for a particle confined in a region, and its energies scale with the square of the quantum number and with the inverse square of the well width — exactly the behavior the examples above show. This page lays out the formula, the step-by-step workings, worked examples you can follow line by line, and the sources behind the model, so you can check every number rather than take it on trust.

Worked examples

Atom-scale well

(Electron · 0.1 nm · 2)

Energy of level n = 2150.41 eV
Ground-state energy E137.60 eV
Photon wavelength, level 2 to 110.99 nm
Energy of level n in joules2.41 x 10^-17 J

Quantum dot

(Electron · 1 nm · 3)

Energy of level n = 33.38 eV
Ground-state energy E13.76 x 10^-1 eV
Photon wavelength, level 3 to 1412.15 nm
Energy of level n in joules5.42 x 10^-19 J

Nuclear well

(Proton · 0.00001 nm · 2)

Energy of level n = 28.19 MeV
Ground-state energy E12.05 MeV
Photon wavelength, level 2 to 10.20 pm
Energy of level n in joules1.31 x 10^-12 J

How the particle in a box energies are calculated

The calculator relies on one equation for a particle trapped in a one-dimensional well with infinitely hard walls: E_n = n^2 h^2 / (8 m L^2). Here E_n is the energy of level n, n is the quantum number (1, 2, 3, ...), h is Planck's constant, m is the particle's mass, and L is the width of the box. Every output on this page comes from substituting those four quantities. Because n is squared in the numerator and L is squared in the denominator, the energies scale with the square of the quantum number and with the inverse square of the well width.

A worked example makes the scale concrete. Put an electron in a 0.1 nm well and the ground state comes out to 37.60 eV. Level 2 is four times that, 150.41 eV, which is 2.41 x 10^-17 J. The same formula explains why the gaps between levels grow as n rises: the spacing between neighboring levels widens with each step up the ladder rather than staying fixed. If that electron drops from level 2 to level 1, the emitted photon carries the difference, 112.81 eV, which corresponds to a wavelength of 10.99 nm — deep in the extreme ultraviolet.

Change the mass or the width and the numbers move dramatically. An electron in a 1 nm quantum dot has a ground state of 0.376 eV and a level-3 energy of 3.38 eV; widening the box by a factor of ten shrank the ground state by a factor of one hundred, exactly as the inverse-square dependence predicts. Swap the electron for a proton and shrink the box to a nuclear scale: a proton confined in a 10 fm well has a ground state of 2.05 MeV and a level-2 energy of 8.19 MeV. The heavier mass lowers the energy, but the far smaller width raises it by a much larger factor, which is why nuclear confinement energies are measured in MeV rather than eV.

To use the particle in a box calculator, enter the particle mass, the well width, and the quantum number, and the tool applies E_n = n^2 h^2 / (8 m L^2) directly. Watch your units: widths given in nanometers, femtometers, or meters must be converted consistently, and the mass must match the particle you intend. The results are ideal-model energies — an infinite well with perfectly rigid walls — so real systems with finite barriers will differ somewhat.

Quick check: for the 0.1 nm electron well, E1 = 37.60 eV and E2 = 150.41 eV. Level 2 is exactly 2^2 = 4 times level 1, confirming the n^2 scaling built into the formula.

Worked examples from atoms to nuclei

The same infinite-square-well formula gives wildly different numbers depending on what you confine and how tightly you confine it. Running the three cases below through a particle in a box calculator shows how the mass of the particle and the width of the well set the entire energy scale, from extreme-ultraviolet photons to gamma-ray photons.

Start with an electron in a 0.1 nm box, roughly the size of a small atom. The ground-state energy is 37.60 eV, and the level-2 energy is 150.41 eV, which equals 2.41 x 10^-17 J. When the electron drops from level 2 to level 1, the emitted photon has a wavelength of 10.99 nm, placing it in the extreme ultraviolet. Because energies scale with the square of the quantum number, level 2 sits at four times the ground state: 37.60 eV times 4 gives 150.41 eV. The spacing between levels is therefore large compared with the ground state itself.

Now widen the well to 1 nm, the scale of a quantum dot. The electron's ground state falls to 0.376 eV, and its level-3 energy is 3.38 eV. The drop from level 3 to level 1 releases a photon of 412.15 nm, which is violet light in the visible range. Compare this with the atomic case: the well is ten times wider, and because energies scale with the inverse square of the width, the energies shrink by a factor of about one hundred. The same electron in a ten-times-larger box produces visible light instead of extreme ultraviolet.

Finally, swap the electron for a proton and shrink the well to 10 fm, the scale of a nucleus. The proton's ground state is 2.05 MeV and its level-2 energy is 8.19 MeV. A drop from level 2 to level 1 emits a photon with a wavelength of 0.20 pm, deep in the gamma-ray region. The proton is about 1,836 times heavier than the electron, and the well is far narrower than in the earlier examples, so the energies climb from electron volts to millions of electron volts.

Across all three cases, the pattern is the same: energies scale with the square of the quantum number and with the inverse square of the well width. The particle's mass sets the overall scale. A wider box or a heavier particle lowers every level, while a tighter box or a lighter particle raises them. That single rule explains why an atomic-scale electron emits extreme ultraviolet, a quantum-dot electron emits visible light, and a confined proton emits gamma rays.

Same formula, three scales: 0.1 nm electron gives 150.41 eV at level 2; 1 nm quantum dot gives 3.38 eV at level 3; 10 fm proton gives 8.19 MeV at level 2.

Why the levels spread out as n grows

The energy levels of a particle in a box follow a simple rule: each level's energy scales with the square of its quantum number n. Level 1 sits at 1 times the ground-state energy, level 2 at 4 times, level 3 at 9 times, and so on. That squared relationship is the single most important thing a particle in a box calculator shows you, because it explains why the gaps between neighboring levels get wider as n grows. The step from level 1 to level 2 is three times the ground-state energy, but the step from level 2 to level 3 is five times it, and the step from level 3 to level 4 is seven times it. The ladder does not have evenly spaced rungs.

Compare that with the harmonic oscillator, whose levels are evenly spaced: every gap is the same size no matter how high you climb. A box is different. Its walls are hard and flat, and the wavefunctions squeeze into ever-shorter wavelengths at higher n, so kinetic energy climbs faster and faster. This is why a particle in a box calculator is useful for spotting the pattern quickly: the spacing itself is a fingerprint of the box, not of the particle.

The numbers make the point concrete. An electron in a 0.1 nm box has a ground-state energy of 37.60 eV and a level-2 energy of 150.41 eV — very nearly four times as much, as the n-squared rule predicts. The photon emitted when that electron drops from level 2 to level 1 has a wavelength of 10.99 nm, in the extreme ultraviolet. That photon carries the difference between those two levels, which is three times the ground-state energy. A drop straight from level 3 to level 1 would carry eight times the ground-state energy, a much more energetic photon. This is the origin of the 2-to-1 versus 3-to-1 contrast: the first transition carries 3 times E1, the second carries 8 times E1.

The same squared rule appears across very different systems. An electron in a 1 nm quantum dot has a ground state of 0.376 eV and a level-3 energy of 3.38 eV, close to nine times the ground state. A proton confined in a 10 fm nuclear well has a ground state of 2.05 MeV and a level-2 energy of 8.19 MeV, again about four times the ground state. Energies scale with the square of the quantum number and with the inverse square of the well width, so a narrower box pushes every level higher and stretches the gaps further.

  • Level energies go as n squared: 1, 4, 9, 16 times the ground state.
  • Gaps between neighboring levels grow with n, unlike the evenly spaced harmonic oscillator.
  • The 2-to-1 photon carries 3 times E1; the 3-to-1 photon carries 8 times E1.
Squared spacing is the signature of a box: level 2 is about 4 times the ground state, and the jump from level 2 to level 1 releases 3 times E1.

Where the model is used

The particle in a box model is a stripped-down picture: one particle trapped between hard walls it cannot escape. Real systems are messier, but the same logic — confinement sets the allowed energies, and the box width sets the spacing — makes the model a useful first estimate in several fields. A particle in a box calculator lets you run that estimate quickly instead of solving the equation by hand each time.

In semiconductor physics, the model describes quantum wells and quantum dots. A quantum well traps electrons in a thin layer of one material sandwiched between layers of another; a quantum dot traps them in all three directions, in a region only a few nanometers across. Because energies scale with the inverse square of the well width, shrinking the dot pushes the levels apart. Take an electron in a 1 nm quantum dot: its ground state is 0.376 eV and its level-3 energy is 3.38 eV. Changing the dot size therefore changes which photon energies it can absorb or emit, which is the basis for tuning dot colors.

Conjugated molecules such as dyes are another place the model appears, as a rough stand-in for electrons delocalized along a chain of alternating single and double bonds. The chain length plays the role of the box width, so a longer conjugated system has more closely spaced levels. The model does not capture every detail of a real molecule, but it gives the right order of magnitude for the gaps that set a dye's absorption color.

The nuclear shell picture uses the same idea on a far smaller scale: protons and neutrons are treated as particles confined in a well about the size of a nucleus. A proton in a 10 fm nuclear well has a ground state of 2.05 MeV and a level-2 energy of 8.19 MeV — energies in the millions of electron volts, because the well is only femtometers wide.

The contrast across scales is the point. An electron in a 0.1 nm box has a ground-state energy of 37.60 eV and a level-2 energy of 150.41 eV, or 2.41 x 10^-17 J. When it drops from level 2 to level 1, the emitted photon has a wavelength of 10.99 nm, in the extreme ultraviolet. Widen the box to 1 nm and the same kind of transition falls in the visible range, at 412.15 nm. Two facts drive every one of these numbers: energies scale with the square of the quantum number and with the inverse square of the well width.

Same model, three scales: a 1 nm quantum dot's visible-light photon at 412.15 nm, a 0.1 nm box's extreme-ultraviolet photon at 10.99 nm, and a 10 fm nuclear well with levels in the MeV range.

FAQs

What is the formula for a particle in a box?

The energy levels follow E_n = n^2 h^2 / (8 m L^2), where n is the level number, h is Planck's constant, m is the particle mass, and L is the box width. As a worked example, an electron in a 0.1 nm box has a ground state of 37.60 eV.

What is the ground-state energy of an electron in a 0.1 nm box?

For an electron in a 0.1 nm box, the ground-state energy is 37.60 eV. Because energy scales with n squared, level 2 is four times that value, at 150.41 eV. The calculator applies the same formula to other masses and widths.

How does the energy change with box width?

Energy scales with the inverse square of the width, so a wider box lowers every level sharply. Widening the box from 0.1 nm to 1 nm cuts the ground state from 37.60 eV down to 0.376 eV. Doubling the width instead would cut the energy to one quarter.

What photon is emitted from level 2 to level 1?

In the 0.1 nm electron example, the drop from level 2 at 150.41 eV to level 1 at 37.60 eV releases a 10.99 nm extreme-ultraviolet photon carrying 112.8 eV. That short wavelength reflects the large energy gap in such a narrow box.

Why are nuclear energies in MeV?

Nuclear wells are far narrower than atomic ones, so the same formula gives far larger energies. A proton in a 10 fm well has a ground state of 2.05 MeV, because the well is about 10,000 times narrower than an atomic one. That is why nuclear energies are quoted in MeV.

Is the particle in a box model realistic?

It is the simplest quantum well model, and it is idealized. Real quantum dots and molecules soften the walls, so actual levels differ from the perfect box. Even so, the n squared level pattern and the inverse-square scaling with width survive in those real systems.

Sources

Related calculators

Photoelectric Effect Calculator
Einstein's equation in numbers: photon energy from wavelength, the fastest ejected electron's kinetic energy, stopping potential and threshold wavelength.
De Broglie Wavelength Calculator
The matter wavelength λ = h ÷ (mv) of anything that moves — from electrons to baseballs — with the momentum and the wavelength in nanometers.
555 Timer Calculator (Astable)
Frequency, period, high and low times and duty cycle for the classic 555 astable oscillator — f = 1.44 / ((R1 + 2R2) C).