Energy to Wavelength Calculator

Enter a photon's energy to calculate its vacuum wavelength, frequency, and wavenumber using E = hc/λ, with unit conversions for eV, keV, MeV, and joules.

Quick Facts

Core formula
E = hc / λ
Photon energy is inversely proportional to wavelength.
Planck's constant
h ≈ 6.626 × 10⁻³⁴ J·s
Equal to 4.136 × 10⁻¹⁵ eV·s; links a photon's frequency to its energy.
Speed of light
c ≈ 2.998 × 10⁸ m/s
Speed of electromagnetic radiation in a vacuum.
Visible light range
≈1.65-3.26 eV
Corresponds to wavelengths of about 380-750 nm.

Your Results

Calculated
Wavelength
-
λ = hc / E (vacuum wavelength)
Wavelength (SI)
-
λ expressed in meters
Frequency
-
f = c / λ = E / h
Wavenumber
-
ṽ = 1 / λ, spectroscopic units

Ready

Enter a photon energy and unit, then press Calculate.

Formula and Method for Energy to Wavelength Conversion

A photon carries energy that depends only on its frequency (or equivalently, its wavelength). Max Planck and Albert Einstein established that a photon's energy is E = hf, where h is Planck's constant and f is frequency. Since all electromagnetic waves travel at the speed of light in a vacuum, frequency and wavelength are related by f = c/λ. Combining the two gives the core relationship this calculator solves: E = hc/λ, or rearranged for wavelength, λ = hc/E.

How the calculation works

Enter the photon's energy and choose its unit. The calculator first converts that value into joules, then applies λ = hc/E using the exact SI constants h = 6.62607015 × 10⁻³⁴ J·s and c = 2.99792458 × 10⁸ m/s to get the vacuum wavelength in meters. It automatically scales the headline result into the most readable unit (picometers, nanometers, micrometers, or millimeters) and also reports the frequency (f = E/h) and the spectroscopic wavenumber (ṽ = 1/λ, in cm⁻¹), which is the reciprocal of wavelength commonly used in infrared and Raman spectroscopy.

Common mistakes

  • Mixing up energy and wavelength direction: energy and wavelength are inversely related — a larger energy value always produces a shorter wavelength, never a longer one.
  • Forgetting the unit prefix: eV, keV, and MeV differ by factors of 1,000, so entering "5" when you mean "5 keV" gives a wavelength 1,000 times too long.
  • Ignoring the medium: this formula gives the vacuum (or air, to a close approximation) wavelength. Inside glass, water, or another medium, the physical wavelength shrinks to λ/n, where n is the refractive index, even though the photon's energy is unchanged.

Real-world applications

  • Spectroscopy and chemistry convert absorption or emission energies to wavelengths to identify atomic transitions and molecular bonds.
  • Astronomy converts the energy of detected photons (from radio to gamma-ray telescopes) into wavelength to classify the type of radiation and its source.
  • Semiconductor and LED design uses this relationship to choose a bandgap energy that produces a target emission color (wavelength).
  • Medical and industrial X-ray and gamma-ray work uses the energy-wavelength relationship to characterize radiation sources and shielding needs.

Frequently Asked Questions

What is the formula for converting energy to wavelength?
A photon's wavelength is found from λ = hc / E, where h is Planck's constant (6.62607015 × 10⁻³⁴ J·s), c is the speed of light (2.99792458 × 10⁸ m/s), and E is the photon energy. A handy shortcut for energies in electronvolts is λ (nm) = 1239.84 / E (eV).
Why are energy and wavelength inversely related?
Energy and wavelength are linked through frequency: E = hf and f = c/λ, so E = hc/λ. Because E is proportional to 1/λ, higher-energy photons (gamma rays, X-rays) always have shorter wavelengths, while lower-energy photons (infrared, radio waves) have longer wavelengths.
Does this calculator account for a medium like glass or water?
No — this calculator returns the vacuum (free-space) wavelength. Inside a medium with refractive index n, the wavelength shortens to λ/n while the photon energy and frequency stay the same, since the medium only slows the wave's phase velocity.
What wavelength corresponds to visible light?
Visible light spans roughly 380-750 nanometers, which corresponds to photon energies of about 1.65-3.26 eV. Violet light is at the high-energy, short-wavelength end; red light is at the low-energy, long-wavelength end.