Skip to content
ToolShelf

Qibla direction finder

Find the direction of the Kaaba from anywhere on Earth as a true compass bearing, with the magnetic correction applied if you are reading from a needle.

Where you are

Positive north, negative south

Positive east, negative west

Reading from a magnetic compass

Positive east, negative west. Leave blank for a true bearing.

Phone compasses usually correct for this already and show true north. A hiking compass does not. If you are unsure, leave it blank and use the true bearing, most map and compass apps report true north by default.

Qibla direction

Enter your coordinates, or tap Use my location, and the bearing will appear here with a dial to read it against.

How the direction is worked out

The Qibla is the great-circle bearing from where you are to the Kaaba, the shortest path over the surface of the Earth, which is also the direction you would set off in if you walked there. It is calculated from your coordinates and the Kaaba’s, at 21.4225°N 39.8262°E, using standard spherical trigonometry.

Why the answer can look wrong

From most of North America the Qibla points north-east, which surprises people who picture Makkah as being to the south-east. Both intuitions come from a flat map, and a flat map cannot show a sphere without distorting direction. The short way from New York runs up over the Atlantic and down across Europe, so the bearing is 58°, and the straight line you would draw on a wall map is the longer route, not the shorter one.

The same effect puts the Qibla to the west from Jakarta and Sydney rather than to the north-west.

True north and magnetic north

This tool reports a true bearing, measured clockwise from the geographic north pole. A magnetic compass needle points at the magnetic pole instead, which is somewhere else entirely and moving. The difference is called declination, and it runs from near zero to over 20 degrees depending on where you are.

Most phone compass apps already correct for this and show true north. A hiking compass does not. If you are reading from a needle, put your local declination into the field above and the tool will give you the number to turn to.

How precise is precise enough

Very little precision is actually required: facing the general direction has long been accepted as sufficient for anyone not in sight of the Kaaba. A degree or two makes no practical difference to where you stand in a room. The figures here are exact because the arithmetic is free, not because a small error matters.

Questions

Is the Qibla the shortest way to Makkah?
Yes. It is the great-circle direction, the shortest path across the surface of the Earth. On a flat wall map that path looks like a curve, which is why the bearing can seem wrong: from North America the Qibla points north-east rather than south-east, because the short way runs up over the Atlantic rather than across it.
Why does my phone compass show a different number?
Check whether it is reporting true north or magnetic north. A magnetic compass points at the magnetic pole, which is not the geographic one, and the gap between them reaches 20 degrees in parts of the world. This tool gives a true bearing by default and will convert it for you if you enter your local declination.
Where do I find my magnetic declination?
Search for a magnetic declination calculator for your coordinates, several national geological surveys publish one. It changes slowly, by a fraction of a degree a year, so a value looked up once will stay usable for a long time. This tool does not estimate it, because doing so needs a large model file that expires.
How exact does the direction need to be?
Scholars have long held that facing the general direction is sufficient for anyone not in sight of the Kaaba, which is everyone reading this. A few degrees either way is not a problem. The precision here is offered because it costs nothing, not because a small error invalidates anything.
Does the bearing change as I travel towards Makkah?
Yes, slightly. A great-circle path curves relative to the compass, so the initial bearing is the direction to set off in rather than a heading you could hold all the way. For standing still and facing the right way, which is what this is for, the initial bearing is the answer.
Is my location sent anywhere?
No. The calculation runs in your browser. If you use the location button, your browser asks your permission and hands the coordinates to the page, which uses them and forgets them when you close the tab.

More tools