Qibla Direction
The qibla is the direction of the Kaaba in the Grand Mosque of Makkah, the direction Muslims face during prayer. This finder shows the qibla bearing from your location in degrees from true north, measured clockwise, computed with the great-circle formula between your coordinates and those of the Kaaba (latitude 21.4225° N, longitude 39.8252° E).
To use the result: open your phone’s compass app, hold the device flat, and turn until the compass points to the displayed degree; you will then be facing the qibla. Select your city from the list or use the location button for a more precise result.
243.8° — Qibla direction from Riyadh
degrees clockwise from true north
Distance to the Kaaba: 790 km
Qibla Direction
| City | Qibla Direction | Distance to the Kaaba |
|---|---|---|
| Riyadh | 243.8° | 790 km |
| Jeddah | 96.0° | 66 km |
| Medina | 176.3° | 339 km |
| Dammam | 244.1° | 1,181 km |
| Cairo | 136.1° | 1,287 km |
| Alexandria | 135.4° | 1,467 km |
| Dubai | 258.2° | 1,631 km |
| Doha | 252.6° | 1,269 km |
| Baghdad | 199.9° | 1,400 km |
| Najaf | 201.9° | 1,261 km |
| Karbala | 199.5° | 1,312 km |
| London | 119.0° | 4,794 km |
| Birmingham | 118.0° | 4,952 km |
| New York | 58.5° | 10,306 km |
| Philadelphia | 57.7° | 10,434 km |
How is the qibla bearing derived?
The bearing is computed as the great-circle path between your city’s coordinates (φ₁, λ₁) and the Kaaba’s coordinates (φ₂, λ₂) on the earth’s surface, using the standard forward-azimuth formula of geodesy:
Δλ = λ₂ − λ₁
θ = atan2( sin Δλ · cos φ₂ , cos φ₁ · sin φ₂ − sin φ₁ · cos φ₂ · cos Δλ )
where θ is the bearing in degrees clockwise from true north. Because the great-circle path is the shortest route across the earth’s surface, it is the geodetic and astronomical standard for determining the qibla everywhere in the world.
Caution: magnetic compass vs true north
The degree shown on this page is measured from true north (the earth’s geographic axis), while a phone compass points to magnetic north, which deviates from true north by the “magnetic declination” — roughly 2–5 degrees in most Arab cities and more than ten degrees in some other regions. When using a magnetic compass, apply your city’s declination correction if the compass app supports it, or use the “use my location” button in tools that correct for it automatically; otherwise a qibla error of several degrees can occur.
Frequently asked questions
How do I use the qibla degree with my phone compass?
Open the compass app, hold the phone flat, and rotate until the needle points to the degree shown above; you are then facing the Kaaba. Note that some compasses point to magnetic rather than true north, and the difference (magnetic declination) is a few degrees depending on your city.
Why does the qibla direction differ from one city to another?
The qibla is the shortest path on the Earth’s surface (a great circle) toward the Kaaba in Makkah, and this path changes with your geographic location on the globe.
Why does the "Use my location" button not work?
Geolocation requires a secure (HTTPS) connection and browser permission. If you see a permission-denied message, allow location in your browser settings, or simply select your city from the list for the same result.