Online Compass — Live Heading from Your Phone’s Sensors
Which way is north? Hold your phone flat, tap Start compass and follow the red N.
Which way is north? How the online compass works
Open this page on a phone, tap “Start compass” and hold your device flat and level, screen up. Keep away from magnets and metal objects such as steel tables, car doors and laptop lids. The red N on the dial points to magnetic north, and the large number is your heading: the direction the top of the phone faces, in degrees clockwise from north. Below it you get the cardinal direction as a 16-point name, such as N, NNE or WSW.
The reading comes from the device’s sensors: a magnetometer measures Earth’s magnetic field and the accelerometer tells the page which way is down, so the heading stays right when you tilt the phone a little. Modern browsers expose this through the standard Device Orientation interface; no map, GPS or account is involved.
Set a target heading to walk a bearing: the dial shows how far left or right you need to turn.
| Point | Heading | Point | Heading |
|---|---|---|---|
| N | 0° | S | 180° |
| NNE | 22.5° | SSW | 202.5° |
| NE | 45° | SW | 225° |
| ENE | 67.5° | WSW | 247.5° |
| E | 90° | W | 270° |
| ESE | 112.5° | WNW | 292.5° |
| SE | 135° | NW | 315° |
| SSE | 157.5° | NNW | 337.5° |
Magnetic north vs true north
A compass points to the magnetic pole, not the North Pole on a map. The angle between the two is called declination, and in the United States it ranges from roughly 15° east in the Pacific Northwest to about 14° west in New England. It also creeps by a fraction of a degree every year, which is why NOAA publishes a new World Magnetic Model every five years; the current one, WMM2025, covers 2025 to 2029.
Enter your local declination in the Declination field to switch the readout to true north. East declination is positive: in Seattle, about 15° E, a magnetic heading of 90° is a true heading of about 105°. Look up your exact value with NOAA’s free calculator, linked below.
- Seattle: about 15° E
- Denver: about 7.5° E
- Chicago: about 3° W
- New York City: about 13° W
- Boston: about 14° W
Why the compass reads wrong indoors or near metal
Your phone senses Earth’s magnetic field with a tiny magnetometer, and that field is weak. A steel desk, a radiator, rebar in a concrete floor, a car body, speaker magnets, a magnetic phone mount or a wallet case with a clasp can pull the reading off by tens of degrees. Moving just 1–2 ft away from the source often fixes it.
If headings look stuck or jump when you turn, recalibrate the sensor: wave the phone slowly in a figure-eight a few times. Then check against a known direction, such as a street that runs due north on a map. Any steady offset you find can go in the Deviation field.
Enable compass access on iPhone and Android
Most laptops and desktop computers have no magnetometer, so no website can show a live compass on them; the page switches to a simulator instead. Use a phone or tablet for real headings. The online compass works the same way on iPhones and Android phones in modern browsers.
On an iPhone, Safari asks for Motion & Orientation access after you tap “Start compass”; tap Allow. On Android, Chrome reads the phone’s absolute orientation sensor directly, usually without a prompt.
Compass permission and internet connection
- Compass doesn’t move on iPhone: you tapped Don’t Allow. Close the tab, reopen the page and tap “Start compass” again; if Safari no longer asks, clear website data for this site in Settings → Apps → Safari → Advanced → Website Data.
- Compass reads the same number whatever you do: the phone has no magnetometer (some budget tablets) or the page opened inside an app’s built-in browser. Open it in Safari or Chrome.
- Do you need to enable location services? No. The compass needs motion access only. Location is useful just once, to look up your local magnetic declination in NOAA’s calculator before you switch the reading to true north.
- Internet connection: needed only to load the page. After that the compass keeps working offline, because it reads the magnetic field, not a network.
No signal? Find north the old way
Pointing at a faraway place, such as the Qibla direction toward Mecca, uses the great-circle bearing, which can look surprising on a flat map. From New York City it is about 58° true, northeast rather than east-southeast. Enter the true bearing as your target and set your declination so the compass uses true north.
- Polaris, the North Star, sits less than 1° from true north. Find the Big Dipper and follow the two stars at the end of its bowl.
- At solar noon, the sun is due south everywhere in the continental US.
- The sun rises exactly east and sets exactly west only around the March and September equinoxes; in summer it rises north of east, in winter south of east.