Five times a day, more than a billion Muslims turn to face one point on Earth: the Kaaba in Makkah. Whether you pray in Kuala Lumpur, London or Los Angeles, that direction is called the qibla. Finding it sounds simple, but the story behind it takes in revelation, a thousand years of mathematics and one surprisingly heated debate about maps.
This guide explains where the qibla came from, how Muslims have worked it out through history, and the qibla direction from major cities around the world. If you would like all of this on one page, our Qibla of the World's Major Cities poster charts the prayer direction from cities across every continent.
From Jerusalem to Makkah: the change of qibla
In the early years of Islam, the Prophet Muhammad ﷺ and his Companions prayed towards Jerusalem (Bayt al-Maqdis). After the migration to Madinah, the Prophet ﷺ longed for the direction to be turned to the Kaaba, the house built by Ibrahim and Isma'il. The answer came in Surah al-Baqarah: "We have certainly seen the turning of your face toward the heaven, and We will surely turn you to a qibla with which you will be pleased. So turn your face toward al-Masjid al-Haram. And wherever you are, turn your faces toward it" (Qur'an 2:144).
The surrounding verses (Qur'an 2:142–150) anticipate the questions people would ask, reminding believers that "to Allah belongs the east and the west" (Qur'an 2:142). According to a narration of al-Bara' ibn 'Azib in Sahih al-Bukhari, the Muslims had prayed towards Jerusalem for sixteen or seventeen months after arriving in Madinah. Bukhari also records that worshippers at Quba turned around mid-prayer when the news reached them.
The change is dated to the second year after the Hijra (2 AH, about 624 CE). Most historians and hadith commentators, including Ibn Hajar al-'Asqalani in Fath al-Bari, place it in mid-Rajab of 2 AH, while others place it in Sha'ban of the same year. The difference also explains why the reports speak of either sixteen or seventeen months.
Tradition places a similar moment at a mosque in Madinah where a congregation changed direction during the prayer itself. That mosque is known today as Masjid al-Qiblatayn, the Mosque of the Two Qiblas, and it is still visited by pilgrims.
How early Muslims found the qibla
Early Muslims used the sun and stars. As Islam spread from Spain to Central Asia, finding the qibla became one of the great problems of Islamic science.
- Spherical trigonometry. Between the 9th and 11th centuries, Muslim astronomers worked out exact methods to find the direction from one point on a sphere to another. These are the same formulas we use today.
- Al-Biruni (d. 1048). In his book on mathematical geography, Tahdid Nihayat al-Amakin, the polymath al-Biruni set out to measure the coordinates of cities so that the qibla of Ghazni, in today's Afghanistan, could be calculated.
- Qibla tables. In 14th-century Damascus, the astronomer Shams al-Din al-Khalili compiled a table giving the qibla for 2,880 combinations of latitude and longitude. Historian David King has called it the most impressive of its kind for its scope and accuracy.
Why the qibla from North America points northeast
Look at a flat world map and Makkah sits to the east and slightly south of New York. So for decades, many mosques in North America faced southeast. But the Earth is a sphere, and the shortest route between two points on a sphere is a great circle. From New York, that shortest path curves up over the North Atlantic, so the true qibla is about 58.5° from north: northeast.
In 1978, the Muslim scholar S. Kamal Abdali published work arguing for the great-circle (northeast) qibla. Others, including Riad Nachef and Samir Kadi in a 1993 book, defended the southeast direction based on the rhumb line, a path of constant compass bearing that looks straight on a flat map. Today most North American Muslims follow the northeast qibla, while a minority still face southeast.
Qibla direction from major cities
The table below gives the qibla from 60 major cities, grouped by region. Bearings are measured clockwise from true north (0° is north, 90° is east, 180° is south, 270° is west) and are the initial bearing of the great circle from each city to the Kaaba, taken as 21.4225°N, 39.8262°E. Distances are great-circle (haversine) distances using a mean Earth radius of 6,371 km, rounded to the nearest 10 km. City coordinates are approximate city-centre values, so treat the decimal place as a guide: across a large city the qibla can shift by a few tenths of a degree.
A magnetic compass points to magnetic north, not true north. The difference (magnetic declination) can be several degrees and changes over time, so check your local value or use a qibla app that corrects for it.
| Region | City | Country | Qibla bearing (° from true north) | Compass direction (16-point) | Distance to the Kaaba |
|---|---|---|---|---|---|
| Middle East | Riyadh | Saudi Arabia | 243.8° | West-southwest (WSW) | 790 km |
| Middle East | Madinah | Saudi Arabia | 176.2° | South (S) | 340 km |
| Middle East | Dubai | United Arab Emirates | 258.2° | West-southwest (WSW) | 1,630 km |
| Middle East | Doha | Qatar | 252.6° | West-southwest (WSW) | 1,270 km |
| Middle East | Kuwait City | Kuwait | 224.6° | Southwest (SW) | 1,200 km |
| Middle East | Baghdad | Iraq | 199.8° | South-southwest (SSW) | 1,400 km |
| Middle East | Amman | Jordan | 160.7° | South-southeast (SSE) | 1,230 km |
| Middle East | Jerusalem | Palestine | 157.2° | South-southeast (SSE) | 1,240 km |
| Middle East | Damascus | Syria | 164.5° | South-southeast (SSE) | 1,390 km |
| Middle East | Beirut | Lebanon | 161.9° | South-southeast (SSE) | 1,450 km |
| Middle East | Tehran | Iran | 218.4° | Southwest (SW) | 1,940 km |
| Middle East | Istanbul | Türkiye | 151.6° | South-southeast (SSE) | 2,410 km |
| Africa | Cairo | Egypt | 136.1° | Southeast (SE) | 1,290 km |
| Africa | Khartoum | Sudan | 48.2° | Northeast (NE) | 1,010 km |
| Africa | Tunis | Tunisia | 112.7° | East-southeast (ESE) | 3,330 km |
| Africa | Algiers | Algeria | 105.4° | East-southeast (ESE) | 3,930 km |
| Africa | Casablanca | Morocco | 93.7° | East (E) | 4,820 km |
| Africa | Kano | Nigeria | 68.3° | East-northeast (ENE) | 3,480 km |
| Africa | Lagos | Nigeria | 63.3° | East-northeast (ENE) | 4,250 km |
| Africa | Mogadishu | Somalia | 345.0° | North-northwest (NNW) | 2,240 km |
| Africa | Nairobi | Kenya | 7.2° | North (N) | 2,550 km |
| Africa | Dar es Salaam | Tanzania | 1.2° | North (N) | 3,140 km |
| Africa | Johannesburg | South Africa | 14.6° | North-northeast (NNE) | 5,450 km |
| Africa | Cape Town | South Africa | 23.4° | North-northeast (NNE) | 6,560 km |
| Central & South Asia | Baku | Azerbaijan | 207.2° | South-southwest (SSW) | 2,310 km |
| Central & South Asia | Tashkent | Uzbekistan | 240.3° | West-southwest (WSW) | 3,530 km |
| Central & South Asia | Kabul | Afghanistan | 250.8° | West-southwest (WSW) | 3,220 km |
| Central & South Asia | Karachi | Pakistan | 267.7° | West (W) | 2,800 km |
| Central & South Asia | Lahore | Pakistan | 260.4° | West (W) | 3,600 km |
| Central & South Asia | Delhi | India | 266.6° | West (W) | 3,830 km |
| Central & South Asia | Mumbai | India | 280.1° | West (W) | 3,450 km |
| Central & South Asia | Hyderabad | India | 282.7° | West-northwest (WNW) | 4,070 km |
| Central & South Asia | Dhaka | Bangladesh | 277.6° | West (W) | 5,170 km |
| Central & South Asia | Colombo | Sri Lanka | 294.8° | West-northwest (WNW) | 4,590 km |
| East & Southeast Asia | Kuala Lumpur | Malaysia | 292.5° | West-northwest (WNW) | 6,970 km |
| East & Southeast Asia | Singapore | Singapore | 293.0° | West-northwest (WNW) | 7,270 km |
| East & Southeast Asia | Jakarta | Indonesia | 295.2° | West-northwest (WNW) | 7,920 km |
| East & Southeast Asia | Bandar Seri Begawan | Brunei | 290.9° | West-northwest (WNW) | 8,270 km |
| East & Southeast Asia | Bangkok | Thailand | 286.9° | West-northwest (WNW) | 6,450 km |
| East & Southeast Asia | Manila | Philippines | 289.0° | West-northwest (WNW) | 8,530 km |
| East & Southeast Asia | Hong Kong | China | 285.1° | West-northwest (WNW) | 7,590 km |
| East & Southeast Asia | Beijing | China | 278.9° | West (W) | 7,390 km |
| East & Southeast Asia | Seoul | South Korea | 285.7° | West-northwest (WNW) | 8,340 km |
| East & Southeast Asia | Tokyo | Japan | 293.0° | West-northwest (WNW) | 9,470 km |
| Europe | Moscow | Russia | 176.4° | South (S) | 3,820 km |
| Europe | Berlin | Germany | 136.7° | Southeast (SE) | 4,130 km |
| Europe | Amsterdam | Netherlands | 125.6° | Southeast (SE) | 4,550 km |
| Europe | Paris | France | 119.2° | East-southeast (ESE) | 4,500 km |
| Europe | London | United Kingdom | 119.0° | East-southeast (ESE) | 4,790 km |
| Europe | Madrid | Spain | 104.0° | East-southeast (ESE) | 4,600 km |
| Americas | Toronto | Canada | 54.6° | Northeast (NE) | 10,500 km |
| Americas | New York | United States | 58.5° | East-northeast (ENE) | 10,310 km |
| Americas | Chicago | United States | 48.7° | Northeast (NE) | 11,150 km |
| Americas | Houston | United States | 45.5° | Northeast (NE) | 12,570 km |
| Americas | Los Angeles | United States | 23.9° | North-northeast (NNE) | 13,420 km |
| Americas | Mexico City | Mexico | 46.6° | Northeast (NE) | 13,650 km |
| Americas | São Paulo | Brazil | 68.9° | East-northeast (ENE) | 10,600 km |
| Oceania | Sydney | Australia | 277.5° | West (W) | 13,240 km |
| Oceania | Melbourne | Australia | 278.8° | West (W) | 12,740 km |
| Oceania | Auckland | New Zealand | 261.2° | West (W) | 15,360 km |
Notice that from Sydney the qibla is almost due west, not northwest, and from Lagos it still tilts north of east. From Nairobi and Dar es Salaam you face almost due north, and from Moscow almost due south.
Key qibla facts and figures
- The antipode of the Kaaba. The point on the exact opposite side of the Earth is at about 21.42°S, 140.17°W, in the open Pacific Ocean among the southern Tuamotu atolls of French Polynesia (roughly 50 km from Tematangi atoll; approximate). It is about 20,015 km from Makkah, half the Earth's circumference. From there every direction is a great circle that leads to Makkah, so any way you face is towards the Kaaba.
- Farthest city in our table. Auckland, New Zealand, about 15,370 km from the Kaaba, followed by Mexico City (about 13,650 km) and Los Angeles (about 13,420 km).
- Almost exactly due north: Dar es Salaam (1.2°) and, a little further off, Nairobi (7.2°). Almost due south: Madinah (176.2°) and Moscow (176.4°). Almost due east: Casablanca (93.7°). Almost due west: Delhi (266.6°) and Karachi (267.7°).
- The Kaaba's size. The Kaaba is about 13.1 m (43 ft) high. It is not a perfect cube: its walls are of unequal length, and sources give its sides as roughly 11–12.9 m by 10.2–11.5 m (one commonly quoted pair is 12.86 m by 11.03 m). Some sources give a height of up to about 15 m. These figures are approximate and vary by source and by how the base is measured.
- The four corners. The Black Stone corner (al-Rukn al-Aswad), on the east, where tawaf begins and ends; Rukn al-'Iraqi, facing roughly north towards Iraq; Rukn al-Shami, facing roughly west towards Syria (al-Sham); and Rukn al-Yamani, facing roughly south towards Yemen. The Black Stone and Yemeni corners stand on Ibrahim's original foundations.
- Hijr Isma'il (al-Hatim). The low semicircular wall of white marble on the northwest side, about 1.3 m high. The area it encloses was part of the Kaaba as Ibrahim built it but was left out when the Quraysh rebuilt the Kaaba before Islam, for lack of funds. Tawaf goes around the outside of it.
- The qibla change. 2 AH (about 624 CE), in mid-Rajab according to most scholars or in Sha'ban according to others, some sixteen or seventeen months after the Hijra.
- "Qibla" in the Qur'an. The word قبلة (qibla), with its attached forms (al-qibla, qiblatahum, qiblatak), appears 7 times in 5 verses: six times in 2:142–145 (once each in 2:142, 2:143 and 2:144, and three times in 2:145) and once in 10:87, where Musa and Harun are told to make their houses "a qibla". Counting only the stand-alone word qiblatan/qiblata (قبلة) gives 3 occurrences (2:144, 2:145, 10:87). We counted this ourselves from the Arabic text with the vowel marks removed.
The days the sun stands over the Kaaba
Twice a year, the sun passes directly overhead in Makkah at solar noon. At that moment, anyone who can see the sun simply has to face it to face the Kaaba, and every vertical object casts a shadow pointing directly away from the qibla. This method is known as rasd al-qibla.
- 27–28 May at about 12:18 Makkah time (09:18 UTC)
- 15–16 July at about 12:27 Makkah time (09:27 UTC)
How to check your qibla on these days
- Convert the time to your local time. In Malaysia and Singapore (UTC+8) it is about 5:18 pm and 5:27 pm; in the UK during summer time (UTC+1), about 10:18 am and 10:27 am.
- Stand a straight stick, pole or door edge upright on level ground in the sun.
- At the exact minute, mark the line of its shadow.
- The qibla is the opposite way to the shadow, towards the sun.
The method only works where the sun is above the horizon at that moment, so it suits Africa, Europe and most of Asia. Much of the Americas and Australia can use the "antipodal" dates instead, around 28–29 November and 12–14 January, when the sun is over the point on the opposite side of the Earth and shadows point towards the qibla.
Sun over the Kaaba: annual calendar
The table gives the moments when the sun is directly over the Kaaba (direct transits) and directly over its antipode (antipodal transits). At a direct transit, face the sun or look away from your shadow. At an antipodal transit, the qibla is the direction your shadow points. Times were calculated with a standard solar-position formula for 2027 and rounded to the minute. They shift by up to a day from year to year (for example, 27 May in 2028), so allow a few minutes either side. Local times use the clocks in force on those dates: UK summer time (UTC+1) and US Eastern daylight time (UTC−4) in May and July, and UK GMT (UTC+0), US Eastern standard time (UTC−5) and Sydney daylight time (UTC+11) in November and January.
| Event | Date (approx.) | Makkah (UTC+3) | UTC | Malaysia (UTC+8) | UK | US Eastern | Sydney |
|---|---|---|---|---|---|---|---|
| Direct transit (sun over the Kaaba) | 27–28 May | 12:18 | 09:18 | 17:18 | 10:18 | 05:18 | 19:18 (sun down) |
| Direct transit (sun over the Kaaba) | 15–16 July | 12:27 | 09:27 | 17:27 | 10:27 | 05:27 | 19:27 (sun down) |
| Antipodal transit (sun over the antipode) | 28 November | 00:09 (29 Nov) | 21:09 | 05:09 (29 Nov, before sunrise) | 21:09 (sun down) | 16:09 | 08:09 (29 Nov) |
| Antipodal transit (sun over the antipode) | 13 January | 00:29 (14 Jan) | 21:29 | 05:29 (14 Jan, before sunrise) | 21:29 (sun down) | 16:29 | 08:29 (14 Jan) |
The direct transits are useful across Africa, Europe and Asia; the antipodal ones across the Americas, Australia and New Zealand. US Eastern times in May and July fall around dawn, when the sun may be too low or not yet risen; in November and January they fall in the late afternoon, shortly before sunset.
Qur'an verses about the qibla
These are the main verses on the qibla and the Kaaba, with one-line summaries (paraphrased, not translations). The core passage is 2:142–150.
| Verse | Summary |
|---|---|
| 2:115 | To Allah belong the east and the west; wherever you turn, there is the Face of Allah. |
| 2:125 | The House is made a place of return and safety, and the Station of Ibrahim a place of prayer. |
| 2:142 | The foolish will ask what turned the believers from their former qibla; to Allah belong east and west. |
| 2:143 | The earlier qibla was appointed as a test of who would follow the Messenger ﷺ; your prayers are not lost. |
| 2:144 | The command: turn your face towards al-Masjid al-Haram, and wherever you are, turn towards it. |
| 2:145 | The People of the Book will not follow your qibla, nor will you follow theirs. |
| 2:146 | Those given the Scripture recognise this truth as they recognise their own sons. |
| 2:147 | The truth is from your Lord, so do not be among those who doubt. |
| 2:148 | Every community has a direction it turns to, so race one another in good deeds. |
| 2:149 | From wherever you set out, turn your face towards al-Masjid al-Haram. |
| 2:150 | The command repeated, so that people have no argument against you, and to complete Allah's favour. |
| 2:177 | Righteousness is not merely turning your faces east or west, but true faith and good deeds. |
| 3:96 | The first House established for mankind is the one at Bakkah, blessed and a guidance. |
| 5:97 | Allah made the Kaaba, the Sacred House, a means of support and stability for people. |
| 10:87 | Musa and Harun are told to make their houses in Egypt a qibla and establish prayer. |
Put it on your wall
The qibla connects every Muslim household to the same House, wherever on Earth it is. The Qibla of the World's Major Cities turns that idea into a beautiful, accurate reference chart, perfect for a prayer room, classroom or as a gift.
- Premium printed poster: 50×70 cm on matte paper, $119.
- Digital download: print it at home or at your local print shop, $8.
It pairs naturally with our guide and chart of the 25 prophets in Islam, including Ibrahim and Isma'il, who raised the foundations of the Kaaba.
Frequently asked questions
What is the qibla direction from Malaysia?
From Kuala Lumpur the qibla is about 292.5° from true north, which is west-northwest. From Jakarta it is about 295.2° and from Singapore about 293.0°.
Is the qibla in the USA northeast or southeast?
Using the shortest great-circle path, the qibla from the USA and Canada is northeast (about 58.5° from New York, 54.6° from Toronto, 48.7° from Chicago and 23.9° from Los Angeles). Most North American Muslims follow this direction, though a minority still face southeast based on flat-map reasoning.
When is the sun directly over the Kaaba?
Around 27–28 May at 12:18 and 15–16 July at 12:27 Makkah time (09:18 and 09:27 UTC). At those moments, facing the sun means facing the Kaaba. The sun is over the opposite side of the Earth around 28 November at 21:09 UTC and 13 January at 21:29 UTC, when shadows point towards the qibla.
Why did the qibla change from Jerusalem to Makkah?
Allah commanded the change in Qur'an 2:144, about 16 or 17 months after the migration to Madinah (mid-Rajab or Sha'ban, 2 AH), in response to the Prophet Muhammad's ﷺ longing to face the Kaaba. The verses also describe it as a test that distinguished those who followed the Messenger ﷺ (Qur'an 2:143).
Is my prayer valid if my qibla is slightly off?
Scholars generally hold that someone far from Makkah who makes a sincere effort to find the direction has fulfilled the requirement, and a small error does not invalidate the prayer.