Home / Qibla Finder / How to Find Qibla Without Compass
How to Find Qibla Direction Without Compass – 5 Methods
Your phone compass is handy, but it is not the only way to face the Kaaba. When the compass fails — dead battery, no sensor, magnetic interference — you still have reliable alternatives. Here are five methods to find the qibla direction without a compass, plus what scholars say about small deviations.
The Qibla Finder computes the true great-circle bearing from your GPS. Use it once, then apply any method below.
Open Qibla Finder →Method 1 — Google Maps (measure bearing to the Kaaba)
Google Maps knows exactly where you are and exactly where the Kaaba is (21.4225° N, 39.8262° E). You can measure the bearing between any two points without a compass.
- Open Google Maps on your phone or desktop.
- Search for Kaaba or drop a pin at 21.4225, 39.8262 (Masjid al-Haram, Mecca).
- Right-click (or long-press) the Kaaba pin and choose Measure distance.
- Tap your current location (or drop a second pin where you are).
- The line drawn is the great-circle path. The bearing is not shown directly, but you can orient yourself: face along that line toward the Kaaba.
Pro tip: On desktop, use the ruler tool in Google Earth Pro for a precise bearing readout. On mobile, the direction of the line on the map is your qibla — rotate your body until you point along it.
Method 2 — The Sun method (solar noon shadow)
The sun crosses true south (in the northern hemisphere) at local solar noon. A vertical object's shadow at that moment points exactly true north.
- Find your local solar noon — when the sun is highest. This differs from clock noon by up to 30 minutes depending on your longitude and the equation of time. Use a sun calculator or note when shadows are shortest.
- Place a straight stick, pole, or even a pen vertically on flat ground.
- At solar noon, the shadow points exactly toward true north (in the UAE and anywhere north of the Tropic of Cancer).
- Turn 180° from the shadow direction — you now face true south. Add or subtract your local qibla bearing from true north to face the Kaaba. For the UAE (qibla ~258–260°), face roughly west-southwest.
Equal-shadow method (works any time): Mark the tip of the shadow at two times separated by an hour or more. The line between the two marks runs roughly east-west. The perpendicular through the stick base runs north-south. This is less precise than solar noon but works without knowing the exact time.
Method 3 — Mosque mihrab (nearest mosque)
Every mosque is built with its mihrab (the niche in the qibla wall) aligned to the true qibla for that location. This is the most reliable physical reference.
- Locate the nearest mosque — use Google Maps "mosque near me" or the SunnyToolsPro Qibla Finder map view.
- Enter the prayer hall and face the mihrab.
- Your orientation is the qibla for that spot.
This works because mosque committees survey the qibla during construction. Even if your phone compass is wrong, the mihrab is correct by definition for that building.
Method 4 — North Star (Polaris) at night
In the northern hemisphere, Polaris sits almost exactly above the North Celestial Pole — within 0.7° of true north.
- Find the Big Dipper (Plough). The two "pointer" stars at the end of the bowl point toward Polaris.
- Polaris is the bright star at the end of the Little Dipper's handle.
- Face Polaris — you now face true north. Turn to your local qibla bearing from true north (e.g., ~258° in the UAE means turn right/west from north).
This method fails near the equator (Polaris too low) and in the southern hemisphere. For the UAE and most of the Middle East it works well on clear nights.
Method 5 — Smartphone GPS + offline bearing
Your phone's GPS works without a compass. If you know the bearing to the Kaaba, you can walk in that direction using GPS alone.
- Open the Qibla Finder (or any qibla app) and note the bearing in degrees from true north for your location.
- Open Google Maps or a GPS compass app that shows heading/course over ground (not magnetic heading).
- Walk slowly in a straight line. The GPS heading updates as you move.
- Adjust your path until the GPS heading matches the qibla bearing.
This works because GPS heading is derived from position change over time, not the magnetometer. It needs a few meters of movement to stabilize but is immune to magnetic interference.
Is prayer valid if you are slightly off the exact bearing?
Yes — within limits. The four Sunni madhhabs and the Ja'fari school agree:
- Hanafi / Shafi'i / Maliki: Facing the general direction of the Kaaba (jihat al-Ka'ba) suffices. A deviation of up to 45° is often cited as the outer limit, though precision is encouraged.
- Hanbali: Requires facing the Kaaba itself (ayn al-Ka'ba) when you can see it; otherwise the general direction (jihat) is acceptable.
- Ja'fari: The qibla is the direction of the Kaaba; a slight deviation due to error or inability does not invalidate the prayer.
Practical takeaway: A difference of a few degrees — even 5–10 degrees — does not invalidate your prayer. What matters is making a genuine effort to determine the direction. The mosque mihrab remains the gold standard: if you are in a mosque, face the mihrab. If you are alone, use the best method available and pray with confidence.