Vane

Home › Guides

Why Your iPhone Compass Is Wrong, and How to Fix It

A phone compass is a tiny magnetic field sensor. Most wrong readings come from a magnet or a lump of steel nearby, or from confusing magnetic north with true north. Both are easy to fix once you know.

Updated 1 October 2026

Quick fixes, in order

  1. Take the phone out of any case or wallet with magnets in it, and off any magnetic mount.
  2. Step away from metal: cars, railings, steel desks, laptops and speakers. A metre or two is usually enough.
  3. Calibrate: move the phone slowly through a figure of eight, turning it to face every direction, for ten or fifteen seconds. On iPhone, also check that Settings › Privacy & Security › Location Services › System Services › Compass Calibration is on.
  4. Check which north you are using. On iPhone: Settings › Apps › Compass › Use True North. Turn it on for map work.
  5. Make sure location is allowed for the compass app. True north needs your position to look up the local declination.

How a phone compass works

Inside the phone is a magnetometer, a chip that measures the strength and direction of the magnetic field along three axes. The Earth's field is weak, about 25 to 65 microtesla depending on where you are. A fridge magnet is hundreds of times stronger at close range. The phone combines the magnetometer with its accelerometer, to know which way is down, and its gyroscope, to smooth out movement, and works out which way it is pointing relative to the field.

Anything that adds its own field confuses it. Some things, like a magnet fixed in a case, move with the phone. The phone can learn and subtract those, which is what calibration does. Others, like the steel body of a car or a building, bend the Earth's field itself, and no calibration fixes that. You have to move away from them.

Magnetic north vs true north

The magnetic field does not point exactly at the North Pole. The angle between magnetic north and true north is the magnetic declination (or variation). It depends on where you are and drifts slowly from year to year as the Earth's core changes.

A 10° error matters. Over 1 km it puts you about 175 m off your line. Paper maps use true north (grid north, strictly, which is close to it), so for map and compass work, set your phone to true north or add the declination yourself. Official values come from the World Magnetic Model, updated every five years. The current version, WMM2025, runs to the end of 2029. NOAA's calculator gives the value for any place.

Compass heading vs direction of travel

Map apps often show a direction even when the phone is lying flat in a moving car. Once you are moving, many use the GPS course, the direction you are travelling as measured from the satellite positions, instead of the magnetometer, because inside a car the magnetometer is unreliable. Course only exists while you move, though. Standing still, it is meaningless and the app falls back to the magnetic heading. That is why the arrow sometimes swings when you stop.

When to distrust any phone compass

For navigation that matters, such as on a boat, in the hills or in the air, carry a proper magnetic compass, and use the phone to cross-check it.

Sources

Read next