EN ID

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.

NESW

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.

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

  1. Press Find Qibla Direction.
  2. Allow location and motion access.
  3. Hold the phone flat and turn slowly.
  4. When the Kaaba mark meets the pointer at the top, you are facing the Qibla. The phone can vibrate or beep at that moment.

Share