What Makes a Material Magnetic: From Electrons to Domains

A material is magnetic when its atoms contain unpaired electrons whose tiny magnetic fields align in the same direction across large groups of atoms. Every electron generates a small magnetic field as it spins, but in most materials those fields cancel each other out. Only when electrons remain unpaired and their neighbors cooperate to point the same way does a material produce the magnetic force you can feel with a refrigerator magnet.

It Starts With Electrons

Every electron behaves like a microscopic magnet. This comes from a fundamental property called spin: each electron carries an intrinsic angular momentum that generates a magnetic dipole moment, essentially a tiny north and south pole. Electrons also orbit the nucleus, which creates a second, smaller magnetic contribution. Together, spin and orbital motion give each electron its own magnetic field.

Here’s the catch. Electrons in atoms tend to pair up, and when two electrons share the same orbital, their spins point in opposite directions. Those opposite spins cancel each other’s magnetic fields almost perfectly, leaving no net magnetism. This is why most matter, from water to copper to plastic, isn’t noticeably magnetic. The electrons are all paired, and the atom as a whole has no magnetic moment to speak of.

The key ingredient is unpaired electrons. Elements like iron, cobalt, and nickel have electron configurations that leave several electrons without a partner. Iron, for example, has four unpaired electrons in its outer shell. Each of those electrons contributes a magnetic moment that isn’t canceled out, giving the atom a permanent tiny magnetic field.

Why Unpaired Electrons Aren’t Enough

Plenty of elements have unpaired electrons. Oxygen has two. Aluminum has one. Yet you can’t stick a magnet to an aluminum can or pull oxygen out of the air with a magnetic field (at least not easily). Having unpaired electrons makes an atom weakly magnetic on its own, a property called paramagnetism, but it doesn’t make the bulk material act like a magnet. In paramagnetic materials, each atom’s magnetic moment points in a random direction, and the random orientations cancel out across billions of atoms. You’d need an extraordinarily strong external field to nudge them into even partial alignment, and the moment you remove the field, thermal energy scrambles them again.

The difference between a paramagnetic material like aluminum and a truly magnetic material like iron comes down to what happens between neighboring atoms.

The Exchange Interaction

In iron, cobalt, and nickel, something unusual happens at the quantum level. The unpaired electrons on neighboring atoms interact through a phenomenon called the exchange interaction. This is a quantum mechanical effect rooted in how electrons obey the rules of exclusion: no two electrons can occupy the same quantum state simultaneously. The result is that neighboring atoms lower their total energy when their unpaired electron spins point in the same direction rather than randomly.

Think of it as a preference baked into the physics. In most materials, neighboring atoms don’t care which way their neighbors’ electrons spin. In iron, the atoms “prefer” parallel alignment because it’s the lower-energy arrangement. This preference is strong enough to overcome thermal jostling at room temperature, which is why iron is magnetic without any help from an external field. This property is called ferromagnetism, and it’s limited to a small club of elements and alloys where the atomic spacing and electron structure hit the right combination.

Magnetic Domains

Even in a ferromagnetic material, the exchange interaction only forces alignment among atoms in a local neighborhood, not across the entire object. The result is that ferromagnetic materials organize themselves into regions called domains. Each domain contains billions of atoms with their magnetic moments all pointing the same direction, creating a small but powerful local magnetic field.

A typical piece of unmagnetized iron contains many domains, and those domains point in different directions. Their fields cancel across the whole piece, so the iron doesn’t behave like a magnet even though every domain is internally magnetized. This is why a brand-new iron nail won’t pick up paperclips on its own.

When you bring an external magnetic field close, the domains respond. Domains already pointing in the field’s direction grow larger at the expense of their neighbors, and some domains rotate to align with the field. When most or all domains line up, the entire object becomes magnetized and produces its own external field. This process is called induction, and it’s how stroking a nail with a magnet turns the nail into a magnet.

Whether that magnetization sticks depends on the material. In “soft” magnetic materials like pure iron, the domains easily rearrange and just as easily scramble once the external field is removed. In “hard” magnetic materials like certain steel alloys or alnico (an aluminum-nickel-cobalt alloy), the domain walls resist moving, and the alignment persists. That’s a permanent magnet. Manufacturing permanent magnets involves shaping the material and then exposing it to a very strong field so the domains lock into alignment.

How Magnetic Strength Varies

The degree to which a material amplifies a magnetic field is measured by its relative permeability. A vacuum has a permeability of 1. Most everyday solids and liquids sit between 1.00001 and 1.003, meaning they barely interact with magnetic fields at all. Ferromagnetic materials are in a completely different league.

Pure iron (99.8%) starts with an initial permeability around 150 and can reach 5,000 when fully magnetized. Extremely pure iron, annealed in hydrogen, can reach a maximum permeability of 200,000. Specialty alloys push even further: superpermalloy, a nickel-iron alloy processed with careful cooling, can hit a permeability of 1,000,000. By contrast, even ferromagnetic cobalt only reaches about 250, and hardened steel with high carbon content tops out around 100. The differences come down to crystal structure, purity, and how easily domain walls can move through the material.

The Three Categories of Magnetic Behavior

  • Diamagnetic materials have all their electrons paired. They produce no net atomic magnetic moment and are actually repelled very slightly by magnetic fields. Copper, water, and bismuth fall into this category. The effect is so weak you’d never notice it without sensitive instruments (bismuth being a rare exception where you can demonstrate it with strong magnets).
  • Paramagnetic materials have unpaired electrons, giving each atom a small magnetic moment, but those moments point randomly and don’t coordinate with neighbors. Aluminum, platinum, and oxygen are paramagnetic. They’re attracted to magnetic fields, but so weakly that the effect is invisible in daily life.
  • Ferromagnetic materials have unpaired electrons plus the exchange interaction that forces neighboring atoms into alignment. Iron, cobalt, nickel, and certain rare earth elements like neodymium (in alloy form) are ferromagnetic. These are the only materials that can become permanent magnets or be strongly attracted to one.

Temperature and the Loss of Magnetism

Ferromagnetism depends on the exchange interaction winning a tug-of-war against thermal energy. As temperature rises, atoms vibrate more violently, and at a certain threshold called the Curie temperature, thermal motion overwhelms the exchange interaction entirely. The coordinated alignment of domains breaks down, and the material becomes paramagnetic, just a collection of randomly oriented atomic magnets. For iron, this happens at 770°C (1,418°F). For nickel, it’s lower at 358°C. Cool the material back down and ferromagnetism returns, though the domains won’t necessarily re-form in their original pattern.

Natural Magnets

The first magnets humans encountered were natural: pieces of magnetite, a black iron oxide mineral with the chemical formula Fe₃O₄. Magnetite is unusual because it contains iron in two different charge states within the same crystal. This mixed-valence structure, combined with the exchange interaction between iron atoms on different crystal sites, gives magnetite strong magnetic properties straight out of the ground. Pieces of magnetite that are naturally magnetized (likely by lightning strikes) are called lodestones, and they were the basis of the earliest compasses.

Magnetite is common in volcanic rocks and soils worldwide. Hematite and maghemite, two other iron oxides found alongside it, are far weaker magnetically. The specific crystal arrangement in magnetite, not just the presence of iron, is what makes it the standout natural magnetic mineral.