HomeArticlesSpace & Astronomy

The Dynamo Effect: How Planets Make Their Own Magnetic Field

Earth's magnetic field would decay away in about 20,000 years if nothing sustained it. Something in the core keeps regenerating it — a self-amplifying feedback loop called the dynamo effect.

mysimulator teamUpdated July 2026≈ 7 min read▶ Open the simulation

Two numbers that decide whether a dynamo runs

Magnetohydrodynamics (MHD) merges the fluid equations with Maxwell's equations through the induction equation, ∂B/∂t = ∇×(v×B) + η_m∇²B, where η_m = 1/(μ₀σ) is the magnetic diffusivity. Whether a moving conductor can sustain a magnetic field comes down to the magnetic Reynolds number, Rm = vL/η_m: when Rm ≫ 1, advection by the flow dominates over resistive decay and the field is effectively "frozen" into the fluid, stretched and folded by convection until it amplifies itself. When Rm ≪ 1, diffusion wins and any field simply dies away.

Earth's geodynamo

Earth's geomagnetic field is maintained by convective motion of liquid iron in the outer core — a shell 1,500-3,500 km in radius at 4,000-5,000 K. That convection is driven by three effects working together: secular cooling of the whole core, compositional buoyancy as light elements (oxygen, sulfur, silicon) are released and rise as the solid inner core grows, and latent heat released at the inner-core boundary as iron freezes onto it. The resulting flow of electrically conducting fluid generates electric currents that sustain the field in a self-amplifying feedback loop — remove the convection, and the field would decay within tens of thousands of years.

live demo · convecting fluid amplifying a magnetic field● LIVE

Polarity reversals

The geodynamo is not a fixed, steady process — it reverses polarity irregularly, on average roughly every 300,000 years, with the most recent reversal about 780,000 years ago. Transitions take 1,000-10,000 years, during which field intensity drops by around 75% before settling into the new orientation. Paleomagnetic evidence, recorded in sea-floor spreading and rock samples as they cooled through their Curie temperature, documents hundreds of such reversals across Earth's history.

The Sun's dynamo runs on a different clock

The Sun's dynamo is driven not by core convection but by differential rotation — the equator completes a rotation in about 25 days, the poles in about 35 — combined with helical convection in the outer layers. That shearing motion produces the well-known 11-year sunspot cycle, which is actually half of a 22-year full magnetic cycle, since the field's polarity flips at each sunspot minimum. The same underlying physics — a conducting fluid, differential motion, and Rm ≫ 1 — explains dynamos as different as Earth's iron core and the Sun's plasma envelope.

Frequently asked questions

What powers Earth's geodynamo?

Convective motion of liquid iron in the outer core, driven by secular cooling, compositional buoyancy as light elements rise while the inner core solidifies, and latent heat release at the inner core boundary. This convection sustains electric currents that maintain the field.

How often does Earth's magnetic field reverse polarity?

Reversals occur irregularly, on average roughly every 300,000 years; the last one was about 780,000 years ago. Transitions take 1,000 to 10,000 years, during which field intensity drops by around 75%, as recorded in paleomagnetic rock samples.

What is the magnetic Reynolds number and why does it matter for a dynamo?

The magnetic Reynolds number Rm = vL/η_m compares advection of the field by the fluid to resistive diffusion. When Rm is much greater than 1, the field is effectively frozen into the fluid and can be stretched and amplified by the flow, which is the condition required for a self-sustaining dynamo.

Try it live

Everything above runs in your browser — open Dynamo Effect, drag rotation rate, magnetic Reynolds number and convection drive, and watch a self-sustaining field emerge — with occasional polarity reversals.

▶ Open Dynamo Effect simulation

What did you find?

Add reproduction steps (optional)