The energy possessed by a magnetic field due to its interaction with other magnetic fields or charged particles.