1. Great-circle bearing
The Qibla isn’t a straight line on a flat map — it’s the shortest path along the surface of the Earth. We use the standard initial-bearing formula from your latitude/longitude to the Kaaba’s coordinates (21.4225° N, 39.8262° E).
2. True north, not magnetic
The bearing we display is measured from true north. If you’re using a physical compass, you’ll need to correct for local magnetic declination — but the live compass on this page uses your device’s built-in heading, which already accounts for that on iOS.
3. Using the live compass
Hold your phone flat, then tap Live compass. Allow motion access when your browser asks. Slowly rotate until the gold needle points to the top of the dial — that’s the direction of Makkah from where you’re standing.
4. Calibration tip
Phone compasses drift around metal or electronics. If the needle feels jittery, wave the device in a figure-8 motion a few times — this re-calibrates the magnetometer. Step away from laptops, speakers, or cars to get a cleaner reading.