Qibla Direction

Qibla Direction Finder

Find the Qibla direction from your current location, any city, or exact coordinates. See the bearing from true north, the distance to the Kaaba, and use the live compass on your phone.

How to Use

Use your location, search your city, or type latitude and longitude. The tool calculates the Qibla direction and the distance to the Kaaba from that place.

Click the button to calculate Qibla direction.

Related Islamic Tools

After finding the Qibla direction, you can also check Prayer Times, Abu Dhabi Prayer Times, Dubai Prayer Times, Hijri Date Converter and Islamic Date Today in UAE.

Important Note

For best accuracy, keep your phone away from metal objects, electrical items, vehicles, and magnets. Calibrate your mobile compass before using it.

What the Qibla Direction Means

The Qibla is the direction of the Kaaba in Makkah, which Muslims face in prayer. The Quran commands the believers to turn their faces toward Al-Masjid Al-Haram (Surah al-Baqarah, 2:144). Because the Earth is round, the shortest path from your city to Makkah is a curve over the globe, not a straight line on a flat map. This is why the Qibla in North America points north-east, even though Makkah looks to be east of it on many maps.

How This Tool Works

The tool takes the latitude and longitude of your chosen place (from your device, from the city list, or typed by you), and uses the known position of the Kaaba (about 21.4225° north, 39.8262° east) to calculate the initial great-circle bearing from your place to Makkah. The result is a number of degrees measured clockwise from true north: 0° is north, 90° is east, 180° is south and 270° is west. It also shows the great-circle distance to the Kaaba in kilometres and miles. Your location is used in your browser for this calculation and is not stored on our server. The last place you used is remembered only on your own device, so next time the result appears straight away, and you can remove it with the Forget link.

As a rough guide, the bearing is about 58° from New York (north-east), about 119° from London (south-east), about 259° from Dubai (west-south-west), and about 268° from Karachi (almost due west). These are approximate figures for orientation only. Use the result the tool gives you for your exact position.

Qibla Direction for Major Cities

The table below shows the Qibla bearing from true north and the great-circle distance to the Kaaba, measured from the centre of each city. Inside a large city, the direction changes only slightly, but for your exact home or mosque, use the finder above.

CityCountryQibla directionDistance to Kaaba
Abu DhabiUAE260.2° West1,529 km (950 mi)
DubaiUAE258.8° West1,632 km (1,014 mi)
SharjahUAE257.9° West-south-west1,648 km (1,024 mi)
Al AinUAE262.5° West1,661 km (1,032 mi)
AjmanUAE257.7° West-south-west1,656 km (1,029 mi)
Ras Al KhaimahUAE256.9° West-south-west1,711 km (1,063 mi)
FujairahUAE259.7° West1,735 km (1,078 mi)
KarachiPakistan267.7° West2,801 km (1,740 mi)
LahorePakistan260.3° West3,598 km (2,236 mi)
IslamabadPakistan255.8° West-south-west3,528 km (2,192 mi)
RawalpindiPakistan256.0° West-south-west3,525 km (2,191 mi)
PeshawarPakistan254.1° West-south-west3,406 km (2,116 mi)
FaisalabadPakistan259.6° West3,478 km (2,161 mi)
MultanPakistan260.4° West3,303 km (2,052 mi)
QuettaPakistan256.7° West-south-west2,881 km (1,790 mi)
RiyadhSaudi Arabia244.2° West-south-west793 km (493 mi)
JeddahSaudi Arabia96.4° East67 km (41 mi)
MadinahSaudi Arabia176.3° South339 km (211 mi)
DammamSaudi Arabia244.1° West-south-west1,183 km (735 mi)
DohaQatar252.6° West-south-west1,269 km (789 mi)
Kuwait CityKuwait224.6° South-west1,203 km (748 mi)
MuscatOman266.5° West1,923 km (1,195 mi)
ManamaBahrain246.2° West-south-west1,217 km (756 mi)
New YorkUSA58.5° East-north-east10,306 km (6,404 mi)
ChicagoUSA48.7° North-east11,149 km (6,928 mi)
HoustonUSA45.5° North-east12,574 km (7,813 mi)
Los AngelesUSA23.9° North-north-east13,424 km (8,341 mi)
DallasUSA43.5° North-east12,430 km (7,724 mi)
PhiladelphiaUSA57.7° East-north-east10,434 km (6,484 mi)
DetroitUSA52.0° North-east10,822 km (6,725 mi)
Washington, D.C.USA56.6° East-north-east10,633 km (6,607 mi)
LondonUK119.0° East-south-east4,794 km (2,979 mi)
BirminghamUK117.9° East-south-east4,952 km (3,077 mi)
ManchesterUK118.5° East-south-east5,024 km (3,122 mi)
TorontoCanada54.6° North-east10,493 km (6,520 mi)
New DelhiIndia266.6° West3,835 km (2,383 mi)
MumbaiIndia280.1° West3,452 km (2,145 mi)
HyderabadIndia282.7° West-north-west4,066 km (2,527 mi)
DhakaBangladesh277.7° West5,173 km (3,214 mi)
CairoEgypt136.2° South-east1,288 km (800 mi)
IstanbulTurkey151.6° South-south-east2,407 km (1,495 mi)
Kuala LumpurMalaysia292.5° West-north-west6,974 km (4,333 mi)
JakartaIndonesia295.2° West-north-west7,920 km (4,921 mi)
SydneyAustralia277.5° West13,236 km (8,225 mi)

Tips for a Better Result

  • True north and magnetic north differ. The tool gives the bearing from true north. A phone compass may show magnetic north on some devices, and the difference (called magnetic declination) can be several degrees depending on where you are.
  • Hold the phone flat and away from magnets, speaker covers, metal tables and car dashboards, which can pull the compass off.
  • Calibrate the compass. Most phones ask you to move the device in a figure-eight to calibrate it.
  • Check with a landmark. Once you know the Qibla in your home or office, mark it, so you do not need to recalculate each day.
  • Allow precise location. If your browser gives only an approximate location, the bearing may be a little off. Type your city instead if the permission is blocked.

Praying When You Cannot Be Sure

Scholars discuss how exact the Qibla must be for someone who is far from Makkah, and some give guidance for travelling by plane, train or ship. If you are unsure, do your best with the tools you have, and ask a qualified scholar or your local mosque for a ruling that fits your situation. This tool is an aid, and it does not issue religious rulings.

Frequently Asked Questions

Why does the Qibla point differently from what I expected?

Directions on a flat map are misleading over long distances. The shortest route over the globe can look quite different from a straight line on a map, especially for places far from Makkah.

Does the tool work without location permission?

Yes. If you do not want to share your location, search your city in the box, or type your latitude and longitude. The result is the same calculation.

How do I use the live compass?

On a phone, find your Qibla first, then tap Start live compass. Hold the phone flat and turn slowly until the arrow points straight up. The compass ring glows green, and many Android phones vibrate, when you face the Qibla. iPhones ask for permission to use motion and orientation the first time. Computers usually have no compass, so use the degree with a separate compass.

Can I find the Qibla without a compass?

Yes, often. After you get your result, the tool shows today’s times when the sun lines up with the Qibla from your place. At those moments you can face the sun, or use the shadow of an upright stick. It also gives the two days each year when the sun passes almost directly over the Kaaba, when shadows everywhere the sun is up point away from the Qibla. On some days the sun does not line up with your Qibla while it is high enough in the sky, and the tool will tell you.

Can I share or print my Qibla result?

Yes. Use Share to send a link that opens the same place, or Print to keep a paper copy at home or in your office. Show on map draws the shortest path over the globe from your place to the Kaaba.

Why does my phone compass not match?

Phone compasses are easily pulled off by metal, magnets, cases with magnets and electrical equipment. Move away from them and calibrate the phone by moving it in a figure-8. If the reading still jumps around, rely on the degree and a landmark you know.

Does my phone need an internet connection?

The page itself needs to load once. The calculation then runs in your browser.

How accurate is it?

The calculation is accurate to a fraction of a degree. The main source of error is the device compass, which can be affected by nearby metal and electronics.