The relationship between electricity and magnetism is the fundamental physical principle where moving electric charges generate magnetic fields, and changing magnetic fields induce electric voltages. This is not just abstract textbook theory; it is the exact mechanism that changes a straight piece of wire from a simple conductor into an inductor that resists current changes, forcing you to manage flyback voltage, size switch-mode power supplies (SMPS), and control electromagnetic interference (EMI). People commonly confuse static electric fields with magnetic fields—a wire sitting at 120V with zero current produces an electric field, but absolutely zero magnetic field until charges actually move.

The Core Mechanism: Ampere’s and Faraday’s Laws in Action

Every time you design a circuit with coils, transformers, or motors, you are leveraging two sides of the same coin. Ampere’s Law dictates that current flowing through a conductor generates a proportional magnetic field. This is how relays pull contacts shut and how electromagnets lift scrap metal. Faraday’s Law of Induction dictates that a changing magnetic field induces a voltage in a nearby conductor (or the same conductor). This is how generators produce power and why an inductor generates a massive voltage spike when you suddenly cut its current.

Think of inductance like the inertia of water flowing through a heavy rubber hose. When you turn the valve on, the water resists starting to flow (inductor resists current rise). When you slam the valve shut, the water's momentum causes a pressure hammer that can burst the hose (inductor flyback voltage). Just as you need a pressure relief valve for water hammer, you need a flyback diode or snubber circuit to safely dissipate the magnetic energy stored in an inductor when the switch opens.

Worked Example: Sizing a Buck Converter Inductor

To see how the relationship between electricity and magnetism dictates real component selection, let us size the main inductor for a 12V-to-5V DC-DC buck converter delivering 2A of continuous current at a 500 kHz switching frequency.

Design Parameters:
  • Input Voltage ($V_{in}$): 12V
  • Output Voltage ($V_{out}$): 5V
  • Output Current ($I_{out}$): 2.0A
  • Switching Frequency ($f_{sw}$): 500 kHz (0.000002s period)
  • Target Ripple Current ($\Delta I_L$): 30% of $I_{out}$ = 0.6A

First, calculate the duty cycle ($D$), which is the percentage of time the internal MOSFET is on:

$D = V_{out} / V_{in} = 5V / 12V = 0.4167$

Next, use Faraday’s law in the form of the inductor volt-second balance equation to find the required inductance ($L$):

$L = \frac{V_{out} \times (1 - D)}{\Delta I_L \times f_{sw}}$

$L = \frac{5 \times (1 - 0.4167)}{0.6 \times 500,000}$

$L = \frac{2.9165}{300,000} = 9.72 \mu H$

We round up to the nearest standard value: 10 µH. However, inductance is only half the battle. Because the magnetic field stores energy, the core material will physically saturate if the current gets too high, causing the inductance to plummet and the IC to overheat. The peak current is $I_{out} + (\Delta I_L / 2) = 2.0A + 0.3A = 2.3A$. Therefore, you must select a 10 µH inductor with a saturation current ($I_{sat}$) rating strictly greater than 2.5A. A concrete, off-the-shelf pick for this is the Coilcraft MSS1210-103KE (10 µH, shielded, $I_{sat}$ = 3.1A).

Where You Meet This in Practice

You interact with electromagnetism on almost every workbench project, even if you do not explicitly calculate it:

  • Relays and Contactors: The coil is an electromagnet. The pulling force is proportional to the square of the current and the number of wire turns (Ampere-turns). If a 12V DC relay chatters, it is often because the magnetic field is too weak to overcome the spring tension, usually due to voltage drop across undersized control wires.
  • Switch-Mode Power Supplies (SMPS): Buck, boost, and flyback converters rely entirely on storing energy in a magnetic field during the 'on' time and transferring it to the output during the 'off' time. Without the magnetic relationship, we would still be using heavy, inefficient linear regulators.
  • EMI Chokes and Common-Mode Filters: High-frequency noise travels along cables as changing currents. By routing the cable through a ferrite bead, the changing magnetic field induces eddy currents in the ferrite, converting the high-frequency electrical noise into harmless heat.
  • Parasitic Inductance in PCB Traces: Every straight trace has a tiny amount of inductance (roughly 1 nH per millimeter). When a MOSFET switches 10A in 20 nanoseconds, that tiny parasitic magnetic field collapses rapidly, inducing voltage spikes ($V = L \times di/dt$) that can easily exceed the MOSFET's breakdown voltage.

Core Material Decision Tree: What to Buy

When winding your own transformers or selecting power inductors, the core material determines how efficiently the magnetic field couples. Use this decision matrix to terminate your search and pick the right material.

Core Material Frequency Range Best Application Key Limitation Concrete Pick / Standard
Mn-Zn Ferrite 100 kHz to 3 MHz SMPS transformers, high-freq inductors Cracks easily, saturates sharply TDK PC44 or PC95 material
Powdered Iron 10 kHz to 100 kHz High DC bias chokes, low-freq filtering High core loss at high frequencies Micrometals -26 (yellow/white) or -52
Ni-Zn Ferrite 1 MHz to 300 MHz EMI suppression beads, RF chokes Very low permeability, poor for power Fair-Rite 43 or 61 material beads
Air Core > 10 MHz VHF/UHF RF tuning, high-current pulse Extremely low inductance, massive physical size Self-supporting copper windings
The Default Recommendation: If you are building a standard DC-DC converter, LED driver, or Arduino power supply operating between 100 kHz and 1 MHz, stop evaluating and choose a shielded Mn-Zn ferrite core inductor. The shielding keeps the magnetic flux contained, preventing it from inducing noise into nearby sensitive analog traces or Hall-effect sensors.

Taming Parasitics: Layout Rules for Magnetic Fields

Because changing magnetic fields induce voltages in any nearby conductor, your physical layout is just as critical as your schematic. The voltage induced by a changing magnetic field is proportional to the area of the loop formed by your current path.

Rule 1: Minimize the High di/dt Loop. In a buck converter, the input capacitor, the high-side MOSFET, and the low-side MOSFET form a loop that carries highly discontinuous current. Keep the input ceramic capacitor as physically close to the IC's VIN and PGND pins as possible. A 5mm increase in trace length here can add 5 nH of parasitic inductance, resulting in a 2.5V ringing spike on a 10A/20ns switch edge.

Rule 2: Route Differential Pairs Together. If you have a signal and its return path, route them directly over one another on adjacent PCB layers or tightly side-by-side. The magnetic field generated by the forward current is perfectly canceled by the opposing magnetic field of the return current, resulting in zero net external magnetic flux and drastically reduced EMI.

Rule 3: Use Ground Planes, Not Ground Traces. A solid ground plane allows the return current to automatically route itself directly beneath the forward signal trace, minimizing the loop area and the resulting parasitic inductance. A meandering ground trace forces a massive loop area, turning your PCB into an accidental loop antenna that will both emit and receive magnetic interference.

Frequently Asked Questions

Does a higher inductance value always mean a better filter?

No. Higher inductance usually requires more turns of wire or a higher permeability core. More wire increases DC resistance (DCR), causing $I^2R$ heat losses. Higher permeability cores saturate at lower currents. You must balance inductance, DCR, and saturation current ($I_{sat}$) for your specific load.

Why do we use laminated steel cores for 50/60Hz mains transformers instead of ferrite?

Ferrite has a relatively low saturation flux density (around 0.3 to 0.4 Tesla). At low frequencies like 60Hz, a ferrite core would need to be massively oversized to handle the volt-seconds without saturating. Silicon steel laminations can handle up to 1.5 to 2.0 Tesla, allowing 50/60Hz transformers to be compact and efficient, while the thin laminations prevent massive eddy current losses.

Can a magnetic field induce a voltage in a stationary wire?

Only if the magnetic field itself is changing in strength or moving relative to the wire. A static, unchanging magnetic field resting over a stationary wire will induce absolutely zero voltage. There must be relative motion or a change in flux density over time ($d\Phi/dt$) to generate an electromotive force.