Matter & Energy · Depth 3 · Introductory · 6 min read

Magnetism

Why magnets attract and repel, why every magnet has two poles, and how Earth's own magnetic field guides a compass.

On this page
  1. Two poles, always together
  2. The magnetic field
  3. Why some materials are magnetic
  4. Electricity makes magnetism
  5. Earth, a giant magnet
  6. Going further
  7. Real-life examples
  8. Evidence & sources

Two poles, always together

A magnet has two ends, its north and south poles. Two matching poles shove each other away, while a north and a south pole draw together.[1]

The poles cannot be split up. Chop a magnet into ever smaller bits and every bit still carries a north and a south pole.[1] Electric charge is different: a positive or a negative charge can exist by itself, yet nobody has ever found a single magnetic pole on its own in nature.[1]

The magnetic field

A magnetic field is the region around a magnet where another magnet, or something made of magnetic material, feels a force without being touched.[2] We picture it with field lines, which leave the north pole and loop round to enter the south pole.[4]

Field lines follow a few simple rules. They never cross one another.[1] Where they crowd together the field is strong, and where they spread apart it is weak.[1] That is why a magnet pulls hardest near its poles, where the lines bunch up.[4] The pull fades as you move further from the magnet, and it passes straight through non-magnetic things such as air and water.[4]

Why some materials are magnetic

Magnetism starts inside atoms, where moving electrons, which carry negative charge, produce tiny magnetic fields.[1] Each electron also spins, and this spin gives it a small but important field of its own, so an electron behaves like a minute magnet.[5] A permanent magnet’s field adds together the spins of electrons and nuclei and the orbits of the electrons.[6]

In most materials these little fields point every which way and cancel, so the object as a whole is not magnetic.[6, 2] In a ferromagnetic material, by contrast, the electrons’ fields line up.[5] Groups of atoms form regions called domains, and inside each domain the atoms’ magnetism points the same way.[5] Line up the domains themselves and the material becomes a new permanent magnet.[5, 2]

Only four elements are ferromagnetic at room temperature and can be magnetised for good: iron, nickel, cobalt and gadolinium. Such magnets can keep their magnetism for a very long time, in some cases millions of years.[5] Other materials react more weakly. Paramagnetic ones, such as aluminium and platinum, become magnetised while a field acts on them but lose it once the field is taken away.[1] Diamagnetic ones, such as copper and bismuth, take on the opposite polarity, so a magnet gently pushes them away.[1]

Everyday iron objects like paper clips, staples and scissors can be magnetised, but they don’t keep the field.[7] One way to magnetise a ferromagnetic object is to stroke it with a magnet, always in the same direction.[2] A permanent magnet can lose its field if it is heated to a temperature called the Curie point, or if it is struck hard.[7]

Electricity makes magnetism

In 1820, while preparing a lecture, the scientist Hans Christian Ørsted brought a compass near a wire carrying current and saw the needle jump.[8] He went on to show that current flowing in a wire produces a magnetic field, proving that electricity and magnetism are linked.[8]

An electromagnet uses exactly this effect: its field comes from an electric current, and it vanishes when the current is switched off.[9] Winding the wire into a coil concentrates the field at the coil’s centre.[9] Electromagnets are at the heart of motors, generators, loudspeakers, computers and MRI scanners.[9] The link also runs the other way: Michael Faraday found that moving a magnet inside a coil of wire can generate electricity, which has its own page, electromagnetic induction.[10]

Earth, a giant magnet

In his book De Magnete (1600), the scientist William Gilbert put forward the theory that Earth is a giant magnet.[11] He compared the way a small needle dips as it is carried around a ball of lodestone with the changing dip of compass needles at different places on Earth.[11]

Modern measurements agree. Earth’s field looks much like that of a bar magnet placed at the planet’s centre, with its axis tilted roughly 10° from the axis Earth spins on.[12, 14] More than 90% of the field measured at the surface is generated in the outer core.[12] There, churning molten metal acts as a natural electrical generator, a process called the geodynamo.[14, 16]

The compass and its quirks

A compass is a small magnetised needle that can turn freely.[3] There is a naming twist: since a compass’s north-seeking end is attracted to the magnetic pole in the Arctic, that pole is, in magnet terms, a south pole.[3]

A compass rarely points exactly to true (geographic) north. The angle between the two is called declination.[15, 12] Very close to the poles a compass can even point south.[15] Models such as the World Magnetic Model track the slowly changing main field.[12]

A field that wanders and flips

The magnetic poles drift. The explorer James Clark Ross pinned down the position of the north magnetic pole, in northern Canada, back in 1831.[13] Since then it has moved more than 1,100 km, and its speed has risen from about 16 to about 55 km a year.[16, 13]

Over long spans the whole field reverses. Over the past 83 million years the poles have traded places 183 times. The spacing between flips is very uneven but averages about 300,000 years.[16] The most recent flip happened roughly 750,000 to 780,000 years ago.[12, 16] A reversal unfolds over hundreds to thousands of years, and the field weakens without disappearing.[16] No one can say for certain when the next one will come.[12, 16]

A shield in space

Earth’s field forms a vast magnetic bubble, the magnetosphere, which turns aside most of the material streaming out from the Sun.[17] Planetary magnetic fields help protect a surface from charged particles that would otherwise bring harmful radiation.[18] The shield isn’t perfect: changes in the solar wind can trigger geomagnetic storms that threaten spacecraft and disturb navigation systems and power grids.[16] When solar particles spiral down the field lines near the poles and hit the atmosphere, they can make red or green lights in the sky.[3]

Some animals, including pigeons, bees, monarch butterflies and sea turtles, can sense magnetic fields and use them to find their way.[3]

Going further

  • Build an electromagnet and watch a compass respond in the free PhET simulation listed below.
  • NOAA’s World Magnetic Model tools will give you the compass declination where you live.
  • To see how moving magnets make electricity, continue to electromagnetic induction.

Real-life examples

  • Iron filings show the field

    Sprinkle iron filings on paper over a magnet and tap gently: the filings settle along the field lines, making the invisible field visible.[4, 1]

  • Snap a magnet in two

    Breaking a bar magnet does not separate north from south. Each fragment becomes a smaller magnet with its own pair of poles.[1]

  • The scrapyard crane

    Electromagnets are well known for lifting and carrying heavy magnetic loads such as scrap iron, and they let go when the current stops.[9]

  • Reading a map's compass note

    The margin of a USGS topographic map gives the compass declination at the map's centre for the year the map was produced.[15]

Connected across the map

Learn more

Short descriptions are our own summaries. The resources belong to, and are run by, their publishers.

Evidence & sources

Level 1 · Established

Supported by extensive evidence and broad scientific consensus.

Why this level? The behaviour of magnets, magnetic materials and electromagnets is well-established physics, explained here from the National MagLab and Siyavula. Facts about Earth's field come from NOAA's geomagnetism scientists, the US Geological Survey and NASA pages.

This is a Knowledge Atlas editorial classification of the sources we could find, not a certificate of truth. How we evaluate knowledge

Sources

Based on 18 sources from 5 institutions: Siyavula, National MagLab, NOAA, USGS, NASA.

Show all 18 sourcesHide the list
  1. ReliableSiyavula Education· Science media15.3 Permanent magnets (Grade 10 Physical Sciences)Opened and checked against this page on 2 Oct 2026
  2. ReliableSiyavula Education· Science media15.2 Magnetic fields (Grade 10 Physical Sciences)Opened and checked against this page on 2 Oct 2026
  3. ReliableSiyavula Education· Science media15.4 The compass (Grade 10 Physical Sciences)Opened and checked against this page on 2 Oct 2026
  4. AuthoritativeNational High Magnetic Field Laboratory (National MagLab)· UniversityDrawing Magnetic Field Lines (Magnet Academy)Opened and checked against this page on 2 Oct 2026
  5. AuthoritativeNational High Magnetic Field Laboratory (National MagLab)· UniversityMagnetic Domains (Magnet Academy interactive tutorial)Opened and checked against this page on 2 Oct 2026
  6. AuthoritativeNational High Magnetic Field Laboratory (National MagLab)· UniversityPermanent Magnet (MagLab dictionary)Opened and checked against this page on 2 Oct 2026
  7. AuthoritativeNational High Magnetic Field Laboratory (National MagLab)· UniversityMagnetizing and Unmagnetizing (Magnet Academy lesson)Opened and checked against this page on 2 Oct 2026
  8. AuthoritativeNational High Magnetic Field Laboratory (National MagLab)· UniversityOrsted's Compass (Magnet Academy interactive tutorial)Opened and checked against this page on 2 Oct 2026
  9. AuthoritativeNational High Magnetic Field Laboratory (National MagLab)· UniversityElectromagnets (Magnet Academy lesson)Opened and checked against this page on 2 Oct 2026
  10. AuthoritativeNational High Magnetic Field Laboratory (National MagLab)· UniversityMichael Faraday (Magnet Academy pioneers)Opened and checked against this page on 29 Sept 2026
  11. AuthoritativeNational High Magnetic Field Laboratory (National MagLab)· UniversityWilliam Gilbert (Magnet Academy pioneers)Opened and checked against this page on 29 Sept 2026
  12. AuthoritativeNational Oceanic and Atmospheric Administration· Government agencyGeomagnetism Frequently Asked Questions (NOAA NCEI)Opened and checked against this page on 29 Sept 2026
  13. AuthoritativeNational Oceanic and Atmospheric Administration· Government agencyWandering of the Geomagnetic Poles (NOAA NCEI)Opened and checked against this page on 2 Oct 2026
  14. AuthoritativeU.S. Geological Survey· Government agencyIntroduction to Geomagnetism (USGS Geomagnetism Program)Opened and checked against this page on 2 Oct 2026
  15. AuthoritativeU.S. Geological Survey· Government agencyWhat is declination? (USGS FAQ)Opened and checked against this page on 2 Oct 2026
  16. AuthoritativeNational Aeronautics and Space Administration· Government agencyEarth's Magnetosphere: Protecting Our Planet from Harmful Space Energy (NASA Science)Opened and checked against this page on 2 Oct 2026
  17. AuthoritativeNational Aeronautics and Space Administration· Government agencyEarth's Magnetosphere (NASA Science)Opened and checked against this page on 29 Sept 2026
  18. AuthoritativeNational Aeronautics and Space Administration· Government agencyReversing the Geomagnetic Field (NASA Astrobiology)Opened and checked against this page on 2 Oct 2026