Qibla Direction Finder

NESW
Qibla bearing
--°

Point the arrow at the Kaaba

How to use the compass

  1. Press Use my location and allow access, or choose your city from the list.
  2. On a phone, press Enable compass and hold the phone flat and level.
  3. Turn until the Kaaba symbol lines up with the marker at the top. The ring lights up and your phone vibrates when you face the Qibla.
  4. On a computer there is no compass sensor. Use the angle shown with a physical compass or a map.

For the best accuracy

  • Keep the phone flat and away from magnets, metal and electronics.
  • Move the phone in a figure of eight to calibrate the compass.
  • Phone compasses show magnetic north, which can differ a few degrees from true north. For an exact result when it matters, ask a local mosque.

Qibla questions

How do I find the Qibla direction?

Use the finder above: allow your location or choose a city, then turn until the Kaaba symbol lines up with the marker. The angle shown is measured clockwise from true north.

Is the Qibla the shortest path to Mecca?

In the usual method, yes: the Qibla is the shortest great-circle path from your location to the Kaaba, which is what this tool calculates. A few scholars hold other views, so follow your local mosque if it differs.

Why does my compass point a few degrees differently?

Phone compasses use magnetic north. The difference from true north (magnetic declination) depends on where you are, and metal or magnets nearby can also affect the reading.

Does it work without internet?

The calculation happens in your browser, so once the page has loaded it works without a connection. The angle is worked out in your browser. To show the name of your place, the page may send your coordinates to a public place-name service (BigDataCloud); we do not store them.

Is my location stored?

We do not store it. The angle is worked out in your browser, and the page may send your coordinates to a public place-name service (BigDataCloud) to show your city name.

Why does the Qibla not point straight east or west?

The Qibla is the shortest path over the curved Earth (a great circle) to the Kaaba, and on a flat map this path looks curved. From Southeast Asia it points north-west, from North America north-east and from Europe south-east.

Is the phone compass reliable inside a building?

Metal, magnets, speakers and electronics bend a compass. Move away from them, hold the phone flat and calibrate it by moving it in a figure-eight. If the needle keeps jumping, use the degrees shown on this page with a trusted compass.

What if I cannot know the direction, for example on a plane?

Pray towards your best judgment of the Qibla after making a sincere effort to find it. Most scholars say that if you did your best and later learn that you were a little off, your prayer is valid.

Does the Qibla direction change during the year?

No. The direction is fixed for each place. Small differences between apps come from the coordinates and method used; this page gives the bearing from true north.

How can I find the Qibla with the sun?

Twice a year, around 27–28 May and 15–16 July, the sun is directly above the Kaaba at about midday in Mecca (roughly 09:18 and 09:27 UTC). At that moment the shadow of an upright object points directly away from the Qibla.

Frequently asked questions