Qibla is the direction Muslims face in prayer — towards the Ka'bah in Makkah. From anywhere else on Earth, that's a specific compass bearing, different at every location, and calculating it correctly is really a problem in spherical geometry, not flat-map geometry.
فَوَلِّ وَجْهَكَ شَطْرَ الْمَسْجِدِ الْحَرَامِ ۰ وَحَيْثُ مَا كُنتُمْ فَوَلُّوا۟ وُجوهَكُمْ شَطْرَهُ
"So turn your face toward al-Masjid al-Haram. And wherever you [believers] are, turn your faces toward it."
Qur'an 2:144The great-circle bearing
On a flat map, drawing a straight line from your city to Makkah looks like the "shortest path" — but it isn't. The Earth is a sphere, and the shortest real-world distance between two points follows a great-circle route, which on most map projections looks curved, not straight. Qibla calculators solve a formula (using your latitude and longitude and the Ka'bah's coordinates, roughly 21.4225°N, 39.8262°E) to find the initial compass bearing along that great-circle path.
This is why Qibla from, say, New York points north-east rather than roughly east as a flat map would suggest — the great-circle route to Makkah from that latitude genuinely runs up and over, not straight across.
Ways to find Qibla
1. A calculated compass (most practical)
Islamic World Pro's Qibla compass calculates your exact bearing from your device's location and tracks it live as you turn. This is accurate as long as your phone's compass sensor itself is calibrated.
2. The sun, twice a year
On approximately 28 May and 16 July each year, the sun passes almost directly over the Ka'bah at solar noon in Makkah (roughly 12:18 PM Saudi time). At that exact moment, anywhere in the world where the sun is visible, pointing directly at the sun points at the Ka'bah. There's a mirrored effect around 28 November and 16 January, when the point directly opposite the sun marks Qibla instead.
3. Local mosque alignment
If you know a nearby mosque's Qibla wall, you can align with it directly — useful as a sanity check against a compass reading.
Why compass apps can be slightly off
- Magnetic declination: a compass points to magnetic north, which differs from true north by an amount that changes depending on where you are on Earth. A correctly built Qibla app accounts for this; a plain uncorrected compass does not.
- Local magnetic interference: metal furniture, speakers, and even some phone cases distort the tiny magnetic sensor inside a phone. Moving away from metal and recalibrating (the figure-eight motion most compass apps prompt for) usually resolves this.
- Holding the phone flat: most phone compasses assume the device is held flat, parallel to the ground; tilting it introduces error.
Find Qibla accurately, wherever you are
Islamic World Pro's Qibla compass recalculates instantly as you travel, corrects for magnetic declination, and works offline once your location is set.
Get it on Google PlayIf your compass reading and a known mosque wall disagree by more than a few degrees, trust a recalibrated compass reading or a second device over a single reading — sensor interference is the most common cause of a wrong-looking result.