How to Calibrate Your Phone Compass
If your compass is spinning erratically or pointing in the wrong direction, it needs calibration. Here's exactly how to do it on both iPhone and Android.
Why Calibration Is Necessary
Your phone's magnetometer is sensitive to magnetic fields from its own internal components — the speaker magnets, battery, and other electronics. These create a constant magnetic offset called hard iron distortion. Calibration lets the sensor firmware measure and cancel this internal interference, leaving only Earth's magnetic field to compute direction from.
Calibration can drift over time, especially if you've been near strong magnetic fields or changed environments dramatically (moved from indoors to outdoors, traveled internationally, etc.).
The Figure-8 Method (Works on All Phones)
This is the universal calibration method. It works because moving through a complete figure-8 exposes all three axes of the magnetometer to the full range of magnetic field directions, giving the firmware enough data to solve for the offset correction.
-
Hold your phone comfortably — face up or face forward, either way works. Move away from metal furniture and electronics.
-
Slowly trace a figure-8 in the air with your phone. Make the loops large — roughly 30–40cm diameter each. Don't rush.
-
Complete 3–5 full figure-8 cycles. Some phones complete calibration faster; you'll often see the compass stabilize mid-way through.
-
Verify the reading. Point your phone toward a known direction (the sun rises in the East, sets in the West — easy daytime cross-check) and confirm the compass matches.
iPhone-Specific Calibration
iOS has a built-in calibration prompt in the Compass app — a ball-rolling animation where you tilt the phone to roll a ball around a ring. This effectively exposes all axes, similar to the figure-8 method. To force this:
- Open the native Compass app (pre-installed)
- If calibration is needed, the rolling ball screen appears automatically
- Alternatively, go to Settings → Privacy → Motion & Fitness and toggle Compass access off and on — this sometimes resets the calibration state
Ensure Settings → Compass → Use True North is configured as you prefer. True North requires Location Services to apply the local declination correction.
Android-Specific Calibration
Android doesn't have a single universal calibration screen — it varies by manufacturer:
- Samsung: Open the native Compass widget, tap the calibration icon (if visible), and follow on-screen instructions
- Google Pixel: The figure-8 method is the standard approach
- Most Android: Open Google Maps, tap the compass icon, and Maps will prompt calibration if needed with a figure-8 animation guide
When Calibration Doesn't Help
If the compass remains inaccurate after multiple calibration attempts:
- Remove your phone case, especially if it has a magnetic latch, kickstand magnet, or card pocket with RFID shielding. These are a very common cause of persistent compass errors.
- Move to a different location. You may be near an underground metal structure, electrical conduit, or a device with a strong magnetic field.
- Check for software issues. Restart the phone and try again.
- Consider hardware damage. Dropping a phone or exposing it to a powerful magnet can permanently damage the magnetometer. If calibration never works, this may be the cause — some third-party repair shops can replace the sensor.