Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · Everyday tools

Qibla direction

Type your latitude and longitude and get the direction of the Kaaba in degrees from true north, with a compass picture and the distance.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

Decimal degrees. North and east are positive, south and west are negative. The example is a place in London. A map app shows both numbers when you hold your finger on a spot.
Kaaba coordinates (example, editable)
These two numbers are a commonly used example. No official source was checked for this page, so change them if you have a better figure.
Qibla bearing
N
119.0°ESE, measured clockwise from true north
  • ESE on a 16-point compass
  • 4,794 km to the Kaaba
  • 2,979 miles
Bearing from true north
119.0°
Compass point
ESE
Distance (great circle)
4,794 km
Distance in miles
2,979 mi
Opposite direction
299.0°
Your coordinates
51.5074, -0.1278

A phone compass shows magnetic north, which differs from true north by a few degrees in most places. Turn the bearing by your local magnetic declination, or use a compass app that shows true north.

How to use the Qibla Direction Finder

  1. Type your Your latitude and Your longitude in decimal degrees. A map app shows them when you hold your finger on a spot.
  2. Open Kaaba coordinates only if you want to change the example numbers.
  3. Read the Qibla bearing in degrees. The arrow on the compass turns to that direction, with north at the top.
  4. Press Copy to keep the bearing, and turn your phone compass by the local difference between true and magnetic north.

How do I find the qibla direction from my latitude and longitude?

Enter your latitude and longitude. The tool returns the bearing, which is the angle you turn clockwise from true north to face the Kaaba. For the example place in London, the answer is 119.0°, which is ESE (east-south-east), and the Kaaba is about 4,794 km away.

Latitude says how far north or south you are. Longitude says how far east or west. Both are in decimal degrees. North and east are positive. South and west are negative, so a place in New York has a negative longitude. A map app shows these numbers when you hold your finger on a spot.

Under the answer you will find the compass point on a 16-point compass, such as ESE or WNW, the distance in kilometres and miles, and the opposite direction. The opposite direction is useful when you check a compass that has been turned around. For the example place it is 299.0 degrees.

If you are unsure of your numbers, open a map app and hold your finger on your spot. The app shows the latitude first, then the longitude. Type them as they appear, with a minus sign for south or west.

Why is the direction not a straight line on a flat map?

The Earth is a ball, so the shortest path between two places is an arc of a great circle. The bearing here is the direction in which that arc leaves your location. On a flat world map a straight line between the same two places usually points in a different direction, because flat maps stretch the shapes.

The tool works on a sphere with a mean radius of 6,371 km. That is a good model for direction. The real Earth is slightly flattened, which changes distances by a fraction of a percent and the bearing by far less than a degree in most places.

For far places the great-circle direction can look surprising. From Sydney the answer in the table is almost west, and from Mexico City it is north-east, which is not what a flat map suggests. Both are right for the sphere.

Qibla bearing and distance from some example coordinates
Latitude, longitudeBearingCompassDistance
51.5, -0.1119.0°ESE4,792 km
48.9, 2.4119.3°ESE4,495 km
40.7, -74.058.5°ENE10,307 km
19.4, -99.146.6°NE13,646 km
-33.9, 151.2277.5°W13,236 km
35.7, 139.7293.0°WNW9,475 km
-1.3, 36.87.3°N2,548 km
30.0, 31.0135.2°SE1,300 km

True north or magnetic north: which one does my compass use?

The bearing is measured from true north, the direction of the geographic North Pole. A magnetic compass, including the one in a phone, points to magnetic north, which is in a different place. The gap between them is called the magnetic declination. It depends on where you are and it changes slowly over the years.

In many places the gap is only a few degrees. In some it is larger. If your compass app can show true north, use that. If it shows magnetic north, add or subtract the local declination, which a national geological or mapping agency publishes. This tool does not include it, because it would need a model that has to be refreshed every few years.

It is wise to check the answer a second way. Compare it with a printed qibla chart for your town, or with the direction published by a local mosque. If the two differ by more than a few degrees, check that the latitude and longitude have the right signs.

Phones also read metal and magnets nearby. Move away from a car, a speaker or a table with a steel frame, and wave the phone in a figure of eight before you trust the reading.

How accurate is the result, and who should I follow?

The arithmetic is exact for the numbers you give. The main uncertainty is the input: a latitude and longitude rounded to two decimals is already good to about a kilometre. At a distance of thousands of kilometres that changes the bearing by a small fraction of a degree. The Kaaba coordinates in the tool are a commonly used example, not taken from an official page, so they are editable.

Mosques, communities and authorities may publish their own qibla direction for a town, calculated by their own method. Where one exists, follow it. This tool gives a calculated direction from your coordinates. It is not a religious ruling.

For the distance to other places, or to find the time of sunrise and sunset where you pray, see the golden hour calculator. For converting dates, see the Gregorian to Hijri converter.

Use it with

Questions

How do I find the qibla direction?

Enter your latitude and longitude. For the example place the bearing is 119.0° from true north, ESE.

What does the qibla bearing in degrees mean?

It is the angle clockwise from true north. 0 degrees is north, 90 is east, 180 is south and 270 is west.

Why is my phone compass different?

A phone compass usually shows magnetic north. The difference from true north is the magnetic declination, which varies by place and over time.

Does the tool store or send the numbers I type?

No. Everything stays in this page. Nothing is stored or sent.

Why does the direction look wrong on a flat map?

Flat maps stretch the Earth. The shortest path on a sphere is a great circle, and its direction can differ a lot from a straight line on the map.

Are the Kaaba coordinates official?

No official page was checked for this tool. The numbers are a commonly used example and you can change them.

The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.