Skip to main content

Qibla Finder

Find the exact direction to face for prayer from anywhere in the world.

Or enter coordinates manually

What Is the Qibla?

The Qibla (Arabic: قِبْلَة) is the direction that Muslims around the world face when performing their daily prayers (salah). It points toward the Kaaba, the sacred cubic structure located at the center of Masjid al-Haram in Makkah, Saudi Arabia. Facing the Qibla is a fundamental requirement for the validity of prayer in Islam, and it serves as a powerful symbol of the unity of the Muslim ummah — no matter where they are on Earth, all Muslims turn toward the same point in worship.

The History of the Qibla

In the early years of Islam, Muslims initially prayed facing Jerusalem (Bayt al-Maqdis), which was the Qibla for approximately 16 to 17 months after the Prophet Muhammad (peace be upon him) migrated to Madinah. The Prophet (peace be upon him) longed to face the Kaaba, the house built by Prophet Ibrahim (Abraham) and his son Ismail (peace be upon them both). Allah then revealed the command to change the Qibla direction in Surah Al-Baqarah:

“We have certainly seen the turning of your face toward the heaven, and We will surely turn you to a qiblah with which you will be pleased. So turn your face toward al-Masjid al-Haram. And wherever you are, turn your faces toward it.” — Quran 2:144

This change of Qibla from Jerusalem to Makkah was a defining moment in Islamic history. It established the Kaaba as the spiritual center for Muslims and distinguished the Muslim identity. The event is commemorated to this day, and the mosque in Madinah where the revelation occurred is known as Masjid al-Qiblatain (the Mosque of the Two Qiblas).

How Is the Qibla Direction Calculated?

The Qibla direction is calculated using the great circle bearing formula from spherical trigonometry. Unlike a straight line on a flat map, the great circle method finds the shortest path across the curved surface of the Earth between your location and the Kaaba at coordinates 21.4225°N, 39.8262°E. The formula uses the latitudes and longitudes of both points to determine the initial bearing you should face.

This is the most accurate method for determining the Qibla, especially for locations far from Makkah. For example, Muslims in North America typically face northeast (not east or southeast as a flat map might suggest), because the great circle route to Makkah arcs northward across the Atlantic. Similarly, Muslims in Japan face west-northwest, and Muslims in Australia face northwest.

Tips for Finding the Qibla Without a Compass

There are several traditional and practical methods for determining the Qibla direction:

  • The Sun: In many locations, you can use the position of the sun at specific times to determine the approximate Qibla. Twice a year (around May 28 and July 16), the sun is directly above the Kaaba at solar noon, meaning your shadow will point exactly away from the Qibla at that moment.
  • Stars: The North Star (Polaris) indicates north, from which you can estimate the Qibla based on your geographic location.
  • Mosque orientation: If you are near a mosque, the mihrab (prayer niche) always faces the Qibla direction.
  • Ask locals: In Muslim-majority areas, local residents will know the general Qibla direction.
  • This tool: Use our Qibla Finder on your mobile phone for a live compass that rotates in real time, or on desktop to see the exact bearing angle.

Why Accurate Qibla Direction Matters

While scholars agree that a reasonable effort to face the Qibla is sufficient — especially when the exact direction is difficult to determine — using precise tools ensures you are facing as close to the correct direction as possible. The great circle method used by this tool provides accuracy within a fraction of a degree, which is significantly more precise than estimating by looking at a flat map or relying on general knowledge of where Makkah lies relative to your country.

For Muslims living in regions where the Qibla direction is not commonly known or where it might be counterintuitive (such as the Americas, East Asia, or the Pacific), having a reliable digital tool is invaluable. Our Qibla Finder works entirely in your browser, requires no app installation, and provides instant results with both the bearing angle and a live compass direction on supported mobile devices.

More Islamic Tools