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.
| City | Bearing from true north | Distance to the Ka'bah |
|---|---|---|
| CairoEG | 136.2°South-east | 1,288 km |
| IstanbulTR | 151.6°South-east | 2,407 km |
| RiyadhSA | 244.2°South-west | 793 km |
| DubaiAE | 258.8°West | 1,632 km |
| BaghdadIQ | 199.9°South | 1,400 km |
| TehranIR | 218.5°South-west | 1,946 km |
| KarachiPK | 267.7°West | 2,801 km |
| DelhiIN | 266.6°West | 3,837 km |
| DhakaBD | 277.7°West | 5,173 km |
| JakartaID | 295.2°North-west | 7,920 km |
| SingaporeSG | 293°North-west | 7,275 km |
| LondonGB | 119°South-east | 4,794 km |
| ParisFR | 119.2°South-east | 4,496 km |
| BerlinDE | 136.7°South-east | 4,130 km |
| MoscowRU | 176.4°South | 3,822 km |
| New York CityUS | 58.5°North-east | 10,306 km |
| TorontoCA | 54.6°North-east | 10,493 km |
| Los AngelesUS | 23.9°North-east | 13,424 km |
| LagosNG | 63.2°North-east | 4,253 km |
| SydneyAU | 277.5°West | 13,236 km |