FYI-142 · Tech · Filed Oct 26, 2026
How Do Magnets Work? Classical Physics Can't Explain Them
Electron spins line up in tiny regions called domains, a quantum effect: in 1911 Niels Bohr showed classical physics cannot account for magnetism in materials.
By the schoolroom rule, a magnet sticks to iron, yet type 304, the most common grade of stainless steel, is mostly iron and essentially non-magnetic. Its classic recipe adds 18 percent chromium and 8 percent nickel to the iron, and that is enough to stop a magnet from holding on.
The difference lies in how the atoms are packed. Austenitic grades like 304 have a face-centered cubic crystal structure, while ferritic stainless steels, which are magnetic, have a body-centered cubic one, the same as pure iron at room temperature. Iron atoms alone do not make a magnet; their electrons have to line up.
How do magnets work?
A magnet works because its electrons are tiny magnets, through a quantum property called spin, and in iron, cobalt and nickel the unpaired ones line up instead of cancelling. The exchange interaction holds neighboring spins parallel in microscopic regions called domains, and when most domains point the same way, their fields add up to a north and a south pole.
The poles follow two rules: like poles repel and unlike poles attract, and north and south poles “always occur in pairs,” as the OpenStax College Physics textbook puts it. Break a magnet in half and each piece has a north and a south pole of its own.
Classical physics predicts no magnetic materials
Niels Bohr showed in his doctoral dissertation of 1911 that classical physics cannot account for magnetism in materials. Apply classical dynamics and statistical mechanics consistently, the physicist John Van Vleck said in his 1977 Nobel lecture, and the diamagnetic and paramagnetic effects cancel exactly: “Thus there should be no magnetism at all.” Van Vleck called Bohr’s thesis “perhaps the most deflationary publication of all time in physics,” and noted that the same result was proved independently in a Leiden dissertation of 1919.
The result is now called the Bohr-van Leeuwen theorem, after Bohr and the author of that dissertation, Hendrika Johanna van Leeuwen. Richard Feynman’s lectures on physics state the consequence plainly: “it is not possible to understand the magnetic effects of materials in any honest way from the point of view of classical physics,” because such effects “are a completely quantum-mechanical phenomenon.”
That leaves no everyday picture to fall back on. In 1983, filming the BBC series Fun to Imagine, an interviewer asked Feynman about a pair of magnets: “what’s going on between these two bits of metal?” Feynman said that comparing magnets to things joined by rubber bands would be cheating, because rubber bands pull back together through “electrical forces,” the very thing he would be using them to explain.
“I can’t explain that attraction in terms of anything else that’s familiar to you.” - Richard Feynman, BBC, 1983, as quoted by ScienceAlert
Every electron is a magnet, and most of them cancel
An electron has an intrinsic spin, and with it, Feynman’s lectures explain, “both an angular momentum and a magnetic moment,” in a ratio twice the one that orbital motion gives, “for reasons that are purely quantum-mechanical.” Yet in most materials the magnetic moments of the electrons cancel. In paramagnetic ones, where the cancellation is incomplete, the effect stays weak because thermal motion keeps knocking the atoms’ moments out of order.
In a ferromagnet, a long-range order “causes the unpaired electron spins to line up parallel with each other,” and among the elements, iron, nickel, cobalt and some of the rare earths, such as gadolinium and dysprosium, behave this way.
The spins line up for a reason that is not magnetic
The spins in iron do not line up because their magnetic fields pull on one another. Treat them as tiny bar magnets and, Feynman’s lectures show, the field at each atom would have to be boosted “by some large factor,” something “like one thousand or more,” which no magnetic interaction can supply; the lectures call that magnetic theory of ferromagnetism “a dismal failure.”
The real cause is the exclusion principle, under which two electrons cannot occupy exactly the same state: electrons with parallel spins must stay apart, so a nearby pair with parallel spins has much more energy than a pair with opposite spins. The result acts on the spins like a force, the exchange interaction, though Feynman insisted it is “not a magnetic force or any other kind of actual force, but only an apparent force.”
Usually it makes neighboring spins point opposite ways, which Feynman called “the explanation of the lack of magnetism in almost all substances,” while in iron it does “just the reverse of what we should expect.” In a paper of 1928, Werner Heisenberg showed that the mysterious internal field Pierre Weiss had proposed two decades earlier to explain ferromagnetism “arose from exchange effects connecting the different magnetic atoms,” Van Vleck recalled.
A magnet pulls on iron by reorganizing it
An ordinary iron nail is not a magnet, even though the spins inside it line up. Weiss suggested in 1906 that a ferromagnet is divided into domains, each magnetized in one direction. In an unmagnetized piece, “the many domains will themselves be randomly oriented with respect to one another,” so their fields cancel.
Bring a magnet near and the domains already pointing along its field “grow at the expense of their neighbors.” The magnet “causes local magnetization of the material with unlike poles closest,” so the nail and the magnet attract. When the field is removed, a ferromagnet “will not relax back to zero magnetization”, because it takes energy to turn reoriented domains back, so a nail stroked with a magnet becomes a weak magnet itself.
A permanent magnet is a material whose domains stay lined up. An electromagnet gets the same result from a current: Hans Christian Oersted saw a compass needle swing beside a wire carrying a current, and a current in a coil of wire makes a temporary magnet. Wound around iron, the coil does better: combining a ferromagnet with an electromagnet “can produce particularly strong magnetic effects.”
Heat scrambles a magnet, and gadolinium gives up at room temperature
Heat shakes the spins out of line. Above a material’s Curie temperature it can no longer be magnetized, and for iron, the OpenStax textbook gives that point as 1043 K, or 770 C.
| Material | Curie temperature |
|---|---|
| Cobalt | 1388 K |
| Iron | 1043 K |
| Nickel | 627 K |
| Gadolinium | 293 K |
Gadolinium sits at the bottom of the list: its Curie point of 293 K is about 20 C (68 F), so a lump of it can be ferromagnetic on a cool day and lose that on a warm one. It also warms up when it enters a magnetic field and cools down when it leaves, the magnetocaloric effect, and a 2025 review says gadolinium “is widely considered a benchmark for magnetic refrigeration near room temperature.”
Neodymium magnets, announced independently by Sumitomo and General Motors at the same conference in Pittsburgh in 1983, are the strongest type of permanent magnet available commercially. Unlike most magnets, they will not lose their magnetization if dropped, but they are sensitive to heat: standard N grades begin to lose strength above 80 C and lose their magnetization completely above a Curie temperature of 310 C, according to the supplier K&J Magnetics.
In other magnets, a hard knock can leave the domains misaligned, and even at room temperature the domains can slowly become disordered, so a permanent magnet weakens over the years.
A fridge magnet works because of a rule about electrons that classical physics has no room for, and the same rule decides whether a magnet sticks to a stainless steel door. Most of the stainless steel made is austenitic, iron packed so that its spins do not fall into step. Strictly FYI.
Questions readers ask
What causes a magnet to attract?
A magnet attracts a piece of iron by magnetizing it. The magnet's field grows the tiny magnetic regions inside the iron, called domains, that line up with it, so an unlike pole forms on the side nearest the magnet, and unlike poles attract.
Do magnets lose their strength over time?
Yes, slowly at room temperature, as their domains drift out of line, and heat shakes the spins out of line too. Above its Curie temperature, about 770 C for iron, a material can no longer be magnetized. Standard grades of neodymium magnet begin to lose strength above 80 C.
Why don't magnets stick to some stainless steel?
The most common grades, such as type 304, are austenitic stainless steels, whose atoms sit in a face-centered cubic crystal structure. They are mostly iron but essentially non-magnetic, while ferritic grades, with a body-centered cubic structure, are magnetic.
Drafted with AI assistance, then checked against the sources linked above. How we work explains the process.
Spotted an error? Write to us. Fixes are listed in the corrections log.
The standing notice
Liked this? Get new entries by email.
Confirm once from your inbox. Every email has an unsubscribe link.
FYI-142 · https://www.strictly.fyi/blog/how-do-magnets-work/