quantum calculators

Photon Energy and Frequency Calculator

Converts a photon's wavelength to its energy in joules or electron-volts, accounting for the refractive index of the medium. Use it when designing optical systems, LED devices, or studying light–matter interactions.

About this calculator

A photon's energy depends on its wavelength and the medium through which it travels. In a medium with refractive index n, the effective wavelength shortens, raising the energy. The formula used here is E = (h·c·n) / λ, where h = 6.626×10⁻³⁴ J·s (Planck's constant), c = 2.998×10⁸ m/s (speed of light in vacuum), n is the refractive index, and λ is the wavelength in metres. For results in electron-volts the numerator simplifies to the constant 1.240×10⁻⁶ eV·m, giving E (eV) = (1.240×10⁻⁶ · n) / λ(m). Because frequency ν = c/(n·λ), energy can equivalently be written E = h·ν. This relationship underpins spectroscopy, photovoltaics, and optical fibre design.

How to use

Suppose a photon has wavelength λ = 500 nm in glass with refractive index n = 1.5, and you want the energy in eV. Convert the wavelength: 500 nm = 500×10⁻⁹ m. Apply the formula: E = (1.240×10⁻⁶ × 1.5) / (500×10⁻⁹) = 1.860×10⁻⁶ / 5.00×10⁻⁷ = 3.72 eV. In joules: E = (6.626×10⁻³⁴ × 2.998×10⁸ × 1.5) / (500×10⁻⁹) ≈ 5.96×10⁻¹⁹ J. Enter wavelength = 500, refractive index = 1.5, select eV, and the calculator returns 3.72 eV instantly.

Frequently asked questions

How does the refractive index affect photon energy in a medium?

When light travels through a medium with refractive index n > 1, its speed and wavelength both decrease by a factor of n while its frequency stays constant. Because energy E = h·ν, the photon's energy is unchanged relative to its frequency; however, if you measure the spatial wavelength inside the medium and plug it into E = hc/λ, you must multiply by n to get the correct result. This calculator handles that correction automatically so you can enter the in-medium wavelength directly.

What is the difference between photon energy in joules and in electron-volts?

One electron-volt (eV) equals 1.602×10⁻¹⁹ joules — the energy gained by one electron moving through a 1 V potential difference. Joules are the SI unit and suit engineering calculations involving power or heat, while eV are more intuitive for atomic and optical physics because visible photons carry energies of roughly 1.8–3.1 eV. The calculator lets you switch between units so you can match the conventions of your field without manual conversion.

Why do optical engineers need to calculate photon energy from wavelength?

Photon energy determines whether a photon can excite a particular electronic transition, be absorbed by a semiconductor, or damage a biological sample. LED and laser diode design requires matching the photon energy to the semiconductor band gap, which is typically quoted in eV. Solar cell efficiency analysis uses the photon energy spectrum to determine what fraction of sunlight can be converted. Having a quick wavelength-to-energy converter avoids repeated manual use of E = hc/λ and reduces unit-conversion errors.