Photon Energy Calculator

Enter a photon's wavelength (or convert from frequency) to find its energy in joules and electronvolts using E = hf = hc/λ, plus its molar energy for photochemistry.

Quick Facts

Planck-Einstein relation
E = h·f = hc/λ
Photon energy is directly proportional to frequency and inversely proportional to wavelength.
Planck's constant
h = 6.62607015 × 10⁻³⁴ J·s
Exact value fixed by the 2019 SI redefinition of units.
Speed of light (vacuum)
c = 2.99792458 × 10⁸ m/s
Used with wavelength to find frequency via c = λf.
Electronvolt
1 eV = 1.602176634 × 10⁻¹⁹ J
The natural energy unit for single photons and atomic-scale processes.

Your Results

Calculated
Photon Energy
-
E = hc / (n·λ), in joules (J)
Energy in Electronvolts
-
E ÷ elementary charge, in eV
Frequency
-
f = c / (n·λ), in hertz (Hz)
Molar Photon Energy
-
Avogadro's number × E, per mole of photons

Ready

Enter a wavelength, unit, and refractive index (1 for vacuum/air), then press Calculate.

Formula and Method for Photon Energy

Light behaves as discrete packets of energy called photons. The energy carried by a single photon is given by the Planck-Einstein relation, E = hf, where h is Planck's constant (6.62607015 × 10⁻³⁴ J·s) and f is the light's frequency in hertz. Because frequency and wavelength are linked by the wave equation c = λf, the same relation is commonly rewritten as E = hc/λ, letting you compute photon energy directly from wavelength — the quantity most often quoted for light (color, laser specs, spectral lines).

Deriving E = hc/λ and the role of the medium

Starting from E = hf and c = λf, substitute f = c/λ to get E = hc/λ. This calculator converts your wavelength to meters, then applies that formula. If you supply a refractive index n greater than 1 (light traveling through glass, water, or another medium), the calculator accounts for the fact that the wavelength you measured is the wavelength inside that medium: the light's speed slows to c/n while its frequency — and therefore its photon energy — stays fixed at the vacuum value. The energy formula becomes E = hc / (n·λ), which correctly reduces to E = hc/λ when n = 1 (vacuum or, to a very close approximation, air).

Reading the results and avoiding common mistakes

  • Joules vs. electronvolts: a single photon's energy in joules is an extremely small number (around 10⁻¹⁹ J for visible light), so physicists and chemists usually report it in electronvolts (eV) instead — divide joules by the elementary charge, 1.602176634 × 10⁻¹⁹ C, to convert.
  • Wavelength scales with the medium, energy doesn't: don't assume a photon "loses energy" when light slows down in glass or water — frequency and photon energy are unchanged; only the wavelength and speed change.
  • Molar photon energy: multiplying a single photon's energy by Avogadro's number (6.02214076 × 10²³ /mol) gives the energy of one mole of photons — a figure chemists use directly against bond dissociation energies (typically 150-500 kJ/mol) to see whether a given wavelength of light can drive a photochemical reaction.
  • Shorter wavelength means more energy: because E is inversely proportional to λ, violet and ultraviolet photons carry more energy than red or infrared photons of the same intensity — this is why UV light can cause sunburn and ionize atoms while infrared mostly just warms them.

Frequently Asked Questions

What is the formula for photon energy?
Photon energy follows the Planck-Einstein relation E = hf, where h is Planck's constant (6.62607015 × 10⁻³⁴ J·s) and f is frequency in hertz. Since frequency and wavelength are related by c = λf, the formula is often written E = hc/λ, where c is the speed of light (2.99792458 × 10⁸ m/s) and λ is wavelength in meters.
How do I convert photon energy from joules to electronvolts?
Divide the energy in joules by the elementary charge, 1.602176634 × 10⁻¹⁹ C, since 1 eV is defined as the energy gained by one electron moving through a 1-volt potential difference. A 500 nm green photon has an energy of about 3.97 × 10⁻¹⁹ J, which equals about 2.48 eV.
Does the wavelength of light change inside a medium like water or glass?
Yes. When light enters a medium with refractive index n, its speed drops to c/n and its wavelength shortens to the vacuum wavelength divided by n, but its frequency — and therefore its photon energy — stays the same as in vacuum. This calculator's refractive index field lets you enter a wavelength as measured inside a medium and still get the correct photon energy.
Why does violet or ultraviolet light carry more energy per photon than red or infrared light?
Because E = hc/λ, photon energy is inversely proportional to wavelength. Shorter wavelengths correspond to higher frequencies, and since Planck's constant is fixed, higher frequency means more energy per photon. This is why ultraviolet and X-ray photons can break chemical bonds or ionize atoms while lower-energy infrared and radio photons generally cannot.