🧭 Qibla Direction
Find the Qibla direction from anywhere in the world — precise Haversine calculation
Choose how to set your location:
Qibla direction from your city in degrees
The Qibla direction is calculated from the angular difference between your location and the Kaaba coordinates (longitude 39.8262°E, latitude 21.4225°N). The result is an angle measured clockwise from true north: Cairo about 136° (southeast), Riyadh about 245° (slightly southwest), Casablanca about 92° (east), and Istanbul and northern countries at angles further toward the southeast.
The differences between cities are large, so using another city's angle puts you in a different direction. Small angles produce larger errors: in Saudi Arabia the Qibla is close to southwest, so errors are visible, and in the Gulf you need about one degree of accuracy to stay within the Kaaba's direction.
Finding the Qibla without internet
The easiest method without tools: look at the phone compass or a regular compass and identify true north, then rotate the device by the angle the calculator gives. It is very important to distinguish magnetic north from true north; the difference reaches about 4° in Egypt and more than 8° in Europe, and those degrees move the direction far.
A practical alternative: at noon the sun is close to the south in most of the year in the Arab region, so the direction opposite the sun at noon is roughly north. This is for indication, not precise setting. For precise setting, use a sensitive app that shows device deviation, and keep the app open in one hand without moving, placed on a flat surface.
Required accuracy and the distance to the Kaaba
When praying, it is enough to be within the Kaaba's direction even by a few degrees, because the Kaaba is very far from you: about 1,300 km from Cairo, about 5,800 km from Casablanca, and about 2,400 km from Istanbul. At these distances, the operational error in degrees is small compared with not checking the direction at all.
But alignment toward the Qibla depends on practical accuracy: in the mosque, follow the mihrab line. In a hotel or office, ask reception or look for the Qibla arrow in the room. In a car or on the road, use the general direction and then adjust when you pray.
A common mistake is relying on the phone compass after using it near metal, magnets, or on a sloped surface; its reading deviates. Stand in an open place away from cars and building steel, or use another device to confirm.
Qibla by compass — your phone and its sensors
Qibla by compass depends on different inputs from the astronomical calculation: the Qibla is determined mathematically by the great-circle arc between your location and the Kaaba, the shortest path on the Earth's surface, not a straight line on the map. The resulting value changes with your location while the Kaaba is fixed at 21.4225°N and 39.8262°E.
The phone compass adds a possible extra error: the magnetic sensor reads magnetic north, not geographic north, and the difference is magnetic declination, which varies by region and time. A good app corrects this difference automatically; a poor app shows a wrong angle by several degrees, reaching more than five degrees in some regions.
To stabilise: do not stand near metal, a machine or a steel structure while using it; do not place the phone on a metal surface; and first compare with a mosque mihrab or a known direction. After these steps the difference is within practically acceptable limits.
Google Maps and Google Qibla — direction for every city
Searches for Google Qibla are widespread because people want a source they do not doubt, so the easiest method is: take your location coordinates from Google Maps, then use a calculator that converts coordinates into an angle. This method is independent of any sensor or app, so it gives the correct degree that does not change, and you can hold the phone in any position without affecting it.
For major cities there is a stable pattern: Cairo's direction is about 136° from north clockwise, a southeast angle. In western Arab cities it is also southeast but with different angles. It is better to use the tool with your current location instead of memorising a number for a city you may travel from.
Qibla for prayer needs two steps, not one: determine the angle first, then verify the object you are in. A prayer space in a hotel, or a house not built for prayer, may not match the angle, so use the tool to determine the direction and then do your best; the Kaaba is great and it is difficult to err in it except by a large difference.
Qibla from Cairo and major cities — how many degrees from north?
The Qibla angle differs from city to city because it is the great-circle angle toward the Kaaba, not a fixed angle: Cairo is about 136° from north, Riyadh about 245°, and Jakarta about 295°.
Therefore you cannot copy one city's angle to another, even if the distance between them is only one hundred kilometres.
📖 Usage Guide
Qibla Direction Finder — Find the direction of the Kaaba in Mecca from anywhere in the world. Uses precise geometric calculations (Haversine formula) to calculate the geographic bearing from your location to the Kaaba.
3 location methods: automatic GPS, city selection from 60+ cities, or manual coordinate entry.
Interactive compass showing Qibla direction in degrees with a red arrow pointing to the Qibla. Supports phone magnetic compass for relative direction.
Allah says: 'So turn your face toward al-Masjid al-Haram' (Al-Baqarah: 144). The Islamic requirement is the general direction, not the exact degree.
The tool is completely free and works in the browser — no data is uploaded to any server.
❓ Frequently Asked Questions
Answers to the most common questions
🔗 Related Tools
🔗 Share this tool
Share this free tool with friends — no signup required