What is magnetic energy in an inductor?

An inductor resists changes in current by building a magnetic field around its conductors. When current increases, energy flows from the source into this field. When current decreases, the field collapses and releases that energy back into the circuit. This behaviour is why inductors cause sparks when unplugged suddenly—the stored energy must dissipate somewhere.

The amount of energy stored depends on two factors: the inductance value (how easily the coil generates a magnetic field) and the instantaneous current (which determines field strength). Doubling the current quadruples the stored energy, making current the dominant variable. This quadratic relationship is why circuits with high inductance and large current swings experience significant transient surges.

Magnetic energy formula

The energy stored in an inductor is calculated from the work needed to establish the magnetic field:

E = ½ × L × I²

  • E — Magnetic energy stored in the inductor (joules)
  • L — Inductance value (henries)
  • I — Current flowing through the inductor (amperes)

Worked example: calculating stored energy

Consider a 20 μH inductor carrying 300 mA of steady-state current. Converting to base SI units: L = 2 × 10⁻⁵ H and I = 0.3 A.

Substituting into the formula:

E = ½ × (2 × 10⁻⁵) × (0.3)² = ½ × (2 × 10⁻⁵) × 0.09 = 9 × 10⁻⁷ J

This equals 0.9 microjouules (μJ) or 900 nanojoules (nJ). Although tiny in absolute terms, such energy becomes significant in high-frequency switching circuits or when multiplied across many components in a system.

Practical applications of inductor energy storage

LC circuits and resonance: In LC tanks used for radio tuning and oscillators, energy sloshes between the inductor and capacitor at the resonant frequency. The inductor's stored energy converts to capacitor voltage and back, enabling frequency-selective circuits.

Transformers: Two inductors coupled magnetically transfer energy via a shared magnetic core. The primary coil's stored energy induces voltage in the secondary, allowing voltage step-up or step-down without direct electrical connection.

Power supplies and switching regulators: Inductors in buck and boost converters use stored energy to smooth current and regulate output voltage during switching cycles. Larger inductance values store more energy per ampere, reducing current ripple.

Transient protection: Series inductors limit inrush current and dI/dt surges that damage semiconductor junctions. The inductor's energy storage acts as a current buffer.

Key considerations when calculating inductor energy

Avoid these common mistakes when working with magnetic energy in circuits.

  1. Units matter in exponential expressions — Always convert to base SI units (henries, amperes) before calculating. A 1 mH inductor and 1 A current store 0.5 mJ—but if you mistakenly use millamperes without converting, you'll get an answer 1 million times too small. Dimensional consistency is non-negotiable with squared terms.
  2. Steady-state current is what counts — The formula uses the instantaneous current through the inductor. During transient events (switching, faults), peak current—not average or RMS—determines peak stored energy. This is why inductors in digital circuits can discharge kilowatts despite low average power dissipation.
  3. Frequency and resistance affect practical values — In AC circuits, current varies sinusoidally, so instantaneous energy oscillates. Real inductors have resistance (DCR), which dissipates energy as heat. The quality factor Q determines how much energy is lost per cycle. Ideal formulas assume zero resistance; real components always fall short.
  4. Energy release can overvolt the circuit — When an inductive circuit is suddenly broken, all stored energy must go somewhere instantly. If the load impedance is high, voltage can spike dangerously. This is why inductive loads need flywheel diodes or snubber circuits to safely dissipate the magnetic energy.

Frequently Asked Questions

Why does inductor energy depend on current squared?

The magnetic field strength inside an inductor is proportional to current. Since energy density in a magnetic field depends on field strength squared (B²), the total stored energy scales as I². This means doubling the current quadruples the stored energy. Physically, the relationship is nonlinear because establishing a stronger field requires proportionally more work; the inductor resists changes in current itself, not just the current value.

How is inductor energy different from capacitor energy?

Both use the same quadratic formula structure—energy equals half a constant times a squared variable. For capacitors, it's E = ½CV². For inductors, it's E = ½LI². The difference lies in what stores the energy: capacitors store charge in an electric field between plates, while inductors store current in a magnetic field within coils. Capacitors respond to voltage changes; inductors resist current changes. In LC circuits, energy trades between them at the resonant frequency.

Can you calculate inductor energy at AC frequencies?

In AC circuits, current varies continuously, so instantaneous energy fluctuates as well. The formula E = ½LI² still applies, but you must use the instantaneous current value at that moment. For sinusoidal current I(t) = I_peak × sin(ωt), energy oscillates between zero and ½L × I_peak². If you want average energy over a complete cycle in AC, it's zero because energy alternately flows into and out of the inductor. Peak energy occurs at maximum current.

What happens to the stored energy when an inductive circuit is opened?

When you break an inductive circuit (e.g., opening a switch), the current cannot change instantly. The magnetic field collapses, and the stored energy must be released. If a path exists, current continues briefly through a parallel path (like a flywheel diode). Without a safe discharge path, voltage spikes dramatically across the break—sometimes thousands of volts from a small inductor. This is why inductive circuits always need protection to prevent arcing and component damage.

How do I choose inductance for a specific energy requirement?

Rearranging the formula: L = 2E / I². If you need to store a specific amount of energy at a known current, calculate the required inductance. For example, storing 1 mJ at 1 A requires L = 2 × 0.001 / 1² = 2 mH. Keep in mind that physical inductors have resistance and saturation limits. Higher inductance values mean more coil turns or a larger core, which increases size, cost, and resistive losses. Real designs balance energy storage against these trade-offs.

Does temperature affect the energy stored in an inductor?

Temperature primarily affects the resistive losses in the wire (copper resistance increases with temperature), not the theoretical stored energy. However, ferromagnetic cores (iron, ferrite) change permeability with temperature, which alters inductance itself. If temperature rises and inductance drops, energy storage decreases at the same current. High-precision circuits often use temperature-compensated inductors or operate in controlled environments to maintain stable energy behaviour.

More physics calculators (see all)