Find the Qibla direction from your location with our free online compass. Detect your position automatically or enter coordinates manually to find the direction of Mecca.
The Qibla is the sacred direction that all Muslims around the world face when performing their daily prayers. This direction points toward the Kaaba, the cube-shaped sanctuary located at the heart of the Sacred Mosque (Masjid al-Haram) in Mecca, Saudi Arabia. The Kaaba is considered the House of Allah on Earth, and facing it during prayer is a fundamental religious obligation in Islam. Whether you are in Paris, Jakarta, New York, or Dakar, the Qibla connects you to millions of Muslims praying in the same direction, creating a remarkable spiritual unity across the entire world. The word "Qibla" comes from the Arabic root "qabala" meaning "to face" or "to turn toward," which perfectly reflects its role in Islamic prayer.
One of the most significant events in Islamic history is the change of the Qibla direction. When Prophet Muhammad (peace be upon him) began his prophetic mission in Mecca and then migrated to Medina, Muslims prayed facing Jerusalem (Bayt al-Maqdis) for approximately 16 to 17 months. The Prophet earnestly wished for the prayer direction to be changed toward the Kaaba. Allah then revealed the verse: "We have certainly seen the turning of your face toward the heaven. So We will surely turn you to a Qibla with which you will be pleased. So turn your face toward al-Masjid al-Haram" (Quran 2:144). This change occurred while the Prophet was leading the Dhuhr prayer at the mosque of Banu Salama in Medina, which has since been known as Masjid al-Qiblatayn (the mosque of the two Qiblas). This change marked an important milestone in the distinct identity of the Muslim community.
Calculating the Qibla direction relies on spherical trigonometry, a branch of mathematics dealing with triangles drawn on the surface of a sphere. Since the Earth is approximately spherical, you cannot simply draw a straight line on a flat map to determine the direction to Mecca. Instead, we calculate the great circle path (the shortest distance between two points on a sphere) between your location and the Kaaba. This calculation uses the geographic coordinates of your location (latitude and longitude) and those of the Kaaba (21.4225°N, 39.8262°E). The formula accounts for the curvature of the Earth, which is why the Qibla direction may seem counterintuitive on a flat map. For example, from northern Canada, the Qibla points almost northeast over the pole, not southeast as one might assume when looking at a Mercator projection map.
Facing the Qibla is a condition for the validity of prayer in Islam, as commanded in the Quran: "And wherever you are, turn your faces toward it [the Sacred Mosque]" (Quran 2:144). This obligation applies to all obligatory and voluntary prayers. However, Islam recognizes practical exceptions that demonstrate its flexibility. When a Muslim is traveling and praying voluntary prayers on their mount (or in a vehicle), they may pray in the direction of travel. In situations of danger or combat, prayer is permitted in any direction. If a person is unable to determine the Qibla direction after making a reasonable effort, they should pray in the direction they believe is most likely correct, and their prayer remains valid. The Prophet (peace be upon him) said: "What is between the east and the west is the Qibla" (Tirmidhi), indicating some margin in the exact orientation.
The Kaaba is a cube-shaped structure approximately 13 meters tall, located at the center of the Sacred Mosque in Mecca. According to Islamic tradition, it was originally built by Prophet Ibrahim (Abraham) and his son Ismail (Ishmael) at a site designated by Allah as a place of worship. The Quran states: "And when Ibrahim was raising the foundations of the House along with Ismail: 'Our Lord, accept this from us'" (Quran 2:127). One of the most revered elements of the Kaaba is the Black Stone (al-Hajar al-Aswad), set into its eastern corner. According to prophetic tradition, this stone was sent from Paradise and was originally brilliant white, but it turned black from absorbing the sins of mankind. The Kaaba is covered with a gold-embroidered black cloth called the Kiswah, which is renewed each year during Hajj. Millions of Muslims perform Tawaf (circumambulation) around the Kaaba during Hajj and Umrah, walking seven times counterclockwise around it.
One of the most common misconceptions is that the Qibla always points east or southeast. In reality, the Qibla direction varies significantly depending on your position on the globe. From North America, the Qibla generally points northeast, not east. From Australia, it points northwest. This confusion stems from the use of Mercator projection maps, which distort distances and directions. The correct Qibla direction follows the great circle path, meaning the shortest route on the spherical surface of the Earth. This is why an airplane flying from New York to Mecca does not fly straight east but takes a curved trajectory through Europe. The same logic applies to the Qibla: a straight line on a globe appears curved on a flat map. Using a reliable Qibla calculator like this one, based on spherical trigonometry, ensures that you pray in the most accurate direction possible.
Download for free and never miss a prayer again