User Guides · 2026-09-21 · 6 min read · Daniel Carter

How to Calibrate a Digital Compass: Figure-8 Motion to Fix Heading Errors

Summary: Why does your phone compass suddenly spin erratically or drift by dozens of degrees? Uncover the physics behind hard iron and soft iron magnetic saturation, and follow step-by-step instructions for the 3D infinity figure-8 calibration gesture.

Illustration of 3D Figure-8 calibration motion to recalibrate smartphone compass sensors
Figure-8 Calibration: Three-dimensional wave motion enabling algorithms to map Earth’s magnetic field and cancel residual magnetic offset

1. Why does a smartphone digital compass suddenly drift?

You open your compass app only to find the needle spinning unpredictably or pointing East when you know you are facing North. Do not assume your hardware is defective!

MEMS magnetometer sensors detect tiny magnetic fields (25 to 65 microteslas). In daily life, placing your phone next to Bluetooth speakers, high-wattage fast chargers, or magnetic handbag latches causes internal metallic components to acquire residual magnetic charges. In metrology, this is known as Hard Iron and Soft Iron distortion.

2. What is Figure-8 calibration? Why wave an infinity shape in 3D space?

Many believe simply spinning the phone flat on a table suffices. That is a misconception! Magnetic sensors measure along all three spatial axes: X (horizontal), Y (vertical), and Z (depth perpendicular to screen).

Waving the phone in a flowing figure-8 (infinity ∞ symbol) forces the device to rotate across all spatial angles. Built-in Kalman filtering and sphere-fitting algorithms collect boundary extremes, compute the true magnetic sphere center, and cancel out residual distortion vectors.

3. Step-by-step compass calibration instructions

In our app, calibration is guided with clear visual cues:

  • Step 1: Tap "More" on the bottom navigation bar and select "Figure-8 Calibration" (or the calibration icon on the top bar).
  • Step 2: An interactive dialog displays a 3D animated guide.
  • Step 3: Hold the phone securely in one hand in an open area.
  • Step 4: Wave your wrist to draw a large, gentle figure-8 motion in the air, tilting the screen through fluid wave-like motions 3 to 5 times (lasting 8 to 10 seconds).
  • Step 5: The progress bar reaches 100% and turns vibrant green, confirming "Sensor Ready".

4. Critical magnetic interference hazards to avoid

To maintain precision after calibration, avoid these common culprits:

  • Phone cases with magnetic kickstands or car-mount metal plates.
  • Metal smartwatches or magnetic Milanese watch bands worn on the measurement wrist.
  • Resting the phone directly on laptop keyboards (which house numerous magnetic coils).
  • Standing adjacent to steel columns, elevator shafts, or thick reinforced concrete rebar.

5. Toggling acoustic feedback to assist fieldwork

In the Tools menu, toggle "Sound: On / Off". When enabled, crossing cardinal directions (North 0°, East 90°, South 180°, West 270°) or reaching locked bearings triggers a clean 880Hz mechanical acoustic click, providing real-time feedback without looking at the screen.

Pro Tip: Perform a quick Figure-8 recalibration whenever moving to a new geographic location or immediately after fast charging.

Hands-on Practice

Activate guided Figure-8 calibration to clear magnetic bias and restore peak precision.

Open Online Compass & Calibrate →

Recommended Companion Tools