when energy transforms into mass, the amount of energy does not remain the same. when mass transforms into energy, the amount of energy also does not remain the same. however, the amount of matter and energy remains the same. energy turns into mass and mass turns into energy in a way that is defined by einstein's equation, e = mc2.