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.
Qibla Compass
Kaaba Direction
Kaaba Distance
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 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
| City | Qibla direction | Distance to Kaaba |
|---|---|---|
| New DelhiIndia | 266.7° West | 3,840 km |
| MumbaiIndia | 280.0° West | 3,457 km |
| KolkataIndia | 278.2° West | 4,991 km |
| ChennaiIndia | 287.9° West-north-west | 4,386 km |
| BengaluruIndia | 288.4° West-north-west | 4,114 km |
| HyderabadIndia | 282.7° West-north-west | 4,075 km |
| LucknowIndia | 270.9° West | 4,205 km |
| PatnaIndia | 274.1° West | 4,629 km |
| AhmedabadIndia | 273.4° West | 3,374 km |
| BhopalIndia | 274.5° West | 3,867 km |
| SrinagarIndia | 256.9° West-south-west | 3,699 km |
| KozhikodeIndia | 291.0° West-north-west | 3,992 km |
Qibla Direction in Pakistan and Bangladesh
| City | Qibla direction | Distance to Kaaba |
|---|---|---|
| KarachiPakistan | 267.8° West | 2,804 km |
| LahorePakistan | 260.5° West | 3,603 km |
| IslamabadPakistan | 256.0° West-south-west | 3,531 km |
| DhakaBangladesh | 277.6° West | 5,180 km |
| ChattogramBangladesh | 279.3° West | 5,343 km |
Qibla Direction in Saudi Arabia and the Gulf
| City | Qibla direction | Distance to Kaaba |
|---|---|---|
| MadinahSaudi Arabia | 176.2° South | 338 km |
| JeddahSaudi Arabia | 101.1° East | 69 km |
| RiyadhSaudi Arabia | 243.9° West-south-west | 791 km |
| DubaiUAE | 258.3° West-south-west | 1,633 km |
| Abu DhabiUAE | 260.2° West | 1,529 km |
| DohaQatar | 252.7° West-south-west | 1,270 km |
| Kuwait CityKuwait | 224.8° South-west | 1,203 km |
| MuscatOman | 266.5° West | 1,923 km |
Qibla Direction in the UK
| City | Qibla direction | Distance to Kaaba |
|---|---|---|
| LondonUnited Kingdom | 118.9° East-south-east | 4,795 km |
| BirminghamUnited Kingdom | 117.8° East-south-east | 4,953 km |
| ManchesterUnited Kingdom | 118.3° East-south-east | 5,026 km |
| BradfordUnited Kingdom | 119.1° East-south-east | 5,015 km |
| LeicesterUnited Kingdom | 118.8° East-south-east | 4,916 km |
| LeedsUnited Kingdom | 119.4° East-south-east | 5,003 km |
| SheffieldUnited Kingdom | 119.1° East-south-east | 4,976 km |
| LutonUnited Kingdom | 118.9° East-south-east | 4,832 km |
| BlackburnUnited Kingdom | 118.3° East-south-east | 5,054 km |
| GlasgowUnited Kingdom | 118.2° East-south-east | 5,266 km |
Qibla Direction in Europe and Turkey
| City | Qibla direction | Distance to Kaaba |
|---|---|---|
| ParisFrance | 119.0° East-south-east | 4,497 km |
| BerlinGermany | 136.6° South-east | 4,128 km |
| AmsterdamNetherlands | 125.5° South-east | 4,553 km |
| BrusselsBelgium | 123.4° East-south-east | 4,489 km |
| MadridSpain | 103.9° East-south-east | 4,603 km |
| StockholmSweden | 148.2° South-south-east | 4,551 km |
| DublinIreland | 114.0° East-south-east | 5,259 km |
| IstanbulTurkey | 151.5° South-south-east | 2,400 km |
Qibla Direction in the USA and Canada
| City | Qibla direction | Distance to Kaaba |
|---|---|---|
| New YorkUSA | 58.4° East-north-east | 10,324 km |
| Washington, DCUSA | 56.5° East-north-east | 10,651 km |
| PhiladelphiaUSA | 57.7° East-north-east | 10,452 km |
| ChicagoUSA | 48.6° North-east | 11,165 km |
| DetroitUSA | 51.9° North-east | 10,841 km |
| DearbornUSA | 51.8° North-east | 10,850 km |
| HoustonUSA | 45.4° North-east | 12,593 km |
| DallasUSA | 43.4° North-east | 12,449 km |
| Los AngelesUSA | 23.8° North-north-east | 13,443 km |
| TorontoCanada | 54.5° North-east | 10,514 km |
| MississaugaCanada | 54.3° North-east | 10,535 km |
| BramptonCanada | 54.2° North-east | 10,534 km |
| MontrealCanada | 58.6° East-north-east | 10,015 km |
| CalgaryCanada | 24.9° North-north-east | 11,581 km |
| VancouverCanada | 16.6° North-north-east | 11,994 km |
Qibla Direction in Southeast Asia and Australia
| City | Qibla direction | Distance to Kaaba |
|---|---|---|
| JakartaIndonesia | 295.0° West-north-west | 7,922 km |
| Kuala LumpurMalaysia | 292.4° West-north-west | 6,979 km |
| SingaporeSingapore | 292.9° West-north-west | 7,274 km |
| SydneyAustralia | 277.3° West | 13,237 km |
| MelbourneAustralia | 278.6° West | 12,738 km |
Qibla Direction in Africa
| City | Qibla direction | Distance to Kaaba |
|---|---|---|
| CairoEgypt | 136.0° South-east | 1,286 km |
| CasablancaMorocco | 93.6° East | 4,830 km |
| LagosNigeria | 63.5° East-north-east | 4,253 km |
| NairobiKenya | 7.2° North | 2,534 km |
| JohannesburgSouth Africa | 14.7° North-north-east | 5,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:
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.
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.
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.
Hold your phone flat
Keep the screen facing up and level with the ground, away from metal, magnets, speakers and other electronics.
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.
Calibrate if the needle jumps
Tap “Calibrate” and move your phone in a figure-8 two or three times, then hold it flat again.
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.
| Location | 27/28 May | 15/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.
| Location | About 28 Nov | 12/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
- How to Find the Qibla Direction: A Complete Guide
- Qibla Direction for Every Country, State and City
- Find Your Qibla Direction Instantly from Anywhere
- The Math Behind a High-Precision Qibla Compass
Last reviewed:
Our Services
All Services available to everyone in Premium Quality