Total energy
Appearance
The total energy, often denoted by $E$ of an object is the sum of its rest energy and momentum energy.
For any particle of momentum $p$ and mass $m$ ($m=0$ for photons):
$$E^2=p^2c^2+m^2c^4$$
where $c$ is the speed of light.
Special case: regular mass
For an object of mass $m$ travelling at speed $v$:
$$E=\gamma\,mc^2,\, \gamma=\frac{1}{\sqrt{1-\frac{v^2}{c^2}}}$$