Inductance and magnetic energy

A coil's own changing current changes its flux, so it induces an emf minus L dI over dt that opposes the change, a solenoid's inductance is mu nought N squared A over l, and the energy stored in its field is one half L I squared.

From AP Physics C: Electricity and Magnetism.