Online compass
A compass in the phone's browser for the UK: magnetic or true north, a bearing to follow, and the declination and grid magnetic angle for OS maps.
This online compass reads the phone's magnetometer, so its north is magnetic north. A switch turns that into true north by adding the magnetic declination from the World Magnetic Model 2025. In London on 1 January 2026, magnetic north lay 1.1° east of true north. The same model gives the grid magnetic angle for Ordnance Survey maps.
On a phone or tablet the browser asks once for the motion sensors. The readings stay in your browser.
Heading · Magnetic north
–
The sensor measures magnetic north, the way a compass needle points.
Calibrate the compass
Hold the phone away from magnets, metal and other devices, then move it a few times in a figure of eight, tilting and turning it as you go.
- Built and source-checked by Muhammad Abdullah Awais
- Last checked
- 13 sources
- Methodology
A compass that runs in the browser of a phone or tablet, set up for the United Kingdom. It shows the heading in degrees and compass points, switches between magnetic and true north, and keeps a bearing in view. On any device it also gives the magnetic declination and the grid magnetic angle of Ordnance Survey (OS) maps for any UK place and date to 31 December 2029.
Which way is north from here?
North is where the N on the compass rose points once the compass is running, and the large figure says how far the phone is turned from it. A magnetometer in the phone measures the direction of the Earth's magnetic field. An accelerometer and a gyroscope track how the phone is tilted and turned. The phone combines the three into one orientation, which the page turns into a heading from 0 to 359 degrees, counted clockwise.
The heading is the direction the phone points. Lying flat, that is the way the top edge faces. Held upright like a camera, it is the way the back of the phone faces, and any angle in between works, in portrait or landscape. The rose turns with the phone, while a fixed red mark at the top shows where it is aimed.
Next to the figure the reading names one of 16 compass points, each covering 22.5° of the circle. The four cardinal points are north, east, south and west, at 0°, 90°, 180° and 270°. Halfway between them sit north-east, south-east, south-west and north-west, and the eight points in the gaps take three letters. A heading of 200° reads as SSW, south-south-west.
Starting it on an iPhone, an Android phone or a computer
Nothing has to be installed: this is a compass without app, account or download, and one tap on Start the compass sets it going. Asked "where is the compass on my phone?", the answer here is the browser itself. On an iPhone or iPad, Safari then asks once for access to motion and orientation, and that request has to come from the tap.
Safari reports a magnetic compass heading of its own, along with an accuracy figure that the page shows. Chrome and Firefox on Android hand the page the phone's orientation referenced to the Earth directly. The W3C DeviceOrientation Event Specification calls that kind of reading absolute, and makes it available only to pages served over a secure HTTPS connection.
Most laptops and desktop computers have no magnetometer. When no reading arrives within 1.5 s of the start, the page says so and offers the Declination view instead, which works on any computer. A refused permission gets a notice of its own.
While the compass runs, the page asks the browser to keep the screen awake through the Screen Wake Lock, where that is offered. The display then does not dim halfway through a reading, and Stop ends the reading and lets the screen sleep again.
True north, magnetic north and grid north
Ordnance Survey's guide "A tale of three norths" separates the three directions a walker meets. True north runs along a meridian to the geographic North Pole. Magnetic north is where a compass needle settles, pulled by the planet's field. Grid north is, in the guide's words, "the north to which the grid lines on your map points".
Magnetic declination is the angle from the first of these to the second, measured east or west. The OS guide writes it as "Magnetic Variation (Declination)", so magnetic variation is the same angle under another name. Some hillwalking books use magnetic variation for the angle from grid north instead. That is a different figure, and many mix-ups between map and compass begin there.
Where the declination is zero the needle points along the meridian, and the line joining such places is the agonic line. The British Geological Survey (BGS) reported that compasses at Greenwich pointed to true north in September 2019, for the first time since around 1660. It put the agonic line's drift at around 20 km a year westwards, and expected every compass in the UK to point east of it by 2040.
The North reference switch chooses which north the dial reads from. The magnetic setting shows what the sensor measures. The true setting adds the declination of the place picked in the Declination view, London until another is chosen. The date is that view's too, today unless it is changed, and a line under the switch names the place, the date and the angle in use.
Magnetic declination across the UK
On 1 January 2026 the declination at the 12 listed places ran from 1.4° west at Belfast to 1.5° east at Norwich. Every one of them drifts eastwards each year, by between 0.17° and 0.21°.
| Place | Declination | Change per year |
|---|---|---|
| London | 1.1° E | 0.17° E |
| Birmingham | 0.4° E | 0.18° E |
| Manchester | 0.2° E | 0.19° E |
| Newcastle upon Tyne | 0.2° E | 0.19° E |
| Bristol | 0.3° E | 0.18° E |
| Plymouth | 0.2° W | 0.18° E |
| Norwich | 1.5° E | 0.17° E |
| Cardiff | 0.1° E | 0.18° E |
| Edinburgh | 0.5° W | 0.20° E |
| Glasgow | 0.9° W | 0.20° E |
| Inverness | 1.1° W | 0.21° E |
| Belfast | 1.4° W | 0.20° E |
Magnetic north lies within 2° of true north anywhere in the United Kingdom. On 1 January 2026 the World Magnetic Model 2025 (WMM2025) put the needle 1.1° east of the meridian in London, 1.5° east in Norwich and 1.4° west in Belfast. Scotland, Northern Ireland and the far south-west of England sat on the western side. Most of England and Wales, from Newcastle upon Tyne down to London and Cardiff, sat on the eastern side.
Everywhere the angle grows eastwards by about 0.17° to 0.21° a year, so western places move towards zero and eastern ones away from it. A bearing therefore needs the local figure for its date, not one national number. The compass adds that figure to the magnetic heading when the true setting is chosen. The declination panel gives it for any UK place and any day up to 31 December 2029.
The agonic line is crossing Britain meanwhile. The model puts Manchester through zero in January 2025, Cardiff in September 2025, Plymouth in December 2026 and Edinburgh in May 2028. On 1 January 2026, Plymouth, Edinburgh, Glasgow, Inverness and Belfast still lay on the western side.
WMM2025 is produced by NOAA's National Centers for Environmental Information (NCEI) with the BGS. NOAA released it on 17 December 2024 and gives 31 December 2029 as its last valid day, after which WMM2030 takes over. It describes the main field with 168 coefficients up to degree 12, and every figure the panel shows is worked out from them in the browser.
NCEI's error model gives the uncertainty of the declination, one standard deviation, in degrees. It is the square root of 0.26 squared plus (5,417 ÷ H) squared, where H is the horizontal field in nanotesla. In London H is 19.5 µT, which gives ±0.38°. The model leaves out magnetised rock in the crust, and NCEI notes that local, regional and temporal anomalies can exceed 10°.
The declination panel also gives the inclination, or dip, of the field below the horizontal (66.5° in London) and its total strength (49.1 µT). The checked cases compare its results with the BGS WMM2025 calculator for London and Belfast, and with one of NOAA's published test values.
Grid magnetic angle on OS maps
OS calls the angle between grid north and magnetic north its Grid Magnetic Angle (GMA). It is the figure that links a direction taken from an OS map to a compass. On 1 January 2026 the model had the needle 0.39° west of grid north in London and 0.97° east of it in Cardiff.
OS prints the angle on its paper maps. Landranger maps show it as a diagram in the middle of the north margin and again in the legend, while Explorer maps give the detail in the legend. The printed figure, OS adds, is correct only at the time of printing. The magnetic data on its maps come from the BGS.
The OS memory aid, "from grid to mag add, from mag to grid get rid", was written for a needle pointing west of the grid lines. London still had that case on 1 January 2026: 90° measured on the map becomes 90.4° on the compass. OS also notes that magnetic north has moved east of grid north for the first time since the 1660s, starting in the south-west.
Where the needle lies east of the grid lines, the arithmetic reverses: the GMA comes off going from map to compass and goes back on the other way. At Cardiff, 90° read off the map turns into 89.0° on the compass. Under Map and compass bearings, the declination panel says which way round applies at the chosen place and date. It then turns a map bearing into the compass setting and the true bearing.
The BGS Grid Magnetic Angle Calculator, which runs the survey's own regional model of the UK, gives the angles below for July 2026. This page's results for the same month come from the global model and differ from them by less than 7′.
| Place | BGS calculator | This page |
|---|---|---|
| London | 0° 15′ W | 0° 18′ W |
| Cardiff | 1° 08′ E | 1° 04′ E |
| Edinburgh | 0° 42′ E | 0° 37′ E |
| Inverness | 0° 59′ E | 0° 53′ E |
Great Britain's maps use the National Grid. The OS coordinate guide defines it as a Transverse Mercator projection on the Airy 1830 ellipsoid, with its true origin at 49° N, 2° W. Grid lines and meridians run parallel only along that central meridian. East of it, as in London, grid north lies 1.47° east of the meridian.
Northern Ireland's maps use the Irish Grid, with its origin at 53° 30′ N, 8° W, and the declination panel switches to it for Belfast. There the needle lay 3.05° west of the Irish Grid's north on 1 January 2026, so a map reading of 90° needs 93.0° on the compass.
Following a bearing and holding a reading
A bearing is a direction in degrees clockwise from north, and the Bearing to follow box keeps one in view. Typing a figure from 0 to 359, or tapping Use current heading, fixes it and marks it on the rose. The page then says "Turn right" or "Turn left" with the degrees still to go, and "On course" once the phone points less than 3° away from it.
The bearing is read against whichever north the switch shows. With the magnetic setting it matches a baseplate compass; with the true setting it is a true bearing, measured from the meridian. In London on 1 January 2026 a magnetic 90° was a true 91°. A bearing taken off an OS map is a grid bearing, and the converter in the declination panel turns it into either of the others.
Hold reading freezes the figure on screen until Release is tapped, so a direction can still be read after the phone is lowered or turned away. The Needle setting decides how quickly the dial follows the sensor. Quick reacts at once but trembles more, Calm smooths the movement but lags behind a fast turn, and Balanced sits between them.
Every setting goes into the page address: view, place or typed coordinates, a changed date, height, map grid, north reference, bearing and needle. A copied link therefore reopens the same view on another phone. A position found with My position is never written into it, and nothing is stored in the browser.
Which way does my garden face?
A garden faces the direction someone looks when standing at the back of the house and facing down the garden, and the phone's heading gives it directly. The phone can lie flat with its top edge pointing away from the house, or stand upright with its back to the garden. Either way it shows that direction in degrees and as a compass point.
A south-facing garden reads S at headings close to 180°, with SSE and SSW either side, while a north-facing one reads close to 0°. In the northern hemisphere the Sun stands due south at local noon. A south-facing garden therefore looks towards the midday Sun, while a north-facing one has the house between it and the Sun.
For a garden aspect the choice of north hardly matters. Across the UK the needle and the meridian differed by at most 1.5° on 1 January 2026, far less than the 22.5° one compass point covers. Steel in walls, radiators and kitchen appliances can disturb a magnetometer, so a reading out on the lawn, away from the back wall, is less exposed to it.
The aspect also decides how a boundary hedge shades the ground: a tall hedge on the south side of a garden throws its shadow across it. The high hedge checker uses the direction in which a hedge lies from a garden to work out the height at which it starts to take a neighbour's light.
Calibration, interference and how far to trust it
A phone compass drifts when its magnetometer has lost its calibration or when something magnetic is close by. Google's Maps help for Android describes calibration as moving the phone in a figure of eight until the beam on the map narrows. Apple's iPhone guide asks for the phone to be held flat with the crosshairs lined up, and says magnetic or environmental interference can affect accuracy.
The Calibrate the compass panel on the page sums both up: away from magnets, metal and other devices, then a few figures of eight. On an iPhone the page also shows the accuracy Safari reports, in degrees, and suggests calibrating when that figure goes above 20°. Android browsers give pages no accuracy figure, so there a calibration and a check against a known direction are the only tests.
Nothing here makes the sensor more exact than it is. The north switch adds the model's declination, uncertain by about 0.38° in London, but it cannot correct an error in the magnetometer itself. Measuring tools on a phone share that limit: the online ruler needs a card or a coin to set its scale before its centimetres are real.
Apple describes the iPhone's digital compass as help for basic navigation only. Scottish Mountain Rescue's safety advice is to carry a map and compass and know how to use them. It adds that smartphones and GPS "should not be relied on solely". A phone reading is a convenience in a street or a garden, not a replacement for those on the hill.
Frequently asked questions
How do I calibrate a phone's compass?
On Android, Google's Maps help describes moving the phone in a figure of eight until the beam on the map narrows. The Calibrate the compass panel on this page describes the same movement for any phone, made away from magnets, metal and other devices. On an iPhone the accuracy line then shows whether the figure Safari reports has come down.
Why is my phone compass wrong?
Three causes are common: a magnetometer that needs calibrating, something magnetic nearby, and a phone held on its edge, which gives no heading at all. Magnets in cases and car mounts, laptops and steel in desks or walls all disturb the sensor. A mismatch with a map app can also come from the two using different norths, since the phone's sensor measures magnetic north.
Should I use true north or magnetic north?
That depends on what the reading is compared with. A baseplate compass gives magnetic bearings, an OS map grid bearings, and a true bearing is measured from the meridian. In the UK the needle and the meridian were at most 1.5° apart on 1 January 2026. The gap counts most when a bearing is followed over a long distance.
Does an online compass work on a laptop?
Only the Declination view, in most cases. Reading a heading needs a magnetometer, which most laptops and desktop computers lack, so the compass reports that no reading arrived. The declination, the map grid angles and the map to compass converter run on any computer, phone or tablet.
Can it run without an internet connection?
The page has to load once. After that, the compass readings and the WMM2025 sums run on the device, so a dropped signal does not stop a reading that is already going. Reloading the page needs a connection again, and so may My position, depending on how the device finds its position.
What happens to my position?
It stays on the device. My position asks the browser for the position only when it is tapped, rounds it to 0.01°, about a kilometre, and uses it for the declination. The page never sends it to a server or writes it into the link, and stores nothing in the browser; finding it may use the device's own location service.
How accurate is the declination figure?
By NOAA NCEI's error model, WMM2025 is uncertain by about 0.38° in London, one standard deviation. That covers the global field, not local magnetic rock or buildings, which can shift a needle much further. Near the magnetic poles the panel warns of a caution zone, where the horizontal field falls below 6,000 nT, and a blackout zone below 2,000 nT. In the checked cases the figures match the BGS calculator.
Why does the magnetic declination change every year?
The Earth's magnetic field comes from moving molten iron in the outer core, and it shifts slowly. In the UK that annual change is between 0.17° and 0.21° eastwards. NOAA follows the north dip pole as it wanders. By WMM2025 it stood at 85.8° N, 139.3° E at the start of 2025, and reaches 84.7° N, 126.1° E by the start of 2030.
Checked against known answers
Each case below has an answer fixed by its source or worked by hand from it. The tool computes it on every build, and a page that stops matching is not published.
London, 1 January 2026, sea level (BGS WMM2025 calculator)
- Expected
- 1.08°
- This tool
- 1.08°
Official figure: World Magnetic Model 2025 Calculator(opens in a new tab)Open this case
Belfast, 1 January 2026, sea level (BGS WMM2025 calculator)
- Expected
- -1.36°
- This tool
- -1.36°
Official figure: World Magnetic Model 2025 Calculator(opens in a new tab)Open this case
80° N, 0° E, 1 January 2025, sea level (NOAA test value)
- Expected
- 1.28°
- This tool
- 1.28°
Official figure: Test Values for WMM2025(opens in a new tab)Open this case
Sources
The figures and rules on this page were checked against these publications on .
- The World Magnetic Model (WMM)(opens in a new tab)
NOAA National Centers for Environmental Information
- WMM Accuracy, Limitations, and Error Model(opens in a new tab)
NOAA National Centers for Environmental Information
- World Magnetic Model 2025 Calculator(opens in a new tab)
British Geological Survey
- Test Values for WMM2025(opens in a new tab)
NOAA National Centers for Environmental Information
- Wandering of the Geomagnetic Poles(opens in a new tab)
NOAA National Centers for Environmental Information
- Grid Magnetic Angle Calculator(opens in a new tab)
British Geological Survey
- A tale of three norths(opens in a new tab)
Ordnance Survey
- Mountain safety advice(opens in a new tab)
Scottish Mountain Rescue
Related tools
- Classroom noise meterA noise light for lessons: green, amber or red against a limit set for each activity, in estimated dB(A), with calibration and a teacher's daily exposure.
- Cost of buying a house calculatorStamp Duty Land Tax, LBTT or LTT, the Land Registry fee and your own quotes, added up for a home in England, Scotland, Wales or Northern Ireland.
- High hedge calculatorWork out the action hedge height a UK council starts from on a hedge complaint, and check the rules on overhanging branches, TPOs and conservation areas.
- Online rulerAn actual size ruler for any screen: calibrate once with a bank card, a UK coin or the screen size, then measure in cm, mm and inches, or print one.
- VAT on energy-saving materialsVAT on solar panels, heat pumps, batteries and insulation fitted in a UK home: 0% until 31 March 2027, 5% after, plus the Boiler Upgrade Scheme.