2026-07-14
What Is the Qibla? Why Do Muslims Face the Kaaba in Prayer?
The qibla is the direction Muslims face during prayer: the Kaaba, located at the centre of Masjid al-Haram in Mecca. Wherever you are in the world, turning your face toward the Kaaba is one of the conditions for the validity of prayer.
The qibla in the Quran
The command is explicit in the Quran: "Turn your face toward Masjid al-Haram. Wherever you are, turn your faces toward it." (Al-Baqarah 2:144). With this verse, about sixteen to seventeen months after the Hijrah, the qibla was changed from Masjid al-Aqsa in Jerusalem to the Kaaba in Mecca. The mosque in Medina where this happened is known today as Masjid al-Qiblatayn — the Mosque of the Two Qiblas.
The wisdom of facing the Kaaba
Facing the Kaaba is not worshipping the Kaaba itself; worship is due to Allah alone. The qibla is a symbol of unity that aligns Muslims across the world around a single centre: at any moment, millions of people from Indonesia to Morocco face one point while worshipping the same God.
What if you cannot see the Kaaba?
According to Islamic jurists, a person who can physically see the Kaaba must face it precisely (ayn al-Kaaba), while someone far away only needs to face its general direction (jihat al-Kaaba). For those living in distant countries, a deviation of a few degrees does not harm the validity of the prayer; what matters is the sincere effort to face the right direction.
How is the qibla calculated from afar?
Because the Earth is a sphere, the qibla is found not with a straight line on a flat map but with the great-circle bearing — the shortest arc between two points. The calculation uses your coordinates and those of the Kaaba (21.4225 N, 39.8262 E). Our tool does this automatically and shows the result with a live compass and a map.