Everyday & Time
Qibla Direction Calculator
Direction of the Qibla (the Kaaba in Makkah) from any place, as a compass bearing from true north, with the great-circle distance.
How to use this calculator
- Enter your latitude and longitude — a map app shows them when you drop a pin.
- Read the Qibla bearing in degrees clockwise from true north.
- If you use a magnetic compass, enter your local magnetic declination under More options to get the compass reading.
- Face that direction for prayer; the distance to the Kaaba is shown too.
Finding the Qibla with spherical geometry
Muslims face the Kaaba in Makkah when they pray. Because the Earth is a sphere, the right direction is the start of the shortest path over the surface — the great-circle route — not a straight line on a flat map. The calculator uses the standard bearing formula from spherical trigonometry with the coordinates of the Kaaba, 21.4225° N and 39.8262° E, and gives the angle measured clockwise from true north.
This is why the Qibla from New York is about 58° (north-east) rather than south-east as a flat map suggests, and why it is about 119° (east-south-east) from Paris, 136° from Cairo and 295° (west-north-west) from Jakarta.
True north and magnetic north
A magnetic compass points to magnetic north, which differs from true north by the magnetic declination of your location — several degrees in many places, and it changes slowly over time. Look up the current declination for your town from a geomagnetic service such as NOAA's World Magnetic Model, enter it (east positive, west negative), and the calculator converts the bearing to a compass reading. Keep the compass away from metal and electronic devices.
Practical tips
Many phones have a built-in compass that already corrects for declination. A small error of a few degrees is generally considered acceptable by scholars, as long as the person faces the general direction of the Qibla in good faith. In mosques, the mihrab indicates the Qibla.
Formula & method
Bearing = atan2(sin Δλ · cos φ₂, cos φ₁ · sin φ₂ − sin φ₁ · cos φ₂ · cos Δλ)Kaaba: 21.4225° N, 39.8262° EMagnetic bearing = true bearing − magnetic declinationWorked example
From Paris (48.857° N, 2.352° E)
- Δλ = 39.826 − 2.352 = 37.474°
- Bearing = atan2(sin Δλ · cos 21.42°, cos 48.86° · sin 21.42° − sin 48.86° · cos 21.42° · cos Δλ)
- Normalise to 0–360°
Answer: 119.2° from true north (east-south-east), 4,496 km from the Kaaba.
Frequently asked questions
Why does the Qibla from North America point north-east, not south-east?
Because the shortest path on a sphere (the great circle) from North America to Makkah passes over the North Atlantic, so the initial direction is north-east.
What is the Qibla direction from London?
About 119° from true north, roughly east-south-east.
Why is it north-east from America?
The great-circle path from North America to Makkah crosses the North Atlantic.
Do I need to correct my compass?
Yes, subtract the local magnetic declination, or use a phone compass set to true north.
How accurate must the direction be?
Scholars generally accept facing the approximate direction when the exact bearing is not known.
What are the coordinates of the Kaaba?
About 21.4225° N, 39.8262° E.
Does altitude matter?
No. The direction depends only on latitude and longitude.