Qibla Finder
Find the direction of the Kaaba in Makkah from wherever you are.
Where are you?
Qibla bearing
—
Distance to the Kaaba
—
Bearing is measured clockwise from true north. The compass picture shows north at the top; in live mode the dial turns with your phone so the Kaaba marker points toward the Qibla.
How the Qibla is calculated
The Qibla is the direction Muslims face in prayer, toward the Kaaba in Masjid al-Haram, Makkah (21.4225° N, 39.8262° E). This tool uses the great-circle (shortest path over the Earth’s surface) initial bearing from your position to the Kaaba, which is the standard method used by prayer apps and mosques.
Tips for the live compass
- Hold your phone flat and away from magnets, metal desks and car dashboards, which disturb the compass.
- If the needle jumps, move the phone in a figure-eight to recalibrate.
- On iPhone you will be asked for permission to use motion and orientation. Desktop computers usually have no compass sensor.
- For a prayer area you will use often, confirm the direction against a known marker such as the mihrab of a nearby mosque.
Your location is used only inside your browser to do this calculation. It is not sent to our server.
Frequently asked questions
What is the Qibla?
The Qibla is the direction Muslims face when they pray, towards the Kaaba in Makkah. The tool shows it as a bearing in degrees from true north along the shortest path (great circle) from your location.
Why do Muslims face the Kaaba?
Allah commanded it in the Quran: "Turn your face towards al-Masjid al-Haram" (2:144). Facing one direction unites Muslims in prayer all over the world.
Was the Qibla always the Kaaba?
No. In the first years after the Hijrah the Muslims prayed towards Jerusalem (Bayt al-Maqdis). About sixteen or seventeen months after the Hijrah, the direction was changed to the Kaaba.
How does this Qibla finder work?
It takes your latitude and longitude from your browser (or the city you choose) and calculates the bearing to the Kaaba. The calculation runs in your browser, and your location is not sent to our server.
How do I use the live compass?
Allow location, then turn on the live compass and give motion and orientation permission if your phone asks. Hold the phone flat and turn until the arrow points up. The compass only works on devices with a compass sensor.
Why does my phone compass not match exactly?
Phone sensors usually point to magnetic north, which differs from true north by a few degrees depending on where you are. Metal objects and electronics also cause errors. If the arrow is unsteady, move the phone in a figure of eight to recalibrate it.
How accurate does my location need to be?
An error of a few kilometres changes the bearing by only a small fraction of a degree, which is accurate enough for prayer.
What if I cannot find the exact direction?
Make your best effort, using this tool, a compass, or asking local Muslims or the nearest mosque. If you still cannot be sure, pray in the direction you believe is right, and your prayer is valid in sha Allah.
Is the Qibla always south-east?
No, it depends on where you are. From North America it is to the north-east, from Australia to the north-west, and from East Africa it is roughly north.