According to the equation: E = hf, the amount of energy photons possess is directly proportional to their frequency (f) and inversely proportional to their wavelength (λ) – where E is the energy of the photon, h is Planck’s constant, and f is the frequency of the photon.
Therefore, photons with higher frequencies (and shorter wavelengths) have more energy than photons with lower frequencies (and longer wavelengths).
The energy of a photon is quantized, meaning it can only take on certain discrete values based on the relationship between its frequency and Planck’s constant.