---
title: RL transients and inductive kick
heading: What a coil does when you try to stop its current
eyebrow: C2 · Lesson 8 · RL transients and inductive kick
xp: 50
---

::: hook
An inductor's current can't change instantly. Ask it to, by opening a switch, and it produces whatever voltage it takes to keep the current flowing for a moment, even hundreds of volts from a 12 V supply. That's the spark when you unplug a running motor, the spike that destroys the transistor driving an unprotected relay, and also the trick that makes a car's spark plugs fire. A single diode tames it.

::: play
- A square wave drives a resistor and an inductor. The output is the resistor's voltage, which is proportional to the current. Watch it rise and fall exponentially with τ = L/R.
- Change L and R. How does the shape change?
- Further down the page, a transistor switches a relay coil. That's where the inductive kick shows up.
:::
:::

```sim circuit
V1 in 0 square 0 5 100 Hz   @ 0,0 down
L1 in out 10m               @ 0,0 right
R1 out 0 10                 @ 2,0 down
slider: L1 1m..100m log
slider: R1 1..100 log
scope: v(in), v(out)
time: 0..20m s
meter: v(out)
```

::: predict
## A coil carries 100 mA when the switch feeding it opens. The only remaining path for the current is through 1 kΩ. Roughly what voltage appears?

- [ ] 12 V, the supply
- [ ] 0 V
- [x] About 100 V
- [ ] About 1 V

::: reveal
About 100 V. The coil's current can't change instantly, so for an instant all 100 mA flows through the 1 kΩ: $0.1 \times 1000 = 100$ V. With no path at all (a switch opening in air) the voltage keeps rising until something breaks down: the air arcs, or the transistor doing the switching fails. The energy stored in the field, $\frac12LI^2$, has to go somewhere.
:::
:::

::: nameit
## RL transients

**Same recipe, dual quantity.** The three-step method of lesson 7 works with the inductor's current as the continuous quantity:

$$i(t) = i_\infty + (i_0 - i_\infty)e^{-t/\tau} \qquad \tau = \frac{L}{R_\text{th}}$$

At the instant of a change, the inductor keeps its current, so it acts like a current source of $i_0$. Long after, it acts like a short circuit.

**Inductive kick.** When the circuit around a current-carrying coil opens, the coil forces its current $I_0$ through whatever path remains. If that path has resistance $R_p$, the voltage across the coil jumps to about $I_0R_p$, and the current decays with $\tau = L/(R_\text{coil} + R_p)$. A large $R_p$ gives a huge but brief spike; an open circuit gives an arc.

**The flyback diode.** A diode across the coil, reverse-biased in normal operation, gives the current a path when the switch opens. The coil's voltage is clamped to about a diode drop, so the switch sees only the supply plus 0.7 V. The current then decays slowly through the coil's own resistance. That slow decay delays a relay's release, so for faster release a resistor or Zener diode goes in series with the flyback diode: the switch sees $V_s + 0.7 + I_0R_s$, and the current dies away faster.

**Using the kick.** A car's ignition coil, a boost converter and a camera flash's charger all build current in an inductor and then interrupt it on purpose, letting the inductor push its current into a higher voltage.
:::

```sim circuit
VS vs 0 12                  @ 0,0 down 6
L1 vs x 100m                @ 3,0 down
RW x d 100                  @ 3,2 down
D1 d dd                     @ 5,4 up
RD dd vs 1k                 @ 5,2 up
DZ 0 d BV=60                @ 7,6 up 2
RLEAK d 0 100k              @ 10,4 down 2
M1 d g 0 nmos VTO=2 KP=50m  @ 2,5
VG g 0 square 0 10 100 Hz   @ 2,5 down 2
slider: RD 1..1M log
scope: v(d), v(g)
time: 0..20m s
meter: v(d)
```

A transistor switches a relay coil (100 mH, 100 Ω) on and off. The flyback diode has a resistor $R_D$ in series. Turn $R_D$ up to 1 MΩ, which effectively removes the diode, and watch the drain voltage when the transistor turns off: it slams into 60 V, where the Zener $D_Z$ stands in for the transistor's own avalanche breakdown. Every turn-off then dumps the coil's energy into the transistor, which is how unprotected drivers die. Turn $R_D$ down toward 1 Ω to see the diode clamp the drain just above the 12 V supply.

::: example
## A 100 mH coil with 50 Ω of resistance is switched onto 12 V. What are τ and the final current, and the current after one τ?

::: solution
1. **Time constant.**
   $$\begin{aligned} \tau &= \frac LR \\ &= \frac{0.1\ \text{H}}{50\ \Omega} \\ &= 2\ \text{ms} \end{aligned}$$
2. **Final current.**
   $$\begin{aligned} I &= \frac{12\ \text{V}}{50\ \Omega} \\ &= 240\ \text{mA} \end{aligned}$$
3. **Current after one τ.** After 2 ms,
   $$\begin{aligned} i &= 240(1 - e^{-1})\ \text{mA} \\ &= 152\ \text{mA} \end{aligned}$$

**Answer:** τ is 2 ms, the final current is 240 mA, and the current after one τ is 152 mA.
:::
:::

::: example
## That coil's 240 mA is interrupted in 1 µs by a switch with no protection. About what voltage does it try to make?

::: solution
1. **Voltage the coil tries to make.**
   $$\begin{aligned} v &= L\frac{\Delta I}{\Delta t} \\ &= 0.1 \times \frac{0.24}{10^{-6}}\ \text{V} \\ &= 24{,}000\ \text{V} \end{aligned}$$
2. **What really happens.** In practice the switch arcs or breaks down long before that.
3. **The usual protection.** A flyback diode instead holds the coil to about 0.7 V beyond the supply.

**Answer:** it tries to make about 24,000 V, though the switch arcs or breaks down long before that.
:::
:::

::: example
## A relay coil of 100 mH and 50 Ω carries 240 mA when its driver turns off. A flyback diode is fitted across it. How long does the current take to decay, and where does the stored energy go?

::: solution
1. **The diode gives the current a path.** It clamps the coil's voltage to about 0.7 V above the supply instead of hundreds of volts.
2. **Decay time.** The current then circulates through the coil's own resistance and decays with
   $$\begin{aligned} \tau &= \frac{L}{R} \\ &= 2\ \text{ms} \end{aligned}$$
3. **Stored energy.**
   $$\begin{aligned} E &= \frac12LI^2 \\ &= \frac12 \times 0.1 \times 0.24^2\ \text{J} \\ &= 2.9\ \text{mJ} \end{aligned}$$
   It ends up as heat in the coil and the diode.
4. **Effect on the relay.** The slow decay keeps the relay closed a few milliseconds longer; adding a Zener in series with the diode speeds the release by letting the voltage rise further.

**Answer:** the current decays with a 2 ms time constant, and its 2.9 mJ of stored energy ends up as heat in the coil and the diode.
:::
:::

::: check
given: V = 5 | 12; R = 10 | 50 | 100; L = 10 | 100; t = 0.1 | 0.5 | 1
answer: 1000*V/R*exp(-t/(L/R))
unit: mA
tolerance: 0.5%

## A {L} mH coil carries a steady {V} V/{R} Ω current. The source is then replaced by a short, so the current decays through the {R} Ω. What current flows {t} ms later?

::: right
Right. $I_0e^{-t/\tau}$ with $\tau = L/R$: {answer}.
:::

::: misses
- [1000*V/R*exp(-t*R*L)] The time constant is L/R: divide t by it.
- [1000*V/R*(1 - exp(-t/(L/R)))] The current decays from its starting value.
- [any] Not yet. $i = \frac{V}{R}e^{-tR/L}$.
:::
:::

::: check
given: I = 50 | 100 | 200; Rp = 2.2 | 4.7 | 10
answer: I*Rp
unit: V
tolerance: 0.5%

## A coil carries {I} mA when its switch opens, leaving only a {Rp} kΩ path. What voltage appears across the coil at that instant?

::: right
Right. The current is the same an instant later, so $v = I_0R_p$ = {answer}.
:::

::: misses
- [I*Rp/1000] mA × kΩ is volts.
- [I/Rp] Multiply: $v = I_0R_p$.
- [any] Not yet. The coil forces its current through the path.
:::
:::

::: check
given: Vs = 5 | 12 | 24; I = 50 | 100; Rs = 10 | 47 | 100
answer: Vs + 0.7 + I/1000*Rs
unit: V
tolerance: 1%

## A relay coil runs from {Vs} V with {I} mA. Its flyback diode (0.7 V drop) has {Rs} Ω in series. What voltage does the switching transistor see when it turns off?

::: right
Right. The supply, plus the diode, plus the resistor's drop: {answer}.
:::

::: misses
- [Vs + 0.7] Include the series resistor's drop, $I_0R_s$.
- [I/1000*Rs] The transistor's drain sits above the supply by that much.
- [any] Not yet. $V_s + 0.7 + I_0R_s$.
:::
:::

::: check
given: L = 50 | 100 | 200; Rc = 50 | 100; Rs = 22 | 100 | 470
answer: L/(Rc + Rs)
unit: ms
tolerance: 0.5%

## A {L} mH relay coil with {Rc} Ω winding resistance turns off into a flyback diode with {Rs} Ω in series. Roughly how long is the current's time constant? (Ignore the diode's drop.)

::: right
Right. $\tau = L/(R_c + R_s)$ = {answer}: more series resistance, faster release.
:::

::: misses
- [L/Rc] The series resistor is in the loop too.
- [L*(Rc + Rs)] Divide L by the resistance.
- [any] Not yet. $\tau = L/R$ for the loop the current flows around.
:::
:::

::: check
kind: choice

## Why does a transistor driving a relay coil need a flyback diode?

- [ ] To make the relay switch on faster
- [x] When the transistor turns off, the coil's current must keep flowing; without a path it drives the transistor's voltage high enough to destroy it
- [ ] To block the supply from the coil
- [ ] To reduce the coil's resistance

::: right
Right. The diode gives the current a safe path, clamping the voltage near the supply.
:::

::: misses
- [1] The diode only matters at turn-off.
- [3] It's reverse-biased during normal operation and doesn't block anything.
- [4] It doesn't change the coil.
:::
:::

::: check
kind: parts
given: L = 0.05 | 0.1 | 0.5; R = 20 | 100; V = 5 | 12

## A relay coil of {L} H and {R} Ω runs from {V} V and has a flyback diode.

::: part
answer: 0.5*L*(V/R)^2*1000
unit: mJ
tolerance: 0.5%

### What energy does it hold when on?

::: misses
- [any] $\frac12LI^2$ with $I = \frac VR$.
:::
:::

::: part
answer: L/R*1000
unit: ms
tolerance: 0.5%

### With what time constant does its current decay after turn-off?

::: misses
- [any] $\tau = \frac LR$.
:::
:::
:::

::: check
kind: derivation
vars: V = 1..50, R = 1..1000, L = 0.0001..1, t = 0..1

## A coil L with resistance R is switched onto V.

::: step
answer: V/R*(1 - exp(-R*t/L))

### What's its current at t?
:::

::: step
answer: V*exp(-R*t/L)

### What voltage is across the ideal inductance?
:::

::: step
answer: L/R*ln(10)

### How long until the current reaches 90% of final?
:::

::: right
Right. 2.3 time constants to 90%, the usual rise-time figure.
:::
:::

::: explain
## Why does interrupting the current in an inductor produce a large voltage?

::: model
An inductor's voltage is $L\,di/dt$, and its stored energy is $\frac12LI^2$ in the magnetic field. Stopping the current quickly would mean a huge $di/dt$, so the inductor develops whatever voltage is needed to keep the current flowing through any available path. If the only path has a high resistance, or is an air gap, that voltage can be many times the supply, until the field's energy has been dissipated.
:::
:::

::: practice

::: check
given: L = 10 | 100; R = 10 | 20 | 100
answer: L/R
unit: ms
tolerance: 0.5%

## τ for {L} mH and {R} Ω?

::: misses
- [L*R] Divide.
- [any] $L/R$.
:::
:::

::: check
given: I = 10 | 50; R = 2 | 10 | 20
answer: I*R
unit: V
tolerance: 0.5%

## {I} mA forced through {R} kΩ. Voltage?

::: misses
- [any] $IR$.
:::
:::

::: check
given: Vs = 5 | 6 | 9 | 12 | 24
answer: Vs + 0.7
unit: V
tolerance: 1%

## With a plain flyback diode (0.7 V), what does the switch see when a {Vs} V relay turns off?

::: misses
- [Vs] Add the diode's drop.
- [any] $V_s + 0.7$.
:::
:::
:::
