Short answer
By default, the iPhone Compass app reports a heading relative to magnetic north, not true north. Whether it can also show true north, which accounts for magnetic declination, depends on your iOS version and its settings. Check the Compass settings on your phone rather than assuming, and check the reading against a map.
What the phone is measuring
An iPhone has a magnetometer, a small sensor that measures the direction and strength of the magnetic field. Combined with motion sensors, it estimates which way the phone is facing. That raw reading is relative to magnetic north.
Getting true north
True north needs one more piece of information: the local declination. Software that offers a true north option usually gets this from your location, so location access may need to be on. Look in the Compass settings for a true north option. If you can’t find one, your iOS version may not offer it. Apple’s support documentation for your version describes the options that are available.
Why the reading can drift
- Magnets in phone cases, magnetic car mounts, and MagSafe accessories can pull the reading off.
- Metal in a car dashboard, a steel desk, or a metal mount can do the same.
- Electrical devices nearby can add interference.
- If the phone asks you to calibrate, the usual method is to move it in a figure-eight for several seconds.
Check it against a map
The steps in how to check if a compass is accurate work for a phone too. Pick a landmark you can identify on the map, take its bearing from the map, and compare it with the phone. If the phone is showing magnetic north, convert the map bearing to a magnetic bearing first, using the declination for your area.
When to carry a dedicated compass
A phone is convenient for a quick heading, but it has limits. Carry a dedicated compass if:
- the battery is low, or the phone has been dropped
- you cannot keep the phone away from magnets or metal
- you need a reading that doesn’t depend on software settings or a battery