Energy stored in an inductor =21LI2
This energy is actually stored in the magnetic field generated by the current flowing through the inductor.
In a pure inductor, the energy is stored without loss, and is returned to the rest of the circuit when the current through the inductor is ramped down, and its associated magnetic field collapses. W=21LI2 =2Iμ0N2A(μ0NBl)2 =2μ0B2lA ∴ Energy stored per unit volume =2μ0B2