A photon's energy is determined by its frequency, expressed by the equation E = hf, where h is Planck's constant. This relationship indicates that higher frequency electromagnetic waves, such as 400 GHz, possess greater energy compared to lower frequencies like 20 Hz. The discussion also touches on the application of classical kinetic energy equations to photons, clarifying that E = 1/2mv^2 is not applicable due to photons having zero mass. Instead, the energy-momentum relationship for photons is simplified to E = pc, where p is momentum. Overall, the conversation emphasizes the unique properties of photons in relation to energy and frequency.