Magnetism in electricity is the physical phenomenon where moving electrical charges generate a magnetic field, and changing magnetic fields induce a voltage in a conductor. In a real circuit, this interaction introduces inductance, which opposes sudden changes in current, stores energy in magnetic fields, and causes voltage and current to shift out of phase in AC systems. Beginners commonly confuse magnetic flux (the total field area, measured in Webers) with magnetic flux density (the field concentration, measured in Teslas), or they mistakenly treat inductors like resistors that simply "drop voltage" rather than components that temporarily store and release energy.

The Core Mechanism: Fields and the Flywheel Effect

When direct current flows through a straight wire, it generates a static, cylindrical magnetic field around the conductor. The strength of this field is dictated by Ampere’s Law. If you coil that wire, the individual magnetic fields superimpose, creating a concentrated magnetic flux. When the current changes, the magnetic field expands or collapses. According to Faraday’s Law of Induction, this changing magnetic field cuts across the wire loops and induces a voltage that directly opposes the change in current (Lenz’s Law).

The Flywheel Analogy: Think of an inductor as a heavy mechanical flywheel in a drivetrain. It takes significant torque (voltage) to get the flywheel spinning (current flowing), but once it is spinning, it resists being stopped. If you suddenly disconnect the drive, the flywheel’s inertia will force the gears to keep turning, generating a massive spike of torque (inductive kickback voltage) until the energy dissipates.

This opposition to alternating current is called inductive reactance ($X_L$), calculated as $X_L = 2\pi fL$. Unlike resistance, which burns energy as heat, reactance temporarily stores energy in the magnetic field and returns it to the circuit. The core material inside the coil drastically multiplies this effect. Air has a relative permeability ($\mu_r$) of exactly 1, while a standard manganese-zinc ferrite core can have a $\mu_r$ between 2,000 and 10,000, allowing you to achieve the same inductance with vastly fewer turns of wire.

Worked Numeric Example: Sizing a Buck Converter Inductor

To see how magnetism dictates real-world component selection, let us size the main power inductor for a DIY synchronous buck converter stepping 12V down to 5V at a maximum load of 2A, switching at 500 kHz.

Target Parameters: $V_{in} = 12V$, $V_{out} = 5V$, $I_{out} = 2A$, $f_{sw} = 500,000 Hz$

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

$D = \frac{V_{out}}{V_{in}} = \frac{5}{12} = 0.4167$ (or 41.67%)

Next, define your acceptable ripple current ($\Delta I_L$). A standard engineering rule of thumb is to set the peak-to-peak ripple at 30% of the maximum DC load current to balance physical inductor size against output voltage ripple.

$\Delta I_L = 0.30 \times 2A = 0.6A$

Now, apply the fundamental inductor sizing equation for a buck topology:

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

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

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

This yields 9.72 µH. In practice, you will select the closest standard E-series value, which is 10 µH. However, the inductance value is only half the battle; the inductor must also handle the peak current without the magnetic core saturating. The peak current is $I_{out} + (\Delta I_L / 2) = 2A + 0.3A = 2.3A$. Therefore, your chosen 10 µH inductor must have a saturation current rating ($I_{sat}$) strictly greater than 2.3A, ideally around 3A to provide a safety margin for transient loads.

Where You Meet Magnetism in Practice

You interact with electromagnetic principles every time you close a switch, but these three applications are where the magnetic design choices dictate whether your project works or catches fire:

  • Switch-Mode Power Supplies (SMPS): Inductors and transformers store and transfer energy at high frequencies (50 kHz to 2+ MHz). The core material must have low hysteresis and eddy current losses at these specific frequencies, or it will overheat and fail.
  • Electric Motors (BLDC and Steppers): The rotor turns because of the attraction and repulsion between the permanent magnets on the rotor and the electromagnets (stator coils). The physical air gap between them and the magnetic permeability of the stator laminations determine the motor's torque constant ($K_t$).
  • EMI and Common-Mode Chokes: Placed on AC mains inputs or high-speed data lines (like USB or Ethernet), these use high-permeability cores to present massive impedance to high-frequency noise while allowing the 50/60 Hz power or differential data signals to pass unimpeded.

Magnetic Core Selection: A Decision-Forward Guide

Choosing the wrong magnetic core material is the most common reason DIY power supplies overheat. The core dictates how much energy can be stored before magnetic saturation occurs (where the core effectively becomes air, inductance plummets, and current spikes destructively). Use the decision tree below to select your core topology.

Operating Frequency DC Bias / Current Level Optimal Core Material Concrete Part Example
> 100 kHz Low to Medium (< 10A) Manganese-Zinc Ferrite TDK N87 Toroid / E-Core
< 100 kHz High (> 10A) Powdered Iron / Sendust Micrometals -26 Mix Toroid
50 / 60 Hz (Mains) Very High (Mains isolation) Laminated Silicon Steel Standard EI Transformer Core
> 500 kHz (Compact SMPS) Medium (1A - 5A) Shielded Ferrite Composite Coilcraft XEL Series
The Bench-Tested Default Pick: If you are building a 500 kHz, 2A to 5A buck or boost converter on your bench today and want to avoid manually winding toroids, select the Coilcraft XEL5030-103. It is a 10 µH shielded ferrite composite inductor with a 3.2A saturation current, an incredibly low DC resistance (DCR) of 14 mΩ, and a soft saturation curve that prevents catastrophic current spikes in your switching MOSFETs. You can source these directly via Coilcraft's power inductor catalog or through major distributors like Digi-Key and Mouser.

FAQ: Clearing Up Magnetic Confusion

What is the difference between Gauss and Tesla?

They measure the exact same thing (magnetic flux density), just in different unit systems. One Tesla (T) equals 10,000 Gauss (G). Tesla is the standard SI unit used in modern engineering and physics, while Gauss is a legacy CGS unit you will still see on cheap handheld magnetometers and older datasheets. When calculating core saturation, always convert Gauss to Teslas to keep your SI formulas consistent.

Why does a DC electromagnet not induce a voltage in a nearby coil?

Faraday’s Law strictly requires a changing magnetic field to induce a voltage. A steady DC current through an electromagnet creates a static, unchanging magnetic field. Because the flux is not expanding or collapsing (the derivative of the flux with respect to time is zero), no voltage is induced in an adjacent secondary coil. This is why transformers only work with AC or pulsed DC, never steady DC.

How do I measure inductance if my cheap multimeter does not have an 'L' setting?

You cannot accurately measure inductance with a standard voltage/current multimeter. You need an LCR meter. For hobbyists, the DER EE DE-5000 (roughly $90) is the benchmark entry-level LCR meter that accurately measures inductance, capacitance, and equivalent series resistance (ESR) at selectable test frequencies (100 Hz to 100 kHz). If you are designing switching power supplies, measuring your inductor's ESR at the actual switching frequency is just as critical as verifying the microhenry value.

For a deeper mathematical breakdown of magnetic circuits and reluctance, refer to the foundational chapters on magnetism and electromagnetism at All About Circuits, and always cross-reference your specific core material's B-H curve on the TDK Electronics ferrite core datasheets before finalizing your winding calculations.