Qibla distance calculator
Measure the great-circle distance from anywhere on Earth to the Kaaba in Makkah, in kilometres and miles.
What is being measured
The great-circle distance from where you are to the Kaaba: the shortest route over the surface of a sphere, which is the path you would follow if you could walk in a straight line across the Earth. It is calculated with the haversine formula, treating the Earth as a sphere of mean radius 6,371 km.
Why it differs from what a map shows
A world map has to stretch the globe to lie flat, and the common projection stretches it most severely near the poles. The line you would draw with a ruler across such a map is not the shortest route, which is why great-circle paths look like curves on a flight map. Over five thousand kilometres the difference between the two is substantial.
A note on precision
The Earth is not quite a sphere, it bulges slightly at the equator. Calculating on an ellipsoid instead would change the answer by up to about a third of a per cent, roughly ten kilometres on a journey from Britain. That is smaller than the error introduced by rounding your own position to the nearest town, so the simpler calculation is the honest one to use here.
Questions
Is this the flying distance or the driving distance?
Why does it not match the straight line on my map?
What point in Makkah is it measured to?
How accurate is it?
What is the furthest anywhere on Earth can be from Makkah?
More tools
Prayer times calculator
The five daily prayer times for any place and date
Qibla direction finder
The compass bearing to face for prayer
Last third of the night calculator
When the final third of the night begins