A magnetic field coil is a wound conductor that converts electrical current into a concentrated magnetic flux, generating either mechanical force or electrical impedance depending on the application. When you insert a coil into a circuit, it fundamentally changes the circuit's behavior by introducing inductance (which opposes rapid changes in current) or by creating a physical magnetic pull that actuates a plunger or armature. Makers and junior engineers commonly confuse the coil itself (the wound copper wire and core) with the entire solenoid assembly (which includes the frame, plunger, and return spring), or they mistakenly use an inductor designed for energy storage when they actually need an electromagnet designed for mechanical work.
The Physics of the Coil: Ampere-Turns and Flux Density
The strength of the magnetic field generated by a coil is dictated by its Ampere-turns (NI), which is the product of the current flowing through the wire and the number of wire loops. According to Georgia State University's HyperPhysics, the magnetic field strength ($B$) inside a long solenoid is calculated as $B = \mu_0 \cdot \mu_r \cdot (N \cdot I) / L$, where $\mu_r$ is the relative permeability of the core material and $L$ is the length of the coil.
Suppose you are winding a custom 12V DC electromagnetic lock using 26 AWG enameled copper magnet wire.
- Wire Specs: 26 AWG has a resistance of roughly $410 \, \Omega$ per 1,000 feet.
- Winding: You wind 500 turns around a 1-inch (0.0254 m) diameter spool. The circumference is $\pi \cdot d \approx 3.14$ inches.
- Total Wire Length: 500 turns $\times$ 3.14 inches = 1,570 inches, or 130.8 feet of wire.
- Resistance ($R$): $(130.8 / 1000) \times 410 \, \Omega = 53.6 \, \Omega$.
- Current ($I$): Using Ohm's Law on a 12V supply: $12\text{V} / 53.6 \, \Omega = 0.224\text{A}$ (224 mA).
- Ampere-Turns ($NI$): $500 \text{ turns} \times 0.224\text{A} = 112 \text{ AT}$.
This 112 AT coil will generate a modest holding force suitable for a lightweight cabinet latch, but insufficient for a heavy-duty deadbolt. To increase force without changing the power supply, you must use thinner wire (more turns, higher resistance, same NI but better spatial density) or add a high-permeability iron core to multiply the flux density.
Where You Meet This in Practice
You will encounter magnetic field coils in three primary categories on the workbench and in the electrical panel:
- Relays and Contactors: The coil is the control input. A low-power 5V or 12V DC coil generates just enough magnetic pull (usually 50 to 200 AT) to close heavy-duty mechanical contacts that switch 120V/240V AC loads.
- Solenoid Valves and Linear Actuators: Used in fluid control (irrigation, pneumatics) and physical security (maglocks). These coils are optimized for high mechanical force, often utilizing low-carbon steel frames and specialized air gaps to maximize linear pull.
- Switch-Mode Power Supplies (SMPS): Here, the coil is an inductor. It stores energy in its magnetic field during a MOSFET's ON cycle and releases it during the OFF cycle. These coils prioritize high-frequency efficiency and low core losses over mechanical movement.
Common Confusions: Inductors vs. Solenoids vs. AC/DC Coils
The most expensive mistake a DIYer can make is confusing an inductor with a solenoid, or an AC coil with a DC coil. As detailed in Electronics Tutorials, inductors use high-permeability cores (ferrite, powdered iron) to maximize inductance and explicitly prevent physical movement. Solenoids use steel frames and air gaps to maximize linear mechanical force. Putting a ferrite-core inductor in a DIY lock mechanism will result in zero physical pull and a shattered core.
Decision Tree: Sizing and Selecting Your Magnetic Field Coil
Use this decision matrix to terminate your design process with a specific, off-the-shelf component rather than guessing.
| If Your Application Requires... | And Your Constraints Are... | Then You Need This Coil Type... | Concrete Part Pick (Default) |
|---|---|---|---|
| Switching a 120V AC mains load via a 5V microcontroller GPIO | Isolation required, PCB mount, <10A load | 5V DC PCB Relay Coil (SPDT) | Omron G5LE-14-DC5 (Coil draws ~80mA, contacts rated 10A) |
| A 12V linear push/pull mechanical actuator for a DIY door lock | Intermittent use (<25% duty cycle), high pull force needed | 12V DC Intermittent Duty Solenoid Coil | Guardian Electric 4HD-12VDC (Generates ~1.5 lbs pull at 1/4" stroke) |
| Smoothing a PWM signal or building a 5V buck converter | High switching frequency (>100kHz), high current saturation | Shielded Ferrite Power Inductor Coil | Coilcraft MSS1210-103KEB (10µH, 6.8A saturation current) |
| Holding a heavy steel door shut continuously (24/7) | Must not overheat, 12V or 24V DC supply available | Continuous Duty Electromagnet (Maglock) | Seco-Larm E-941SA-600Q (600-lb hold, continuous 12VDC coil) |
Critical Installation Rules: Flyback and Duty Cycle
When wiring any magnetic field coil that performs mechanical work (relays, solenoids, contactors), you must manage the inductive kickback. Inductance acts like traffic inertia: a heavy line of cars (electrons) takes time to get moving when the light turns green (voltage applied), and takes time to stop when the light turns red (voltage removed). When your transistor or switch opens, the collapsing magnetic field induces a massive reverse voltage spike ($V = -L(di/dt)$) that will instantly destroy your driving MOSFET or Arduino GPIO pin.
The Fix: Always wire a flyback diode (like a 1N4007 for high-current solenoids or a 1N4148 for small signal relays) in reverse bias across the coil terminals. The cathode (stripe) goes to the positive supply side.
Duty Cycle Warning: Off-the-shelf solenoid coils are frequently rated for intermittent duty (typically 25% or less). This means the coil can only be energized for a few seconds at a time. The wire is wound tightly with minimal thermal mass; if you leave a 25% duty cycle coil energized continuously to hold a lock, the enamel insulation will melt, the turns will short together, resistance will drop, current will spike, and the coil will catch fire. If your application requires the coil to be ON for more than a few seconds, you must buy a continuous-duty rated coil or use a "pull-and-hold" circuit that drops the holding voltage by 50% after the initial pull-in.
FAQ: Magnetic Field Coil Troubleshooting
Q: Why did my solenoid coil burn out and measure 0 ohms on my multimeter?
A: A reading of 0 ohms (or near zero) indicates the internal wire insulation melted and the turns shorted together. This is almost always caused by exceeding the duty cycle rating (leaving an intermittent coil on too long) or failing to use a flyback diode, which caused arcing and thermal degradation at the driver transistor, keeping the circuit partially closed.
Q: My 12V DC relay coil is buzzing loudly and getting hot. What is wrong?
A: You are likely driving a DC coil with an unfiltered, noisy power supply, or you accidentally bought an AC relay coil and are feeding it DC. If it is definitely a DC coil, check your supply voltage with an oscilloscope; excessive AC ripple on the DC rail will cause the armature to chatter against the core, generating heat and acoustic noise. Add a 100µF electrolytic capacitor across the coil's power rails to smooth the voltage.
Q: Can I increase the pull force of my existing coil by simply raising the voltage?
A: Temporarily, yes, but it is dangerous. Doubling the voltage doubles the current and quadruples the heat dissipation ($P = I^2R$). You will burn out the coil in minutes. To safely increase force, you must add more turns of wire (increasing $N$) or reduce the physical air gap between the armature and the steel core, as magnetic flux density drops off exponentially with distance.






