An electromagnet is not a permanent magnet; it is a temporary magnet that generates a magnetic field only while electrical current flows through its wire coil, losing its magnetism the moment the power is cut. People commonly confuse the two because both produce identical magnetic flux lines, attract ferrous metals, and utilize similar core geometries, but their underlying atomic alignment mechanisms and circuit behaviors are entirely different.

The Short Answer: Debunking the Misconception

The search query "an electromagnet is a permanent magnet" usually stems from a fundamental misunderstanding of magnetic domains. In a permanent magnet (like a neodymium N52 or a ceramic ferrite block), the magnetic domains within the hard ferromagnetic material are permanently locked into alignment during the manufacturing process. It requires no external energy to maintain its field.

An electromagnet, by contrast, relies on a soft magnetic core (usually soft iron or silicon steel) wrapped in conductive wire. When current flows, the moving electrons force the randomized magnetic domains in the core to align. When the current stops, thermal agitation immediately scrambles the domains back to a neutral state, and the magnetic field collapses.

What this changes in a real circuit: Because an electromagnet is essentially an inductor (a coil of wire), it does not behave like a simple resistive load. When you de-energize the coil, the collapsing magnetic field induces a massive reverse voltage spike (back-EMF). If you are driving an electromagnet with an ESP32 or Arduino via a transistor, you must install a flyback diode (like a 1N4007) in parallel with the coil, or the voltage spike will instantly destroy your microcontroller's GPIO pin.

The Physics and The Math: Sizing an Electromagnet Coil

To understand how an electromagnet generates force, we look at Magnetomotive Force (MMF), measured in Ampere-turns (At). Think of electrons flowing through the coiled wire like cars driving on a multi-level circular racetrack; the magnetic field is the wind generated in the center of the track. The faster the cars move (current) and the more track levels stacked vertically (turns of wire), the stronger the central wind (magnetic field).

Let’s look at a worked numeric example using a standard industrial 24V DC contactor coil (similar to a Schneider Electric TeSys D-line coil).

Worked Example: Contactor Coil MMF Calculation
Supply Voltage: 24V DC
Coil Resistance: 30 Ω (measured at 20°C)
Current Draw (I): 24V / 30Ω = 0.8 Amps
Number of Turns (N): 1,200 turns of enameled copper wire
Magnetomotive Force (MMF): N × I = 1,200 × 0.8 = 960 Ampere-turns

Those 960 Ampere-turns are what drive the magnetic flux through the steel armature to pull the contacts closed against the spring tension. If the voltage drops to 18V due to a long wire run (a 25% voltage drop), your current drops to 0.6A, and your MMF falls to 720 At. If the mechanical spring requires 800 At to pull in, the contactor will chatter or fail to close entirely. This is why electromagnets are highly sensitive to voltage drop, unlike permanent magnets which are entirely immune to it.

For a deeper dive into the physics of solenoids and magnetic field strength calculations, the Georgia State University HyperPhysics database provides excellent interactive calculators for coil geometries.

Where You Meet This in Practice

You interact with electromagnets constantly in both residential wiring and electronics projects. Recognizing them helps you troubleshoot and design safer circuits.

  • Relays and Contactors: Using a low-power electromagnet to physically pull heavy-duty contacts closed. This isolates your sensitive 3.3V logic from 120V/240V AC mains loads.
  • Solenoids: Electromagnets designed for linear motion. Found in sprinkler valves, automotive starter motors, and electronic door strikes. When energized, a steel plunger is pulled into the center of the coil.
  • Magnetic Circuit Breakers: Inside your home's electrical panel, thermal-magnetic breakers use a small electromagnet. During a short circuit, the massive current spike creates a strong enough magnetic field to instantly snap the mechanical latch open, tripping the breaker in milliseconds.
  • Inductive Sensors: Proximity switches used in 3D printers and CNC machines use an electromagnet to generate an oscillating field. When metal enters the field, it draws energy (eddy currents), which the sensor detects to trigger a limit switch.

When installing any of these in a real panel or on a breadboard, remember that they are inductive loads. AC electromagnets (like 120V AC contactor coils) also introduce a severe lagging power factor and require arc suppression (like an RC snubber) across the contacts switching them, while DC coils require flyback diodes. For practical wiring guidance on relay protection, Electronics Club's relay guide offers solid baseline schematics for hobbyist implementations.

Electromagnet vs. Permanent Magnet: Specification Comparison

When designing a latching mechanism, a motor, or a sensor, choosing between the two technologies dictates your entire power architecture. Here is how they stack up across critical engineering criteria.

Criteria Electromagnet (e.g., Relay Coil) Permanent Magnet (e.g., N52 Neodymium)
Field Control Infinitely variable (adjust current/voltage) Fixed (determined at manufacture)
Power Requirement Continuous power needed to hold field Zero power required
Core Material Soft iron / silicon steel (low remanence) Hard ferrite / NdFeB / SmCo (high remanence)
Temperature Limits Limited by wire insulation (typically 105°C - 155°C) Limited by Curie temperature (N52 fails around 80°C)
Circuit Impact Inductive load (causes back-EMF, phase shift) No electrical impact (purely mechanical/magnetic)
Typical Use Case Motor starters, solenoids, MRI machines, speakers Brushless DC motors, magnetic latches, compasses

Frequently Asked Questions

Can you turn a permanent magnet into an electromagnet?

No, you cannot turn a permanent magnet into an electromagnet, but you can wrap a wire coil around a permanent magnet to create a hybrid device. This is exactly how permanent magnet synchronous motors (PMSMs) and many loudspeakers work. The permanent magnet provides a static baseline field, while the electromagnet (the voice coil or stator winding) provides a variable field that interacts with it to create motion or sound. However, the permanent magnet itself does not become an electromagnet; it just acts as a bias field.

Why do electromagnets use soft iron instead of hard steel?

Electromagnets use soft iron because it has low magnetic remanence and low coercivity. This means it easily aligns its magnetic domains when current flows, but immediately loses its magnetism when the current stops. If you used hard steel (the material used for permanent magnets), the core would become magnetized and stay magnetized after you turned the power off. In a relay or contactor, this residual magnetism would prevent the spring from pulling the contacts open, causing the device to remain stuck in the "on" position—a catastrophic failure mode in electrical control circuits.

Does an electromagnet work on alternating current (AC)?

Yes, electromagnets work on AC, but the design must account for the fact that the current (and therefore the magnetic field) crosses zero 120 times a second on a 60Hz grid. If an AC contactor relied solely on the magnetic pull, the armature would violently chatter and buzz at 120Hz as the field collapses and rebuilds. To prevent this, AC electromagnets feature a "shading coil" (a heavy copper ring embedded in the pole face). The shading coil acts as a shorted secondary transformer winding, generating a delayed magnetic field that holds the armature closed during the zero-crossings of the main AC waveform.

What happens if an electromagnet gets too hot?

Heat destroys electromagnets in two ways. First, copper wire has a positive temperature coefficient; as the coil heats up, its electrical resistance increases. If driven by a constant voltage source, the current drops, weakening the magnetic field (which can cause AC contactors to drop out unexpectedly). Second, if the temperature exceeds the thermal rating of the wire's enamel insulation (commonly 130°C for Class B or 155°C for Class F), the insulation melts. This causes adjacent turns of wire to short together, drastically reducing the number of turns (N), spiking the current, and ultimately burning the coil open.