Skip to content

Home › Qibla Finder

Qibla Finder — Your Qibla Direction, From Your Location

Free online tool · works in your browser · nothing is uploaded

The qibla is the direction of the Kaaba in Mecca (21.4225°N, 39.8262°E). Use your location, pick a city or type coordinates, and this qibla finder gives your exact bearing from true north and your distance to the Kaaba. On a phone, turn slowly and the compass tells you the moment you're facing the qibla.

—Qibla bearing
—to the Kaaba
—your heading

Your location stays on your device.

No location? Pick a city or enter coordinates.

Decimal degrees. South latitudes and west longitudes are negative: New York is 40.7128, -74.0060. Most map apps show your coordinates when you long-press or right-click a spot.

How to use the qibla finder

  1. Tap “Use my location” and allow location access. The bearing is calculated instantly on your device.
  2. No location, or on a computer? Pick your city from the list, or type your latitude and longitude. The math is the same, and nothing is sent anywhere.
  3. On a phone: hold it flat and turn slowly. When your heading matches the qibla bearing, the dial glows: you're facing the Kaaba.
  4. With the number alone: the bearing is measured clockwise from true north. A bearing of 119°, for example, is 29° south of due east.

Qibla direction from major cities

Muslims face the Kaaba in every prayer, wherever they are (Qur'an 2:144). The table gives the qibla from each city's center, measured clockwise from true north along the shortest route over the globe (a great circle), and the great-circle distance to the Kaaba. Far from Mecca the bearing barely changes across town, well under a degree; closer to Mecca, use the tool above for your exact spot.

CityCountryQibla (true north)Distance to the Kaaba
Europe
AmsterdamNetherlands126° SE4,553 km (2,829 mi)
BerlinGermany137° SE4,130 km (2,566 mi)
BirminghamUnited Kingdom118° ESE4,952 km (3,077 mi)
BrusselsBelgium123° ESE4,489 km (2,789 mi)
CopenhagenDenmark138° SE4,426 km (2,750 mi)
FrankfurtGermany128° SE4,192 km (2,605 mi)
HamburgGermany133° SE4,373 km (2,717 mi)
IstanbulTürkiye152° SSE2,405 km (1,494 mi)
LondonUnited Kingdom119° ESE4,794 km (2,979 mi)
ManchesterUnited Kingdom118° ESE5,025 km (3,122 mi)
MunichGermany130° SE3,890 km (2,417 mi)
ParisFrance119° ESE4,496 km (2,794 mi)
StockholmSweden148° SSE4,554 km (2,830 mi)
ViennaAustria137° SE3,637 km (2,260 mi)
Americas
ChicagoUnited States49° NE11,146 km (6,926 mi)
HoustonUnited States45° NE12,574 km (7,813 mi)
Los AngelesUnited States24° NNE13,424 km (8,341 mi)
MontrealCanada59° ENE9,998 km (6,213 mi)
New YorkUnited States58° ENE10,306 km (6,404 mi)
TorontoCanada55° NE10,496 km (6,522 mi)
Middle East
AmmanJordan161° SSE1,234 km (767 mi)
BaghdadIraq200° SSW1,396 km (867 mi)
DohaQatar253° WSW1,269 km (789 mi)
DubaiUnited Arab Emirates258° WSW1,631 km (1,014 mi)
Kuwait CityKuwait225° SW1,204 km (748 mi)
MuscatOman266° W1,920 km (1,193 mi)
RiyadhSaudi Arabia244° WSW790 km (491 mi)
TehranIran218° SW1,944 km (1,208 mi)
Africa
AlgiersAlgeria105° ESE3,926 km (2,440 mi)
CairoEgypt136° SE1,287 km (800 mi)
CasablancaMorocco94° E4,824 km (2,997 mi)
JohannesburgSouth Africa15° NNE5,446 km (3,384 mi)
LagosNigeria63° ENE4,251 km (2,642 mi)
TunisTunisia113° ESE3,328 km (2,068 mi)
South Asia
DelhiIndia267° W3,835 km (2,383 mi)
DhakaBangladesh278° W5,172 km (3,214 mi)
HyderabadIndia283° WNW4,070 km (2,529 mi)
KarachiPakistan268° W2,800 km (1,740 mi)
LahorePakistan260° W3,598 km (2,236 mi)
MumbaiIndia280° W3,452 km (2,145 mi)
Southeast Asia & Oceania
JakartaIndonesia295° WNW7,920 km (4,921 mi)
Kuala LumpurMalaysia293° WNW6,974 km (4,333 mi)
MelbourneAustralia279° W12,741 km (7,917 mi)
SingaporeSingapore293° WNW7,269 km (4,517 mi)
SydneyAustralia277° W13,236 km (8,225 mi)

True north vs. magnetic north: these bearings are from true north. A magnetic compass points to magnetic north, which is a few degrees away in most places (the magnetic declination), so correct for your local declination or use a phone compass set to true north.

Why the qibla isn't simply “east” or “southeast”

The qibla follows the great-circle route, the shortest path across the earth's surface, not a straight line on a flat map. That's why it points northeast from North America (58° from New York, 24° from Los Angeles), almost due north from Johannesburg (15°) and west-northwest from Jakarta (295°). A line drawn on a flat world map points roughly east from the United States, which is 40 to 70 degrees off. A proper qibla finder does the spherical math for you; eyeballing a map will mislead you.

Compass problems and fixes

  • Needle drifts or spins: magnetic interference. Step away from metal desks, speakers and laptops, and remove magnetic cases and MagSafe accessories while aligning.
  • Calibrate by moving your phone in a figure-eight if the needle keeps drifting.
  • Direction seems off indoors: steel-framed buildings distort magnetic fields. Check near a window, then note a fixed landmark in the room.
  • Two apps disagree slightly: a degree or two is normal sensor noise, and facing the general direction is what's asked (see below).
  • Using a handheld compass: correct for magnetic declination, as explained under the table.

How to find the qibla without a compass

  • Follow the mosque. A mosque's mihrab, the niche in its front wall, marks the qibla. If a mosque differs slightly from your compass, scholars advise praying with the congregation; only a large error needs correcting (IslamQA 11691).
  • Use the sun on the two days it stands over the Kaaba. Around May 27–28 at 12:18 Mecca time (09:18 UTC) and July 15–16 at 12:27 Mecca time (09:27 UTC), the sun is directly above the Kaaba. At that minute, face the sun and you face the qibla; the shadow of anything upright points directly away from it. The next dates are May 28 and July 16, 2027. It works wherever the sun is up at that moment, which covers Europe, Africa and most of Asia.
  • Use a map. Take your bearing from the table or the tool, then line it up with a street or building you can see on the map.
  • Look for a marker. Hotels and prayer rooms in many Muslim-majority countries mark the qibla in each room, often with a small arrow.
  • If nothing is available, make your best judgment and pray. For anyone who can't see the Kaaba, facing its general direction is enough. The Prophet ﷺ said, “What is between the east and the west is Qiblah” (Tirmidhi 342), and scholars apply this to people far from Mecca (IslamQA 11691).

Finding the qibla while traveling

Once this page has loaded, the city list and the coordinate fields work without a connection, because the math runs in your browser. For flights, road trips and umrah, the Hayya app's qibla compass and prayer times work fully offline, so you don't need roaming data. Check the qibla once at your hotel, note a landmark, and you're set for your stay. For shortening and combining prayers on a journey, see prayer while traveling.

Hayya's qibla compass showing a 125° bearing and 3,777 km to the Kaaba
Hayya's offline qibla compass: bearing, distance and a soft haptic tap when you're aligned
Hayya app icon

Want haptics, offline mode & prayer times too?

The Hayya app has a haptic qibla compass that taps your palm when you're aligned — fully offline, fully private, free.

Download Hayya Free

FAQ

Is this qibla checker accurate?

The bearing is exact — it's the great-circle direction from your coordinates to the Kaaba. Live compass accuracy depends on your phone's magnetometer, so follow the fixes above.

Can I find the qibla without sharing my location?

Yes. Pick your city from the list or type your latitude and longitude. You get the same bearing and distance, calculated in your browser.

Does it send my location anywhere?

No. Everything is computed in your browser. There is no server call, no analytics on your position, nothing stored.

Is the qibla bearing from true north or magnetic north?

True north. If you use a magnetic compass, correct for your local magnetic declination, which is a few degrees in most places.

Why does the qibla point northeast from the USA?

Because the shortest path to Mecca curves over the globe. From New York the qibla is 58°, from Chicago 49° and from Los Angeles 24°. A flat map misleads; a great-circle calculation doesn't.

What if I can't get a precise reading?

Make your best effort. For anyone far from the Kaaba, facing its general direction is enough (Tirmidhi 342; IslamQA 11691). Sincere effort is what counts.

Sources

  • Facing al-Masjid al-Haram in prayer: Qur'an 2:144
  • “What is between the east and the west is Qiblah”: Jami' at-Tirmidhi 342
  • The general direction, and a mosque that differs slightly from a compass: IslamQA 11691
  • Bearings and distances: spherical great-circle formulas from the Kaaba at 21.422487°N, 39.826206°E with an earth radius of 6,371 km. Sun-over-the-Kaaba times: standard solar-position formulas.

Written by Louis, founder of Hayya. This is a summary of the cited sources, not a fatwa. Ask a scholar you trust about your madhab's ruling.

Download on the App Store