Every Muslim faces the Kaaba in Makkah during prayer, but the direction changes with every city on Earth. From London it is south east, from New York it is north east, and from Karachi it is almost due west. This free Qibla Direction Finder gives you the exact bearing for your city in seconds, with no app to install, no account to create, and no location permission needed.
Pick your city from the list, or enter any latitude and longitude, and the tool shows the bearing in degrees clockwise from true north, the compass direction in plain words, the distance to the Kaaba, and a dial you can read against a compass. If your city is not in the list, the manual coordinates option covers every place on Earth.
How to use this Qibla finder
Step 1: Pick your city from the dropdown, or type your latitude and longitude if your town is not listed. Step 2: Read the bearing, which is measured in degrees clockwise from true north, so 0 means north, 90 means east, 180 means south, and 270 means west. Step 3: Stand with a compass, or with a compass app, and turn until you face that many degrees clockwise from north. That is your Qibla. Step 4: Pick a landmark in that line, such as a door frame or a window edge, so you can find the same direction again without redoing the reading. If you are setting up a prayer space at home, this landmark step matters more than a single phone reading, because phone compasses drift.
Worked examples
London: 119 degrees, south east, 4,794 km to the Kaaba. Istanbul: 152 degrees, south south east, 2,405 km. Karachi: 268 degrees, almost due west, 2,800 km. New York: 58 degrees, north east, 10,306 km. The New York result surprises most people, and it is the best proof that the calculation is doing something a flat map cannot. On an ordinary wall map, Makkah sits south east of New York, so a ruler line points south east. On a globe, the shortest path leaves New York heading north east, curves over the Atlantic, and arrives at Makkah from the north west. The bearing is the starting direction of that curved path, not the direction of a straight line drawn on a flat map.
How the bearing is calculated
The tool uses the great circle initial bearing, the standard method used by Qibla apps and by the competing pages in the search results. The Kaaba is fixed at 21.4225 degrees north, 39.8262 degrees east. Your latitude and longitude go into this formula: bearing equals atan2 of sin(longitude difference) times cos(Kaaba latitude), divided by cos(your latitude) times sin(Kaaba latitude) minus sin(your latitude) times cos(Kaaba latitude) times cos(longitude difference). The result is then normalised to a value between 0 and 360 degrees. The distance uses the haversine formula, which measures the shortest path over a sphere with an Earth radius of 6,371 km. Every number in the table below was produced by this exact formula and checked against the consensus figures on the competing pages, not copied from them. Small differences of a degree or two between tools are normal, because cities are large and different tools use slightly different centre points for the same city.
Why a flat map misleads you
Flat maps stretch the Earth, and the stretching is worst far from the equator. A straight line on a Mercator map is not the shortest path on a globe, except along the equator or a meridian. That is why the Qibla from the Americas looks wrong on a wall map and right on a globe. From Los Angeles the bearing is 24 degrees, north north east, even though Makkah appears far to the east on a flat map. From Jakarta it is 295 degrees, west north west. Trust the globe, not the rectangle.
True north, not magnetic north
The bearing on this page is measured from true north, the direction of the geographic North Pole. Most phone and handheld compasses point to magnetic north instead, and the gap between the two, called magnetic declination, varies by place. It is small in Britain, a few degrees in much of Europe and the Gulf, and larger in parts of North America and Australia. A compass app that corrects for declination will agree with this tool. A raw magnetic compass may sit a few degrees off. For daily prayer, a few degrees is a small matter, and local mosque practice is the final guide. For laying out a new prayer room, cross check with a second method below rather than trusting one phone reading.
Finding the Qibla with no compass at all
Sun method: twice a year the sun stands directly over the Kaaba, around 12:18 PM Makkah time on 27 or 28 May, and around 12:27 PM Makkah time on 15 or 16 July. At that minute, anyone who can see the sun and faces it is facing the Qibla. Mark the line on the ground with a stick or a string, and that line stays valid for the same spot for years. This is also the best way to check a compass that may be disturbed by steel or wiring. Landmark method: if you know one building that faces the Qibla, such as your local mosque, stand in line with its prayer direction and note a distant landmark on the same line. Shadow method: at local solar noon the sun sits due south in the northern hemisphere and due north in the southern hemisphere, so a shadow line gives you a north south reference to measure the bearing from.
A short history of the Qibla
Muslims first faced Jerusalem in prayer, then the direction changed to the Kaaba in Makkah, as commanded in Quran 2:144. That change, early in the history of Islam, is why the Qibla is the Kaaba today, and why mosques built before the change, such as the two Qibla mosque in Madinah, carry this history in their layout. For centuries scholars worked out the direction with astronomy, star tables, and spherical geometry, long before GPS. This tool does the same geometry in your browser, in a fraction of a second.
Qibla direction from major cities
Bearings are in degrees clockwise from true north, along the great circle path to the Kaaba. Distances are great circle distances in kilometres. Use this table to sanity check the tool: if the tool gives a value within a degree or two of your nearest city here, the reading is sound.
New York, USA: 58 degrees, North East, 10,306 km. Toronto, Canada: 55 degrees, North East, 10,496 km. Chicago, USA: 49 degrees, North East, 11,146 km. Los Angeles, USA: 24 degrees, North North East, 13,424 km. London, UK: 119 degrees, South East, 4,794 km. Paris, France: 119 degrees, South East, 4,496 km. Madrid, Spain: 104 degrees, East South East, 4,598 km. Rome, Italy: 123 degrees, South East, 3,419 km. Berlin, Germany: 137 degrees, South East, 4,130 km. Istanbul, Turkiye: 152 degrees, South South East, 2,405 km. Ankara, Turkiye: 160 degrees, South South East, 2,162 km. Cairo, Egypt: 136 degrees, South East, 1,287 km. Lagos, Nigeria: 63 degrees, North East, 4,251 km. Nairobi, Kenya: 7 degrees, North, 2,547 km. Johannesburg, South Africa: 15 degrees, North North East, 5,446 km. Dubai, UAE: 258 degrees, West South West, 1,631 km. Riyadh, Saudi Arabia: 244 degrees, West South West, 790 km. Doha, Qatar: 253 degrees, West South West, 1,269 km. Kuwait City, Kuwait: 225 degrees, South West, 1,204 km. Tehran, Iran: 218 degrees, South West, 1,944 km. Baghdad, Iraq: 200 degrees, South South West, 1,396 km. Karachi, Pakistan: 268 degrees, West, 2,800 km. Lahore, Pakistan: 260 degrees, West, 3,598 km. Islamabad, Pakistan: 256 degrees, West South West, 3,528 km. Delhi, India: 267 degrees, West, 3,835 km. Mumbai, India: 280 degrees, West, 3,452 km. Dhaka, Bangladesh: 278 degrees, West, 5,172 km. Bangkok, Thailand: 287 degrees, West North West, 6,451 km. Singapore: 293 degrees, West North West, 7,269 km. Kuala Lumpur, Malaysia: 293 degrees, West North West, 6,974 km. Jakarta, Indonesia: 295 degrees, West North West, 7,920 km. Manila, Philippines: 289 degrees, West North West, 8,525 km. Sydney, Australia: 278 degrees, West, 13,236 km. Melbourne, Australia: 279 degrees, West, 12,741 km. Auckland, New Zealand: 261 degrees, West, 15,365 km.
Accuracy disclaimer
This tool is a guide, not a religious ruling. The bearing is a mathematical result for the coordinates you enter, and it is only as exact as those coordinates. A city centre value can differ by a degree or two from your street, and a phone compass can be pulled further off by metal, magnets, speakers, and wiring. If you are building a mosque or fixing a permanent prayer direction, confirm with your local mosque or a qualified survey. For daily prayer at home, at work, or while travelling, the tool, plus one cross check from the table or the sun method, is more than enough. Your location is never sent anywhere: when you pick a city or type coordinates, the calculation runs entirely in your browser, and the location button only uses your position on your own device.
Frequently asked questions
What is the Qibla? The Qibla is the direction Muslims face during prayer. It points to the Kaaba, the cube shaped building at the centre of Masjid al-Haram in Makkah, Saudi Arabia.
Why does the Qibla direction change from place to place? Because the Earth is round. The shortest path to Makkah starts in a different compass direction from every city, so London faces south east while New York faces north east.
Do I need to install an app? No. This page works in any modern browser, on phone and desktop, with no install and no account.
Does this tool need my location? No. Pick a city or type coordinates and it works with no permission at all. The location button is optional, for people who want their exact street rather than their city centre.
Why do two Qibla apps sometimes disagree? They may use different centre points for your city, or one may correct for magnetic declination while the other does not. Differences of a few degrees are normal and do not change the direction in any practical sense.
How accurate does my Qibla need to be? Aim for the true bearing, and do not worry about a degree or two. When the exact direction cannot be known, sincere effort is what counts, and local mosque practice governs.
Can I use this tool offline? Once the page has loaded, the calculator itself needs no connection, because the maths runs in your browser. You do need a connection the first time to load the page.
How do I calibrate my phone compass? Move the phone slowly in a figure eight motion a few times, hold it flat, and step away from metal objects, laptops, and speakers before reading.
Related Islamic tools
If you found this page useful, try the other tools in the PlayQudus Islamic date tools collection: the Islamic Date Tools hub at https://playqudus.com/islamic-date-tools/, the Hijri Gregorian Date Difference Calculator at https://playqudus.com/hijri-gregorian-date-difference-calculator/, the Zakat Calculator at https://playqudus.com/zakat-calculator/, and the Ramadan Countdown 2027 at https://playqudus.com/ramadan-countdown-2027/. Together they cover dates, charity, fasting, and now prayer direction.