Alif

Alif › Qibla

QIBLA

Finding the Qibla

The Qibla is the direction of the Kaaba in Makkah. On a round Earth, it is the direction of the shortest path to the Kaaba, measured as an angle clockwise from true north.

How the angle is calculated

Take three points on the globe: where you stand, the Kaaba and the North Pole. They form a spherical triangle; the angle at your position, between north and the Kaaba, is the Qibla angle. Diyanet describes it the same way.

Formula (φ latitude, λ longitude, k = Kaaba)

q = atan2( sin(λk − λ), cos φ · tan φk − sin φ · cos(λk − λ) )

Kaaba coordinates used by Alif: 21.4225° N, 39.8262° E.

Qibla from major cities

CityQibla (from true north)Distance to Makkah
İstanbul151.6° SSE2,405 km
Ankara160.2° SSE2,162 km
İzmir143.7° SE2,246 km
London119.0° ESE4,794 km
Berlin136.7° SE4,130 km
Paris119.2° ESE4,496 km
Amsterdam125.6° SE4,553 km
Oslo139.0° SE4,851 km
New York58.5° ENE10,306 km
Toronto54.6° NE10,496 km
Los Angeles23.9° NNE13,424 km
Cairo136.1° SE1,287 km
Dubai258.2° WSW1,631 km
Karachi267.7° W2,800 km
Kuala Lumpur292.5° WNW6,974 km
Jakarta295.2° WNW7,920 km
Sydney277.5° W13,236 km

Calculated with the formula above. Bearings are from true north; a magnetic compass points to magnetic north, which can differ by a few degrees depending on where you are.

The sun over the Kaaba

Twice a year the sun stands almost directly above the Kaaba: around 28 May at 12:18 and 16 July at 12:27, Türkiye time (09:18 and 09:27 UTC). Where the sun is up at that moment, a shadow of anything standing straight points away from the Qibla, so facing the sun means facing the Qibla.

Reading a compass well

In Alif the compass taps gently when you face the Qibla.

Sources

Coming soon to the App Store