2 ms·Einstein's equation includes all forms of energy not just rest mass. Photons have 0 rest mass not 0 energy.by fsmv 2y agoEinstein's equation includes all forms of energy not just rest mass. Photons have 0 rest mass not 0 energy.