Qibla Direction Finder
Find the exact Qibla direction from any location. Visual compass with bearing, distance to the Kaaba, GPS detection, and device compass support. Free. No sign-up.
Set Your Location
What is the Qibla?
The Qibla is the direction that Muslims face during their daily prayers (Salah). It points towards the Kaaba, located in the Sacred Mosque (Masjid al-Haram) in Makkah, Saudi Arabia, at coordinates 21.4225ยฐN, 39.8262ยฐE.
How is the Qibla direction calculated?
This tool uses the great circle bearing formula, which calculates the initial bearing of the shortest path between two points on a sphere. The formula accounts for the curvature of the Earth, giving the most accurate direction. The bearing is measured clockwise from true North (0ยฐ).
Great Circle vs Rhumb Line
A great circle is the shortest distance between two points on a sphere and is the method used by this tool. A rhumb line (loxodrome) maintains a constant compass bearing and appears as a straight line on a Mercator projection, but is actually a longer path. For Qibla direction, the great circle method is the standard approach used by Islamic scholars and most Qibla applications worldwide.
Device Compass
On supported mobile devices, this tool can use the built-in compass (magnetometer) to rotate the compass rose in real time, so the Qibla arrow physically points in the correct direction. For best results, hold your device flat and away from magnetic interference. Calibrate by moving your phone in a figure-8 pattern.
How it works
- 1Set your location
Tap โUse my current locationโ for GPS detection, search for your city from 120+ worldwide cities, or enter latitude and longitude manually.
- 2View the Qibla bearing
See the exact bearing in degrees from North, the compass direction (e.g. ESE), and the distance to the Kaaba in both kilometres and miles.
- 3Use the compass
On mobile devices with a magnetometer, the compass rose rotates in real time so the Qibla arrow physically points towards Makkah.
Understanding the Qibla Direction
The Qibla is the direction that Muslims around the world face during their five daily prayers (Salah). It points towards the Kaaba, the cube-shaped structure in the centre of the Sacred Mosque (Masjid al-Haram) in Makkah, Saudi Arabia. Knowing the precise Qibla direction from your location is an essential part of Islamic practice, and this tool makes it easy to find it from anywhere on Earth.
This Qibla finder uses the great circle bearing formula to calculate the initial bearing of the shortest path between your location and the Kaaba (21.4225ยฐN, 39.8262ยฐE). The formula accounts for the curvature of the Earth, which is why the Qibla direction from North America, for example, points northeast rather than east. On a flat map (Mercator projection), this path would appear curved, but on a globe it is the shortest and most direct route.
The tool supports three methods of location input: GPS detection using your device's Geolocation API, a searchable database of over 120 major cities worldwide, and manual latitude/longitude entry for maximum precision. On mobile devices with a built-in magnetometer (compass sensor), the visual compass rose rotates in real time to match your device orientation, so the Qibla arrow physically points in the correct direction.
In addition to the bearing, the tool shows the distance to the Kaaba in both kilometres and miles using the Haversine formula. A simplified world map visualisation draws a line from your location to Makkah, giving a geographic context for the direction. All calculations run entirely in your browser with no data sent to any server.
Get GEO & AEO tips every week
The Layman SEO newsletter. Plain English updates on what is changing in search - SEO, AEO, and GEO - and what to do about it. One email a week. Unsubscribe any time.
No spam. No paywall content. Unsubscribe with one click.