Example 1
λ = 6e-7 m -> E ≈ 2.07 eV (yellow).
Enter wavelength in meters. The calculator divides hc by λ and you get photon energy in J and eV. 600 nm (6e-7 m) is about 2.07 eV. When you know hertz instead of nanometers, open E = h·f.
From frequency: E = h·f. Inverse: λ = hc/E. λ = v/f: wavelength.
Wavelength λ (m). The result shows up here.
Since E = h·f and in vacuum f = c/λ, you multiply and get E = hc/λ. A shorter wave carries more energy per photon. Red at 700 nm is about 1.77 eV, blue at 450 nm about 2.76 eV. You call both light, but the blue photon is clearly more expensive. h and c are built in: h = 6.62607015e-34 J·s, c = 299792458 m/s.
Type 6e-7, that is 600 nm. E = hc/λ ≈ 3.311e-19 J, or 2.07 eV. Cut the wave in half to 300 nm (3e-7 m) and the energy rises to 4.13 eV, almost twice, because λ is in the denominator. Typical slip: typing 600 instead of 6e-7. Then you are computing a 600 m wave, radio, not yellow light, and the eV collapse to a tiny 2e-9.
This is a vacuum model. In glass, n > 1: frequency stays, λ in the medium shrinks. Photon energy is still h·f, so E from a λ measured in glass without n is only an approximation. Here c is the vacuum value. Wi-Fi at λ = 0.125 m is about 9.9e-6 eV. An X-ray at 1 nm (1e-9 m) goes to 1240 eV.
λ has to be positive. Zero is division by zero. λ follows the header in m or ft. Energy stays in J and eV. The chart of E versus λ falls as 1/λ: longer wave, smaller packet. A comma and a period both parse. 7e-7 (700 nm, red) gives 1.77 eV.
The form needs one field. The calculator example 6e-7 → 2.07 eV. 4.5e-7 (450 nm) → 2.76 eV. If the problem gives f in hertz, go to E = h·f and do not convert to λ by hand.
The inverse is on the neighbouring page: from eV you return to nanometers on λ = hc/E. 2 eV give about 620 nm there. Here you stay with λ in meters.
E = h · c / λ
h = 6.62607015×10⁻³⁴ J·s, c = 299792458 m/s. λ > 0.
When you know meters instead of hertz, E = hc/λ. Typing 6e-7 (600 nm) gives about 3.311×10⁻¹⁹ J, or 2.07 eV.
λ = 6e-7 m -> E ≈ 2.07 eV (yellow).
λ = 4.5e-7 m -> E ≈ 2.76 eV.
λ = 7e-7 m -> E ≈ 1.77 eV.
λ = 3e-7 m -> E ≈ 4.13 eV.
λ = 1e-9 m -> E ≈ 1240 eV.
λ = 0.125 m -> E ≈ 9.9e-6 eV.
λ = 3 m -> E ≈ 4.1e-7 eV.
λ = 1e-8 m -> E ≈ 124 eV.
Type 6e-7 m. E ≈ 2.07 eV. 300 nm (3e-7) gives 4.13 eV, almost twice as much.
600 nm = 6e-7 m. 450 nm = 4.5e-7. Typing 600 computes a 600 m wave, not light.
From E = h·f and f = c/λ in vacuum. Multiply and you get E = hc/λ. Shorter λ, larger E.
700 nm (7e-7) ≈ 1.77 eV, red. 450 nm (4.5e-7) ≈ 2.76 eV, blue.
The model uses vacuum c. In a medium λ is shorter at the same f, so E from λ in glass without n is an approximation.
When you know f (a spectrometer in Hz, radio). Here you know λ from an LED label or a diffraction grating.
About 9.9e-6 eV. That is Wi-Fi, not light. 1 nm (1e-9 m) is already 1240 eV.
You would divide by zero. Wavelength must be positive.
On λ = hc/E you type energy in eV and get wavelength back. 2 eV ≈ 620 nm.
No. They are fixed. If a problem asks for another c, that is usually a medium, not a new constant.
The formula is the school one. Units follow SI; NIST SP 330 and BIPM define the measures, not your result.
Page updated in 2026.