Get the qibla direction in degrees from your location: the great-circle bearing to the Kaaba in Mecca (21.4225°N, 39.8262°E), worked out with spherical trigonometry. You also get the compass direction and the distance in kilometres and miles.
Qibla Direction Calculator
Find the direction of the Qibla (Kaaba in Mecca) from any location on Earth.
What Is the Qibla Direction in Degrees From My Location?
It is the angle, clockwise from true north, of the shortest path across the globe from you to the Kaaba. From New York that is about 58.5°, so you face northeast. From London it is about 119°, toward the southeast. Enter your own coordinates for your exact figure.
| City | Bearing from true north | Direction | Distance |
|---|---|---|---|
| New York | 58.5° | NE | ≈ 10,300 km |
| Toronto | 54.6° | NE | ≈ 10,500 km |
| Chicago | 48.7° | NE | ≈ 11,150 km |
| London | 119.0° | SE | ≈ 4,800 km |
| Cairo | 136.1° | SE | ≈ 1,290 km |
| Karachi | 267.7° | W | ≈ 2,800 km |
Formula: Bearing = atan2(sin Δλ, cos φ × tan φK − sin φ × cos Δλ), where φ is your latitude, φK the Kaaba’s latitude and Δλ the Kaaba’s longitude minus yours. The result is turned into degrees from 0 to 360.
How to Find the Qibla Direction With a Compass
Take the true-north bearing, correct it for magnetic declination, then turn until your compass shows that reading.
- Find your bearing: about 58.5° in New York.
- Look up the current magnetic declination for your location.
- Subtract an east declination, or add a west one, to get the compass reading.
- Hold the compass flat and turn until it shows that reading.
True north versus magnetic north
A compass needle points to magnetic north, not true north. The angle between them, called magnetic declination, depends on where you are and slowly changes over time; in some places it is tiny, in others large enough to matter. Many phone compass apps can switch to true north when location services are on, which removes this step.
Getting a steady compass reading
- Keep clear of steel furniture, radiators, speakers and laptops, which can pull the needle several degrees.
- Calibrate a phone compass when it asks, usually by moving it in a figure-of-eight.
- Compare readings in two or three spots; if they disagree, one spot is probably affected by metal or wiring.
Mark it once, then use landmarks
Once you have a reliable direction, mark it with something lasting, such as a small sticker on the wall. When travelling, a hotel room may already have a qibla marker, but it is worth a quick check against your own bearing.
Why the Qibla From New York and Toronto Points Northeast
The shortest route across a globe is a great-circle path, which often looks curved on a flat map. That is why the qibla direction from New York (58.5°) and from Toronto (54.6°) points northeast rather than southeast, even though Mecca sits further south on a flat map. Small differences between tools usually come from rounded coordinates or from one of them using magnetic north.
Local mosques have normally established the qibla with care, so a nearby mihrab is a helpful check. For the history and methods, see the qibla article on Wikipedia, then enter your new coordinates in the qibla direction calculator whenever you pray somewhere unfamiliar.