Blog

What causes abrupt compass heading jumps?

Learn why a phone compass suddenly jumps, how to tell a normal north crossing from magnetic interference, and what to check next.

Jason TurnerHardware tests 5 min read

Your phone’s compass may show one direction, then suddenly swing by several degrees even though you have not moved. That can make a map, navigation app, or compass reading seem unreliable.

Use the Sensors Test on the device showing the problem. Comparing readings while the phone is still and while you move it can help separate nearby magnetic interference from a sensor, permission, or browser issue.

Check the compass heading

  1. Open the Sensors Test on the phone or tablet whose compass you want to check. A desktop computer usually has no compass sensor, so testing on a different device will not diagnose the phone.
  2. If your browser asks to access motion or orientation data, allow it for the test. If the compass is missing, the browser or device may not provide the sensor to web pages.
  3. Place the device flat on a nonmetallic surface and leave it still for about 10 seconds. Watch whether the heading settles or continues to jump.
  4. Without changing the device’s position, move nearby objects such as a speaker, laptop, keys, or magnetic phone holder farther away. Watch for a change in the reading.
  5. Pick up the device and turn it slowly through a full circle. Note whether the heading changes smoothly, jumps at one angle, or returns to its earlier reading when you put the device back.

Repeat the check in another room, away from appliances and metal furniture. A compass reading is more useful when you compare the same device under different conditions than when you compare two different phones side by side.

What the result means

The heading changes from 359 degrees to 0 degrees

This is usually normal. Compass headings wrap around at north, so a reading of 359 degrees followed by 1 degree is a two-degree change, not a 358-degree spin. Look at the direction of travel and the size of the change, rather than treating the numbers as a straight line.

The reading jumps near a speaker, laptop, or metal object

A nearby magnetic field is the likely cause. Speakers, magnets in cases or mounts, some appliances, and metal structures can distort the field the phone uses to estimate direction. If the heading becomes steady after you move away, the phone may be working normally.

The reading changes as you tilt the phone

Compass direction is calculated from sensor readings that can be affected by the phone’s angle. If the device is tilted or turned while the compass is trying to settle, the heading can move unexpectedly. A phone may also combine magnetometer readings with its motion sensors, and the estimate can adjust as those readings change.

The heading keeps jumping while the phone is still and away from objects

This could be a browser or sensor-reading problem, or a fault in the phone. Check that the browser has access to motion or orientation data, then repeat the test in another browser if one is available. If the same instability appears in the phone’s built-in compass app, it is less likely to be specific to the web page.

The heading is steady but differs from a map

A steady difference does not necessarily mean the compass is broken. A compass may report magnetic north, while a map or navigation app may display a direction adjusted toward true north. Nearby magnetic interference can also cause a stable offset. A sudden, repeated jump is more concerning than a consistent difference.

How to reduce sudden heading changes

  1. Move away from magnetic objects. Remove the phone from a magnetic mount or case, and move it away from speakers, laptops, metal shelving, and power equipment. Test again in an open area.
  2. Keep the phone still and level. Place it on a stable, nonmetallic surface while checking whether the reading settles. Then rotate it slowly, rather than making quick turns that can confuse the estimate.
  3. Check browser access. If the test shows no compass reading, use the browser’s site permissions to allow motion or orientation access if that option is available. In Chrome on Android, check Chrome › Settings › Site settings › Motion sensors, if shown. On iPhone, check Settings › Safari › Motion & Orientation Access, if available, and review any prompt for the site.
  4. Compare with another browser or compass app. If the heading is stable in another app but not in the browser, the problem may be a browser restriction or compatibility issue. If the reading jumps in both, continue with device-level checks.
  5. Use the phone maker’s calibration method. Some phones offer a compass calibration prompt or instructions to move the phone in a figure-eight pattern. Follow the instructions for your model if provided. Calibration is not available on every device, and repeated waving will not fix magnetic interference nearby.
  6. Restart and update the phone. A restart can clear a temporary sensor or browser problem. Install available system and browser updates, then test again in the same location.

On Windows 11 or macOS, there is no general setting that can add a compass to a computer without a compass sensor. Browser site permissions can affect access where supported, but a desktop browser may simply have no heading data to report.

When the compass sensor may be faulty

Suspect a device problem if the built-in compass and more than one browser show large, repeated jumps while the phone is stationary in a clear area, with magnetic accessories removed. Restarting and using the manufacturer’s calibration instructions are reasonable checks, but a browser test cannot diagnose a damaged sensor or repair it.

If the problem began after a drop, liquid exposure, or repair, contact the manufacturer or a qualified repair shop. If the phone is under warranty, ask about service before paying for a repair. A stable heading that only changes near a magnetic case or mount points to the accessory or location, not necessarily a broken phone.

Why nearby objects can affect a compass

Phones use a magnetometer, a sensor that detects the direction and strength of magnetic fields. The phone’s software combines that information with other sensors to estimate its orientation. A strong nearby field can pull the estimate away from Earth’s magnetic field, and moving or rotating the phone can change how that interference affects the result.

For a useful comparison, keep the phone in the same position and change one thing at a time: remove the case, move a speaker, or change rooms. A large shift that follows one object is a better clue than a single reading taken in an unfamiliar place.