Magnetic field electricity is the physical mechanism where an electric current generates a magnetic field, and a changing magnetic field induces an electromotive force (voltage) in a conductor. In a real circuit, this phenomenon introduces inductance, which resists sudden changes in current, causes AC voltage and current to fall out of phase, and generates destructive high-voltage spikes when you break an inductive circuit. Hobbyists and junior techs most commonly confuse this with capacitance (which stores energy in an electric field and resists changes in voltage) or simple DC resistance (which dissipates energy as heat rather than storing it in a field).
The Two Halves of the Coin: Ampere and Faraday
To work with magnetic field electricity on the bench, you need to internalize two foundational laws. They are the reason your power supplies, motors, and relays function—and the reason they blow up your logic boards if you ignore them.
Ampere's Law (Current creates field): Whenever current flows through a wire, it generates a concentric magnetic field around that wire. If you loop the wire into a coil, the fields stack. The strength of this field is measured in Amperes per meter (A/m), while the total magnetic flux passing through a given area is measured in Webers (Wb) or Tesla (T). This is the principle behind electromagnets, relay coils, and the stator windings in brushless DC motors.
Faraday's Law of Induction (Changing field creates voltage): A static magnetic field does nothing to a stationary wire. But if the magnetic field changes—either by moving a magnet past a coil, or by changing the current flowing through an adjacent coil—it induces a voltage. This induced voltage always acts in a direction that opposes the change that created it (Lenz's Law). This is how transformers step down 120V AC to 12V AC, and how alternators charge your car battery.
Worked Numeric Example: The Lethal Relay Flyback Spike
Think of inductance like the momentum of water in a long pipe; when you slam the valve shut, the water's momentum creates a massive pressure spike known as water hammer. Inductive kickback is the exact electrical equivalent, and it is the number one killer of DIY Arduino and ESP32 driver circuits.
Let's calculate the flyback voltage generated when you switch off a standard Omron G5V-2 12V DC relay using a logic-level MOSFET.
- Coil Inductance (L): 200 mH (0.2 Henries)
- Steady-state Current (I): 40 mA (0.04 Amps)
- Switching Time (dt): 1 microsecond (0.000001 seconds) — typical for a fast MOSFET turning off.
The formula for induced voltage is V = L × (di / dt).
Plugging in our real-world values:
V = 0.2 H × (0.04 A / 0.000001 s)
V = 0.2 × 40,000
V = 8,000 Volts
Where You Meet Magnetic Field Electricity in Practice
You will encounter the effects of magnetic fields in almost every power and control circuit you build. Here is where it matters most:
- Switch-Mode Power Supplies (SMPS): Buck and boost converters rely entirely on storing energy in an inductor's magnetic field and releasing it to the output capacitor. If you select an inductor with a core that saturates at your peak current, the inductance drops to near-zero, and your switching IC will short-circuit and burn.
- EMI Chokes and Ferrite Beads: High-frequency digital signals (like USB or HDMI) radiate magnetic fields that cause crosstalk. Slapping a ferrite bead on a cable increases the high-frequency impedance, choking off the radiated magnetic noise without affecting the DC power.
- AC Motor Phase Shift: In AC induction motors, the magnetic field in the stator induces current in the rotor. Because the rotor is highly inductive, the current lags the voltage, creating a poor power factor. This is why industrial facilities install massive capacitor banks—to cancel out the magnetic field electricity effects and bring the phase angle back near zero.
- Transformer Inrush Current: When you first apply AC to a transformer, the magnetic flux in the core can momentarily double if you switch it on at the zero-crossing of the voltage wave. This causes core saturation and a massive inrush current that can trip your main breaker.
Decision Tree: Suppressing Inductive Kickback
When you are driving an inductive load (relay, solenoid, DC motor), you must suppress the magnetic field collapse. Use this decision path to select the exact protection component for your circuit.
| Load Type & Switching Profile | Suppression Method | Concrete Part Pick / Value | Why This Wins |
|---|---|---|---|
| DC Relay / Solenoid (Slow switching, < 10 Hz) |
Standard Flyback Diode (Reverse biased across coil) | 1N4007 (1A, 1000V) | Cheap, handles the slow decay of the magnetic field safely. Clamps spike to ~0.7V. |
| DC Motor / Fast PWM Valve (High frequency PWM, > 1 kHz) |
Schottky Flyback Diode | 1N5819 (1A, 40V) or SS34 (3A, 40V) | Schottky diodes have near-zero reverse recovery time. Standard silicon diodes will overheat and fail at high PWM frequencies. |
| AC Contactor / AC Solenoid (Mains voltage, AC) |
RC Snubber Network (Parallel to load) | 100Ω resistor + 0.1µF X2 capacitor in series | Diodes only work for DC. An RC snubber absorbs the AC magnetic collapse energy and limits the dV/dt across your TRIAC or relay contacts. |
| Stepper Motor Driver (Bipolar, H-Bridge IC) |
Internal Clamp Diodes + TVS | Driver IC with built-in clamp (e.g., DRV8825) + SMBJ15A TVS on VCC | H-bridges route the kickback back to the main supply rail. A TVS diode bleeds off the excess voltage if the supply capacitors can't absorb it. |
Clearing Up Common Confusions
What is the difference between Magnetic Flux and Magnetic Field Strength?
Magnetic Field Strength (H), measured in Amperes per meter (A/m), is the 'effort' you put in—it depends only on the current and the number of coil turns. Magnetic Flux Density (B), measured in Tesla (T), is the 'result'—it depends on the field strength and the material inside the coil (the core's permeability). Wrapping a coil around an iron nail multiplies your flux density by thousands compared to an air core, even if the field strength (current) remains identical.
Does a magnetic field consume power?
No. Building a magnetic field stores energy (measured in Joules, calculated as E = ½LI²). When the field collapses, that energy is returned to the circuit. The only power consumed (lost as heat) is due to the physical resistance of the copper wire (I²R losses) and hysteresis/eddy current losses in the magnetic core material. A perfect inductor in a pure AC circuit consumes zero real power; it only exchanges reactive power with the source.
Why do my multimeter readings show 0 ohms across a transformer primary?
Standard multimeters measure DC resistance. A transformer primary is just a long coil of thick copper wire, which might have a DC resistance of less than 1 ohm. However, its impedance to AC current is massive due to its inductance. If you apply 120V AC, the changing magnetic field generates a back-EMF that perfectly opposes the applied voltage, limiting the current to a few milliamps. If you apply 120V DC, there is no changing magnetic field, no back-EMF, and the transformer will draw hundreds of amps, trip your breaker, and catch fire.
Understanding magnetic field electricity transitions you from blindly copying schematics to actually designing robust power stages. Always respect the energy stored in a magnetic field, calculate your flyback voltages, and terminate your inductive loads with the correct suppression components.






