QIBLA DIRECTION

Face Makkah, from anywhere.

The Qibla is the direction every Muslim faces during Salah — toward the Kaaba inside Masjid al-Haram, Makkah. We compute it from your location using the great-circle bearing formula. On a phone, tap Live compass to point yourself in real time.

  • Great-circle bearing
  • True-north reference
  • Works offline once loaded
Locating you…
HOW IT WORKS

How the Qibla is calculated.

1. Great-circle bearing

The Qibla isn’t a straight line on a flat map — it’s the shortest path along the surface of the Earth. We use the standard initial-bearing formula from your latitude/longitude to the Kaaba’s coordinates (21.4225° N, 39.8262° E).

2. True north, not magnetic

The bearing we display is measured from true north. If you’re using a physical compass, you’ll need to correct for local magnetic declination — but the live compass on this page uses your device’s built-in heading, which already accounts for that on iOS.

3. Using the live compass

Hold your phone flat, then tap Live compass. Allow motion access when your browser asks. Slowly rotate until the gold needle points to the top of the dial — that’s the direction of Makkah from where you’re standing.

4. Calibration tip

Phone compasses drift around metal or electronics. If the needle feels jittery, wave the device in a figure-8 motion a few times — this re-calibrates the magnetometer. Step away from laptops, speakers, or cars to get a cleaner reading.

Looking for the Qibla for a specific city? Open the world directory and pick a city — every city page includes its Qibla bearing.