Prayer

What Is the Qibla in Islam? Meaning, History and Rulings

The Niyyara TeamUpdated October 23, 20267 min read

The qibla (قبلة) is the direction Muslims face when they pray: towards the Kaaba in al-Masjid al-Haram in Makkah. Facing it is a condition of the obligatory prayer for anyone able to. For the first sixteen or seventeen months in Madinah, Muslims faced Jerusalem, until the Quran (2:144) turned the qibla to the Kaaba.

Bring your worship into one calm app

Niyyara is a free, private, ad-free companion with accurate prayer times, the full Quran, an exact Qibla compass, the azan, and duas. No subscriptions, no ads, ever.

What's in this guide

  1. What does qibla mean?
  2. Why do Muslims face the Kaaba?
  3. The change of qibla from Jerusalem to Makkah
  4. Is facing the qibla required in prayer?
  5. Why does the qibla look wrong on a flat map?
  6. Other rulings connected to the qibla
  7. Frequently asked questions

Last checked: 23 October 2026. Hadith were read in Arabic and English from our self-hosted copy of the major collections; distances and bearings were computed by us with the standard great-circle formula and can be re-checked with any qibla calculator.

This page explains what the qibla is and why. If you want to find it right now, go to how to find the qibla direction, which covers compasses, apps and the sun.

What does qibla mean?

Qibla (قِبْلَة) is Arabic for "the direction one faces". It comes from the root ق ب ل (q-b-l), "to face, to come towards", the same root as qabūl, acceptance, and qibal, "in front of". In Islamic usage it means one specific direction: towards the Kaaba (al-Kaʿba), the cube-shaped House at the centre of al-Masjid al-Haram in Makkah, at roughly 21.42° N, 39.83° E.

Muslims everywhere face the same point, so around the Kaaba itself the rows of worshippers form circles. Elsewhere in the world everyone faces a different compass bearing towards that one point: east-south-east in London, north-east in New York, west in Delhi.

Why do Muslims face the Kaaba?

Because Allah commanded it: "So turn your face toward al-Masjid al-Haram. And wherever you believers are, turn your faces toward it" (Quran 2:144). The command is repeated in 2:149 and 2:150.

The Quran also tells us what the Kaaba is. It is "the first House of worship established for mankind" (3:96), and its foundations were raised by the prophets Ibrahim and Ismaʿil, who prayed as they built, "Our Lord, accept this from us" (2:127). When Abu Dharr asked which mosque was built first on earth, the Prophet ﷺ answered: al-Masjid al-Haram, and then al-Aqsa, forty years later (Sahih al-Bukhari 3366).

One clarification that matters: Muslims do not worship the Kaaba. Worship is for Allah alone. The qibla is a direction that unites the whole community in one orientation, and the Quran itself makes the point that direction in itself is not the goal: "To Allah belongs the east and the west" (2:142).

The change of qibla from Jerusalem to Makkah

For his first period in Madinah, the Prophet ﷺ and the Muslims prayed towards Bayt al-Maqdis, the sacred house in Jerusalem. Al-Barāʾ ibn ʿĀzib reported: "Allah's Messenger ﷺ prayed facing Bayt al-Maqdis for sixteen or seventeen months, but he loved to face the Kaaba, so Allah revealed: 'We have certainly seen the turning of your face toward the heaven' (2:144)" (Sahih al-Bukhari 399; Sahih Muslim 525 says sixteen months).

The news reached people while they were in the middle of praying. ʿAbdullah ibn ʿUmar narrated that the people of Quba were praying Fajr when someone came and told them the Prophet ﷺ had been ordered to face the Kaaba, and they turned around in their prayer from Jerusalem towards Makkah (Sahih al-Bukhari 403). The Quran describes the change as a test "that We might make evident who would follow the Messenger" (2:143).

Before After
Qibla Bayt al-Maqdis, Jerusalem The Kaaba, Makkah
Period First 16 or 17 months in Madinah From then on, permanently
Evidence Bukhari 399, Muslim 525 Quran 2:144, 2:149, 2:150

Is facing the qibla required in prayer?

Yes. Facing the qibla is one of the conditions (shurūṭ) of a valid obligatory prayer, alongside purity, covering the ʿawra and the prayer time having started, for anyone who is able. The four Sunni schools agree on this, based on 2:144 and 2:150. There are recognised exceptions:

Situation Ruling Evidence
Voluntary (nafl) prayer while riding or travelling You may pray facing the direction you are travelling The Prophet ﷺ prayed voluntary prayers on his mount "facing a direction other than the qibla" (Bukhari 1094; Muslim 700)
Real inability: illness, danger, being tied down Pray as you are able The general principle of the Quran that Allah does not burden a soul beyond its capacity (2:286)
You do not know the direction and cannot ask Make your best effort (ijtihad) and pray; most scholars hold the prayer is valid even if you later find you were off Companions who prayed in different directions on a dark night were not told to repeat; Quran 2:115 was revealed (Tirmidhi 345, graded hasan by al-Albani and Ahmad Shakir, weak by others)

How exact do you need to be? For someone who can see the Kaaba, the scholars agree you must face the Kaaba itself. For everyone else, most scholars hold that facing its general direction (al-jiha) is enough, citing the hadith "What is between the east and the west is qibla" (Jami at-Tirmidhi 342, graded sahih by al-Albani and Ahmad Shakir). That hadith was said in Madinah, which lies north of Makkah, so for its people the whole southern arc counted. The Shafiʿi school's preferred view is stricter and asks you to aim at the Kaaba itself as best you can estimate. In practice: use a reliable app or compass, then do not agonise over a few degrees.

Bring your worship into one calm app

Niyyara is a free, private, ad-free companion with accurate prayer times, the full Quran, an exact Qibla compass, the azan, and duas. No subscriptions, no ads, ever.

Why does the qibla look wrong on a flat map?

Because the earth is round and flat maps distort direction. The qibla is the direction of the shortest path over the globe (the great circle) from where you stand to the Kaaba. On a standard world map, that path is curved, so the bearing often surprises people.

The biggest surprise is in North America. On a Mercator map, Makkah looks south-east of New York. But the shortest path over the globe leaves New York heading north-east, over the Atlantic and Europe. This caused a real disagreement among Muslims in North America in past decades, with some mosques facing south-east. Today almost all mosques and qibla apps use the great-circle direction, which is north-east.

Here are bearings we computed with the great-circle formula (degrees clockwise from true north, Kaaba at 21.4225° N, 39.8262° E):

City Qibla bearing Roughly Distance to Makkah
London 119° East-south-east 4,794 km
New York 58° North-east 10,306 km
Toronto 55° North-east 10,496 km
Los Angeles 24° North-north-east 13,424 km
Istanbul 152° South-south-east 2,405 km
Cairo 136° South-east 1,287 km
Lagos 63° East-north-east 4,251 km
Karachi 268° West 2,800 km
Delhi 267° West 3,835 km
Dhaka 278° West 5,172 km
Kuala Lumpur 293° West-north-west 6,974 km
Jakarta 295° West-north-west 7,920 km
Sydney 278° West 13,236 km

Two practical notes. These are true north bearings; a magnetic compass points to magnetic north, which can differ by several degrees depending on where you live, so either use a phone compass set to true north or correct for your local magnetic declination. And metal objects or a phone case with magnets will throw a compass off. Our qibla direction guide covers both.

Other rulings connected to the qibla

Frequently asked questions

What is the qibla in Islam?

The qibla is the direction Muslims face in prayer: towards the Kaaba in al-Masjid al-Haram in Makkah. Facing it is a condition of the obligatory prayer for anyone able to.

What was the first qibla?

Bayt al-Maqdis in Jerusalem. The Prophet and the Muslims faced it for sixteen or seventeen months after the hijrah, until Quran 2:144 changed the qibla to the Kaaba (Sahih al-Bukhari 399).

Do Muslims worship the Kaaba?

No. Muslims worship Allah alone. The Kaaba is the direction of prayer that unites all Muslims, not an object of worship.

Is my prayer valid if I faced the wrong direction?

If you made a genuine effort to find the qibla and could not know better, most scholars hold that the prayer is valid. If you find out during the prayer, turn towards the correct direction and continue.

Which direction is the qibla from the USA?

From most of the United States and Canada the qibla is north-east, because that is the shortest path over the globe to Makkah. From New York it is about 58 degrees from true north.

Which direction is the qibla from the UK?

From London the qibla is about 119 degrees from true north, which is east-south-east. It varies slightly across the UK.

Do I need to face the qibla for voluntary prayers when travelling?

No. The Prophet prayed voluntary prayers on his mount in whatever direction it was travelling (Sahih al-Bukhari 1094, Sahih Muslim 700). Obligatory prayers still require facing the qibla when possible.

The Niyyara Team

We build Niyyara, a free, private, ad-free worship companion with prayer times, the full Quran, Qibla, azan, duas, and more. Niyyara is a product of Four Cents. For religious rulings, always follow the guidance of qualified scholars.