Earth’s magnetic field is generated in the outer core, a roughly 2,200-kilometer-thick shell of liquid iron alloy that sits between the solid inner core and the rocky mantle above. Convection currents in this electrically conducting fluid create what geophysicists call the geodynamo, a self-sustaining process that has kept the planet wrapped in a magnetic shield for billions of years. But the outer core does not work alone. The solid inner core, the mantle above, and even the crust and oceans each play supporting roles that shape the field you would actually measure at the surface.
How the Outer Core Generates the Field
The outer core is composed primarily of iron alloyed with nickel and lighter elements such as silicon and sulfur. Because the core is extremely hot and under immense pressure, this metallic mixture stays liquid even though it sits thousands of kilometers below your feet. It is also an excellent electrical conductor. When convection stirs this liquid metal, the movement of conducting fluid through an existing magnetic field generates electric currents, and those currents in turn reinforce and reshape the magnetic field. That feedback loop is the geodynamo.1Geophysical Research Letters. Moderate Thermal Conductivity of Fe‐Ni‐Si Alloy at Earth’s Core Conditions: Implications for Core Thermal Evolution and Geodynamo
The flow pattern matters enormously. The liquid outer core is not just simmering randomly. Earth’s rotation organizes the convection into roughly columnar structures aligned with the spin axis, and the interaction between these columns, large-scale shearing flows, and the conducting fluid produces a field that, seen from outside the planet, looks predominantly like a giant bar magnet tilted slightly off the rotation axis. Computer simulations of this process can reproduce that dominant dipole structure and even generate spontaneous magnetic reversals.2Science. Earth’s Core and the Geodynamo
The rate at which the liquid iron moves also determines how quickly the field changes over human timescales. Gradual shifts in the field’s strength and direction, known as secular variation, directly reflect changes in flow patterns at the top of the outer core.3Journal of Studies of Earth’s Deep Interior. Principal component analysis of the 2010 reversal of core-surface flow beneath the Pacific Ocean
What Powers the Dynamo
A dynamo needs energy to keep running, and the outer core’s convection does not happen by accident. Two processes supply most of the power today. As the planet slowly cools, the inner core grows by crystallizing iron from the liquid outer core at the boundary between the two. That crystallization releases latent heat, which warms the surrounding liquid and drives convection upward. At the same time, lighter elements that do not fit neatly into the growing crystal lattice get expelled into the outer core, making the fluid near the boundary more buoyant. This compositional buoyancy is a potent driver of convection.4Earth and Planetary Science Letters. The signature of inner-core nucleation on the geodynamo
Before the inner core existed, the dynamo still ran, just on a different fuel. Secular cooling alone, the slow loss of primordial heat from Earth’s formation, was enough to keep the outer core convecting and sustaining a magnetic field. Thermal evolution models show that a dynamo driven solely by cooling can produce a field of comparable strength to today’s, which means the inner core’s birth was not the on-switch for Earth’s magnetism but rather a second engine bolted onto a machine that was already running.
The Mantle’s Quiet Influence
If the outer core is the engine, the mantle is the thermostat. Heat can only leave the core by conducting and convecting upward through the core-mantle boundary, about 2,900 kilometers below the surface. How efficiently the mantle removes that heat controls the vigor of convection in the outer core and, by extension, the strength and geometry of the magnetic field.
The mantle is not uniform. Dense thermochemical piles and subducted slabs create regions where heat flows across the core-mantle boundary more or less efficiently. Modeling work shows that the average heat flux across this boundary sits in a range of roughly 13 to 15 terawatts in reference models, consistent with broader estimates that span about 5 to 17 terawatts.5Geophysical Journal International. Changes in core–mantle boundary heat flux patterns throughout the supercontinent cycle Higher heat flux near the upper end of that range appears most compatible with sustaining the geodynamo, and the uneven distribution of heat removal can influence where reversed magnetic flux patches appear at the core surface.
Over hundreds of millions of years, the arrangement of continents above reshapes mantle convection, which in turn changes the pattern of heat extraction from the core. The supercontinent cycle may therefore leave fingerprints on the magnetic field’s long-term behavior, linking plate tectonics at the surface to the dynamo thousands of kilometers below.
What the Crust Adds
Rocks in Earth’s crust contribute a secondary magnetic signal that sits on top of the core-generated field. When iron-bearing minerals in volcanic or sedimentary rocks cool below their Curie temperature, they lock in a record of whatever ambient field existed at that time. This remanent magnetization persists for millions or even billions of years, and induced magnetization adds to it whenever a rock sits within the present-day field.6Geophysical Journal International. Accounting for crustal magnetization in models of the core magnetic field
Crustal magnetism is far weaker than the core field on a global scale, but locally it can be significant. Banded iron formations and large volcanic provinces create magnetic anomalies strong enough that they have to be carefully subtracted when researchers try to map the core field from satellite data. For anyone using a compass, though, the crustal signal is too small to notice. The needle is responding almost entirely to the outer core’s dynamo.
The Ocean’s Tiny Contribution
Seawater is salty and therefore electrically conductive. As ocean tides move billions of tons of this conducting fluid through Earth’s magnetic field, they generate their own small electric currents and associated magnetic signals.7Journal of Geophysical Research: Oceans. Analysis of Ocean Tide‐Induced Magnetic Fields Derived From Oceanic In Situ Observations: Climate Trends and the Remarkable Sensitivity of Shelf Regions These tide-induced magnetic fields are minuscule compared to the core field, typically a few nanotesla against a background of roughly 25,000 to 65,000 nanotesla. But modern satellites are sensitive enough to detect them, and researchers have begun using the tidal magnetic signal as a tool to monitor ocean conductivity and, indirectly, ocean heat content and salinity changes over time.8Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences. Magnetic signals from oceanic tides: new satellite observations and applications
The ocean does not “generate” the magnetic field in any meaningful dynamo sense. It is more like a secondary circuit: the core field already exists, and the ocean’s motion through it produces a faint echo. Still, the fact that moving saltwater can create detectable magnetic signals speaks to how fundamental the relationship between fluid motion and magnetism is throughout Earth’s system.
When the Field Flips
The geomagnetic field has reversed its polarity hundreds of times over Earth’s history. What is now magnetic north has pointed toward the geographic south pole, and vice versa, with intervals between reversals ranging from tens of thousands to tens of millions of years. These reversals originate entirely within the outer core’s dynamo.
Modeling and theory point to the growth of reversed magnetic flux patches on the core surface as the initiating event. In some dynamo models, these reversed patches appear at high latitudes and expand until they dominate the field, while in others, large-scale flow patterns cause reversals to start at low latitudes instead.9Journal of Geophysical Research: Solid Earth. Geomagnetic polarity reversals, transition field structure, and convection in the outer core The mantle plays a role too: cold material descending from the core-mantle boundary can alter convection patterns enough to trigger a reversal.10Science. Magnetic Field Reversals, Polar Wander, and Core-Mantle Coupling
A full reversal typically takes a few thousand years to complete. During the transition, the field weakens substantially and becomes more complex, losing its simple dipole shape. This transitional period is sometimes raised as a concern for life on the surface, since a weaker field offers less shielding from charged particles. In practice, the atmosphere provides its own layer of radiation protection, and life has survived every reversal in the fossil record without obvious mass extinction events.
The South Atlantic Anomaly
Not every part of the magnetic field is equally strong. Over South America and the southern Atlantic Ocean, the field intensity dips well below its global average, creating a region known as the South Atlantic Anomaly. This is not a sign that the dynamo is failing. It reflects specific flow patterns at the top of the outer core beneath that region, where patches of reversed magnetic flux reduce the net field strength seen at the surface.11Anais da Academia Brasileira de Ciências. Time evolution of the South Atlantic Magnetic Anomaly
One hypothesis ties the anomaly to unusual properties of the mantle in that region. A large, dense thermochemical structure sits at the base of the mantle beneath Africa, and it may channel core heat flow in a way that promotes the expulsion of reversed flux bundles at the core surface. The resulting pairs of reversed and normal flux patches, when summed and projected upward, produce the surface weakness.12Nature Communications. Antiquity of the South Atlantic Anomaly and evidence for top-down control on the geodynamo
The anomaly has practical consequences. Satellites passing through it encounter higher levels of charged particles because the weaker field lets radiation from the Van Allen belts dip closer to Earth. Spacecraft electronics can glitch, and astronauts on the International Space Station receive a slightly higher radiation dose during each pass. The anomaly has been drifting westward and growing over recent centuries, which keeps space agencies attentive to its evolution.
How Old Is the Geodynamo
Paleomagnetic evidence from ancient zircon crystals, among the oldest surviving minerals on Earth, indicates that a geomagnetic field has existed for at least 4.2 billion years. Tiny magnetic inclusions locked inside these grains recorded the ambient field when the crystals formed, pushing the age of the dynamo remarkably close to the planet’s own formation roughly 4.5 billion years ago.13National Science Review. Earth’s magnetic field and its relationship to the origin of life, evolution and planetary habitability
That early establishment matters for the history of life. A magnetic field deflects much of the solar wind, the stream of charged particles pouring off the Sun that can strip away atmospheric gases over geological time. By shielding the young atmosphere, the geodynamo helped maintain conditions in which liquid water could persist and early biochemistry could unfold. The timing lines up with genetic estimates for the last universal common ancestor of all life, suggesting the field and life’s origins may be closely intertwined.
The Eventual Shutdown
The geodynamo is not permanent. It depends on convection in the outer core, and convection depends on a temperature difference between the inner and outer parts of the core. As Earth continues to cool, the inner core grows, and eventually the outer core will either solidify completely or cool to the point where convection can no longer be sustained. Thermal evolution models project that this process will play out over billions of years, far longer than the Sun’s remaining main-sequence lifetime of roughly five billion years. In practical terms, the dynamo will outlast the habitable conditions on Earth’s surface.
Mars offers a cautionary parallel. Mars once had a global magnetic field, as recorded by strongly magnetized crustal rocks in its southern highlands. That dynamo shut down roughly four billion years ago, likely because Mars’s smaller core cooled more rapidly. Without a global field, the solar wind gradually stripped away much of the Martian atmosphere, contributing to the cold, thin-aired planet we see today.
How Other Worlds Generate Fields
Earth’s outer core dynamo is one flavor of a broader phenomenon. Jupiter and Saturn generate powerful magnetic fields in layers of metallic hydrogen compressed deep inside their interiors. Uranus and Neptune take a stranger approach: their magnetic fields appear to originate in layers where water, ammonia, and methane are squeezed into electrically conducting ionic fluids under extreme pressure and temperature. Modeling of extrasolar giant planets suggests that icy cores composed of water under such conditions can exist as plasma for billions of years, contributing to a dynamo-driven magnetic field even in planets very different from Earth.14The Astrophysical Journal. The Linkage between the Core Mass and the Magnetic Field of an Extrasolar Giant Planet from Future Radio Observations
The common thread is straightforward: take an electrically conducting fluid, heat it unevenly so it convects, and spin the whole thing. If conditions are right, a self-sustaining magnetic field emerges. The specific “layer responsible” differs from planet to planet, but the physics is the same. On Earth, that layer happens to be a shell of liquid iron sitting about 2,900 to 5,100 kilometers below the surface.
Animals That Navigate by the Field
The geomagnetic field is not just a shield; it is also a map. Migratory birds, sea turtles, salmon, and lobsters are among the animals thought to sense the magnetic field and use it for navigation. The field’s total intensity and the angle at which field lines intersect the surface (the inclination) both vary with latitude and longitude, providing a coordinate grid that an animal could, in principle, read to determine its location.15PubMed Central. Theoretically possible spatial accuracy of geomagnetic maps used by migrating animals
How animals actually detect the field remains one of the more fascinating open questions in biology. Proposed mechanisms include tiny crystals of the iron mineral magnetite in nerve tissue, a chemical compass based on light-sensitive proteins called cryptochromes in the eye, and electromagnetic induction in specialized organs. Evidence supporting more than one of these mechanisms exists, and it is possible that different species use different strategies. What is clear is that the outer core’s dynamo, by producing a field with enough spatial variation to be useful, has inadvertently created one of nature’s oldest navigation systems.
The secular variation that the dynamo produces does pose a challenge for magnetic navigators. The field is not static; its features drift and shift over decades and centuries. Animals relying on a magnetic map would need some way to recalibrate, perhaps through experience during early migrations or by combining magnetic cues with celestial, olfactory, or geographic landmarks. How they manage this recalibration, especially when the field changes faster in some regions than others, remains an active area of research.