Qibla Direction Finder
Qibla: 136.1° from north (south-east)
- Distance to the Kaaba
- 1,287 km
The angle is measured clockwise from true north. For the live compass, hold the phone flat, away from metal and magnets, and move it in a figure 8 to calibrate.
Everything runs in your browser. Your data never leaves your device.
Find the qibla from anywhere
Choose your city or use your location to see the exact qibla direction as an angle from north, the compass direction (such as south-east) and the distance to the Kaaba. On a phone, tap Use phone compass and the dial turns with your phone: the green arrow and the 🕋 show the qibla, and the page tells you how many degrees to turn left or right until you’re facing it.
How it works
The calculator uses spherical trigonometry. The bearing is θ = atan2(sin Δλ, cos φ₁ · tan φ₂ − sin φ₁ · cos Δλ), where φ₁ is your latitude, φ₂ is the Kaaba’s latitude (21.4225° N) and Δλ is the difference in longitude. The distance uses the haversine formula. Your location stays on your device.
Examples
- Cairo: about 136° (south-east), 1,290 km
- London: about 119° (east-south-east)
- New York: about 58° (north-east)
- Jakarta: about 295° (west-north-west)
Without a compass
Use the angle with any map app that shows north, or face the sunrise (roughly east) and adjust. Mosques nearby also show the qibla.
If you made an honest effort to find the qibla and later learn it was slightly off, scholars agree your prayer is valid. Facing the general direction is what matters when you are far from Makkah.
Frequently asked questions
How is the qibla direction calculated?
As the shortest path over the Earth's surface (a great circle) from your location to the Kaaba in Makkah. The result is an angle from true north, measured clockwise. For Cairo it is about 136°, south-east.
Why does the qibla from America point north-east?
Because the Earth is round. The shortest route from New York to Makkah heads north-east across the Atlantic, about 58° from north, even though Makkah is further south on a flat map.
Why is my phone compass wrong?
Phone compasses are disturbed by metal, magnets, speakers and electrical wiring. Hold the phone flat, move it in a figure 8 to calibrate it, and compare with the angle shown, or with the sun's direction.
Does it work on iPhone?
Yes. Tap "Use phone compass" and allow motion access when Safari asks. Without the compass you can still use the angle from north.
Last updated: · What's new