Find your Qibla bearing to the Kaaba in Makkah, in degrees clockwise from true north, and your distance from Makkah.
The bearing is the great-circle (shortest-path) bearing from your coordinates to the Kaaba (21.4225° N, 39.8262° E), calculated with standard spherical trigonometry. The distance is the great-circle distance in kilometres. This method was checked against known Qibla angles: Karachi 267.7°, Lahore 260.4°, London 119.0°, New York 58.5°, Jakarta 295.2°.
The Qibla is the direction Muslims face when praying, towards the Kaaba in Makkah, Saudi Arabia (21.4225° N, 39.8262° E). This calculator gives that direction as a bearing in degrees clockwise from true north, using the great-circle route — the shortest path over the Earth's surface.
Phone compasses point to magnetic north, while Qibla bearings are measured from true north. The difference, called magnetic declination, varies by location — it is small in Pakistan and the UK, but over 10° in parts of North America. That is why this page gives you the true-north bearing to use with a true-north reference, rather than relying on a phone compass alone.
Find true north first — with a compass app that shows true north, the sun at noon, or a known landmark — then turn the given number of degrees clockwise from north. For example, a bearing of 268° means almost due west, slightly south of west.
Yes, for almost all scholars and prayer timetables, the Qibla is the great-circle (shortest) direction to Makkah. A flat-map straight line can look very different, especially from the Americas, and is not used.
The calculator also shows the great-circle distance in kilometres, calculated from your coordinates to the Kaaba. It is the shortest surface distance, not a flight distance.