Phone Compass Sensors

Geomagnetic Sensor vs Compass

A magnetic compass and a phone's geomagnetic sensor both read Earth's field, but they work differently. Here's how each finds direction and which to trust.

On this page
  1. What a magnetic compass does
  2. What a geomagnetic sensor does
  3. Key differences
  4. Why the two can disagree
  5. Interference and calibration
  6. Which to trust for navigation
  7. Compass or sensor, for buying and using

A magnetic compass and the sensor inside a phone both respond to Earth’s magnetic field, so they can look like the same tool. They are not. A compass is an instrument that shows you a direction. A geomagnetic sensor is a chip that measures the field, and software turns those measurements into a heading. The difference affects how each one is powered, calibrated and trusted.

What a magnetic compass does

A magnetic compass uses a magnetized needle or card that swings to line up with the horizontal part of Earth’s magnetic field. It needs no power, and there is nothing to calculate: the needle settles and you read the direction against a dial. Many navigation compasses have a liquid-filled housing that damps the needle so it settles faster.

The needle points to magnetic north, not true north, so a bearing taken from a compass needs a correction before it matches a map. A compass also works best held level and well away from metal, because iron, steel and magnets pull the needle off line.

What a geomagnetic sensor does

A geomagnetic sensor is usually a three-axis magnetometer. It is a small chip that measures the strength and direction of the magnetic field along three axes. At the surface, Earth’s field is roughly 25 to 65 microteslas, depending on where you are. The sensor reports numbers, not a direction.

To produce a heading, the phone’s software combines the magnetometer readings with data from the accelerometer, which indicates how the phone is tilted. It then works out the angle in the horizontal plane. That is why a phone can show a heading when it is not held flat, although accuracy drops as the tilt grows.

Because the sensor only gives numbers, its heading depends on calibration and software. Many phones ask you to move the device through a figure-eight pattern to calibrate. This helps the software separate Earth’s field from offsets built into the device.

Key differences

Magnetic compass Geomagnetic sensor in a phone
What it gives you A direction, read from a needle or card Field measurements, which software turns into a heading
Power None Battery
Tilt Best held level Corrected using the accelerometer
Calibration None; if in doubt, check it against a known reference Often needed, especially after the phone has been near metal
Interference Iron, steel and magnets Iron, steel, magnets, phone cases, speakers and electronics

Why the two can disagree

Both instruments can point to magnetic north by default. True north is the direction to the geographic North Pole. Magnetic north is the place where Earth’s field points straight down. The angle between the two directions at any given spot is called declination, and it varies with location and changes slowly over time.

Readers often ask, “Does a compass point to magnetic north?” It does. That is why a bearing taken from a compass and a bearing taken from a map can differ by a few degrees or more, depending on where you are.

Phones add a further question. Readers also ask, “Does the iPhone compass adjust for magnetic declination?” The answer depends on the app and the device settings, so check your own phone rather than assume it corrects for declination. Learning how declination in navigation works lets you correct a reading from either instrument.

Interference and calibration

Both instruments are affected by their surroundings. Iron, steel and magnets near the device can pull a needle off line or bias a sensor. A phone has extra sources of interference, including magnetic cases and mounts, speakers, and nearby electronics. Many of the common compass navigation issues come from these same sources.

Calibration works differently. A magnetic compass is checked against a known reference. A phone’s sensor needs a calibration routine that you run from time to time, usually after the phone has been near metal or a magnet.

Which to trust for navigation

A magnetic compass is the more dependable tool when batteries run flat, when a phone is wet or damaged, or when you are somewhere full of metal and electronics. A phone is quicker to use and can show your position alongside a heading, but its sensor needs calibration and can be thrown off without an obvious warning.

How accurate a compass is depends on the instrument and how it is used, and “Is a compass accurate?” has no single answer. Check any compass against a known bearing before you rely on it. Carry a real magnetic compass as a backup, even if you normally navigate with a phone.

Compass or sensor, for buying and using

If you are weighing e-compass vs compass for a purchase, the trade-off is the one described above: a passive needle with no battery against a battery-powered sensor that depends on software. The electronic version is usually called an e-compass. It is often built into phones and handheld devices, and it is only as good as its calibration and its surroundings.

Keep exploring

Guides from other topics

All topics →

Navigation Angles

Learn how navigation angles work, from degrees and mils to bearings and azimuths, and how they help you find your way across open land and on maps.