Earth's magnetic field: Explained

Artist's illustration showing Earth's magnetic field spreading into space.
Earth's magnetic field is generated deep within Earth's interior and extends out into space. (Image credit: Elen11 via Getty Images.)

Earth's magnetic field — also known as the geomagnetic field — is generated in our planet's interior and extends out into space, creating a region known as the magnetosphere.  

Without the magnetic field, life on Earth as we know it would not be possible as it shields us all from the constant bombardment by charged particles emitted from the sun — the solar wind. (To learn what happens to a planet when it loses its magnetic field, you only need to look at Mars.)

Earth has two sets of poles, geographic pole and magnetic poles. Earth's magnetic field can be visualized if you imagine a large bar magnet inside our planet, roughly aligned with Earth's axis. Each end of the magnet lies relatively close (about 10 degrees) to the geographic North and South poles. Earth's invisible magnetic field lines travel in a closed, continuous loop and are nearly vertical at each magnetic pole.

Related: The Carrington Event: History's greatest solar storm

Geographic North and South poles are where lines of longitude converge according to GIS Geography. The Geographic North Pole is located in the middle of the Arctic Ocean and the Geographic South Pole is found in Antarctica. 

Magnetic poles are located where the magnetic lines of attraction enter Earth. The Magnetic North Pole is also known as the North Dip Pole and is currently found on Ellesmere Island in Northern Canada. When a magnetic compass points north it is aligning itself with Earth's magnetic field and points to the Magnetic North Pole, not the Geographic North Pole, which is actually about 310 miles (500 kilometers) away according to GIS Geography! 

Earth's magnetic field lines travel in continuous closed loops.  (Image credit: VectorMine via Getty Images)

And just to make things that little more confusing, what we call the North Magnetic Pole is actually a south magnetic pole… bear with me on this. Magnetic field sources are dipolar, meaning they have a north and south pole. And when it comes to magnets, opposite poles (N and S) attract while other poles (N and N, S and S) repel. So when a compass points north, it is actually attracted to the south magnetic pole which lies close to the Geographic North Pole, according to Physicist Christopher Baird's science FAQ website "Surprising Questions with Surprising Answers." 

Unlike the geographic poles, Earth's magnetic poles are not fixed and tend to wander over time. British polar explorer James Clark Ross first identified the Magnetic North Pole on the Boothis Peninsula in Canada's Nunavut territory in 1831, according to the Antarctic travel site Antarctic Logistics. Since its discovery, the magnetic north pole moves about 25 miles (40 kilometers) a year in a northwest direction according to the Royal Museums Greenwich. Whatsmore, Earth's magnetic poles have also 'flipped' whereby north becomes south and south becomes north. These magnetic reversals occur at irregular intervals every 200,000 years or so.  

What causes Earth's magnetic field?

Earth's magnetic field is generated by what is known as the geodynamo process. According to National Geographic, for a planet to generate its own magnetic field by the geodynamo process, it must have the following characteristics:

  • The planet rotates fast enough
  • Its interior must have a fluid medium  
  • The interior fluid must have the ability to conduct electricity 
  • The core must have an internal source of energy that propels convection currents in the liquid interior. 

The generation of Earth's magnetic field occurs deep within the Earth's interior, in a layer known as the outer core to be precise. Here the convective energy from the slow-moving molten iron is converted to electrical and magnetic energy, according to the U.S. Geological Survey. The magnetic field then induces electric currents which in turn generate their own magnetic field which induces more electric currents, in a positive feedback loop.

How does the magnetic field protect Earth?

Earth's magnetosphere helps to shield Earth from harmful space weather.  (Image credit: MARK GARLICK/SCIENCE PHOTO LIBRARY via Getty Images)

Our protective magnetic "bubble," known as the magnetosphere, protects us from harmful space weather such as solar wind. Without the magnetosphere, the solar wind would erode our atmosphere, devoiding our planet of the life-giving air we breathe. 

According to NASA, the magnetosphere also protects Earth from large quantities of particle radiation emitted during coronal mass ejection (CME) events and also from cosmic rays — atom fragments — raining down on Earth from deep space. The magnetosphere repels harmful energy away from Earth and traps it in zones called the Van Allen radiation belts. These donut-shaped belts of radiation can swell when the sun's activity increases. 

But our protective shield is not completely invincible. 

During particularly strong space weather events such as high solar winds or large CMEs, Earth's magnetic field is disturbed and geomagnetic storms can penetrate the magnetosphere and lead to widespread radio and power blackouts as well as endangering astronauts and Earth-orbiting satellites. 

In 1859, a large solar storm known as the Carrington Event caused widespread telegraph system failures and in 1989, a CME accompanied a solar flare and plunged the entire province of Quebec, Canada into an electrical blackout that lasted around 12 hours according to a NASA statement.

The degree of magnetic disturbance from a CME depends on the CME's magnetic field and Earth's. If the CME's magnetic field is aligned with Earth's, pointing from south to north the CME will pass on by with little effect. However, if the CME is aligned in the opposite direction it can cause Earth's magnetic field to be reorganized, triggering large geomagnetic storms. 

A less destructive and far prettier side effect of magnetosphere disturbances is the aurora above Earth's polar regions. The phenomenon is known as the northern lights (aurora borealis) in the Northern Hemisphere and the southern lights (aurora australis) in the Southern Hemisphere. 

The disturbances in Earth's magnetic field funnel ions down towards Earth's poles where they collide with atoms of oxygen and nitrogen in Earth's atmosphere, creating dazzling aurora light shows. 

CMEs can trigger large geomagnetic storms that result in impressive auroras like this one pictured in Alaska.  (Image credit: Noppawat Tom Charoensinphon via Getty Images)

Magnetic pole reversal

According to Science Daily, in the last 200 million years alone, Earth's magnetic poles have reversed hundreds of times in a process where north becomes south and south becomes north. 

The magnetic poles flip approximately every 200,000 to 300,000 years according to NASA, though it has been more than twice that long since the last reversal. Earth's most recent magnetic reversal occurred approximately 790,000 years ago so we are rather overdue for another. But don't worry, the magnetic poles won't just switch overnight, it can take hundreds or even thousands of years for the poles to flip.  

Magnetic fields on other planets

Earth is not the only planet in the solar system to possess a magnetic field. Jupiter, Saturn, Uranus and Neptune all exhibit magnetic fields far stronger than Earth's, according to Union University, though the underlying mechanisms driving these magnetic fields are not yet completely understood. 

Not every planet is fortunate enough to have a protective magnetic layer. Mars does not have enough inner heat nor does it possess the liquid interior required to generate a magnetic field. Venus, on the other hand, has a liquid core but does not spin fast enough to generate a magnetic field. 

Additional resources

If you want to read more about how scientists are investigating our planet's interior and nearby space environment without even leaving the ground check out these resources from the U.S. Geological Survey. Learn more about Earth's magnetic field with this short video from Arbor Scientific. Explore magnetic and geographic poles in more detail with the Australian Antarctic Program


Baird, C. S. (November 15, 2013). Why does a magnetic compass point to the Geographic North Pole? Science Questions with Surprising Answers. Retrieved July 4, 2022, from

Buis, A. (August 3, 2021). Earth's magnetosphere: Protecting our planet from harmful space energy – climate change: Vital signs of the planet. NASA. Retrieved July 4, 2022, from

Do other planets have magnetic fields like our Earth? Union University. Retrieved July 4, 2022, from

Earths Interior. National Geographic Society. Retrieved July 4, 2022, from

Fox, K. C. (June 9, 2015). New tool could track space weather 24 hours before reaching Earth. NASA. Retrieved July 4, 2022, from

Magnetic North vs Geographic (true) North Pole. GIS Geography. (May 27, 2022). Retrieved July 4, 2022, from

NASA. (November 30, 2011). 2012: Magnetic Pole Reversal happens all the (geologic) time. NASA. Retrieved July 4, 2022, from

Odenqald, S. (March 13, 2009). The Day the sun brought darkness. NASA. Retrieved July 4, 2022, from

RMG.  John and James Clarke Ross North-West Passage expedition 1829–33. Royal Museums Greenwich. Retrieved July 4, 2022, from

ScienceDaily. (December 28, 2009). As the World Churns: Earth's liquid outer core is slowly 'stirred' in a series of decades-long waves. ScienceDaily. Retrieved July 4, 2022, from

Sir James Clark Ross. Antarctic Logistics & Expeditions. Retrieved July 4, 2022, from

USGS. How does the Earth's core generate a magnetic field? USGS. Retrieved July 4, 2022, from

Join our Space Forums to keep talking space on the latest missions, night sky and more! And if you have a news tip, correction or comment, let us know at:

Daisy Dobrijevic
Reference Editor

Daisy Dobrijevic joined in February 2022 having previously worked for our sister publication All About Space magazine as a staff writer. Before joining us, Daisy completed an editorial internship with the BBC Sky at Night Magazine and worked at the National Space Centre in Leicester, U.K., where she enjoyed communicating space science to the public. In 2021, Daisy completed a PhD in plant physiology and also holds a Master's in Environmental Science, she is currently based in Nottingham, U.K. Daisy is passionate about all things space, with a penchant for solar activity and space weather. She has a strong interest in astrotourism and loves nothing more than a good northern lights chase!