When an electromagnetic wave propagates from the source, it transfers energy to the objects in its path. Electric and magnetic fields serve as energy reservoirs for electromagnetic waves. An electromagnetic wave contains the same amount of energy as are contained in the electric and magnetic fields together. In such situation, the energy density of the electromagnetic wave is equal to the sum of the energies of the electric and magnetic fields.
The average electric and magnetic energy densities are given by
UEUB==21ϵ0E221μ0B2