How it works
Phones carry a magnetometer, a tiny sensor that measures the Earth's magnetic field, along with an accelerometer and gyroscope that tell which way the phone is tilted. The phone combines them into a heading and shares it with the browser. This page displays that heading in degrees and as one of the main compass points.
| Direction | Degrees |
|---|---|
| North (N) | 0° (or 360°) |
| Northeast (NE) | 45° |
| East (E) | 90° |
| Southeast (SE) | 135° |
| South (S) | 180° |
| Southwest (SW) | 225° |
| West (W) | 270° |
| Northwest (NW) | 315° |
iPhone, Android and desktop
- iPhone and iPad: tap the start button and allow motion and orientation access when Safari asks. Without that tap, the browser gives the page no sensor data.
- Android: most phones with Chrome work straight away.
- Desktop and laptop: usually no compass sensor, so no reading.
Magnetic north vs true north
A magnetic compass points to magnetic north, which is not the geographic North Pole. The angle between the two is the magnetic declination, and it depends on where you are. In the contiguous US it is close to zero along a line through the middle of the country and grows to more than 10 degrees in the Pacific Northwest and in New England, in opposite directions. In Alaska it is larger still. It also drifts slowly over the years.
Some phones correct for declination and report a true-north heading when they know your location; others report magnetic north. This page shows the heading your device reports, without further correction. For map and compass navigation, where a few degrees matter, look up the current declination for your area from NOAA and use a proper baseplate compass.
Calibration and interference
If the heading jumps, lags or is clearly wrong, recalibrate: hold the phone and trace a slow figure-eight in the air several times, turning the phone as you go. Then check your surroundings. Steel beams, car bodies, rebar in concrete, magnets in phone cases and mounts, speakers and laptops all bend the local magnetic field. Indoors and in vehicles, readings can be off by tens of degrees. Outdoors, a step or two away from metal usually fixes it.
Hold the phone flat for the best result. Tilting it far from level makes the reading less reliable on many devices.
Related tools
To get the coordinates of where you are standing, use what are my coordinates. To find the bearing from one place to another, use distance between addresses, which gives the initial heading in degrees from true north.