The total energy of a system can be calculated by adding up all forms of energy in the system.