Online compass
Hold your phone flat: the top edge points the way shown, to magnetic north or, with your location, true north.
Calibrate the compass: move the phone through a slow figure-8 in the air three or four times, turning it as you go, away from metal and magnets. The reading settles when the sensor has seen every direction.
- Magnetic
- –
- True
- needs your location
- Declination
- –
No location yet, so the heading is magnetic. Your position is used on this device only and never sent.
Level: waiting for the sensor.
How to use the compass
- Open this page on your phone. On iPhone, tap Start compass and allow motion access; on Android it starts by itself.
- Hold the phone flat in front of you, screen up, top edge pointing away from you. Keep the level dot in the centre ring: a tilted phone reads less reliably.
- Turn yourself until the number shows the direction you want. 0° N means the top of the phone points north.
- For true north (the north on maps), tap Use my location, or type a latitude and longitude and tap Set. The page adds the declination for that spot.
- To keep a direction, face it and tap Lock this bearing. The page then says how many degrees to turn left or right to get back on it.
Magnetic north, true north and the declination
A compass needle lines up with the Earth's magnetic field, which does not point at the North Pole. The angle between the two is the declination: east when magnetic north lies east of true north, west when it lies west. It depends on where you stand and it drifts every year, so a map's printed value goes out of date. This page computes it on your device from the World Magnetic Model 2025, the model NOAA and the British Geological Survey publish for 2025 to 2030, using its 12th-degree coefficients exactly as NOAA ships them. We checked our implementation against all 112 rows of NOAA's published WMM2025 test values: every declination agrees to 0.01°.
Worked example: in New York the declination in late 2026 is about 12.5° W. Face what the phone calls magnetic north (0°) and your true heading is 0 − 12.5 = 347.5°, so true north is 12.5° to your right. In Sydney (about 12.8° E) the same reading is 12.8° true; in London (about 1.2° E) the two norths are almost the same. Over a kilometre of walking, a 12.5° error puts you about 220 m to the side.
What it cannot do
- Magnets, phone cases, cars and steel throw it off. A magnetic clasp or a case with a magnet, a car body, a steel desk, rebar in a floor or a speaker can swing the reading by tens of degrees. Step away from them and recalibrate with a figure-8.
- A few degrees is the best a phone does. Phone magnetometers are small and drift; even after calibrating, expect a few degrees of error, more when the phone is tilted or the sensor reports poor accuracy.
- Not for navigation where safety depends on it. For hiking off trail, boating or flying, use a real compass and a map, and treat this page as a check.
- It needs a phone or tablet with a compass sensor that the browser shares. Laptops and desktops have none: the page says so and draws no needle. Some browsers report only relative turning, with no north, and the page says that too.
- True north is only as right as the location you give and the model: the World Magnetic Model describes the Earth's main field, not local rocks, buildings or magnetic storms. Near the magnetic poles (far northern Canada, Antarctica) a compass is unreliable; NOAA marks those areas as blackout zones. The model is valid from 2025.0 to 2030.0.
- On Android the heading is corrected when the screen rotates; on iPhone hold the phone upright in portrait.
Privacy
Nothing leaves your device. The sensor readings and your position stay in this page: the declination is computed here, the location is only asked for when you tap the button, and nothing is saved. The page sends an anonymous page-view count and one of two fixed words, compass-open and compass-true, never a heading or a coordinate.
Questions
How do I find north with my phone?
Open this page on the phone, hold it flat in front of you with the top pointing away, and turn your body until the reading shows 0° N. The top of the phone then points north. On iPhone, tap Start compass and allow motion access first. Tap Use my location (or type a latitude and longitude) to point at true north instead of magnetic north.
Is this a live compass?
Yes. The heading updates every time the phone's sensor reports, many times a second, and the page averages the last few readings so the number does not flicker. The average is taken around the circle, so it does not swing through south when you face north and the reading crosses from 359° to 0°.
Which direction am I facing?
The big number is the direction the top edge of the phone points, in degrees clockwise from north, with its name: 0° N, 45° NE, 90° E, 180° S, 270° W and the 16 points between. Hold the phone flat and upright in portrait. Tap Lock this bearing to keep a direction; the page then tells you how many degrees to turn left or right to get back on it.
What is the difference between true north and magnetic north?
True north is the direction of the North Pole, the north on maps. Magnetic north is where a compass needle points, and the angle between the two, the declination, depends on where you are and changes every year. In New York it is about 12.5° W in late 2026, in London about 1.2° E and in Sydney about 12.8° E. This page works it out for your position with NOAA's World Magnetic Model 2025 and adds it to the magnetic heading.
Why does it say this device has no compass sensor?
Laptops and desktop computers have no magnetometer, and some phones or browsers do not share it with web pages. If no orientation reading arrives within 2 seconds the page says so and draws no needle rather than a made-up one. On a phone, try Chrome on Android or Safari on iPhone, and on iPhone tap Start compass and allow motion access.