The formula to calculate the average electric energy density is given by
UE=21ϵ0E2...(1)
and, the formula to calculate average magnetic energy density is given by
UB=2μ01B2...(2)
For any particular electromagnetic wave, both magnetic and electric field are equally involved in contributing to energy density. Hence, the ratio of average electric energy density to magnetic energy density is 1.