QiblaFlow

QiblaFlow

Prayer & Qibla

24 Safar 1448 AH

Direction of Mecca

Enter your location in the Prayer Times tab to see your Qibla direction.

How Qibla is Calculated

The Qibla is the direction toward the Masjid al-Haram in Mecca (21.4225°N, 39.8262°E). The bearing is calculated using the spherical law of cosines (great-circle formula), giving the shortest path across the Earth's surface.

BEARING FORMULA

θ = atan2(sin(Δλ)·cos(φ₂), cos(φ₁)·sin(φ₂) − sin(φ₁)·cos(φ₂)·cos(Δλ))

If you enable the live compass, your device's gyroscope adjusts the needle in real-time to always point toward Mecca relative to where you're facing. Accuracy is ±2–5° depending on device calibration.