A Coil Refuses to Stop, and the Bill Arrives as a Spark
Published 10/29/2026 · 3 min read · Developer tools
Daniel Okonkwo — Front-end developer and tech writer at OneKitly
Web performance · File formats
Checked against 2 sources
An inductor stores energy in its magnetic field, and the amount depends on the square of the current: half the inductance times the current squared. A 100 mH coil carrying 2 A holds 200 mJ; double the current to 4 A and it holds 800 mJ, four times as much. That energy cannot disappear when the circuit opens, and the coil will raise whatever voltage is required to keep its current flowing — hundreds of volts across an air gap of a fraction of a millimetre, which is what the visible spark at a switch actually is. The cure is a path for the current to take instead: a diode across the coil, conducting only when the coil tries to reverse the voltage, turns a destructive spike into a quiet decay.
A 100 mH relay coil at 2 A holds 200 millijoules. Open the switch and that energy has one microsecond to find somewhere to go — usually across the contacts.
Two millijoules is enough to matter
The smallest coil in the table, a signal relay drawing 200 mA, holds two thousandths of a joule — an amount that would not warm a drop of water. It is nevertheless enough to punch through the junction of a small transistor, because the damage is done by voltage rather than by heat and the energy is delivered in well under a microsecond. This is why the flyback diode is not an optional refinement: a microcontroller pin driving a relay directly, with nothing across the coil, tends to work in testing and fail in the field once the switching has been repeated a few hundred thousand times.
The same effect, deliberately
Every switching power supply is this problem turned into a mechanism. A transistor lets current build up in a small choke, then interrupts it; the coil's insistence on continuing pushes the current through a diode into a capacitor at a different voltage, and the cycle repeats tens of thousands of times a second. The 0.1 mH choke in the table holds under half a millijoule per cycle, which sounds negligible until you multiply by 100 000 cycles per second and get 45 W. Nothing about the physics differs from the spark at a switch — only the presence of somewhere for the energy to go, and a schedule for sending it there.
| Coil | Current | Energy |
|---|---|---|
| Small relay, 100 mH | 0.2 A | 2 mJ |
| Contactor, 100 mH | 2 A | 200 mJ |
| Same coil, twice the current | 4 A | 800 mJ |
| Switching choke, 0.1 mH | 3 A | 0.45 mJ |
Worked with our own calculator
Inductor energy calculator
Given
- Inductance (mH)
- 50
- Current (A)
- 1
Result
- Energy (J)
- 0.025
- Energy (mJ)
- 25
These figures are produced by the calculator below, not typed in by hand — they are recomputed whenever the tool changes.
Run it on your own figures →Frequently asked questions
- How high does the voltage actually go?
- As high as it needs to, until something conducts. The coil sets the rate of change of current, not the voltage, and the voltage that appears is whatever the surrounding circuit produces at that rate — which in an open circuit is limited only by the breakdown of the air or the semiconductor. Measured spikes of several hundred volts from a 12 V relay are routine. Adding a diode caps the excursion at about a volt beyond the supply, and adding a resistor in series with that diode trades a higher clamp voltage for a faster release, which matters when the relay must drop out quickly.
- How does this compare with a capacitor of similar size?
- Capacitors win on stored energy per unit of volume by a wide margin, which is why they, and not coils, are used to hold energy between cycles. A capacitor the size of the 100 mH relay coil can store tens of joules rather than tenths. The trade is that a capacitor resists changes in voltage while an inductor resists changes in current, so they occupy opposite roles: the capacitor is the reservoir, the inductor is the pump that moves charge between reservoirs at different pressures. Neither replaces the other, and a switching converter needs both.
Articles you may find interesting
All guides →Related tools
Sources
Spotted a mistake in this article?