Qibla direction

Qibla direction from your location

Calculate the direction of the Kaaba in Makkah from wherever you are, or use the live Qibla compass in the Masjid Nearby app.

Get Masjid Nearby on Google PlayDownload Masjid Nearby on the App Store

How the Qibla is worked out

The Qibla is the direction of the Kaaba in Makkah (21.4225° N, 39.8262° E). Because the Earth is round, the shortest path to the Kaaba follows a great circle, so the correct direction is the starting bearing of that path, measured clockwise from true north. That is what the calculator on this page shows.

This is why the Qibla from North America points north-east rather than south-east, even though Makkah is further south on a flat map.

Using the Qibla compass in the app

  • Open Masjid Nearby and go to the Qibla compass.
  • Hold your phone flat, away from metal objects and magnets.
  • Turn until the pointer lines up with the Qibla, then pray facing that way.

Find your Qibla direction now

Uses your location in this browser only. Nothing is stored or sent anywhere.

Frequently asked questions

Which way is the Qibla?

Towards the Kaaba in Makkah. The exact bearing depends on where you are; use the calculator above or the Qibla compass in the app.

Why does my phone compass look slightly off?

Phone compasses read magnetic north and can be disturbed by nearby metal or electronics. Calibrate by moving the phone in a figure-eight and keep it flat.

Do I need internet for the Qibla compass?

The compass in the app uses your phone's location and sensors to show the direction.