How Do Magnets Work?

How Do Magnets Work?

The Question

Magnets are everywhere—in our phones, speakers, hard drives, electric motors, and MRI machines. We use them every day, yet the force they exert seems almost magical. How can a piece of metal reach across empty space and pull another piece of metal toward it without touching it? The answer goes all the way down to the quantum behavior of electrons.

Detailed Explanation

Magnetism is fundamentally a quantum mechanical phenomenon rooted in the behavior of electrons. Every electron has two properties that contribute to magnetism: its orbital motion around the nucleus and its intrinsic "spin." Electron spin is a quantum property with no classical analogy—it is not literally the electron spinning like a top, but it behaves as if the electron were a tiny bar magnet with a north and south pole. In most materials, electrons pair up with opposite spins, canceling each other's magnetic effects out. However, in certain materials like iron, cobalt, and nickel, the atomic structure allows many electrons to have their spins aligned in the same direction. Each atom in these materials acts like a tiny magnet. In a magnetic material, groups of atoms called "magnetic domains" form, where all the atomic magnets point in the same direction. In an unmagnetized piece of iron, these domains point in random directions, so their effects cancel out. When you place the iron in a strong external magnetic field, the domains that are aligned with the field grow larger, and the others shrink or rotate to align. If enough domains align, the material becomes a permanent magnet. The magnetic force itself is transmitted through the electromagnetic field. A moving electric charge creates a magnetic field, and a magnetic field exerts a force on moving electric charges. This deep connection between electricity and magnetism was unified by James Clerk Maxwell in the 19th century into a single theory of electromagnetism, one of the great achievements of physics.

Going Deeper

At the deepest level, magnetism is a relativistic effect of electricity. Einstein's special theory of relativity shows that when you move relative to a set of electric charges, the electric force you experience transforms into what we call a magnetic force. In other words, magnetism is what electricity looks like when you are moving. This is a profound insight: the two forces are not separate phenomena but two aspects of a single electromagnetic force. Superconductors take magnetism to an extreme. Below a critical temperature, certain materials become superconductors, where electrons flow with zero resistance. Superconductors expel all magnetic fields from their interior (the Meissner effect), which is why a magnet will levitate above a superconductor. This principle is used in maglev trains, which float above their tracks using powerful superconducting magnets, eliminating friction and allowing speeds of over 600 km/h. The Earth itself is a giant magnet, generated by the movement of molten iron in its outer core. This geomagnetic field extends far into space, forming the magnetosphere that deflects the solar wind and protects life on Earth from harmful radiation.

Did You Know?

Richard Feynman, one of the greatest physicists of the 20th century, was once asked to explain why magnets attract each other. His answer was a famous and humbling reminder of the limits of intuitive explanation: he said that at the deepest level, the force is simply a fundamental property of the universe, and any "explanation" just pushes the mystery back one level. We can describe magnetism with extraordinary mathematical precision, but "why" it exists is a question that touches the very foundations of physics. Another fascinating fact: the magnetic poles of the Earth are not fixed. They wander slowly over time, and the magnetic field has completely reversed—north becoming south and vice versa—hundreds of times over Earth's history. The last reversal was about 780,000 years ago, and scientists believe we may be in the early stages of another one.

Magnetic field visualization