In physics, a magnetic field is a vector field that describes the magnetic influence on moving electric charges, electric currents, and magnetic materials, fundamentally generated by the alignment of electron spins or the flow of current through a conductor. While electric fields act on stationary charges, magnetic fields only interact with charges in motion. In practical electronics and electrical installations, this distinction is critical: a static DC voltage creates an electric field, but it is the current flow that generates the magnetic field responsible for transformer action, motor torque, and inductive kickback. Hobbyists and junior technicians commonly confuse magnetic flux (the total field passing through an area) with magnetic flux density (how tightly packed those field lines are at a specific point), or they mistake magnetic effects for electric field coupling when debugging high-frequency noise.
The Core Physics: Flux, Density, and the B-H Curve
To design or troubleshoot magnetic components, you must separate three distinct but related measurements. The authoritative HyperPhysics database at Georgia State University defines these relationships clearly:
- Magnetic Field Strength (H): Measured in Amperes per meter (A/m). This is the "effort" you put in, driven purely by the current and the number of wire turns, regardless of the core material.
- Magnetic Flux Density (B): Measured in Teslas (T) or Gauss. This is the actual "result" inside the material. It depends on the core's permeability ($\mu$).
- Magnetic Flux ($\Phi$): Measured in Webers (Wb). This is the total volume of the magnetic field passing through a specific cross-sectional area ($A$).
The relationship is defined by $B = \mu H$ and $\Phi = B \cdot A$. Think of magnetic flux density ($B$) like the concentration of rain falling on a specific square inch of a driveway, while total magnetic flux ($\Phi$) is the total volume of water collected in a bucket placed on that driveway.
The most critical concept for bench work is the B-H curve (magnetization curve). As you increase current ($H$), the flux density ($B$) increases linearly at first. However, ferromagnetic materials like iron or ferrite have a hard physical limit called saturation. Once all the magnetic domains in the core are aligned, increasing the current no longer increases the flux density. The core effectively becomes air, inductance plummets, and current spikes uncontrollably.
Worked Numeric Example: Calculating Inductor Field Strength and Saturation
Let’s calculate the magnetic field inside a 12V DC relay coil to see why blindly applying physics formulas without checking material limits leads to design failures.
Scenario: You are winding a custom relay coil on an M19 electrical steel core. Core length ($l$) = 0.05 meters, Turns ($N$) = 500, Current ($I$) = 0.1 Amperes.
Step 1: Calculate Field Strength (H)
$H = \frac{N \cdot I}{l}$
$H = \frac{500 \cdot 0.1}{0.05} = 1,000 \text{ A/m}$
Step 2: Calculate Flux Density (B) assuming a linear core
The formula is $B = \mu_0 \cdot \mu_r \cdot H$.
Vacuum permeability ($\mu_0$) = $4\pi \times 10^{-7} \approx 1.256 \times 10^{-6} \text{ T}\cdot\text{m/A}$.
M19 steel relative permeability ($\mu_r$) $\approx 4,000$.
$B = (1.256 \times 10^{-6}) \cdot 4000 \cdot 1000 = \mathbf{5.024 \text{ Teslas}}$
If you build this, it will not produce 5.024 Teslas. According to standard electromagnetic material specifications, M19 electrical steel saturates at approximately 1.8 Teslas. The math above assumes infinite linear permeability. In reality, once the core hits 1.8 T, the effective $\mu_r$ drops drastically toward 1 (air). The coil will draw excessive current, overheat, and fail to generate proportional additional magnetic force. To fix this, you must either increase the core cross-sectional area, add a physical air gap to lower the effective permeability, or reduce the current.
Where You Meet This in Practice: Circuits and Installations
Magnetic physics isn't just textbook theory; it dictates component selection and wiring practices on the jobsite and at the workbench.
1. Inductive Kickback and Flyback Diodes
When current flows through an inductor or relay coil, energy is stored in the magnetic field ($E = \frac{1}{2}LI^2$). If you open a mechanical switch or turn off a transistor, the magnetic field collapses rapidly. Faraday’s Law of Induction dictates that this changing magnetic field will induce a voltage to keep the current flowing. Because the time ($dt$) is near zero, the voltage spike ($V = -L \frac{di}{dt}$) can easily reach hundreds of volts from a 12V source, instantly destroying a driving MOSFET. A reverse-biased flyback diode provides a safe path for this collapsing magnetic energy to dissipate.
2. Transformer Core Gapping
In switch-mode power supplies (SMPS), transformers and inductors often use ferrite cores with a deliberate physical air gap. Air has a relative permeability of exactly 1 and cannot saturate. By grinding a tiny gap (e.g., 0.5mm) into the center leg of an E-core, you drastically lower the overall effective permeability of the magnetic circuit. This reduces the inductance slightly but massively increases the amount of DC current the component can handle before hitting the saturation limit.
3. EMI Shielding and Enclosures
When shielding sensitive analog circuits from external interference, you must choose materials based on the type of field. Aluminum and copper enclosures are excellent at blocking high-frequency electric fields and high-frequency magnetic fields via eddy current cancellation. However, they are virtually transparent to low-frequency magnetic fields (like 50/60Hz mains hum). To block low-frequency magnetic fields in physics and practice, you must use high-permeability materials like Mu-metal to absorb and redirect the magnetic flux lines around the sensitive circuitry.
Frequently Asked Questions About Magnetic Fields in Physics
How do changing magnetic fields induce unwanted voltage in PCB traces?
According to Faraday's Law, a changing magnetic field passing through a conductive loop induces a voltage proportional to the rate of change and the area of the loop ($V = -N \frac{d\Phi}{dt}$). On a PCB, if your signal trace and its ground return path form a large physical loop, that loop acts as an antenna. Nearby switching regulators or AC mains wiring create changing magnetic fields that pass through this loop area, inducing common-mode noise. The fix is to minimize the loop area by placing the signal trace directly over a solid ground plane, reducing the magnetic capture area to nearly zero.
What is the exact difference between magnetic flux and magnetic flux density?
Magnetic flux density ($B$, measured in Teslas) is an intensive property; it describes the strength of the magnetic field at a specific, localized point in space, regardless of how large the overall component is. Magnetic flux ($\Phi$, measured in Webers) is an extensive property; it is the total integral of the flux density over a specific cross-sectional area ($\Phi = B \cdot A$). A tiny neodymium magnet can have a massive flux density (1.2 T) at its pole, but a very small total magnetic flux because its surface area is tiny. Conversely, a large MRI machine has a moderate flux density but an enormous total magnetic flux due to the massive bore area.
Why do magnetic fields cause destructive voltage spikes when a relay coil is switched off?
The energy in a relay coil is stored physically in the magnetic field surrounding the windings. When the control transistor turns off, the circuit resistance approaches infinity, but the inductor attempts to maintain the exact same current flow to sustain the magnetic field. To force current across the newly opened, highly resistive gap (or through the parasitic capacitance of the transistor), the inductor collapses its magnetic field and converts that stored energy into a massive voltage potential. This is why a standard 12V automotive relay coil can generate a 300V to 400V transient spike, easily exceeding the $V_{DS}$ breakdown voltage of an unprotected driving MOSFET.






