One of the main differences between a capacitor and an inductor is that a capacitor opposes a change in voltage while an inductor opposes a change in the current. Furthermore, the inductor stores energy in the form of a magnetic field, and the capacitor stores energy in the form of an electric field.