The energy of a photon can be calculated in two ways:
If the photon's frequency is known, we can use the formula . Max Planck proposed this equation, which is why it is known as Planck's equation.
If the photon's wavelength is known, the photon's energy can be calculated using the formula . is planck's constant, is the speed of light, and is the wavelength of the radiation are all represented in the equation.
Hence, we can calculate the energy of photon by using either or .