The magnetic field of coil is the concentrated, directional force generated around a loop of wire when electrical current passes through it, scaling directly with the number of turns and the current magnitude. This field fundamentally changes how a circuit behaves by resisting sudden changes in current (inductance), converting electrical energy into mechanical force (solenoids and relays), and enabling energy transfer across isolated circuits (transformers). Hobbyists and junior engineers commonly confuse the magnetic field strength (measured in Amperes per meter) with magnetic flux density (measured in Teslas), or they mistakenly assume a coil's DC resistance dictates its magnetic performance rather than its ampere-turns.
The Physics: Calculating the Magnetic Field of Coil
To design or troubleshoot electromagnetic components, you must separate the 'effort' you put into the coil from the 'result' you get in the core material. The effort is defined as Magnetic Field Strength (H), measured in Amperes per meter (A/m). According to Georgia State University HyperPhysics, the formula for a long solenoid is:
H = (N × I) / L
- N = Number of turns
- I = Current in Amperes
- L = Length of the coil in meters
The result is Magnetic Flux Density (B), measured in Teslas (T). This depends on the core material's permeability ($\mu$):
B = μ × H
Worked Numeric Example: DIY Lifting Electromagnet
Let's calculate the field for a custom lifting electromagnet. You wind 400 turns of 18 AWG magnet wire over a 0.05 meter (5 cm) mild steel core. You drive 3.0 Amps through the coil from a bench power supply.
- Calculate H: H = (400 × 3.0) / 0.05 = 24,000 A/m.
- Calculate B (Theoretical): Mild steel has a relative permeability ($\mu_r$) of roughly 200. The absolute permeability $\mu = \mu_0 \times \mu_r = (4\pi \times 10^{-7}) \times 200 \approx 2.51 \times 10^{-4}$ T·m/A. Therefore, B = 24,000 × 2.51 × 10⁻⁴ = 6.02 Tesla.
- The Reality Check (Core Saturation): Mild steel physically saturates at roughly 1.5 to 2.0 Tesla. Once the core hits ~1.5T, adding more current yields almost zero increase in lifting force; the extra energy just generates heat. This is why blindly increasing current without changing the core cross-section or material is a common beginner mistake.
Where You Meet This in Practice
The magnetic field of coil is not just textbook theory; it dictates the physical limits and failure modes of components on your workbench.
1. Relays and Contactors (Mechanical Force)
In an Omron G2R-1-E relay, the coil's magnetic field pulls a steel armature to close high-current contacts. The 'pull-in' voltage requires a high initial current to overcome the air gap's high magnetic reluctance. Once closed, the air gap vanishes, reluctance drops, and the 'holding' current can be significantly lower. If you PWM a relay coil to save power, you must use a high initial duty cycle to pull it in, then drop to a lower duty cycle to hold it.
2. Switch-Mode Power Supplies (Energy Storage)
In a buck converter, the inductor's magnetic field stores energy during the MOSFET's ON time and releases it to the load during the OFF time. If the magnetic field exceeds the core's saturation limit, the inductance collapses to near-zero, turning the inductor into a simple wire. This causes a massive current spike that will instantly destroy your switching MOSFET.
3. Inductive Kickback (The Danger Zone)
When current through a coil is interrupted, the collapsing magnetic field induces a reverse voltage to keep current flowing ($V = -L \frac{di}{dt}$). A 12V automotive relay coil can generate a 200V to 400V spike when switched off by a transistor. This will punch through the collector-emitter junction of a 2N2222 BJT or a 2N7000 MOSFET. A flyback diode (like a 1N4007) wired in reverse-parallel across the coil is strictly mandatory to clamp this spike.
Common Confusions: Field Strength vs. Flux Density vs. Inductance
Misunderstanding these three terms leads to incorrect component selection and burned-out driver circuits.
| Property | Symbol | Unit | What It Actually Means |
|---|---|---|---|
| Magnetic Field Strength | H | A/m (Amperes/meter) | The 'effort' applied by the wire. Depends only on current, turns, and coil length. Independent of the core material. |
| Magnetic Flux Density | B | T (Tesla) | The 'result' inside the core. Dictates the actual mechanical pulling force or the point of core saturation. |
| Inductance | L | H (Henries) | The circuit-level property. Dictates how much voltage is induced for a given rate of current change. Depends heavily on core permeability and geometry. |
The Trap: Measuring a relay coil's DC resistance with a multimeter tells you almost nothing about its magnetic performance. A 12V relay might have a 400Ω coil (drawing 30mA), while a 5V logic-level relay might have a 70Ω coil (drawing 71mA). The 5V relay has fewer turns of thicker wire, but both generate the necessary ampere-turns to pull the armature. Always size your driver transistor for the coil's current draw (V/R), not just the voltage rating.
Decision Path: Selecting a Power Inductor for a Buck Converter
When stepping down 5V to 3.3V for a modern ESP32-S3 module, selecting the correct inductor is critical to prevent brownouts and EMI. Follow this decision tree to arrive at a concrete part number.
| Decision Step | Condition / Question | Action / Result |
|---|---|---|
| 1. Calculate Inductance | Is your switching frequency standard (e.g., 1 MHz)? | Use the formula $L = \frac{(V_{in} - V_{out}) \times V_{out}}{V_{in} \times f_{sw} \times \Delta I_L}$. For a 1A load, target 10µH. |
| 2. Check Saturation Current ($I_{sat}$) | Is $I_{sat}$ greater than your peak switch current limit? | If NO: The inductor will saturate and blow the IC. Pick a larger physical core. If YES: Proceed to step 3. |
| 3. Check RMS Current ($I_{rms}$) | Is $I_{rms}$ greater than your max continuous load current? | If NO: The coil wire will overheat and melt. If YES: Proceed to step 4. |
| 4. Shielded vs. Unshielded | Are you using a 2.4GHz WiFi/BLE antenna nearby? | If YES: You MUST use a shielded inductor to prevent magnetic field radiation from desensitizing the antenna. If NO: Unshielded is cheaper and has lower DCR. |
| 5. Final Pick | Default recommendation for 3.3V / 1A ESP32 builds | Select the Bourns SRP1265A-100M (10µH, 9A $I_{sat}$, shielded). It provides massive saturation headroom and eliminates EMI. |
Frequently Asked Questions
Does wire gauge (AWG) affect the magnetic field strength?
Indirectly, yes. The formula for H only cares about current and turns. However, thinner wire (higher AWG number) has higher DC resistance. If your voltage source is fixed (e.g., a 12V battery), using thinner wire will reduce the current (Ohm's Law), which directly reduces the magnetic field strength. To get more turns without losing current, you must increase the drive voltage or use a constant-current driver.
Why do relay coils get hot if left energized?
Relay coils are essentially resistors wrapped around an iron core. Once the armature is pulled in, the magnetic field is doing no mechanical work, and all the electrical power ($I^2R$) is dissipated as heat. For continuous-duty applications, look for 'bistable' (latching) relays like the Omron G6BK series, which use a permanent magnet and only draw current for a few milliseconds to pulse the coil and change states.
Can I use an air-core coil for a power supply inductor?
No. Air has a relative permeability of exactly 1. To achieve the 10µH to 47µH inductance required for low-frequency (100kHz - 1MHz) switch-mode power supplies, an air-core coil would require hundreds of turns of thick wire, resulting in massive physical size and unacceptably high DC resistance (DCR) that would destroy your efficiency. Air-core coils are strictly reserved for very high-frequency RF applications (VHF/UHF) where core losses in ferrite would be too high.






