Skip to main content

Qibla direction

The qibla direction from wherever you are: the bearing from true north and the distance to the Ka'bah, with a live compass on phones that have one. Your location is used in your browser and never sent to a server.

Choose a location to see times

The qibla is a direction from a point, so it cannot be computed before a place is set. Search for your city or let the browser locate you — your coordinates stay in this browser.

Permission is only requested when you tap. To show times straight away, an approximate location is looked up from your network (IP) address by an external service. Your precise coordinates stay in your browser, where the times are calculated — they are only sent to our own server to name the nearest city, and are never stored. Choosing a city by hand skips the network lookup entirely.

What the qibla direction is

The qibla is the direction of the Ka'bah in Makkah, the direction Muslims face in prayer. On a globe the shortest path between two points is a great circle, so the qibla from any place is the initial bearing of the great circle running from that place to the Ka'bah — which is why it is a different bearing from every city, and why a single fixed direction drawn on a map would be wrong almost everywhere.

How the bearing is computed

The bearing is the initial great-circle heading from your coordinates to the Ka'bah, measured clockwise from TRUE north, and the distance is the great-circle distance over a spherical earth. Both are computed in your browser with the same formula the Azkar app uses, so the two answer identically for the same coordinates.

Ka'bah coordinates
21.4225, 39.8262
Earth radius used
6371.0088 km
Bearing reference
True north

A device compass points at MAGNETIC north, which differs from true north by up to about 20 degrees depending on where you are. Where the browser reports a compass heading it is used as given; when precision matters, check the reading against a known landmark or a paper map.

Qibla direction from well-known cities

The bearing from true north and the distance to the Ka'bah for 20 cities — a figure you can check against any map, with a link to each city's own prayer timetable.

Qibla bearing and distance to the Ka'bah by city
CityBearing from true northDistance to the Ka'bah
CairoEG⁦136.2°⁩South-east1,288 km
IstanbulTR⁦151.6°⁩South-east2,407 km
RiyadhSA⁦244.2°⁩South-west793 km
DubaiAE⁦258.8°⁩West1,632 km
BaghdadIQ⁦199.9°⁩South1,400 km
TehranIR⁦218.5°⁩South-west1,946 km
KarachiPK⁦267.7°⁩West2,801 km
DelhiIN⁦266.6°⁩West3,837 km
DhakaBD⁦277.7°⁩West5,173 km
JakartaID⁦295.2°⁩North-west7,920 km
SingaporeSG⁦293°⁩North-west7,275 km
LondonGB⁦119°⁩South-east4,794 km
ParisFR⁦119.2°⁩South-east4,496 km
BerlinDE⁦136.7°⁩South-east4,130 km
MoscowRU⁦176.4°⁩South3,822 km
New York CityUS⁦58.5°⁩North-east10,306 km
TorontoCA⁦54.6°⁩North-east10,493 km
Los AngelesUS⁦23.9°⁩North-east13,424 km
LagosNG⁦63.2°⁩North-east4,253 km
SydneyAU⁦277.5°⁩West13,236 km
Find prayer times for your city