Earth’s magnetic field. Origin, structure and compass
The online simulations of the Earth’s magnetic field on this page will help us to better understand how this important element of the Earth is created and how it works. We will discover the origin and structure of the Earth’s magnetic field and its most important characteristics, as well as its important application for navigation on Earth thanks to the magnetic compass
This Thematic Unit is part of our Earth Sciences collection

STEM OnLine mini dictionary
Aurora
Luminous phenomenon in the atmosphere caused by the interaction of solar particles with the magnetic field.
Earth’s Magnetic Field
Magnetic field surrounding the Earth, originated by the movement of liquid metals in its core, acting as a protective shield.
Geodynamo
Physical mechanism explaining how the movement of liquid iron in the core generates the magnetic field.
Magnetic Declination
Angle between true north and the north indicated by a compass.
Magnetic Pole
Point on the Earth’s surface where the magnetic field lines are vertical.
Magnetic Reversal
Event in which the Earth’s magnetic north and south poles swap positions.
Magnetosphere
Region around the Earth dominated by its magnetic field that deflects solar wind.
Solar Wind
Stream of charged particles released from the upper atmosphere of the Sun.
Van Allen Belts
Zones of the magnetosphere where high-energy charged particles trapped by the magnetic field are concentrated.
What is the Earth’s magnetic field
The Earth’s magnetic field is a gigantic magnetic field that surrounds the Earth. It is a fundamental feature of our planet that plays a crucial role in protecting life and guiding navigation. This magnetic field, also known as the magnetosphere, is generated by the Earth’s outer core, composed mostly of liquid iron and nickel.
Origin of the Earth’s magnetic field
The origin of the Earth’s magnetic field is believed to be the convection of molten material in the Earth’s outer core. The difference in rotation between the solid inner core and the liquid outer core, together with heat transfer within the core, creates electric currents that in turn cause the magnetic field.
Structure of the Earth’s magnetic field. Magnetic poles
The origin of the Earth’s magnetic field is what gives rise to its structure. The structure of the terrestrial magnetic field is complex, although it can be simplified by assimilating it to a magnetic dipole, i.e., it has a magnetic north pole and a magnetic south pole. However, the axis of the magnetic dipole does not coincide exactly with the Earth’s axis of rotation, resulting in an inclination of the magnetic field relative to the equatorial plane. This means that the magnetic compass does not point exactly to geographic north, but is deflected depending on location.
Reversal of the Earth’s magnetic field
The phenomenon of the reversal of the Earth’s magnetic field is a natural and fascinating process that has occurred multiple times in the history of our planet. During a reversal, the north and south magnetic poles exchange their positions, which can take thousands of years to complete. Given the origin of the Earth’s magnetic field, this change is due to alterations in the electrical currents of the Earth’s outer core, which generate the magnetic field. Although these events are infrequent, their study remains crucial to better understand the Earth’s internal dynamics and their impact on the planetary environment.
Earth’s magnetosphere
The Earth’s magnetosphere is a region surrounding our planet, formed by the Earth’s magnetic field. The Earth’s magnetosphere extends from the core to outer space, protecting our planet from the charged particles of the solar wind. These particles, mainly electrons and protons, are emitted by the Sun and are electrically charged. When they interact with the Earth’s magnetic field, they are deflected and channeled around the Earth in the form of Van Allen radiation currents, creating a kind of protective shield. The particles, when deflected towards the polar regions, produce the northern and southern auroras, creating an impressive natural spectacle.
Magnetic compass
In addition to its protective function, the Earth’s magnetic field has a significant impact on navigation. A magnetic compass uses the magnetic field for orientation, which has been fundamental to maritime navigation throughout history. A magnetic compass consists of a magnetized needle that always points to magnetic north, a rotating base, and a transparent cover that protects the instrument.
In summary, the online simulations of the Earth’s magnetic field on this page show interactively how the magnetic field acts and how the compass takes advantage of it to point north. Don’t miss them!

STEM OnLine mini dictionary
Aurora
Luminous phenomenon in the atmosphere caused by the interaction of solar particles with the magnetic field.
Earth’s Magnetic Field
Magnetic field surrounding the Earth, originated by the movement of liquid metals in its core, acting as a protective shield.
Geodynamo
Physical mechanism explaining how the movement of liquid iron in the core generates the magnetic field.
Magnetic Declination
Angle between true north and the north indicated by a compass.
Magnetic Pole
Point on the Earth’s surface where the magnetic field lines are vertical.
Magnetic Reversal
Event in which the Earth’s magnetic north and south poles swap positions.
Magnetosphere
Region around the Earth dominated by its magnetic field that deflects solar wind.
Solar Wind
Stream of charged particles released from the upper atmosphere of the Sun.
Van Allen Belts
Zones of the magnetosphere where high-energy charged particles trapped by the magnetic field are concentrated.
Explore the exciting STEM world with our free, online, simulations and accompanying companion courses! With them you’ll be able to experience and learn hands-on. Take this opportunity to immerse yourself in virtual experiences while advancing your education – awaken your scientific curiosity and discover all that the STEM world has to offer!
Simulations of the Earth's magnetic field
Magnetic compass
Ever wonder how a compass works to pinpoint the Arctic? Explore the interactions between a compass and a bar magnet, then add the earth and find the surprising answer! Vary the strength of the magnet, and see how things change both inside and out. Use the field meter to measure the changes in the magnetic field.
Magnetic field of a bar I
The structure of the Earth’s magnetic field can be modeled using a bar magnet. The space where the magnetic force of the magnet acts is called the magnetic field. This simulation of the magnetic field shows what the magnetic field around a magnetized bar looks like. The direction of the magnetic field is determined in the direction indicated by the N pole of the magnetic needle placed at that point.
Giants of science
“If I have seen further, it is by standing on the shoulders of giants”
Isaac Newton
Galileo Galilei
–
Johannes Kepler
–
Become a giant
The Radio Sky II: Observational Radio Astronomy
The Radio Sky I: Science and Observations
Our Place in the Universe
Introduction to Deep Earth Science
Sensing Planet Earth – Water and Ice
Sensing Planet Earth – From Core to Outer Space
The History of Ancient Environments, Climate, and Life
Professional development for Educators
Teach Teens Computing: Understanding AI for Educators
Assessment Design with AI
HP AI Teacher Academy
Introduction to Data Wise: A Collaborative Process to Improve Learning & Teaching
Giants of science
“If I have seen further, it is by standing on the shoulders of giants”
Isaac Newton
Tycho Brahe
–
Johannes Kepler
–
Become a giant
The Radio Sky II: Observational Radio Astronomy
The Radio Sky I: Science and Observations
Our Place in the Universe
Our Global Ocean – An Introduction Course
Sensing Planet Earth – From Core to Outer Space
The History of Ancient Environments, Climate, and Life
Sensing Planet Earth – Water and Ice
Professional development for Educators
Teach Teens Computing: Understanding AI for Educators
Teaching with Physical Computing: Soft skills, teamwork and the wider curriculum
Teaching with Physical Computing: Practical application and classroom strategies for PBL
Teach kids computing: Programming
Test your knowledge
What is Earth’s magnetic field, and how is it generated inside the planet?
How is Earth’s magnetic field structured, and what phenomena arise from its dynamic behavior?
Why doesn’t a compass point exactly to the geographic North Pole?
What is the magnetosphere, and why is it important?
What does it mean when scientists say Earth’s magnetic field can reverse?
You may also be interested
Last simulations
To learn and experience
Take your knowledge to the next level with science kits and hands-on tools that connect theory with experimentation
Electromagnetic kit

Teachers essentials
Notion
Organize your notes, tasks, and projects in one place. Notion combines notes, lists, and calendars in one flexible space.
Canva
Design presentations, diagrams, and infographics with easy-to-use templates and professional results
Genially
Create interactive content, presentations, and educational games in a simple and visual way
Desmos
The most intuitive graphing calculator to explore mathematics and create dynamic classroom activities
Tinkercad
Design in 3D and simulate electronic circuits for free; it’s the perfect tool for simple robotics projects
Your Infinite Library
Enjoy the freedom to explore millions of titles and a curated selection of magazines on any device
Join Prime for students and young adults
The best series. Millions of songs. All included with your subscription.
Science made fun
Learn with the best courses
edX
Online courses from leading universities and companies. Learn practical skills and earn professional certifications
Coursera
Courses from leading universities and companies. Learn practical skills and earn professional certifications
Udemy
Thousands of online courses tailored to your level. Learn at your own pace with expert instructors

