one can also calculate the internal energy of electromagnetic or blackbody radiation. it is a state function of a system, an extensive quantity. the si unit of energy is the joule although other historical, conventional units are still in use, such as the (small and large) calorie for heat. (calories that are on classic food labels are actually kilo-calories.)