Loading Scale Physics...
Your device does not support WebGL2, so interactive animations are not available. All text content and images are fully accessible.
Updated Sep 2026
7 min read

Magnetism

Order from Aligned Spins

A Strange Everyday Force

A small ceramic magnet stuck to a refrigerator holds itself up against all the gravity of Earth pulling on it. One cheap piece of metal beats the gravitational field of an entire planet. This is not a demonstration of how strong magnetism is; magnets are usually weak. It is a demonstration of how much weaker gravity is. What is interesting about magnetism is not its strength but its structure: it only shows up when spins inside a material cooperate, and that cooperation is a collective phenomenon that exists nowhere in single-atom physics.

Every electron is a tiny magnet, thanks to its intrinsic spin. In most materials, those little magnets point every which way, averaging to nothing. Bring a compass near a glass of water and nothing happens. In certain materials, the little magnets lock into alignment, and the sum of trillions of aligned spins shows up as a bulk magnetic field. What makes a refrigerator magnet different from a slab of copper is not the individual atoms but how they talk to their neighbors.

Microscopic Magnetism

Every electron carries half a quantum of angular momentum, called spin-1/2, and a corresponding magnetic moment. The moment is tiny but real. In an atom, electrons sharing the same orbital must have opposite spins by Pauli exclusion, so their magnetic moments cancel. Atoms with an odd number of electrons, or with unpaired electrons in partially filled outer shells, have a net magnetic moment per atom. These are the magnetic atoms: iron, cobalt, nickel, gadolinium, and others in the middle of the periodic table with partially filled d or f shells.

Nuclei also carry magnetic moments from the spins of their protons and neutrons, but those moments are about 2,000 times smaller than electron moments because the particles are that much heavier. Nuclear magnetism is real and observable – MRI machines use it – but it is negligibly weak compared to electron magnetism in everyday materials. When you hold a refrigerator magnet, the pull you feel is almost entirely the cooperative alignment of electron spins in iron, not the atomic nuclei.

A cubic lattice of glowing atoms, every one carrying an arrow pointing the same way, with magnetic field lines looping out of the top of the block and around to the bottom
Iron only looks this tidy inside one domain, a patch a few micrometers across.
Only two of a hundred iron nuclei have any spin, so their share is one in two million.

Why Spins Cooperate

Most of what you might guess about how neighboring spins interact turns out to be wrong. The direct magnetic force between two neighboring electron spins in a crystal is far too weak to hold them in alignment at room temperature; thermal jiggling would scramble them immediately. The real mechanism is a quantum effect called the exchange interaction. It comes from the Pauli exclusion principle combined with electrostatic energy: electrons with the same spin cannot occupy the same region, so the spatial part of their joint wave function is forced to separate, which changes their electrostatic energy. Depending on the crystal, this energy either favors aligned spins (ferromagnetism) or anti-aligned spins (antiferromagnetism). The characteristic energy per spin pair is thousands of times larger than the direct magnetic energy, which is why magnetic order can persist at temperatures where direct magnetic coupling would have no chance.

A magnet held together by magnetism would need to be colder than liquid helium.

This is one of those cases where a classical intuition fails entirely. Refrigerator magnets exist because of exchange energy, a purely quantum phenomenon, not because of the magnetic force most people first picture. The magnetic force is too weak. The Pauli exclusion principle, acting through an electrostatic pathway, is what holds a magnet together.

Phase Transition at the Curie Point

Raise the temperature of a ferromagnet and thermal noise starts competing with the exchange energy. Individual spins flip more often. Below a critical temperature – the Curie point – the exchange energy wins on average, and a majority of spins align. Above the Curie point, thermal disorder wins, and the spins are randomized. The transition between these two regimes is a phase transition in the classical thermodynamic sense, sharp and specific, and it looks mathematically identical to the liquid-gas critical point in a completely different system.

Each square feels only four neighbors. Cooled fast, it sometimes freezes half sorted.

For iron, the Curie temperature is 1043 kelvin (770 degrees Celsius). Hotter than that and iron loses its ferromagnetism entirely, becoming only weakly magnetic. This is why the iron in Earth’s inner core, deep enough to be above the Curie point, does not contribute to the planet’s magnetic field; the field comes from molten outer-core convection acting as a dynamo, not from any residual magnetization of the iron itself. Cool hot iron back below the Curie point in a magnetic field and the spins re-align. This is roughly how ancient ferromagnetic materials on Earth have recorded the orientation of the geomagnetic field through geologic history, preserving fossil evidence of the geomagnetic reversals that have happened hundreds of times in Earth’s past.

Domains

A block of iron at room temperature is below the Curie point, and the exchange interaction aligns spins within small regions. But different regions have different preferred directions, because aligning spins everywhere would store a lot of magnetic energy in the external field. Iron instead forms magnetic domains: patches typically micrometers across, each fully magnetized, but with neighboring domains pointing in different directions. Across the bulk, the domain directions average to nearly zero, and the block is magnetically "neutral" from the outside.

When you apply an external field, domains aligned with the field grow at the expense of domains pointing elsewhere. Domain walls move. Above a certain field strength the block becomes nearly uniformly magnetized. Remove the external field and some domains snap back, but not all – there is residual magnetization, and the block stays magnetic. This is how you turn a piece of hardened steel into a magnet: apply a strong field and trap the domains in the new configuration. Heat it above the Curie point and the domains vanish, resetting the material.

The same mechanism answers the refrigerator, because the door is not a magnet at all. Hold a magnet near ordinary steel and its field grows whichever domains inside the steel already point the right way, so the steel becomes a magnet for as long as the magnet is there. How much it keeps afterward is a property of the alloy. Hardened steel holds a great deal, which is how permanent magnets are made, while the soft steel of an appliance panel lets nearly all of it go. That is why the door attracts the magnet and then does not go on to collect paperclips.

Polygonal regions of iron separated by glowing boundaries, each region packed with arrows all pointing one way but differing from region to region, with horizontal field lines crossing the whole frame
The glowing boundaries are domain walls, where the spins turn gradually rather than flip.

Five Kinds of Magnetic Response

Not every material is ferromagnetic. The full menagerie is richer. Ferromagnets (iron, cobalt, nickel) have spins that spontaneously align at low temperatures, producing a strong, permanent magnetization. Antiferromagnets (chromium, hematite) have spins that alternate direction neighbor-to-neighbor, so the net magnetization is zero even though there is magnetic order. Ferrimagnets (magnetite, the original natural magnet) have alternating spins of different magnitudes that do not cancel, giving a weaker net magnetization than a ferromagnet but with similar behavior.

Paramagnets are materials with unpaired spins that do not mutually align – thermal noise wins at all practical temperatures. They respond weakly to external fields by aligning spins with the field, but the response vanishes when the field is removed. Oxygen gas, aluminum, and liquid oxygen (spectacularly) are paramagnetic. Diamagnets are materials with no net magnetic moment at all; instead, any external field induces a tiny opposing moment in the electron orbitals, producing a very weak repulsion. Water, copper, bismuth, and every living thing are diamagnetic. A strong enough magnet can levitate a live frog, and this has actually been demonstrated.

The frog in the real experiment went up in a field of about sixteen tesla.

Planetary and Stellar Magnetism

Earth’s magnetic field is not produced by any ferromagnetic material inside the planet. The deep interior is too hot. Instead, the outer core is liquid iron, and its convective motion combined with Earth’s rotation drives a dynamo: moving conductive fluid generates electric currents, and those currents generate a magnetic field that sustains the fluid motion in a self-reinforcing loop. The field flips direction at irregular intervals – sometimes a few tens of thousands of years apart, sometimes tens of millions. The most recent full reversal happened about 780,000 years ago, and the present field has been gradually weakening for the past two centuries. Whether that weakening is the early stage of another reversal or just normal variability is currently unsettled. Reversals are stochastic events, not a regular cycle the planet is "due for."

The Sun has a dynamo too, much stronger and more complicated. Solar magnetism drives the sunspot cycle, coronal heating, solar flares, coronal mass ejections, and the entire space weather environment around the solar system. Neutron stars have magnetic fields trillions of times stronger than Earth’s, produced by the collapse of their progenitor stars’ fields combined with dynamo amplification. Magnetars have fields reaching 10¹⁵ gauss – strong enough to distort atoms into needle shapes. Magnetism in extreme environments is a recurring theme across astrophysics, and the physics is always the same: moving charged matter generates fields, and the fields in turn steer the matter.

Earth seen from space with magnetic field lines arcing between the poles, deflecting solar wind particles
The lines run into the ground at the north pole, which makes it a magnetic south pole.

Bulk Behavior From Aligned Spins

Magnetism is one of the cleanest demonstrations in physics of how bulk properties emerge from collective behavior. Individual electron spins are nearly structureless. A single atom’s magnetic moment is unremarkable. A billion aligned atoms in a single domain store serious energy. A planet’s worth of convecting conductor generates a field that can steer charged particles across the solar system. The same quantum mechanics acts at every scale, but its consequences look wildly different depending on how many particles are cooperating. This is the central lesson of condensed matter physics, and magnetism is one of its first and clearest chapters.

Somewhere, something incredible is waiting to be understood