There is no general description of equation of energy of an EM wave.
However, in the wave picture of radiation, the Electric and magnetic fields can carry energy (equally distributed among both) and the corresponding energy density can be given as,
Thus in a volume
However, in the particle picture of radiation, it is considered to be a stream of fast moving particles called photons. In that case, the energy carried by each photon of frequency