You are not asked to memorise this as a black box — it drops straight out of conservation of energy applied to a single electron transition, and understanding that makes every spectral calculation feel obvious.
Step 1 — a photon carries a fixed packet of energy. Light is emitted and absorbed in tiny packets called photons. The energy of one photon depends only on its frequency f (or wavelength λ):
E=hf=λhc
where h=6.63×10−34J s is the Planck constant and c=3.00×108m s−1 is the speed of light. (The second form uses c=fλ.)
Step 2 — apply conservation of energy to a transition. Suppose an electron drops from a higher energy level E2 to a lower level E1. Energy cannot vanish, so the energy the electron loses is carried away by a single emitted photon:
energy lost by electron=energy of photon
E2−E1=hf
Rearranging gives the frequency of the emitted light directly:
f=hE2−E1
and, since λ=c/f, the wavelength is:
λ=E2−E1hc
The same relation runs backwards for absorption. To lift an electron up from E1 to E2, a photon of exactly energy E2−E1 must be absorbed — a photon with too little or too much energy simply passes by. This "all or nothing" rule is why absorption is also fussy about frequency.
Step 3 — the electronvolt. Atomic energies are tiny in joules, so we use a friendlier unit, the electronvolt (eV):
1 eV=1.60×10−19 J
This is the energy gained by one electron accelerated through a potential difference of 1 volt. You must convert eV to joules before putting numbers into E=hf (or your frequency will be out by a factor of about 1019).
Full worked route (learn this order). For a transition of size ΔE given in eV:
- Convert: ΔE(J)=ΔE(eV)×1.60×10−19.
- Frequency: f=ΔE/h.
- Wavelength: λ=c/f (or λ=hc/ΔE in one line).
For example, a jump of ΔE=4.5eV gives ΔE=4.5×1.60×10−19=7.2×10−19J, so f=7.2×10−19/6.63×10−34=1.09×1015Hz and λ=3.00×108/1.09×1015=2.76×10−7m=276nm (ultraviolet).