Qibla Direction Finder
Qibla direction is the compass bearing you face toward the Kaaba in Mecca (21.4225° N, 39.8262° E) during Salah. This tool reads your device's GPS location, calculates the exact bearing using the great-circle formula — the same spherical trigonometry used in aviation and maritime navigation — and points a live compass toward it.
Tap below to find your Qibla direction. Your location is used only on this device — nothing is sent anywhere.
How this works: once you allow location access, your latitude and longitude are used to compute the great-circle initial bearing to the Kaaba's fixed coordinates. If your device supports orientation sensors, the compass rose above rotates live so the gold arrow always points toward Mecca — turn your phone flat and rotate until the arrow points straight up. On devices without a compass sensor, use the bearing in degrees shown above against any compass app or physical compass.
How is Qibla direction calculated?
This tool uses the great-circle initial bearing formula, the standard method for finding the shortest path between two points on a sphere — the same maths used by pilots and ship navigators. Given your coordinates and the Kaaba's fixed coordinates (21.4225° N, 39.8262° E), it computes the compass bearing you'd need to walk in a straight line, over the curve of the Earth, to reach Mecca. This is more accurate than simply pointing at Mecca on a flat map.
Why does the Qibla direction look different from a flat map?
Flat world maps distort direction because the Earth is a sphere, not a plane. The great-circle bearing — the true shortest path across the curved surface — often points noticeably north or south of the straight line you'd draw on a flat map, especially the further you are from Mecca. This is why, for example, Qibla from much of North America points markedly northeast rather than due east.
How accurate is this Qibla finder?
The bearing calculation itself is precise to a fraction of a degree, limited only by the accuracy of your device's GPS (typically within a few metres) and, for the live compass view, your phone's magnetometer. Phone compasses can be thrown off by nearby metal, magnets, or electronics — if the live arrow seems unreliable, use the numeric bearing in degrees instead and align it with a separate compass app or a physical compass.
What if my phone doesn't have a compass sensor?
Not every device exposes orientation data — this is common on desktop browsers and some Android devices. When that happens, this tool still shows your exact Qibla bearing in degrees and its cardinal direction (for example, 118° ESE), which works with any separate compass.
Kaaba coordinates (21.4225° N, 39.8262° E) and the great-circle bearing method are the standard reference used across Islamic geodesy tools. This calculation runs entirely in your browser — your location is never transmitted to Mosirham Ltd or any third party.