Metals become magnetic because of unpaired electrons spinning inside their atoms. Every electron generates a tiny magnetic field as it spins, but in most materials these fields cancel each other out because electrons pair up with opposite spins. In the few metals where electrons remain unpaired and their neighbors’ spins align in the same direction, the result is the strong magnetism you can feel with a refrigerator magnet.
Unpaired Electrons: The Starting Point
Every electron acts like a microscopic magnet. It produces a magnetic field through two mechanisms: its spin (an intrinsic property of the electron itself) and its orbital motion around the nucleus. When two electrons share the same orbital, they must spin in opposite directions, and their magnetic fields cancel. An atom only has a net magnetic moment when some of its electrons are unpaired, with no partner to cancel them out.
Iron, for example, has four unpaired electrons in its outer shell. Cobalt has three, and nickel has two. More unpaired electrons generally means a stronger magnetic moment per atom. But having unpaired electrons alone isn’t enough to make a metal magnetic in the everyday sense. Aluminum has unpaired electrons too, yet you can’t stick a magnet to an aluminum can. The difference comes down to what happens between neighboring atoms.
The Exchange Interaction: Why Neighbors Align
The key to strong magnetism is a quantum mechanical effect called the exchange interaction. In certain metals, neighboring atoms lower their total energy by aligning their electron spins in the same direction. This isn’t something you can explain with classical physics. It comes from the Pauli exclusion principle, which prevents two electrons from occupying the exact same quantum state. When electrons on neighboring atoms align their spins, they’re forced into different spatial arrangements, which actually reduces the electrical repulsion between them. The system ends up in a lower energy state, so aligned spins become the preferred configuration.
This is what separates iron, cobalt, and nickel from everything else on the periodic table. In these metals, the spacing between atoms and the shape of their electron orbitals hit a sweet spot where the exchange interaction strongly favors parallel alignment. In most other metals, the effect is either too weak or actually favors opposite alignment (which is called antiferromagnetism, and produces no useful magnetic field).
Magnetic Domains: From Atoms to Magnets
Even in iron, the exchange interaction only works between nearby atoms. Within a small region of the metal, billions of atomic magnets point the same way, forming what’s called a magnetic domain. A typical piece of iron contains many domains, each pointing in a different direction. That’s why an ordinary iron nail isn’t a magnet by default. The domains cancel each other out at the macro scale.
When you bring a strong magnet near that nail, domains aligned with the external field grow at the expense of misaligned ones. Domain walls shift, more and more of the metal aligns, and the nail starts acting like a magnet itself. Remove the external magnet, and some of that alignment may persist, which is how permanent magnets are made. In a strong permanent magnet like a neodymium magnet, nearly all the domains have been locked into alignment.
Why Most Metals Aren’t Magnetic
Metals that don’t respond to a magnet fall into two categories. Paramagnetic metals like aluminum have unpaired electrons, so each atom has a small magnetic moment. But the exchange interaction between neighbors is too weak to keep spins aligned on their own. Place aluminum in a strong magnetic field and it responds very slightly (its magnetic susceptibility is only about 0.000022), but the effect vanishes the moment you remove the field.
Diamagnetic metals like copper and gold have no unpaired electrons at all. When placed in a magnetic field, the orbiting electrons adjust slightly to oppose it, creating an even weaker, repulsive response. Copper’s susceptibility is roughly negative 0.00001. In everyday terms, both paramagnetic and diamagnetic metals are “not magnetic.” Their response is thousands of times weaker than iron’s.
Crystal Structure Matters Too
The arrangement of atoms in a metal’s crystal lattice plays a surprisingly important role. Iron at room temperature arranges itself in a body-centered cubic structure, where each atom sits at the center of a cube of neighbors. This geometry supports strong exchange interactions and ferromagnetism. But heat iron above 912°C and the atoms rearrange into a face-centered cubic structure, which is not ferromagnetic.
This same principle explains a practical puzzle: why some stainless steel sticks to a magnet and some doesn’t. Ferritic and martensitic stainless steels have crystal structures that support ferromagnetism. Austenitic stainless steel, the type used in most kitchen sinks and cookware, has a face-centered cubic structure that makes it paramagnetic. Its magnetic permeability is only around 1.01 to 1.02, essentially non-magnetic. If austenitic steel is cold-worked or deformed, though, part of its structure can transform into a martensitic phase, and it starts responding to magnets. That’s why some stainless steel pots work on induction cooktops and others don’t.
Temperature and the Curie Point
Heat is the enemy of magnetism. Thermal energy shakes atoms and disrupts the alignment of electron spins within domains. Every ferromagnetic material has a Curie temperature: the point where thermal vibrations overwhelm the exchange interaction and the material loses its ferromagnetism entirely, becoming merely paramagnetic.
For iron, this happens at 770°C. Cobalt holds on the longest at 1,115°C. Nickel loses its magnetism at a relatively low 358°C, and impurities like carbon push that number even lower. Below the Curie temperature, cooling the metal allows domains to re-form and magnetism returns. This is a reversible transition, not permanent damage to the material.
Rare Earth Metals and Extreme Magnetism
The strongest permanent magnets in the world rely on rare earth elements like neodymium and gadolinium, and their power comes from a deeper set of electrons. While iron, cobalt, and nickel get their magnetism from electrons in the 3d orbital shell, rare earth elements use 4f electrons, which can provide larger magnetic moments and stronger coupling between spin and orbital motion.
There’s a catch, though. Those 4f electrons sit deep inside the atom, so they can’t directly interact with 4f electrons on neighboring atoms. The exchange between neighboring 4f spins is inherently weak. Rare earth magnets solve this problem through a bridge mechanism: electrons in the more spatially spread-out 5d orbitals act as intermediaries, relaying the magnetic coupling between localized 4f spins on adjacent atoms. In gadolinium, for instance, a configuration of seven 4f electrons plus one 5d electron creates a large intrinsic magnetic moment, and the 5d electron bridges the gap to enable strong ferromagnetism. Neodymium magnets use an alloy of neodymium, iron, and boron, combining the large magnetic moment of rare earth 4f electrons with the robust exchange interactions of iron’s 3d electrons.
Induced and Temporary Magnetism
You don’t always need a naturally ferromagnetic metal to see magnetic effects. Running an electric current through a coil of wire creates a magnetic field, and placing an iron bar inside that coil magnetizes it strongly. This is the principle behind electromagnets. The current aligns domains in the iron core, and the combined effect produces a magnetic field far stronger than the coil alone.
Conversely, moving a magnet near a conducting metal induces circulating electric currents (called eddy currents) in the metal, which generate their own opposing magnetic field. This is how induction cooktops heat pans and how some braking systems work. The metal isn’t permanently magnetized, and the effect disappears as soon as the motion or changing field stops. It’s a temporary, induced form of magnetism that works even in non-ferromagnetic conductors like aluminum, though ferromagnetic metals respond far more strongly.

