Skip to content

How to Find the Qibla Direction From Anywhere

In this guide
  1. What "direction of the Kaaba" means on a round Earth
  2. Method 1. A qibla compass on your phone
  3. Method 2. A map-based tool
  4. Method 3. The sun's shadow on the days it passes over the Kaaba
  5. Method 4. Ask locally
  6. When the methods disagree

Short answer

The qibla is the direction of the Kaaba in Makkah. The easiest way to find it is a qibla compass on your phone that works out the shortest route over the globe (the great-circle direction), which according to Wikipedia is what the majority of Muslims follow. A compass reads magnetic north, so it needs the local declination to give true north. Twice a year you can also check the direction with the sun, at the moments when it is directly over Makkah.

What "direction of the Kaaba" means on a round Earth

The Earth is a sphere, so the direction of Makkah from where you stand is the direction of the shortest path over the globe. That shortest path is called a great circle. Wikipedia's article on the qibla explains that spherical trigonometry gives this direction, and that the majority of Muslims follow the great-circle method.

This can look odd on a flat world map. The same article gives examples: from Alaska the great-circle qibla is almost due north. In parts of North America a flat map shows Makkah to the southeast, while the great-circle direction is northeast. In Japan the flat map shows southwest, while the great circle shows northwest. The flat-map line, called a rhumb line, is used by a minority. So if a qibla app points somewhere that surprises you, the map in your head may be the thing that is off.

Method 1. A qibla compass on your phone

Most people now use a phone. A qibla app generally does three things:

  1. Gets your location, from GPS or a city you pick.
  2. Calculates the great-circle direction from there to the Kaaba.
  3. Uses the phone's compass to turn that direction into an arrow on the screen.

The weak point is step 3. A phone compass senses the Earth's magnetic field, and magnetic north is not the same as true north. NOAA calls the angle between them magnetic declination and notes that it changes over time and with location, and that a declination value is needed to get true north from a compass. A bearing calculated from your location and the Kaaba is measured from true north, so a compass reading that ignores declination can be off by that angle.

To get a reliable reading:

  • Calibrate the compass. Google's Maps help pages suggest moving the phone in a figure-8 motion when the compass direction looks wrong or wide.
  • Hold the phone flat and keep it still for a moment while the arrow settles.
  • Move away from metal and electronics. Steel tables, car bodies, speakers and magnetic phone cases can pull a compass off.
  • Check location accuracy. A wrong city gives a wrong angle, especially if you are far from where the app thinks you are.

Miqat: Prayer Times & Qibla

Calculates the five daily prayer times on the phone, with alerts, a Qibla compass and the Qur'an.

Get it on Google Play

Free with a small banner ad on the Zakat, Monthly timetable, More and Settings screens only. One optional one-time purchase unlocks the memorisation companion and also removes the banner. There is no subscription.

Miqat has a Qibla compass that shows the distance to Makkah. It is calculated on your phone, so it works offline.

Method 2. A map-based tool

If your phone compass is unreliable, you can use a map that draws the direction from your location to the Kaaba, and line yourself up with a feature on the map, such as a road or building edge, rather than trusting a compass needle. This avoids magnetic interference. Check that the tool draws the great-circle line rather than a straight line on a flat map.

Method 3. The sun's shadow on the days it passes over the Kaaba

This is the oldest check and needs no device beyond a clock. Wikipedia explains that because of Makkah's location (21 degrees 25 minutes north), the sun passes directly overhead there twice a year. It gives these moments:

  • 27 or 28 May, at about 12:18 Saudi time (09:18 UTC)
  • 15 or 16 July, at about 12:27 Saudi time (09:27 UTC)

At that moment the sun is in the direction of the Kaaba, so an upright object in sunlight casts a shadow that points directly away from it: stand a stick vertically, wait for the time, and the qibla is along the shadow, towards the stick. Wikipedia notes that observations within five minutes of these moments, or at the same time of day two days before or after each event, are still accurate.

Where it is night at those moments, you can use the opposite event, when the sun passes directly beneath the Kaaba. Wikipedia gives these as 14 January at 00:30 Saudi time (21:30 UTC the day before) and 29 November at 00:09 Saudi time (21:09 UTC the day before). Because the sun is then on the opposite side of the Earth from the Kaaba, the shadow points towards it, so the qibla is in the direction of the shadow, away from the stick.

Convert the UTC time to your own local time, and make sure the stick is truly upright. A plumb line or a weight on a string helps.

Method 4. Ask locally

If there is a mosque nearby, ask there. When you are new to an area, the local mosque is often the quickest and most trusted answer.

When the methods disagree

If two apps point in very different directions, one may be using a flat-map line and the other the great circle, as in the Wikipedia examples above. For any question about how precise the direction needs to be, ask your imam or a scholar you trust.

Once you know the direction, it helps to have accurate times too. See prayer time calculation methods and Hanafi vs Shafi'i Asr.

Sources

  1. Qibla - Wikipedia
  2. Magnetic declination - NOAA National Centers for Environmental Information
  3. Find and improve your location's accuracy in Google Maps (Android) - Google Maps Help

Search the site