Find a course

Module 5: Capacitors, Inductors and TransientsLesson 10 of 1214 min

Inductors and RL Circuits

Understand inductance, v = L di/dt and magnetic energy, predict RL current rise with τ = L/R, and protect circuits from inductive voltage spikes.

Step 1 of 12Learn

Why switching off a motor can destroy a transistor

An engineer switches a relay coil with a transistor. It works perfectly for a few hours, then the transistor dies. Nothing was overloaded while running. The damage happened in the microseconds after each switch-off, from a voltage spike of over 100 V generated by the coil itself.

An inductor is usually a coil of wire, sometimes wound on an iron or ferrite core. Current through it creates a magnetic field, and the field stores energy. Change the current and the changing field induces a voltage that opposes the change (Lenz's law):

v = L × di/dt

Inductance L is measured in henries (H). Practical values range from nanohenries in radio circuits to henries in large chokes.

Compare with the capacitor:

  • A capacitor resists changes in voltage; an inductor resists changes in current.
  • A capacitor's voltage can't jump; an inductor's current can't jump.
  • In steady-state DC, a capacitor is an open circuit; an inductor is a short circuit (just the resistance of its wire).

That spike is the inductor trying to keep its current flowing. When the transistor snaps off, di/dt is huge, so v = L di/dt is huge. A coil of 50 mH carrying 0.2 A that is cut off in 50 µs produces about 0.05 × 0.2 / 0.00005 = 200 V.

Step 2 of 12Diagram

Why switching off a coil makes a spike

Why switching off a coil makes a spikeProcess diagram: Current flows in coil → Transistor switches off → Inductor resists change → Voltage spike → Transistor breaks down.Current flows in coilTransistor switchesoffInductor resistschangeVoltage spikeTransistor breaksdown

Tap a shape with to see more.

Current flows in coil

Energy sits in the coil's magnetic field.

Transistor switches off

The current is told to stop in microseconds.

Inductor resists change

V = L × di/dt: a huge di/dt means a huge voltage.

Voltage spike

Hundreds of volts can appear across the switch.

Transistor breaks down

Unless a flyback diode gives the current a safe path.

Step 3 of 12Practice · Work it out

A 20 mH inductor's current rises steadily from 0 to 0.5 A in 10 ms. What voltage appears across it during that time?

Step 4 of 12Learn

Energy and the RL time constant

An inductor carrying current I stores energy in its magnetic field:

E = ½ L I²

A 2 H choke carrying 3 A stores ½ × 2 × 9 = 9 J. That energy has to go somewhere when the current stops, which is where the spike comes from.

Connect an inductor in series with a resistor to a DC voltage V_s. At the first instant, the inductor's current is still zero (it can't jump), so the full voltage appears across the inductor. Then current builds exponentially toward its final value V_s / R:

i(t) = (V_s / R)(1 − e^(−t/τ)), where τ = L / R

The same 63.2% / 86.5% / 95% / 99.3% milestones apply at 1τ, 2τ, 3τ and 5τ. Meanwhile the inductor's voltage decays from V_s toward zero.

Example: a 100 mH coil with 50 Ω of total resistance on 12 V. τ = 0.1 / 50 = 2 ms. The current heads for 12 / 50 = 0.24 A, reaching about 0.152 A after 2 ms and essentially 0.24 A after 10 ms.

Watch the direction of the dependence: a larger resistance makes the RL circuit faster (τ = L/R), while in an RC circuit a larger resistance makes it slower (τ = RC). That asymmetry is a favorite exam question.

Step 5 of 12Try the calculator

RL circuit calculator

Find the time constant, final current and stored energy of a series RL circuit.

Time constant τ
2 ms
Final current
0.24 A
Current at time t
0.152 A
Energy stored at final current
2.88 mJ

Step 6 of 12Practice · Work it out

A 0.5 H inductor is in series with 25 Ω. What is the time constant in milliseconds?

Step 7 of 12Explore

RL current rise

Current in a series RL circuit after the switch closes (x in milliseconds). With L in mH and R in ohms, L/R is the time constant in ms.

012345 020406080100
Time constant
10 ms
Final current
0.6 A
Stored energy at final current
36 mJ

Step 8 of 12Learn

Taming the spike: protection circuits

Because the current in an inductor can't stop instantly, every circuit that switches an inductive load needs a path for that current when the switch opens. Common solutions:

  • Flyback (freewheeling) diode. A diode across the coil, reverse-biased during normal operation. At switch-off, the coil's current circulates through the diode and decays harmlessly in the coil's own resistance. It's cheap and universal for DC relays, solenoids and motors. Its drawback: the current decays slowly, so relays release a bit later.
  • Diode plus Zener, or a TVS diode. Lets the voltage rise to a controlled level before clamping, so the energy dissipates faster. Used where release speed matters.
  • RC snubber. A resistor and capacitor in series across the switch or load absorb the spike. Common in AC circuits, where a diode would short every other half-cycle.

Inductance isn't always a nuisance. The same behavior is used on purpose in boost converters, which store energy in an inductor and release it at a higher voltage: that's how a camera flash charger gets 300 V from 1.5 V, and how many LED drivers work. Car ignition coils use a sudden current interruption to generate tens of thousands of volts for the spark plugs.

Step 9 of 12Compare

Capacitor vs. inductor

AspectCapacitorInductor
Stores energy inElectric field: ½CV²Magnetic field: ½LI²
Defining relationi = C dv/dtv = L di/dt
Cannot change instantlyVoltageCurrent
Steady-state DC behaviorOpen circuitShort circuit (wire resistance only)
Time constant with Rτ = RC (bigger R → slower)τ = L/R (bigger R → faster)
Series combinationReciprocal rule (like parallel resistors)Adds directly (like series resistors)

Step 10 of 12Note

Step 11 of 12Practice · True or false

Immediately after a DC voltage is switched onto a series RL circuit, the full supply voltage appears across the inductor.

Step 12 of 12Practice · What would you do?

What would you do?

A relay coil switched by a transistor has no protection. The transistor fails after a few hours of switching. Which fix addresses the root cause?