Iron, cobalt, and nickel are the three elements that behave as permanent magnets at room temperature. In physics, these are called the three ferromagnetic elements, meaning they can be magnetized and will stay magnetized on their own without an external field holding them in place. While other elements display magnetic behavior under special conditions, these three stand alone in showing strong, stable magnetism under the everyday temperatures and pressures humans encounter.
What Makes These Three Elements Special
All three elements sit next to each other on the periodic table, occupying positions 26 (iron), 27 (cobalt), and 28 (nickel) in the transition-metal block. Their atoms each carry a set of electrons in what chemists call the 3d shell, and not all of those electrons are paired up. Unpaired electrons act like tiny magnets themselves, and in most elements those tiny magnetic contributions point in random directions and cancel out. In iron, cobalt, and nickel, something different happens: the unpaired electrons on neighboring atoms spontaneously line up in the same direction across large regions of the material. That cooperative alignment is what produces ferromagnetism.
The reason the alignment happens in these three elements and essentially nowhere else at room temperature comes down to a balance between how far apart the atoms sit and how strongly their electron clouds overlap. The spacing has to fall in a narrow sweet spot. Too close and the electrons are forced to pair up in opposite directions, killing the magnetism. Too far apart and they stop influencing each other altogether. Iron, cobalt, and nickel each land in that sweet spot, which is why they cluster together on the periodic table rather than being scattered randomly across it.
Iron
Iron is the element most people think of when they hear the word “magnet,” and for good reason. It is the most abundant of the three in Earth’s crust and the cheapest to produce, which is why the vast majority of everyday magnetic objects are iron-based. Refrigerator magnets, electric motors, transformers, and the cores of electromagnets all rely on iron or iron alloys. Iron’s Curie temperature, the point above which it loses its ferromagnetism, sits around 770 °C. That is comfortably above any temperature you would encounter in daily life but low enough that industrial processes like welding and heat treatment can push iron past its magnetic threshold.
Iron’s magnetic behavior changes dramatically under extreme conditions. At the pressures found deep inside Earth, iron takes on a different crystal structure, and the question of whether it remains magnetic at all becomes relevant to understanding the planet’s core. Theoretical work shows that at Earth’s core pressures and a temperature of about 6,000 K, iron still maintains a fluctuating magnetic moment of roughly 1.18 Bohr magnetons, compared to about 2.23 at ambient conditions.1Journal of Magnetism and Magnetic Materials. Alloy disorder and fluctuating magnetic moments in the Earth’s core Those moments are not organized into a stable magnet at core temperatures, but the fact that they persist at all tells geophysicists something important about how the core behaves.
Cobalt
Cobalt is the least common of the three in everyday life, but it holds the title for the highest Curie temperature among the ferromagnetic elements, at roughly 1,115 °C. That means cobalt keeps its magnetism at temperatures that would strip iron of its own. This thermal resilience makes cobalt invaluable in applications where magnets face extreme heat, such as jet-engine components and high-performance cutting tools. Cobalt’s magnetic moment per atom is also the largest of the three elements, giving it the strongest intrinsic magnetism.
Because cobalt is relatively scarce and expensive, it rarely appears as a pure magnetic material. Instead, it shows up as a key ingredient in high-performance alloy magnets. Alnico magnets, a family developed in the 1930s, combine aluminum, nickel, and cobalt with iron. Samarium-cobalt magnets, developed later, offer extremely high resistance to demagnetization and can operate at temperatures that would ruin other permanent magnets. The ongoing push to reduce cobalt dependence in batteries and magnets is partly a supply-chain concern: much of the world’s cobalt comes from a single country, the Democratic Republic of Congo, and demand has surged alongside the growth of electric vehicles.
Nickel
Nickel is the weakest ferromagnet of the three, with a Curie temperature of only about 358 °C and a smaller magnetic moment per atom than either iron or cobalt. You can verify this yourself: a strong refrigerator magnet will stick firmly to an iron nail but will barely cling to a pure nickel coin. Despite that relative weakness, nickel is ferromagnetic enough to matter in both technology and basic science.
One intriguing property of nickel is the robustness of its magnetic moments under pressure. Computational studies have found that even at pressures of hundreds of gigapascals, nickel’s magnetic features remain more stable than iron’s. At pressures corresponding to Earth’s inner core, iron’s magnetism essentially collapses, while nickel retains smaller but persistent magnetic moments.2Nature Communications. Local magnetic moments in iron and nickel at ambient and Earth’s core conditions This difference matters for models of planetary interiors, where the iron-nickel mixture that forms the core behaves differently from pure iron alone.
What About Gadolinium and the Rare Earths
If you dig into the topic, you will quickly encounter claims that gadolinium is also a ferromagnetic element. This is technically true but with an important caveat: gadolinium’s Curie temperature is only about 20 °C (around 68 °F). On a warm day, a gadolinium sample loses its ferromagnetism entirely. On a cool day, it works as a magnet. That temperature sensitivity is why gadolinium is usually excluded from the “big three” when people ask which elements are magnetic. It does not behave as a reliable magnet under typical conditions.
Several other rare-earth elements, including terbium, dysprosium, holmium, and erbium, also become ferromagnetic, but only at temperatures well below freezing. Dysprosium, for example, becomes ferromagnetic below about minus 185 °C. These cryogenic ferromagnets are fascinating to physicists studying how magnetism arises in different electronic configurations, but they have no relevance to the magnets on your fridge or the motor in your car. For practical purposes, and for the standard answer to the question in the title, iron, cobalt, and nickel are the three.
Why a Magnet Will Not Stick to Stainless Steel
One of the most common sources of confusion about magnetic elements is stainless steel. People know stainless steel contains iron, so they expect it to be magnetic. When a magnet slides right off a stainless-steel pot or a surgical instrument, the disconnect is jarring.
The explanation lies in how alloying changes crystal structure. The most common stainless steels used in kitchenware and medical devices are austenitic grades, which contain substantial amounts of chromium and nickel added to iron. Those additions stabilize a crystal arrangement called face-centered cubic, which disrupts the cooperative electron alignment that produces ferromagnetism. Theoretical work on iron-chromium-nickel alloys has confirmed that magnetic disorder is present at room temperature in these steels, and that the alloying additions play a dominant magnetic role in stabilizing the non-magnetic austenitic structure.3PubMed Central. Evidence of large magnetostructural effects in austenitic stainless steels Essentially, adding enough chromium and nickel to iron rearranges the atoms into a pattern that kills the very magnetism those individual elements would otherwise contribute.
Not all stainless steels are non-magnetic, though. Ferritic and martensitic stainless steels have different crystal structures and are attracted to magnets. The cheap stainless-steel blade of a butter knife is often slightly magnetic, while a high-end stainless-steel mixing bowl is not. The difference is composition and processing, not some fundamental change in the nature of iron.
Permanent Magnets vs. Pure Elements
Pure iron, cobalt, and nickel are all ferromagnetic, but none of them make particularly good permanent magnets on their own. Pure iron is easy to magnetize but also easy to demagnetize: a sharp knock or a modest rise in temperature can scramble the magnetic domains. That property makes iron excellent for electromagnets, where you want to switch magnetism on and off, but poor for the magnet holding your grocery list to the fridge.
The strongest permanent magnets are alloys or compounds designed to resist demagnetization. Neodymium magnets, the small silver discs that can pinch skin and shatter if slammed together, are made from an alloy of neodymium, iron, and boron. The neodymium is not itself ferromagnetic at room temperature, but its large atomic magnetic moment, combined with the crystal structure of the alloy, creates a material far harder to demagnetize than pure iron. Samarium-cobalt magnets use a similar principle, pairing a rare-earth element with cobalt for heat resistance. Ferrite magnets, the inexpensive dark-gray magnets found in speakers and craft supplies, are ceramic compounds of iron oxide mixed with barium or strontium. In every case, the base ferromagnetic element provides the raw magnetic “fuel,” and the alloying or compounding process shapes it into a material that holds its magnetism stubbornly.
Magnetism at the Nanoscale
Shrink a piece of iron, cobalt, or nickel small enough and its magnetic behavior changes in a surprising way. Bulk ferromagnetic materials organize themselves into magnetic domains, regions where the atomic magnets all point the same direction, separated by boundaries from neighboring domains pointing other directions. When a particle gets smaller than a single domain, somewhere around 20 nanometers for iron, 12 for cobalt, and 10 for nickel, there are no more domain walls to anchor the magnetization in place.4ScienceDirect (Elsevier). Structural and magnetic properties of iron, cobalt and nickel nanoparticles At that size, random thermal jiggling is strong enough to flip the particle’s magnetization direction spontaneously. The particle still responds to an external magnetic field, snapping into alignment when a field is applied, but it does not retain magnetism once the field is removed. This behavior is called superparamagnetism.
Superparamagnetic nanoparticles are not just a laboratory curiosity. Iron-oxide nanoparticles in this size range are used as contrast agents in MRI scans, as targeted drug-delivery vehicles in cancer research, and as components in data storage. The fact that these particles respond strongly to a field but do not clump together permanently (the way larger iron filings would) makes them useful in biological environments where you want magnetic control without permanent aggregation.
Magnetism in Living Things
Nature figured out how to use the ferromagnetic properties of iron long before humans built their first compass. Magnetite, a naturally occurring iron-oxide mineral, has been found in organisms ranging from bacteria to birds. Certain species of bacteria contain chains of magnetite nanocrystals that act as built-in compass needles, orienting the bacteria along Earth’s magnetic field lines. The phenomenon is well documented and is one of the clearest examples of biology co-opting the physics of ferromagnetism.
In birds, the story is more complex and still not fully resolved. Researchers have identified both superparamagnetic and single-domain magnetite particles associated with the trigeminal nerve in several avian species.5PubMed Central. Avian magnetite-based magnetoreception: a physiologist’s perspective Studies on homing pigeons, for example, have found iron-containing structures in the skin of the upper beak that may function as a biological magnetometer, detecting the strength or direction of Earth’s field and feeding that information to the brain through nerve pathways.6PubMed. A novel concept of Fe-mineral-based magnetoreception: histological and physicochemical data from the upper beak of homing pigeons Whether these beak structures are the primary navigation sensor or just one component of a multi-system compass remains an active area of research. A competing hypothesis holds that a chemical reaction in the bird’s eye, involving molecules called cryptochromes, provides the main magnetic sense. The two mechanisms are not mutually exclusive, and some researchers suspect birds use both.
Humans also have trace amounts of magnetite in brain tissue, discovered in the early 1990s. Whether those particles serve any sensory function or are simply metabolic byproducts is unknown. Some researchers have tested whether people can unconsciously detect magnetic fields, with mixed and largely inconclusive results. For now, if humans have any magnetic sense at all, it is far too faint to be useful for navigation.
Common Misconceptions
A few misunderstandings about the three magnetic elements come up repeatedly. The first is that magnetism is a binary property: either a material is magnetic or it is not. In reality, every substance responds to magnetic fields in some way. Oxygen gas is weakly attracted to magnets. Water is very slightly repelled. These effects are far too small to notice without sensitive equipment, but they exist. The term “magnetic” in everyday language almost always means ferromagnetic, which is a specific and unusually strong form of magnetism limited to those few elements and their alloys.
The second misconception is that magnets are always metallic. Ferrite magnets, widely used in household items, are ceramics. They are brittle, non-conductive, and look nothing like metal. Their magnetism comes from iron oxide arranged in a crystal structure that supports ferromagnetic order, proving that the magnetic behavior of iron can be harnessed in non-metallic forms.
A third common error is assuming that stronger magnets must contain more iron. Neodymium magnets are far stronger than pure iron magnets of the same size, yet iron makes up only a portion of their composition. The strength of a permanent magnet depends not just on the raw magnetic moment of its atoms but on the crystal structure’s ability to resist demagnetization, a property called coercivity. Iron has excellent magnetic moment but poor coercivity on its own. The engineering of modern magnets is largely about solving that coercivity problem through clever alloying and processing.
Why Only Three
Neighboring elements on the periodic table come tantalizingly close to being ferromagnetic but do not quite make it. Manganese, one spot to the left of iron, has plenty of unpaired electrons, but its atoms are spaced just slightly too close together, and its electron interactions favor antiferromagnetic ordering, where neighbors point in opposite directions and cancel out. Chromium, two spots to the left, is antiferromagnetic for similar reasons. On the other side, copper, one spot past nickel, has a completely filled 3d shell with no unpaired electrons to align in the first place.
Palladium and platinum, which sit directly below nickel on the periodic table, are often described as “nearly magnetic.” Their electronic structures come close to meeting the conditions for ferromagnetism, and they can be pushed into a magnetic state by alloying with small amounts of iron or cobalt. But as pure elements at room temperature, they fall just short. The balance of forces that produces ferromagnetism is strict enough that only three elements in the entire periodic table clear the bar under normal conditions, and all three happen to be neighbors. That clustering is not a coincidence but a consequence of how atomic radius and electron count change as you walk across the transition-metal row.