Qibla Direction From Any Location
Press the button to find the Qibla direction from your location. On a phone, keep the device flat with the screen facing up, then slowly turn your body until the Kaaba marker is at the top of the compass. On a computer, click the map to choose your location.
Press the button to find the Qibla direction.
Qibla Direction
—
Your Location
—
Distance to Kaaba
—
Qibla line on the map
Drag the marker or click the map to change your location.
Settings
Vibration is not supported on this device.
Compass Calibration
A phone compass drifts over time. To recalibrate it:
- Hold the phone flat and level.
- Draw a figure 8 in the air several times.
- Slowly tilt and turn the phone around each axis.
Stay away from magnets, metal cases, speakers and other electronics while calibrating.
Permission needed
The Qibla finder needs your location and your device's motion and orientation sensors. Allow both when the browser asks.
Or find your city
No sensors? Open the Qibla page of your city: it shows the Qibla angle, the direction and the map.
iPhone and iPad (Safari)
- Make sure Location Services are enabled and Safari is allowed to access your location.
- In Safari, tap Find Qibla Direction and allow access to motion and orientation sensors when prompted.
- If you previously denied sensor access and the prompt does not appear again, go to Settings > Apps > Safari > Advanced > Website Data. Remove qibla-finder.com, reopen the page, and tap Find Qibla Direction again.
Android (Chrome)
- Tap the lock icon next to the address bar, then Permissions.
- Allow Location and Motion sensors for this site.
- Make sure Location is switched on in your phone's quick settings.
How the Qibla finder works
The Qibla is the direction of the Kaaba in Mecca. This page takes your coordinates, calculates the shortest route to the Kaaba over the globe (a great circle) and shows the starting bearing of that route as an angle from true north.
A phone compass points to magnetic north, which differs from true north by a few degrees depending on where you are. The finder corrects for this difference, so the arrow on the dial matches the real Qibla and not just the magnetic reading. The red line on the map shows the same route.
What you need
A smartphone or tablet with a magnetometer (compass sensor), an up-to-date browser, and an HTTPS connection. Allow access to location and motion/orientation sensors when prompted.
Most desktop computers do not have a compass sensor. You can still view the Qibla angle, magnetic bearing, and distance to the Kaaba: click the map to set your location, then compare the angle with a physical compass.
If it does not work
- Open the page in Chrome or Safari, not inside the built-in browser of a messenger or social app.
- Check the site permissions: location and motion sensors must be allowed.
- On iPhone enable Motion & Orientation Access for Safari, then reload the page.
- Turn on location in your phone's quick settings and wait a few seconds for a fix.
- Move away from magnets, metal tables, car dashboards and speakers, then recalibrate.
How accurate is it?
The Qibla angle is calculated based on the coordinates used. Phone compass accuracy depends on the device sensor, calibration, and surrounding conditions. Metal objects, magnets, and speakers can interfere with compass readings. If the arrow is unstable, recalibrate and compare the result with the Qibla angle and the line on the map. When praying in a mosque, follow the mihrab.
How to use it
- Press Find Qibla Direction.
- Allow location and motion access.
- Hold the phone flat and turn slowly.
- When the Kaaba mark meets the pointer at the top, you are facing the Qibla. The phone can vibrate or beep at that moment.