Find the Qibla from your location

or choose a city

Enter coordinates manually

Use decimal degrees: south latitudes and west longitudes are negative.

Example: London, United Kingdom

119.0° from true north

Face east-southeast

Distance to the Kaaba: 4,794 km (2,979 miles)

Your location is used only inside your browser to calculate the direction. It is never sent to our servers.

How to use the Qibla finder

  1. Set your location. Allow location access, choose the nearest city, or enter latitude and longitude (you can copy them from any map app).
  2. Read the bearing. The large number is the Qibla direction in degrees, measured clockwise from true north. For example, 90° is due east and 135° is southeast.
  3. Turn to face it. On a phone, tap "Enable live compass", hold the phone flat and turn until the black Kaaba marker sits under the arrow at the top of the dial. Without a live compass, use a separate compass and the degree value.
  4. Double-check. If possible, compare with the direction used by a local mosque, especially indoors or near metal.

Facing the Qibla in prayer

Facing the Qibla is one of the conditions of the obligatory prayer. Early in the Madinan period Muslims prayed towards Jerusalem, and then the Qibla was changed to the Sacred Mosque in Makkah, as described in Surah al-Baqarah.

قَدْ نَرَىٰ تَقَلُّبَ وَجْهِكَ فِى ٱلسَّمَآءِ ۖ فَلَنُوَلِّيَنَّكَ قِبْلَةًۭ تَرْضَىٰهَا ۚ فَوَلِّ وَجْهَكَ شَطْرَ ٱلْمَسْجِدِ ٱلْحَرَامِ ۚ وَحَيْثُ مَا كُنتُمْ فَوَلُّوا۟ وُجُوهَكُمْ شَطْرَهُۥ ۗ وَإِنَّ ٱلَّذِينَ أُوتُوا۟ ٱلْكِتَٰبَ لَيَعْلَمُونَ أَنَّهُ ٱلْحَقُّ مِن رَّبِّهِمْ ۗ وَمَا ٱللَّهُ بِغَٰفِلٍ عَمَّا يَعْمَلُونَ

We have seen the turning of thy face to heaven (for guidance, O Muhammad). And now verily We shall make thee turn (in prayer) toward a qiblah which is dear to thee. So turn thy face toward the Inviolable Place of Worship, and ye (O Muslims), wheresoever ye may be, turn your faces (when ye pray) toward it. Lo! Those who have received the Scripture know that (this revelation) is the Truth from their Lord. And Allah is not unaware of what they do.

Quran Surah Al-Baqarah 2:144 · Translation: Pickthall

When you cannot see the Kaaba, you make a reasonable effort to determine its direction. Most scholars hold that facing its general direction is enough for someone far away, so small differences of a few degrees are not a cause for worry.

How the Qibla direction is calculated

The Earth is a sphere (very nearly), and the shortest route between two points on a sphere is an arc of agreat circle. The Qibla direction is the compass bearing at which that shortest route leaves your location towards the Kaaba, located at about 21.4225° N, 39.8262° E.

For a place at latitude φ₁ and longitude λ₁, with the Kaaba at φ₂, λ₂, the initial bearing θ is:

θ = atan2( sin Δλ · cos φ₂ , cos φ₁ · sin φ₂ − sin φ₁ · cos φ₂ · cos Δλ ), where Δλ = λ₂ − λ₁

The result is converted to degrees and normalised to 0–360°. The distance shown uses the haversine formula with a mean Earth radius of 6,371 km. These are the same calculations used by most modern Qibla apps.

A great-circle route can look surprising on a flat map. From New York, United States the Qibla is about 58° (east-northeast), from London, United Kingdom about 119° (east-southeast), from Karachi, Pakistan about 268° (west), and from Jakarta, Indonesia about 295° (west-northwest). Historically, some communities in North America faced southeast, following a straight line on a Mercator map (a "rhumb line"); today nearly all mosques and Islamic organisations use the great-circle direction.

Qibla direction from major cities

Bearings are measured clockwise from true north and calculated from each city centre. Click a city name to load it into the finder above.

CityCountryQibla (°)DirectionDistance to Kaaba
Afghanistan250.8°WSW3,217 km
Algeria105.4°ESE3,926 km
Australia278.8°W12,741 km
Australia277.5°W13,236 km
Bangladesh277.6°W5,172 km
Belgium123.5°ESE4,489 km
Brazil68.9°ENE10,602 km
Canada58.7°ENE9,998 km
Canada54.6°NE10,496 km
Canada16.7°NNE11,974 km
China278.9°W7,386 km
Egypt136.1°SE1,287 km
France119.2°ESE4,496 km
Germany136.7°SE4,130 km
India266.6°W3,835 km
India282.7°WNW4,070 km
India280.1°W3,452 km
Indonesia295.2°WNW7,920 km
Iran218.4°SW1,944 km
Iraq199.8°SSW1,396 km
Ireland114.1°ESE5,257 km
Italy123.3°ESE3,419 km
Japan293.0°WNW9,472 km
Jordan160.8°SSE1,232 km
Kenya7.2°N2,547 km
Kuwait224.6°SW1,204 km
Malaysia292.5°WNW6,974 km
Mexico46.6°NE13,647 km
Morocco93.7°E4,824 km
Netherlands125.6°SE4,553 km
New Zealand261.2°W15,365 km
Nigeria68.3°ENE3,480 km
Nigeria63.3°ENE4,251 km
Oman266.4°W1,920 km
Pakistan255.9°WSW3,528 km
Pakistan267.7°W2,800 km
Pakistan260.4°W3,598 km
Palestine157.2°SSE1,238 km
Qatar252.6°WSW1,269 km
Russia176.4°S3,822 km
Saudi Arabia96.0°E66 km
Saudi Arabia176.2°S339 km
Saudi Arabia243.8°WSW790 km
Singapore293.0°WNW7,269 km
South Africa23.4°NNE6,558 km
South Africa14.6°NNE5,446 km
Spain104.0°ESE4,598 km
Sweden148.2°SSE4,554 km
Tunisia112.7°ESE3,328 km
Türkiye160.2°SSE2,162 km
Türkiye151.6°SSE2,405 km
United Arab Emirates260.2°W1,527 km
United Arab Emirates258.2°WSW1,631 km
United Kingdom118.0°ESE4,952 km
United Kingdom118.3°ESE5,264 km
United Kingdom119.0°ESE4,794 km
United Kingdom118.5°ESE5,025 km
United States48.7°NE11,146 km
United States45.5°NE12,574 km
United States23.9°NNE13,424 km
United States58.5°ENE10,306 km
United States56.6°ENE10,633 km
Uzbekistan240.3°WSW3,531 km

Other ways to find the Qibla

Once you know which way to face, check today's prayer times for your city, keep count of your dhikr with the tasbih counter, or see all our Islamic tools.

Frequently asked questions

What is the Qibla?

The Qibla is the direction of the Kaaba in the Sacred Mosque (al-Masjid al-Haram) in Makkah, Saudi Arabia. Muslims face it in the five daily prayers, as commanded in the Quran (2:144). The word comes from an Arabic root meaning "to face".

How accurate is this Qibla finder?

The bearing is calculated mathematically from your coordinates to the Kaaba, so the number itself is very precise. In practice, accuracy depends on how you turn to that direction: phone compasses can be off by several degrees because of magnetic interference, and magnetic north differs from true north. Scholars generally agree that facing the general direction (jihah) of the Kaaba is sufficient for someone who cannot see it.

Why is the Qibla northeast from America and not southeast?

The shortest path on a globe is a great circle, not a straight line on a flat map. From New York the great-circle route to Makkah starts out heading east-northeast (about 58°) and curves across the Atlantic. Flat maps such as the Mercator projection distort this, which is why a line drawn on a wall map points southeast. Most Islamic organisations in North America use the great-circle direction.

What is the Qibla direction in degrees from London?

From central London the Qibla is about 119.0° from true north, which is east-southeast. The Kaaba is roughly 4,794 km away along the great circle.

Do I need to repeat my prayer if I faced the wrong direction?

This is a question of fiqh with some differences of opinion. Many scholars hold that if someone made a genuine effort to find the Qibla and later learned they were mistaken, the prayer is valid, while if the mistake is discovered during the prayer they should turn to the correct direction and continue. Ask a local scholar about your specific situation.

Why does my phone compass give a different direction?

Phone compasses measure magnetic north, which can differ from true north by a few degrees or more depending on where you live (magnetic declination). Metal objects, cases with magnets, cars and electrical appliances can also disturb the reading. Calibrate your compass by moving the phone in a figure-eight, and check the result against a landmark or a nearby mosque.