Qibla
Qibla direction
Hold the device flat and away from metal or electronics for a more accurate reading.
319°
Bearing from north
- Bearing from north
- 319°
- Distance to the Kaaba
- 5 km
Location
Makkah
Your location is used only to compute prayer times and the Qibla direction. It stays on your device.
Hold the device flat and away from metal or electronics for a more accurate reading.
- Detect your location or pick your city.
- Hold the device flat, away from metal and magnets.
- Follow the green marker toward the Kaaba.
Finding the Qibla accurately, and what to do when the compass drifts
The Qibla is the direction of the Kaaba at 21.4225° N, 39.8262° E. From a distance it is not a straight line on a flat map but a great circle bearing, the true shortest path over the surface of the globe. That is why the direction from North America points north east even though Makkah appears to the south east on a flat map.
Practical ways to set the direction
- Device compass: fastest, needs orientation sensor permission and calibration by tracing a figure of eight.
- The numeric bearing: if no compass is available, use the degrees shown with a physical compass or a map app.
- Sun shadow: twice a year the sun passes directly over the Kaaba (around 27 or 28 May and 15 or 16 July). At that moment the shadow of any upright object points exactly away from the Qibla.
- Local mosque: an established mihrab nearby is an excellent field reference.
Why compasses drift
- Metal objects, magnets and nearby electronics.
- Reinforced concrete buildings and power lines.
- Magnetic declination: the gap between magnetic and true north, which varies by location and is accounted for in accurate calculations.
If you made a reasonable effort and later found a small deviation, your prayer is valid. Away from Makkah the requirement is to face the general direction, not the exact building. Facing an entirely wrong direction despite being able to verify calls for repeating the prayer.
Pair this with prayer times, since time and direction are two linked conditions of a valid prayer.
Frequently asked questions