The Zakat Calculator

Qibla Direction Finder — Face the Kaaba

By the Editorial Team · reviewed against our sources · updated September 2026 · guidance, not a fatwa

Quick answer: The Qibla is the direction of the Kaaba in Makkah (21.4225°N, 39.8262°E), which Muslims face in prayer. This finder uses your device’s location to work out the great-circle bearing to the Kaaba and, where your phone supports it, shows a live compass so you can turn until you are facing it.

NE SW
🕋
—
Find the Qibla from your location

Qibla is the direction of the Kaaba in Makkah (21.4225°N, 39.8262°E), shown as a bearing from true North. Phone compass sensors can be inaccurate — verify with a reliable compass before prayer.

Key takeaways

  • The Qibla points to the Kaaba in Makkah, not simply "east" or "towards Saudi Arabia".
  • The correct direction is the shortest path over the curved earth, so it can look surprising on a flat map.
  • A phone compass needs calibration and can be pulled off by nearby metal, cases and magnets.
  • If technology fails, the sun, the Pole Star and a local mosque’s mihrab are reliable references.
  • If you genuinely cannot determine the direction, scholars agree you should make your best effort and pray.

How to find the Qibla with this tool

When you open the finder, allow location access so it can read your latitude and longitude. From those two numbers it calculates the exact bearing from where you stand to the Kaaba and displays it in degrees from true north. On most phones a live compass then appears: hold the device flat, away from laptops, speakers and metal furniture, and slowly rotate until the pointer lines up with the Qibla marker. If your phone does not expose its compass sensor to the browser, you can still read the bearing and match it against a separate magnetic compass or a paper map. The bearing is the important figure, everything else is just a way of turning that number into a direction you can face.

What the Qibla is

The Qibla is the fixed direction Muslims face during the five daily prayers. It is the Kaaba, the cube-shaped structure inside the Sacred Mosque in Makkah, located at roughly 21.4225°N, 39.8262°E. Before this direction was set, early Muslims faced Jerusalem; the change to the Kaaba is recorded in the Qur’an. Facing a single point unites worshippers everywhere in one orientation, so wherever you are in the world your prayer is aimed at the same place. You are facing the direction of the Kaaba, not standing over it, so the goal is the correct bearing rather than pinpoint accuracy to the metre.

Finding it without internet

Signals fail and batteries die, so it helps to know natural methods. The sun rises broadly in the east and sets in the west, and at solar noon it sits due south in the northern hemisphere, giving you a rough compass from daylight alone. At night, the Pole Star (Polaris) marks true north in the northern hemisphere and barely moves. The simplest option of all is a nearby mosque: its mihrab, the niche in the prayer-hall wall, already points to the Qibla, and the rows of worshippers show the line to follow. In an unfamiliar place, matching your direction to an established local mosque is often the safest choice.

Why phone compasses can be off

A magnetic compass points to magnetic north, which differs from true north by an angle called magnetic declination that varies by location and drifts over time. Good Qibla tools correct for this, but a raw compass reading may not. Phones are also easily disturbed: metal desks, car bodies, magnetic cases, speakers and even other devices can bend the reading. To calibrate, move away from metal and electronics, then wave the phone in a figure-of-eight motion several times, or open your maps app and follow its calibration prompt. Re-check the reading after calibrating, and if it still seems unstable, cross-check with a second method before you rely on it.

Great-circle bearing vs a flat-map line

On a curved earth the shortest route between two points is a great-circle arc, and the Qibla is measured along that arc. On a flat map that shortest path can appear to curve and point in an unexpected direction. From North America, for example, the true bearing to Makkah is often north-east rather than the south-east many people assume, because the great-circle route runs up over the pole region. This tool uses the great-circle calculation, which the majority of scholars accept, so trust the bearing it gives over your intuition about a flat map.

Praying when unsure of direction

Islam is practical about uncertainty. If you have made a sincere effort, checked what references you can, and still cannot be certain of the Qibla, the accepted position is that you face the direction you believe most likely to be correct and pray. A prayer offered after a genuine effort is valid even if the direction later turns out to be slightly off. When travelling, indoors without signal, or in a new city, do the best you can with the sun, a mosque or this finder, and pray with confidence rather than delaying.

Next, check today’s Islamic date on our Islamic date today page, or return to the Zakat calculator home for our full set of tools.

This tool is for general guidance only and depends on your device’s sensors and location accuracy. It is not a substitute for a qualified compass reading or scholarly advice. For rulings on prayer direction in your situation, consult a knowledgeable local imam or scholar.

Frequently asked questions

How accurate is the Qibla finder?

It calculates the great-circle bearing to the Kaaba from your GPS location, which is precise. Real-world accuracy then depends on your device's location fix and compass calibration, so calibrate the compass and move away from metal for the best result.

Why does the Qibla point north-east from North America?

Because the shortest path over a curved earth (the great-circle route) from North America to Makkah runs up and over the pole region rather than straight across a flat map. The majority of scholars accept this great-circle direction.

Do I need internet to use it?

You need location access, and a data or GPS signal helps fix your position. If you are offline, use the sun, the Pole Star, or a nearby mosque's mihrab instead, and match the bearing later when you can.

My compass keeps spinning — how do I fix it?

Move away from metal furniture, cars, speakers and magnetic phone cases, then wave the phone in a figure-of-eight several times, or follow your maps app's calibration prompt. Re-check the reading afterwards.

What is the difference between magnetic north and true north?

Magnetic north is where a compass needle points; true north is the geographic pole. The gap between them is magnetic declination, which varies by place. A good Qibla tool corrects for it so you face the true direction.

What if I still cannot work out the direction?

Make a sincere effort with whatever references you have, then face the direction you believe most likely and pray. A prayer offered after a genuine effort is valid even if the direction turns out slightly off.

Contact: [email protected]