With this online calculator you can calculate energy using the Einstein formula.
Formula:
E = mc2
E - energy
m - mass
c - speed of light
For reference:
c = 299792458 m/s
Energy is the quantitative property that must be transferred to an object in order to perform work on, or to heat, the object.