The relativity formula is E = mc2. Where E is the energy, m is the mass and c is the speed of the light.