An electromagnet is a type of magnet in which the magnetic field is produced by an electric current flowing through a coil of wire, typically wrapped around a ferromagnetic core. When you wire one into a circuit, it doesn't just act as a simple resistive load; it introduces significant inductance, which fundamentally changes how the circuit behaves during switch-on and switch-off transients. Beginners commonly confuse an electro magnet's DC resistance (which dictates steady-state current draw) with its inductance (which dictates how it resists changes in current), a mistake that routinely leads to blown transistors, arced switch contacts, and fried microcontrollers.
The Core Physics and Circuit Impact
At the bench, we usually care about two things when dealing with an electro magnet: how much current it pulls to generate the required magnetic force, and what it does to our switching components when we turn it off. The magnetic field strength is governed by Ampere's Law, scaling directly with the number of wire turns and the current flowing through them. You can read more about the underlying physics of solenoids and magnetic fields on Georgia State University's HyperPhysics pages.
What an electro magnet changes in a real circuit is the voltage profile during switching. Because the coil stores energy in its magnetic field ($E = \frac{1}{2} L I^2$), it acts as an inductor. When you close a switch, the inductance resists the sudden rise in current, causing a slight delay before the magnet reaches full holding force. But the real danger happens when you open the switch. The collapsing magnetic field induces a massive reverse voltage spike to keep the current flowing. If you don't provide a safe path for this stored energy, it will arc across mechanical switch contacts or punch through the silicon junction of your switching transistor.
Worked Numeric Example: The Flyback Spike
Let's look at a real-world scenario to see why treating an electro magnet like a simple resistor will destroy your circuit. Suppose you are using a standard 12V DC door strike solenoid controlled by an Arduino via a TIP120 Darlington transistor.
- Coil DC Resistance ($R$): 24 $\Omega$
- Steady-State Current ($I$): $12V / 24\Omega = 0.5A$
- Coil Inductance ($L$): 150 mH (0.150 Henrys)
- Transistor Turn-Off Time ($dt$): $2 \mu s$ (0.000002 seconds)
When the Arduino pulls the TIP120 base low, the transistor stops conducting in about 2 microseconds. The current drops from 0.5A to 0A almost instantly. We calculate the induced voltage spike using the inductor formula $V = -L(di/dt)$:
$V_{spike} = 0.150 H \times (0.5A / 0.000002s) = 37,500V$
In reality, parasitic capacitance in the coil and the transistor limits the spike to a few hundred volts before it arcs or breaks down the silicon. However, the TIP120 has a maximum Collector-Emitter breakdown voltage ($V_{CEO}$) of just 60V. The induced spike will instantly avalanche the transistor, permanently shorting it and likely back-feeding high voltage into your Arduino's ground plane. This is why understanding inductor calculus and flyback theory is non-negotiable when driving magnetic coils.
Where You Meet This in Practice
You will encounter electro magnets in almost every electromechanical system. Recognizing them helps you apply the right protection and sizing rules:
| Component Type | Common Models / Examples | Typical Specs & Notes |
|---|---|---|
| Relays & Contactors | Omron G2R-1-DC12, Schneider TeSys D | Use the coil to switch isolated high-power loads. Always use flyback diodes on DC coils. |
| Magnetic Locks (Maglocks) | Seco-Larm 12V/24V 600lb Maglocks | High inductance, continuous duty. Draws 300-500mA. Requires robust power supplies to handle inrush. |
| Solenoids & Actuators | Automotive fuel injectors, door strikes | Often intermittent duty. High inrush current to pull the plunger, lower holding current once closed. |
| DC Motors | Mabuchi RS-385, Brushless stator coils | Essentially rotating electro magnets. Generate back-EMF that acts similarly to flyback spikes. |
Protecting Your Circuit: Flyback Diodes and Snubbers
To safely dissipate the stored magnetic energy, you must provide a freewheeling path. For DC electro magnets, this is almost always a flyback diode (like a 1N4007 or a faster Schottky like the 1N5819). You wire the diode in reverse bias directly across the coil terminals: the cathode (striped end) connects to the positive supply, and the anode connects to the switching transistor. When the switch opens, the collapsing field forward-biases the diode, allowing the current to circulate through the coil and diode until the energy dissipates as heat.
For AC electro magnets (like 120V AC contactor coils), a diode won't work because the current alternates. Instead, you use an RC snubber network (a resistor and capacitor in series) or a Metal Oxide Varistor (MOV) across the coil to clamp the transient voltage.
Frequently Asked Questions
How do you calculate the pulling force of an electro magnet?
The pulling force ($F$) of a flat-faced electro magnet against a flat iron surface can be approximated using the Maxwell pulling force formula: $F = \frac{B^2 A}{2 \mu_0}$, where $B$ is the magnetic flux density in Teslas, $A$ is the cross-sectional area of the core in square meters, and $\mu_0$ is the permeability of free space ($4\pi \times 10^{-7}$ T·m/A). In practical DIY terms, force scales with the square of the magnetic field. If you double the current or the number of turns (assuming the core doesn't saturate), you quadruple the pulling force. However, once the iron core reaches magnetic saturation (usually around 1.5 to 2.0 Teslas for mild steel), adding more current only generates heat, not more force.
Can I run a 12V DC electro magnet on a 24V power supply?
You can, but not by wiring it directly, or you will quadruple the power dissipation ($P = V^2/R$) and burn out the coil winding in seconds. To run a 12V coil on a 24V supply, you have two practical options. First, use a PWM (Pulse Width Modulation) signal from a microcontroller or a 555 timer circuit at a 50% duty cycle; the inductance of the coil will smooth the current, effectively delivering 12V average. Second, place a power resistor in series to drop the extra 12V. If the coil draws 0.5A, you need a resistor of $R = 12V / 0.5A = 24 \Omega$, rated for at least $P = I^2R = 6W$ (use a 10W wirewound resistor for safety).
Why does my electro magnet get hot when left on?
Heat is generated by $I^2R$ losses in the copper wire. Many electro magnets, particularly heavy-duty solenoids and door strikes, are rated for intermittent duty (e.g., 10% or 25% duty cycle). They are designed to pull a high initial current to snap the plunger shut, but they cannot dissipate the resulting heat if left energized continuously. If your magnet is getting too hot to touch (above 60°C) during continuous operation, check the datasheet for its duty cycle rating. For continuous holding applications, you must either use a continuous-duty rated coil or implement a dual-voltage circuit that applies full voltage to pull the magnet in, then drops to a lower holding voltage (via a series resistor or PWM) to maintain the field without overheating.
What is the difference between an electro magnet and a permanent magnet?
The core difference is control and domain alignment. A permanent magnet (like Neodymium or Ferrite) has its magnetic domains permanently aligned during manufacturing, providing a constant magnetic field without external power. An electro magnet relies on the alignment of domains in a 'soft' ferromagnetic core (like mild steel or silicon electrical steel) driven by electrical current. When the current stops, the soft core is designed to lose almost all of its magnetism (low retentivity), allowing the mechanical load to release. If you use a 'hard' steel core for an electro magnet, it will retain residual magnetism when turned off, causing the contactor or relay to stick or release sluggishly.






