In vacuum-permeability magnetohydrodynamics, the magnetic energy in a volume is . Its volume density equals the magnetic pressure.
For reversible quasistatic magnetic circuits with flux linkages , currents and mechanical coordinate , write . The Legendre transform obeys . Thus , while . In a linear reciprocal system numerically, but the variables held fixed in their force derivatives differ. The coenergy formulation includes the effect of electrical sources maintaining the currents; it avoids reversing the sign of the magnetic force by differentiating stored energy under the wrong constraint.
The shell-integrated magnetic energy spectrum distributes magnetic energy over wavenumbers. With a solenoidal isotropic spectral tensor normalized to and the inverse Fourier transform measure , one has . In Gaussian units, integrates to the energy density . A spectrum per unit mass or normalized to has different constant factors. Scale-local fluctuation estimates give proportional to at when the spectrum is normalized consistently.