An electro magnet is a device that generates a controllable magnetic field when electric current flows through a wire coil, typically concentrated by a ferromagnetic core. In a real circuit, it changes electrical power into linear or rotary mechanical work, acting as the bridge between low-voltage logic and high-power mechanical actuation. While they share physical construction with inductors, people commonly confuse the two; inductors are designed to store energy and oppose changes in current, whereas electro magnets are specifically designed to project magnetic flux across an air gap to do physical work.
Core Physics and Coil Sizing Math
The mechanical pulling force of an electro magnet is fundamentally dictated by its Magnetomotive Force (MMF), measured in Ampere-turns (At). MMF is simply the coil current multiplied by the number of wire turns. However, you cannot just increase current infinitely; the coil's resistance limits the current, and the resulting I²R heat dissipation dictates whether the coil survives or melts into a puddle of slag.
Let's walk through a worked numeric example to size a custom 12V DC holding magnet (like a small cabinet maglock) targeting a safe 10W continuous power dissipation.
- Target Power (P): 10W at 12V nominal.
- Required Resistance (R): Using P = V² / R, we get R = 144 / 10 = 14.4 ohms.
- Operating Current (I): I = V / R = 12 / 14.4 = 0.833A.
- Wire Selection: We choose 28 AWG copper magnet wire, which has a resistance of 64.9 ohms per 1,000 feet.
- Wire Length Needed: (14.4 ohms / 64.9 ohms) * 1000 = 221.8 feet of wire.
- Turns Calculation: If our bobbin has an average turn circumference of 3 inches (0.25 feet), the total turns = 221.8 / 0.25 = 887 turns.
- Final MMF: 0.833A * 887 turns = 739 Ampere-turns.
This 739 At baseline allows you to calculate the exact pull force in Newtons based on the core's cross-sectional area and the air gap distance, using the Maxwell pull equation.
For deeper mathematical modeling of the flux density and air gap reluctance, the Georgia State University HyperPhysics database provides excellent interactive calculators for solenoid and magnetic circuit design.
Application Spec Sheet: Sizing for Real Loads
When integrating electro magnets into a control panel or PCB, you must account for both the steady-state holding current and the inrush current. AC magnets, in particular, exhibit a massive inrush spike because the air gap is wide open (low inductance) when the armature is unseated. Once the armature pulls in, the inductance spikes and the current drops.
| Device Type | Nominal Voltage | Typical Coil Resistance | Inrush vs Holding Current | Standard Duty Cycle |
|---|---|---|---|---|
| Ice Cube Relay (DC) | 12V DC | 160 Ω | 75mA (No inrush spike) | 100% Continuous |
| Solenoid Valve (AC) | 24V AC | 15 Ω (open) / 45 Ω (closed) | 1.6A inrush / 0.53A hold | 100% Continuous |
| Magnetic Door Lock | 12V DC | 14.4 Ω | 833mA (No inrush spike) | 100% Continuous |
| AC Contactor Coil | 120V AC | 12 Ω (open) / 40 Ω (closed) | 10A inrush / 3A hold | 100% Continuous |
| Starter Motor Solenoid | 12V DC | 0.8 Ω | 15A pull / 8A hold | 10% Intermittent |
Note: Always size your driving transistor or mechanical switch to handle the inrush current, not just the holding current. A 24VAC solenoid drawing 0.53A to hold will instantly blow a 1A fuse if it experiences a 1.6A inrush lasting more than a few cycles.
Where You Meet This In Practice
You will rarely build a raw electro magnet from scratch unless you are prototyping a custom actuator. Instead, you will encounter them packaged as specific industrial components. Understanding their quirks is what separates a working prototype from a field-deployable product.
Relays and Contactors
These use electro magnets to pull a spring-loaded armature that closes high-current electrical contacts. The critical design feature here is galvanic isolation; the low-voltage coil circuit is physically separated from the high-voltage load circuit. When driving DC relay coils from microcontrollers like an ESP32 or Arduino, you must place a flyback diode (like a 1N4148 for signal relays or 1N4007 for power contactors) in reverse parallel across the coil. When the transistor switches off, the collapsing magnetic field generates a high-voltage spike that will instantly destroy your GPIO pin without this diode.
AC Hum and Shading Rings
If you have ever heard a loud, angry buzzing from an industrial contactor or a solenoid valve, you are listening to an AC electro magnet vibrating at twice the line frequency (120Hz in North America). Because AC current crosses zero 120 times a second, the magnetic field collapses to zero, and the spring tries to push the armature open. To prevent this, manufacturers embed a copper shading ring (or shading coil) into the face of the iron core. This ring acts as a shorted secondary transformer winding, creating a phase-shifted magnetic field that holds the armature closed during the zero-crossings. If a contactor is buzzing loudly, the shading ring is likely cracked or the core face is covered in dust.
Fail-Safe vs. Fail-Secure Maglocks
In access control, electro magnets are used as magnetic door locks. A standard maglock requires constant power to remain locked (fail-safe), meaning a power outage unlocks the door for fire egress compliance. Conversely, electric strikes often use a solenoid to block a mechanical latch (fail-secure), remaining locked during a power outage. Always verify your local fire code before wiring access control magnets.
Thermal Limits and Duty Cycle Derating
The most common way hobbyists and junior engineers destroy electro magnets is by ignoring the duty cycle rating. A coil's thermal mass determines how long it can absorb I²R heat before the enamel insulation on the magnet wire breaks down, causing a short circuit between turns.
Duty cycle is expressed as a percentage of 'On' time over a specific period (usually 10 minutes or 1 hour). A high-force, short-stroke solenoid might be rated for a 25% duty cycle. This means if it is energized for 15 seconds, it must remain off for 45 seconds to cool down. If you wire a 25% duty cycle solenoid to a continuous 12V source, the coil temperature will exceed the 130°C limit of Class B insulation within minutes, resulting in an open circuit or a small fire.
If you need a DC solenoid to pull in hard but stay energized continuously without burning up, use an economizer circuit. Wire a power resistor in series with the coil, and bypass that resistor with a normally-closed switch or a timing relay that opens after 500ms. The solenoid gets full voltage for the initial high-force pull-in stroke, then drops to a lower holding voltage (and drastically lower heat dissipation) once the armature is seated.
For comprehensive guidelines on thermal management and insulation classes in electromagnetic components, refer to the Electromagnetism tutorials on Electronics-Tutorials.ws, which detail the relationship between core saturation and thermal limits.
Frequently Asked Questions
Can I run a 12V DC electro magnet on a 9V battery?
Yes, but the pull force drops with the square of the voltage. Running a 12V magnet at 9V yields only 56% of its rated mechanical force. It may fail to pull the armature across the air gap, leaving the coil stuck in the high-inrush, low-inductance state, which will rapidly overheat the wire.
Why do DC solenoids need a diode but AC solenoids do not?
AC solenoids naturally extinguish their inductive kickback because the AC waveform naturally crosses zero and reverses polarity, often paired with an internal RC snubber or varistor. DC solenoids maintain a unidirectional field; when the circuit breaks, the field has nowhere to go but through the switching transistor, requiring an external flyback diode to recirculate the current safely.
Does the core material matter for DIY electro magnets?
Absolutely. A soft iron core (like a mild steel bolt) will magnetize and demagnetize rapidly. If you use a hard steel or permanent magnet material, it will retain residual magnetism after the power is cut, causing the armature to stick and fail to release when the circuit is de-energized.






