Find Accurate Prayer Direction to Kaaba with GPS & Compass
The Qibla (القِبْلَة) is the fixed direction that Muslims around the world face when performing Salah (Islamic prayer). It points toward the Kaaba, the sacred cubic structure located in the center of Masjid al-Haram in Makkah, Saudi Arabia. The Kaaba is positioned at geographic coordinates 21.422487°N latitude and 39.826206°E longitude.
Facing the Qibla during prayer is one of the essential conditions (شروط الصلاة - shurut as-salah) for the validity of Salah in Islam. This practice unifies the global Muslim community, as believers from every corner of the Earth face the same sacred point during their five daily prayers.
"Turn your face toward al-Masjid al-Haram, and wherever you are, turn your faces toward it"
- Quran, Surah Al-Baqarah (2:144)
Initially, Muslims prayed facing Jerusalem (Bayt al-Maqdis). In the second year after Hijrah (migration to Madinah), Allah revealed verses changing the Qibla to the Kaaba in Makkah. This marked a significant moment in Islamic history, emphasizing the importance of the Kaaba as the first house of worship dedicated to monotheism, originally built by Prophet Ibrahim (Abraham) and his son Ismail (peace be upon them).
This Qibla compass uses advanced web technologies to provide accurate prayer direction:
where φ₁,λ₁ = your position, φ₂,λ₂ = Kaaba position (21.422487°N, 39.826206°E), then adjust for magnetic declination from WMM 2025.