QuestionMagnetism
How Does a Compass Work? Earth's Magnetic Field and North

A compass works because its needle is a small magnet that turns freely until it lines up with Earth’s magnetic field. The needle’s north-seeking end points toward magnetic north, which is close to, but not the same as, geographic north. The difference between them changes with location and over time.
Contents
The full answer
A compass needle is a thin piece of magnetized metal, often made of iron or a steel alloy, balanced on a pivot or floating on a liquid. Its two ends are magnetic poles, labeled north and south by convention. The north-seeking end is attracted to the magnetic south pole of Earth’s field, which lies in the Northern Hemisphere, so the needle points toward the north.
Earth’s magnetic field is a little like the field of a very large bar magnet placed near the center of the planet, tilted about 11 degrees from the axis of rotation. Near the surface the field strength is typically about 25 to 65 microtesla, which is roughly one-thousandth of the strength of a typical fridge magnet. That is weak, but a magnetized needle is free to turn, so even a weak field is enough to orient it.
Because the needle lies flat, it responds mainly to the horizontal part of the field. At most places the field also points into or out of the ground at an angle, called the dip or inclination. Good compasses are balanced so the needle stays level and turns smoothly.
The direction of the field relative to the map is what a navigator needs. The angle between magnetic north and true north is called magnetic declination, and it is printed on many maps and on the dial of good compasses.
The science behind it
Magnetism comes from the motion of electric charges. In iron and other ferromagnetic materials, the spins of electrons in small regions called domains line up, creating a net magnetic field. A permanent magnet keeps its domains aligned, which is why a magnetized needle stays magnetized.
Earth’s field is generated in the outer core, a layer of liquid iron and nickel alloy about 2,300 km (1,400 mi) below the surface. The motion of this electrically conducting fluid creates electric currents, and those currents create the field. This process is called the geodynamo.
The field is not fixed. The magnetic poles wander, and the north magnetic pole has moved quickly in recent decades, drifting across the Arctic toward Siberia. The magnetic declination at a given place can change by a fraction of a degree each year, so old compass readings and maps become less accurate over time.
An everyday example
When you use a hiking compass, you turn the dial until the orienting arrow sits inside the red-tipped needle, then you turn the whole compass until the needle matches the north arrow. The needle does not “point” because of any force pulling it north in the usual sense. It turns because the magnetic torque from Earth’s field tries to align it, and the pivot lets it move freely.
Sailors, pilots and walkers all use this principle, usually with a correction for magnetic declination taken from a map. A hiker who knows the local declination can add or subtract that angle from a map bearing and walk the correct line on the ground, even on a foggy day when landmarks are hard to see. Many phones have a small electronic compass, called a magnetometer, that measures the field in three directions and calculates the heading. It works the same way in principle as the needle, but it reads the field electronically.
A related question readers ask
People often ask why a compass can be fooled. Anything that makes a stronger magnetic field close to the compass will push the needle off course. Steel parts in a car, a magnetic phone case, a speaker or an electric current in a nearby wire can all change the reading. This is why a compass should be kept away from metal and electronics when you use it.
The history of the compass also explains why it matters. Chinese writers from the 11th century describe magnetized needles used for navigation, and the design spread through the Islamic world and Europe in the following centuries. Before that, sailors used the Sun, the stars and the coastline to find their way. The compass made navigation possible in cloudy weather and on open ocean.
Common misconceptions
Some people think a compass points to the geographic North Pole. It does not. It points toward magnetic north, which is a moving spot several hundred kilometers from the true pole, and the angle between them depends on where you are.
Another misconception is that a compass is pulled by a magnet inside Earth’s crust. The field comes from deep electric currents in the outer core, not from a single buried magnet. A compass also cannot tell you which way is north if it is placed right next to a magnet or a steel object.
A third idea is that the Sun or the Moon pulls the needle. Neither does. The needle responds to Earth’s own magnetic field, which is why a compass is still useful at night and on cloudy days.
Frequently asked questions
Why does a compass point north?
The compass needle is a small magnet, and Earth has a magnetic field that acts like a giant bar magnet. The needle turns until it lines up with that field, which points toward the magnetic north region near the Arctic.
Is magnetic north the same as true north?
No. Magnetic north is where the field lines enter the ground, and it is about 0 to 30 degrees away from geographic (true) north depending on where you are. This angle is called magnetic declination.
Why does the magnetic north pole move?
Earth’s magnetic field is produced by liquid iron alloy moving in the outer core. Its changes make the magnetic north pole drift, and in recent decades it has moved several tens of kilometers per year.
Why does a compass sometimes give the wrong direction?
Steel objects, electrical currents and magnets nearby can create a stronger local field that overpowers Earth’s field. Keep a compass away from cars, metal tools and speakers for an accurate reading.
Who invented the compass?
The magnetic compass was developed in China, where lodestone spoons were used for divination. Written accounts from the 11th century describe magnetized needles used for navigation, and the compass later spread to Europe and the Arab world.
Sources and further reading
- NOAA National Centers for Environmental Information, "World Magnetic Model"
- Encyclopaedia Britannica, "Compass"
Cite this page
“How Does a Compass Work? Earth's Magnetic Field and North.” Atoms & Forces, https://science.bigworldlist.com/questions/how-does-a-compass-work/.
More about Magnetic field
- PhysicsMagnetic Field: Definition, Field Lines and Units (Tesla)
- QuestionAre Neodymium Magnets Dangerous? Safety Facts to Know
- QuestionHow Do Neodymium Magnets Work? Why They Are So Strong
- QuestionHow Do Speakers and Headphones Make Sound? Magnets and Coils
- QuestionHow Does an Induction Cooktop Work? Magnetism in the Kitchen
- QuestionHow Does Wireless Charging Work? Induction Explained Simply
- QuestionIs Bismuth Magnetic? The Most Diamagnetic Metal Explained
- QuestionIs Brass Magnetic? Why Brass Does Not Stick to Magnets
- QuestionIs Cobalt Magnetic? Cobalt, Iron and Nickel Compared