Qibla Finder: Live Qibla Direction

Find the Qibla direction, the direction of the Kaaba in Makkah (Mecca), from your exact location with this free online Qibla compass. No app, no sign-up, and your location is never saved.

N
NE
E
SE
S
SW
W
NW
0°
45°
90°
135°
180°
225°
270°
315°

Qibla Compass

Kaaba Direction

Kaaba Distance

Location Details
Region
Latitude
Longitude
Magnetic Declination

No compass sensor found. The Qibla direction and distance above are still exact.

The live Qibla compass needs a phone or tablet with a built-in compass sensor (magnetometer). Scan the QR code below to open this page on your phone.

Scan to open on device

Scan Link QR with supported device

Qibla Direction to Mecca from Major Cities

The table below lists the Qibla direction from 68 cities worldwide. Each bearing is measured clockwise from true north (0° north, 90° east, 180° south, 270° west) along the shortest path over the Earth’s surface to the Kaaba in Makkah, and distances follow the same path. The figures come from the same calculation as the live Qibla compass above, so they match what you see on the dial.

Across a large city the Qibla changes by only a fraction of a degree, but close to Makkah it changes quickly, so use your exact location whenever you can.

Qibla Direction in India

Qibla Direction in India: Qibla bearing from true north and distance to the Kaaba
CityQibla directionDistance to Kaaba
New DelhiIndia266.7° West3,840 km
MumbaiIndia280.0° West3,457 km
KolkataIndia278.2° West4,991 km
ChennaiIndia287.9° West-north-west4,386 km
BengaluruIndia288.4° West-north-west4,114 km
HyderabadIndia282.7° West-north-west4,075 km
LucknowIndia270.9° West4,205 km
PatnaIndia274.1° West4,629 km
AhmedabadIndia273.4° West3,374 km
BhopalIndia274.5° West3,867 km
SrinagarIndia256.9° West-south-west3,699 km
KozhikodeIndia291.0° West-north-west3,992 km

Qibla Direction in Pakistan and Bangladesh

Qibla Direction in Pakistan and Bangladesh: Qibla bearing from true north and distance to the Kaaba
CityQibla directionDistance to Kaaba
KarachiPakistan267.8° West2,804 km
LahorePakistan260.5° West3,603 km
IslamabadPakistan256.0° West-south-west3,531 km
DhakaBangladesh277.6° West5,180 km
ChattogramBangladesh279.3° West5,343 km

Qibla Direction in Saudi Arabia and the Gulf

Qibla Direction in Saudi Arabia and the Gulf: Qibla bearing from true north and distance to the Kaaba
CityQibla directionDistance to Kaaba
MadinahSaudi Arabia176.2° South338 km
JeddahSaudi Arabia101.1° East69 km
RiyadhSaudi Arabia243.9° West-south-west791 km
DubaiUAE258.3° West-south-west1,633 km
Abu DhabiUAE260.2° West1,529 km
DohaQatar252.7° West-south-west1,270 km
Kuwait CityKuwait224.8° South-west1,203 km
MuscatOman266.5° West1,923 km

Qibla Direction in the UK

Qibla Direction in the UK: Qibla bearing from true north and distance to the Kaaba
CityQibla directionDistance to Kaaba
LondonUnited Kingdom118.9° East-south-east4,795 km
BirminghamUnited Kingdom117.8° East-south-east4,953 km
ManchesterUnited Kingdom118.3° East-south-east5,026 km
BradfordUnited Kingdom119.1° East-south-east5,015 km
LeicesterUnited Kingdom118.8° East-south-east4,916 km
LeedsUnited Kingdom119.4° East-south-east5,003 km
SheffieldUnited Kingdom119.1° East-south-east4,976 km
LutonUnited Kingdom118.9° East-south-east4,832 km
BlackburnUnited Kingdom118.3° East-south-east5,054 km
GlasgowUnited Kingdom118.2° East-south-east5,266 km

Qibla Direction in Europe and Turkey

Qibla Direction in Europe and Turkey: Qibla bearing from true north and distance to the Kaaba
CityQibla directionDistance to Kaaba
ParisFrance119.0° East-south-east4,497 km
BerlinGermany136.6° South-east4,128 km
AmsterdamNetherlands125.5° South-east4,553 km
BrusselsBelgium123.4° East-south-east4,489 km
MadridSpain103.9° East-south-east4,603 km
StockholmSweden148.2° South-south-east4,551 km
DublinIreland114.0° East-south-east5,259 km
IstanbulTurkey151.5° South-south-east2,400 km

Qibla Direction in the USA and Canada

Qibla Direction in the USA and Canada: Qibla bearing from true north and distance to the Kaaba
CityQibla directionDistance to Kaaba
New YorkUSA58.4° East-north-east10,324 km
Washington, DCUSA56.5° East-north-east10,651 km
PhiladelphiaUSA57.7° East-north-east10,452 km
ChicagoUSA48.6° North-east11,165 km
DetroitUSA51.9° North-east10,841 km
DearbornUSA51.8° North-east10,850 km
HoustonUSA45.4° North-east12,593 km
DallasUSA43.4° North-east12,449 km
Los AngelesUSA23.8° North-north-east13,443 km
TorontoCanada54.5° North-east10,514 km
MississaugaCanada54.3° North-east10,535 km
BramptonCanada54.2° North-east10,534 km
MontrealCanada58.6° East-north-east10,015 km
CalgaryCanada24.9° North-north-east11,581 km
VancouverCanada16.6° North-north-east11,994 km

Qibla Direction in Southeast Asia and Australia

Qibla Direction in Southeast Asia and Australia: Qibla bearing from true north and distance to the Kaaba
CityQibla directionDistance to Kaaba
JakartaIndonesia295.0° West-north-west7,922 km
Kuala LumpurMalaysia292.4° West-north-west6,979 km
SingaporeSingapore292.9° West-north-west7,274 km
SydneyAustralia277.3° West13,237 km
MelbourneAustralia278.6° West12,738 km

Qibla Direction in Africa

Qibla Direction in Africa: Qibla bearing from true north and distance to the Kaaba
CityQibla directionDistance to Kaaba
CairoEgypt136.0° South-east1,286 km
CasablancaMorocco93.6° East4,830 km
LagosNigeria63.5° East-north-east4,253 km
NairobiKenya7.2° North2,534 km
JohannesburgSouth Africa14.7° North-north-east5,421 km

How to Find the Qibla Direction from Your Location

To find the Qibla with this online Qibla compass, open the page on your phone, use your GPS location, hold the phone flat and turn until the Kaaba needle points straight ahead. Step by step:

  1. Open this page on your phone or tablet

    The live Qibla compass uses the magnetometer (compass sensor) built into most smartphones and tablets. On a laptop or desktop you still get the exact Qibla bearing and distance, and you can scan the QR code to continue on your phone.

  2. Use your exact location

    The page starts with an approximate location from your internet connection. Tap “Find Device Based” and allow location access so your phone’s GPS gives the most accurate Qibla direction.

  3. Allow compass access on iPhone and iPad

    On iPhone and iPad, your browser asks before a website can use motion and orientation. Tap “Enable Compass” and choose Allow so the dial can follow your movements.

  4. Hold your phone flat

    Keep the screen facing up and level with the ground, away from metal, magnets, speakers and other electronics.

  5. Turn until the Kaaba needle points straight ahead

    Rotate slowly on the spot. When the green needle with the Kaaba icon points to the top of your screen, you are facing the Qibla. The needle label shows the exact bearing in degrees.

  6. Calibrate if the needle jumps

    Tap “Calibrate” and move your phone in a figure-8 two or three times, then hold it flat again.

  7. Save your Qibla direction

    Tap “Screenshot Kaaba Details” to keep an image of the direction, distance and location. It is handy for marking the Qibla in a new home, an office prayer room or a hotel room.

How to Calibrate Your Phone’s Compass

Phones sense direction with a tiny magnetometer that drifts over time and is easily disturbed by nearby metal and magnets. If the Qibla needle looks wrong, jumps around or turns slowly:

  • Draw a figure-8. Hold the phone and move it smoothly in a figure-8 (∞) two or three times, tilting and turning it as you go, as shown in the calibration video that appears when you tap Calibrate on your phone.
  • iPhone: make sure Settings → Privacy & Security → Location Services → System Services → Compass Calibration is switched on.
  • Android: tap Calibrate on this page and move your phone in a figure-8 until the needle stops jumping.
  • Remove magnets. Take the phone out of magnetic cases, wallet cases and car or MagSafe mounts, and step away from cars, steel furniture, speakers, laptops and electrical wiring.

Magnetic North vs True North (Magnetic Declination)

A compass needle points to magnetic north, but Qibla bearings are measured from true (geographic) north. The angle between them is called magnetic declination, and it varies with place and time: it is about 1° east in London and Delhi, about 12.5° west in New York and about 13° east in Sydney.

This Qibla finder shows the declination for your location in the details panel and corrects the live compass for it automatically using the World Magnetic Model (WMM2025), so the needle points to the Qibla relative to true north. With an ordinary magnetic compass, subtract an easterly declination from the bearing in the tables above, or add a westerly one.

How the Qibla Direction Is Calculated

The Qibla is the direction of the Kaaba inside Masjid al-Haram in Makkah, at about 21.4225° N, 39.8262° E. From your latitude and longitude, this page computes the geodesic, the shortest route across the Earth’s surface, to those coordinates. The starting bearing of that route, measured from true north, is your Qibla direction, and its length is your distance to the Kaaba.

The calculation uses Charles Karney’s geodesic algorithm (the method behind GeographicLib) on the WGS84 ellipsoid, the same Earth model used by GPS. Unlike simple spherical formulas, it accounts for the Earth’s slightly flattened shape and is accurate to a tiny fraction of a degree, so the result is limited only by the accuracy of your location and your phone’s compass.

Why the Qibla Is Not Where a Flat Map Suggests

A world map flattens a round planet, so a straight line on the map is usually not the shortest route. From New York, a straight line on a standard web map heads east-south-east (about 101°), but the true shortest path to Makkah starts out east-north-east, at about 58°, and arcs over the North Atlantic.

The gap shrinks closer to Makkah but does not vanish: from London the map line points to about 134° while the true Qibla is about 119°, and from Delhi it is about 258° on the map against about 267° in reality. This is why Qibla directions in North America were debated in the past, and why this Qibla finder, like most modern Qibla tools, follows the great-circle path.

Why Your Exact Location Matters

The bearing is only as good as the location it starts from. Until you tap “Find Device Based”, the page uses an approximate location from your IP address, which can place you in the wrong city, especially on mobile data or a VPN. That can shift the Qibla by a few degrees, and by much more near Makkah, so use your device’s GPS location whenever you can.

How to Find the Qibla Without a Compass

No phone, no signal, or a compass that will not settle? These traditional methods still give a reliable Qibla direction.

1. When the Sun Is Directly Over the Kaaba

Twice a year the sun passes directly overhead at the Kaaba: on 27 or 28 May at about 09:18 UTC and on 15 or 16 July at about 09:27 UTC. At that moment, wherever the sun is above the horizon (most of Europe, Africa and Asia), the sun itself stands in the direction of the Qibla. Stand a stick upright on level ground: its shadow points directly away from the Kaaba, so face towards the sun. The closer you are to the exact minute, the more accurate the direction.

Local times when the sun is directly over the Kaaba
Location27/28 May15/16 July
UTC
Saudi Arabia (AST)
UK (BST)
Central Europe (CEST)
UAE and Oman
Pakistan
India
Bangladesh
Jakarta (WIB)
Malaysia and Singapore

2. When the Sun Is Opposite the Kaaba (the Americas)

In the Americas the sun is down during those moments, so use the opposite event instead. On about 28 November at 21:09 UTC and on 12 or 13 January at 21:29 UTC, the sun is directly over the point on the far side of the Earth from the Kaaba. Then the shadow of an upright stick points straight towards the Qibla. In the eastern USA and Canada the sun is then very low, only about 3° above the horizon in New York and 5° in Toronto, shortly before sunset, so you need a clear view to the south-west.

Local times when the sun is directly opposite the Kaaba
LocationAbout 28 Nov12/13 Jan
UTC
New York, Toronto (EST)
Chicago, Houston (CST)
Denver, Calgary (MST)
Los Angeles, Vancouver (PST)

3. Use the Midday Sun or the North Star

At local solar noon, halfway between sunrise and sunset, the sun is due south if you live north of the Tropic of Cancer and due north if you live south of the Tropic of Capricorn. At night in the Northern Hemisphere, Polaris (the North Star) sits within about a degree of true north. Once you know north or south, turn by the Qibla bearing for your city from the tables above, for example about 267° (just south of due west) in Delhi.

4. Look for a Mosque or Ask Locally

A mosque’s mihrab, the niche in its front (qibla) wall, and the direction of its prayer rows show the Qibla. Many hotels, airports and prayer rooms in Muslim-majority countries mark it with a small arrow or sign, and local Muslims or the nearest imam can point you the right way.

What Is the Qibla?

Qibla (Arabic: قبلة, qiblah) means “direction”, specifically the direction Muslims face in prayer: towards the Kaaba, the cube-shaped House of Allah at the heart of Masjid al-Haram in Makkah (Mecca), Saudi Arabia. Facing the Qibla is one of the conditions of a valid salah for anyone who is able to, which is why Muslims everywhere need to know the Qibla direction for the five daily prayers.

In the early years of Islam, Muslims prayed towards Jerusalem (Bayt al-Maqdis). About sixteen or seventeen months after the Hijrah, the Qibla was changed to the Kaaba, as described in Surah Al-Baqarah (Qur’an 2:142–150). The mosque in Madinah where, according to tradition, the change took place during a prayer is known as Masjid al-Qiblatayn, “the Mosque of the Two Qiblas”.

The Qur’an describes the Kaaba as the first house of worship established for mankind (3:96) and tells how Prophet Ibrahim (Abraham) and his son Ismail raised its foundations (2:127). The Black Stone (al-Hajar al-Aswad) is set in its eastern corner. Beyond the daily prayers, it is recommended to face the Qibla when making du’a, the deceased is laid in the grave on the right side facing the Qibla, and an animal is turned towards the Qibla when it is slaughtered (dhabihah).

Qibla Finder FAQs

Which direction is the Qibla in India?

West, but the exact angle depends on the city. The Qibla is about 267° from true north in Delhi (just south of due west), 271° in Lucknow, 278° in Kolkata, 280° in Mumbai and about 288° in Chennai and Bengaluru (west-north-west). In Kashmir it turns further south: about 257° in Srinagar.

Which direction is the Qibla in Pakistan and Bangladesh?

In Pakistan it is west to west-south-west: about 268° from true north in Karachi, 260° in Lahore and 256° in Islamabad. In Bangladesh it is just north of due west: about 278° in Dhaka and 279° in Chattogram.

Which way is the Qibla from the UK?

East-south-east for almost all of the UK. The Qibla is about 119° from true north in London and about 118° in Birmingham and Manchester, and it ranges from about 112° in Cornwall to about 125° in Shetland.

Which way is the Qibla from the USA and Canada?

Generally north-east, not south-east. The shortest path to Makkah curves over the North Atlantic, so the Qibla is about 58° from true north in New York (east-north-east), 49° in Chicago, 45° in Houston and 55° in Toronto, and only about 24° in Los Angeles and 17° in Vancouver (north-north-east).

Is the Qibla always west or east?

No. The Qibla points to one place, the Kaaba, so its direction depends entirely on where you are. It is roughly west from India, Pakistan and Bangladesh, west to west-south-west from the UAE and Qatar, west-north-west from Malaysia and Indonesia, west from Australia (about 277° in Sydney), east-south-east from the UK and France, south-east from Germany and Egypt, south-south-east from Turkey, north-north-east to east-north-east from North America and almost due north from Nairobi.

Can I use my phone as a Qibla compass without installing an app?

Yes. Open this page in your phone’s browser (tap Enable Compass on iPhone), tap Find Device Based and allow location access for GPS accuracy, then hold the phone flat and turn until the green Kaaba needle points straight ahead. There is nothing to install and no account or sign-up.

How does this Qibla finder work?

It takes your location (GPS, or an approximate location from your IP address), calculates the shortest path over the Earth to the Kaaba in Makkah, and shows that bearing from true north along with the distance. On a phone it then reads the compass sensor, corrects it for magnetic declination and turns the Kaaba needle as you move. Nothing is installed and your location is not saved.

Does this Qibla finder work on a laptop or desktop?

Partly. Most laptops and desktop computers have no compass sensor, so the needle cannot follow your movements, but the page still shows your exact Qibla bearing and the distance to the Kaaba. Use that bearing with a regular compass, or scan the QR code to open the live compass on your phone.

Why does my Qibla direction differ from another app or my mosque?

Most differences come from the compass, not the maths. Phone sensors are easily thrown off by metal, magnets and electronics and need calibrating. Other causes include an app that uses magnetic north without correcting for declination, an approximate IP-based location instead of GPS, or a tool that draws a straight line on a flat map instead of following the shortest path over the globe. Some older mosques were also built facing a slightly different direction. Calibrate, move away from metal and use your GPS location for the most reliable result.

How accurate is this Qibla finder?

The calculation itself is extremely precise: it uses Karney’s geodesic method on the WGS84 ellipsoid, the same Earth model that GPS uses. In practice, accuracy depends on your location and your phone’s compass sensor. With GPS location and a freshly calibrated compass held flat away from metal, a phone usually points within a few degrees of the true Qibla. For a fixed reference, use the bearing shown in degrees.

Why does my compass need calibration?

A phone’s magnetometer slowly drifts and picks up interference from magnets, metal and electronics around it. Moving the phone in a figure-8 a few times lets it re-measure the Earth’s magnetic field so the needle points correctly. Recalibrate whenever the needle jumps, spins or disagrees with a direction you know.

Does this page store my location?

No. Your Qibla direction is calculated in your browser, and this site does not save your location. To estimate an approximate starting location, your browser asks a public IP-location service (such as ipinfo.io) where your internet connection is. When you tap Find Device Based, your precise GPS position is used only on your device.

What if I can’t find the exact Qibla?

Make a sincere effort and face the best direction you can. Scholars explain that for someone far from the Kaaba, facing its general direction after a genuine effort is acceptable, and many hold that a prayer offered this way does not need to be repeated if you later find you were slightly off. If you are unsure, ask a local imam or scholar.

How is the distance to the Kaaba measured?

It is the shortest distance over the Earth’s surface, along the same geodesic path used for the direction. It is not a straight line through the Earth or a road or flight route. For example, the Kaaba is about 3,840 km from Delhi, 4,795 km from London and 10,324 km from New York.

What are the coordinates of the Kaaba?

The Kaaba is at about 21.4225° N, 39.8262° E, in the centre of Masjid al-Haram in Makkah, Saudi Arabia. This Qibla finder uses these coordinates for every calculation.

About This Qibla Finder

This free Qibla finder is built and maintained by Farhan Reza, a software developer, so that anyone can find an accurate Qibla direction in a browser without installing an app. It combines a geodesic Qibla calculation (Karney’s method on WGS84), automatic magnetic declination correction from the World Magnetic Model (WMM2025) and your phone’s compass sensor. No sign-up is needed and your location is never saved.

Learn More About the Qibla

Last reviewed:

Our Services

All Services available to everyone in Premium Quality

20+ Services