Why Does Earth Have a Magnetic Field? Liquid Iron Explained
Earth's magnetic field comes from swirling liquid iron in the outer core. See how the geodynamo works, why it flips, and what the field does for the planet.

Earth has a magnetic field because its outer core is a deep ocean of liquid iron and nickel that is constantly stirred by heat. Moving metal that conducts electricity generates electric currents, and those currents produce the magnetic field. Scientists call this process the geodynamo.
The field reaches far past the surface. It forms a bubble called the magnetosphere, which pushes aside most of the charged particles streaming from the Sun. Without the dynamo, the field would fade in a geologically short time, because the currents that feed it need a continuous source of energy.
What is inside Earth that makes the field?
Earth’s core has two parts. The inner core is a solid ball of iron-rich metal with a radius of roughly 1,200 kilometers (about 750 miles). Around it lies the outer core, a layer of liquid iron and nickel about 2,200 kilometers (roughly 1,400 miles) thick. Both are hotter than 4,000 degrees Celsius (7,200 degrees Fahrenheit), comparable to the surface of the Sun.
The inner core stays solid even at that temperature because the pressure at the center of the planet is enormous. The outer core is under less pressure, so it remains liquid. Scientists know this layering from earthquake waves: shear waves, which cannot travel through liquid, do not pass through the outer core.
How does moving liquid metal create a magnetic field?
Iron conducts electricity. When a conductor moves through an existing magnetic field, it generates an electric current, and every electric current creates its own magnetic field. In the outer core, this feedback can sustain itself: the motion makes currents, the currents strengthen the field, and the field acts on the moving metal in turn.
The liquid needs three things to keep this going:
- Electrical conductivity, which molten iron and nickel provide.
- A steady source of motion, supplied by heat flowing out of the core and by the solid inner core slowly growing as the planet cools.
- Rotation, because Earth’s spin twists the rising and sinking liquid into spiraling columns that line up to build a large-scale field.
What makes the outer core move?
Heat from the deep interior drives convection. Hotter, lighter liquid rises toward the mantle above, cools, and sinks again, much like water circulating in a pot on a stove. As the inner core freezes and grows, it also releases lighter elements into the liquid above it, and these buoyant elements rise and add to the churning.
This is why a planet needs a hot interior and a liquid layer to keep a dynamo running. A planet whose core has cooled and solidified loses its field. Mars is the usual example: it has no global magnetic field today, although rocks on its surface show it once had one.
Why does the field matter at the surface?
The magnetosphere deflects much of the solar wind, the stream of charged particles flowing outward from the Sun. Some particles do reach the upper atmosphere near the poles, where they excite gases and produce auroras. The field also makes compass needles point north, which sailors and hikers have used for centuries.
Many animals are thought to sense the field and use it to navigate, including some birds and sea turtles. The mechanism is still being studied, so treat the details as unsettled. NASA and NOAA both publish public explanations of the magnetosphere and of space weather, for example on NASA’s website and NOAA’s site.
Does the magnetic field change over time?
Yes. The magnetic poles wander, and the position of magnetic north has moved noticeably across the Arctic over the past century. Navigation systems that rely on the field are updated regularly with new models for this reason.
On far longer timescales, the field flips. North and south magnetic poles have swapped many times in Earth’s history, recorded in the magnetization of rocks on the ocean floor. The last full reversal happened around 780,000 years ago. Reversals are irregular, not on a fixed schedule, and they unfold over thousands of years.
The field is also very old. Magnetized minerals in ancient rocks show that a field has existed for billions of years, long before animals appeared. That fits the picture in how scientists date Earth at 4.54 billion years old, since the core formed early in the planet’s history.
Do other planets have magnetic fields?
Several do. Jupiter and Saturn have strong fields generated deep inside. Uranus and Neptune have fields that are unusual because they are tilted and offset from the planets’ centers, which researchers connect to how their interiors are layered, as covered in simulations of the tilted fields of Uranus and Neptune. The Moon has no global field today.
Common questions
Could Earth’s magnetic field disappear?
Not on any timescale people experience. The field strength rises and falls, and during reversals it weakens and becomes more complicated, but it does not vanish and then stay gone. The dynamo keeps running as long as the outer core stays liquid and keeps moving.
Is the core really as hot as the Sun’s surface?
Estimates for the inner core boundary are around 5,000 to 6,000 degrees Celsius, in the same range as the Sun’s visible surface. These values come from lab experiments on iron at high pressure and from seismic data, so they carry some uncertainty.
Can a magnet or magnetic rock affect my compass?
Yes. A nearby magnet, a steel object or magnetized rock can pull a compass needle away from magnetic north. Earth’s own field is weak at the surface compared with a fridge magnet, which is why a compass should be read away from metal.
Site editor: Nikita Sheikin



