Get today's five daily prayer times for your location and find the exact Qibla direction (bearing to the Kaaba in Makkah) from your coordinates.
🕌 Featured ToolsEverything runs locally in your browser — no sign-up required, and no data is ever sent anywhere.
The Qibla is the direction Muslims face during prayer, pointing toward the Kaaba in Makkah (21.4225°N, 39.8262°E). This tool calculates the initial great-circle bearing from your coordinates to the Kaaba using standard spherical trigonometry, the same method used in geodesy and aviation navigation for shortest-path headings on a sphere — a straight compass line on a flat map would not point the correct direction over long distances. Prayer times are fetched from the Aladhan API using the Umm al-Qura University (Makkah) calculation method, based on the sun's position relative to your location. Because the Qibla bearing is computed locally from pure geometry, it keeps working even if the live prayer-time lookup cannot be reached. The bearing is expressed as a compass heading in degrees measured clockwise from true North, the same convention used on physical and digital compasses worldwide, so the number displayed can be dialed directly into any compass app without further conversion.
Knowing the exact direction of the Kaaba matters for every one of the five daily prayers, and it becomes especially important while traveling, staying in an unfamiliar city, or praying in a building with no clear existing prayer space. A common mistake is assuming that the Qibla is a simple straight line drawn on a flat world map — because the Earth is a sphere, the true shortest path (and therefore the correct compass heading) is calculated using great-circle geometry, the same navigation math used by pilots and ship captains for long-distance headings.
This tool takes your coordinates — either detected automatically through your device's GPS or entered manually — and calculates the initial bearing along that great-circle path to the Kaaba's known coordinates in Makkah. The result is a single number in degrees, measured clockwise from true North, which you can dial into any compass app or physical compass to know exactly which way to turn.
Alongside the Qibla bearing, the tool also retrieves today's five prayer times for the same coordinates, using a well-established international calculation method. This is useful when you are away from your usual mosque or home city and don't have a local prayer timetable memorized. Because coordinates alone are enough to calculate accurate prayer times almost anywhere on Earth, this works equally well for major cities and for remote locations far from any city center.
One detail worth understanding: the Qibla calculation itself never depends on an internet connection, because it is pure geometry computed instantly on your own device. Only the prayer-times lookup needs to reach an external service, since prayer times depend on solar position data that is calculated on request. If you ever find yourself with a weak signal — traveling, hiking, or on a flight with limited connectivity — the Qibla direction will still display correctly as long as you can enter or detect your coordinates, which makes this tool reliable in exactly the situations where a paper compass or a memorized direction is least reliable.
It is calculated using the great-circle initial bearing formula from your latitude and longitude to the Kaaba's coordinates in Makkah (21.4225°N, 39.8262°E). This gives the shortest-path compass heading to face, accounting for the curvature of the Earth.
Prayer times are retrieved from the Aladhan API using the Umm al-Qura University, Makkah method, which is widely used across the Muslim world.
The Qibla direction is calculated entirely offline once you provide your coordinates. Only the live prayer-times lookup requires an internet connection; if it fails, the Qibla result above still remains fully accurate.
It is the compass heading in degrees measured clockwise from true North. For example, 118° means you should face slightly east of southeast.
It is mathematically exact for the coordinates you provide. Real-world accuracy depends on how precisely your device detects your latitude and longitude, and on using a reliable compass (magnetic compasses can be affected by nearby metal or electronics).