Qibla Direction

Find the direction of the Kaaba from your current location

What is the Qibla?

The Qibla is the direction that Muslims face during Salah (prayer). It points towards the Kaaba in Masjid al-Haram, Makkah. Facing it is a condition of the prayer, and it is what joins a worshipper in Karachi, Lahore, London and Jakarta into one congregation turned to one House.

Allah ﷻ says: “So turn your face towards al-Masjid al-Haram. And wherever you are, turn your faces towards it.” (Surah Al-Baqarah 2:144 and 2:150). The Beloved Prophet Muhammad ﷺ described the Muslims as those who “pray as we pray and face our Qibla” (Sahih al-Bukhari, Book of Salah).

In practice the Qibla is a compass bearing: an angle measured clockwise from true north. From Pakistan that bearing is close to west — about 268° from Karachi and 260° from Lahore — and from Britain it is south-east, about 119° from London.

How to find the Qibla without a compass

A phone compass can be unavailable, uncalibrated or confused by a steel building. Four ways to work the direction out without one:

  1. Use the nearest mosque. The mihrab, and the direction the rows stand in, give you the Qibla as the people of that locality have established it. Inside a home, note the direction once from the mosque you pray Jumu’ah in and mark it.
  2. Use the sun. The sun rises in the east and sets in the west. From anywhere in Pakistan the Qibla is a little south of due west, so at the time of Asr the sun is close to the Qibla and at Maghrib it sets slightly to the right of it. From the United Kingdom the opposite holds: face roughly towards where the sun was in the late morning, towards the south-east.
  3. Use a map. Find your city in the table below, then measure that many degrees clockwise from north on a map or a paper compass rose. 270° is due west, 180° due south, 90° due east.
  4. Use the shadow of a straight object. A vertical stick casts its shortest shadow at local midday, and that shadow lies on the north–south line. Once you have north, the bearing from the table gives you the Qibla.

Pair any of these with accurate prayer times for your city so that the direction and the time are both settled before you stand for Salah.

Qibla direction from major cities

Bearings are measured clockwise from true north (not magnetic north) and are computed by the same great-circle calculation as the compass above, towards the Kaaba at 21.4225°N, 39.8262°E. A magnetic compass needle needs the local declination applied; a phone compass set to true north does not.

CityCountryQibla bearingDirectionDistance to the Kaaba
KarachiPakistan268°W2,800 km
LahorePakistan260°W3,598 km
IslamabadPakistan256°WSW3,528 km
RawalpindiPakistan256°WSW3,522 km
FaisalabadPakistan260°W3,483 km
MultanPakistan260°W3,306 km
PeshawarPakistan254°WSW3,401 km
QuettaPakistan257°WSW2,878 km
HyderabadPakistan267°W2,939 km
SialkotPakistan259°W3,634 km
GujranwalaPakistan259°W3,596 km
SukkurPakistan263°W3,010 km
MadinahSaudi Arabia176°S339 km
RiyadhSaudi Arabia244°WSW790 km
DubaiUAE258°WSW1,631 km
KabulAfghanistan251°WSW3,217 km
New DelhiIndia267°W3,835 km
DhakaBangladesh278°W5,172 km
IstanbulTürkiye152°SSE2,405 km
CairoEgypt136°SE1,287 km
LondonUnited Kingdom119°ESE4,794 km
New YorkUnited States58°ENE10,306 km
TorontoCanada55°NE10,496 km
Kuala LumpurMalaysia293°WNW6,974 km
JakartaIndonesia295°WNW7,920 km
SydneyAustralia277°W13,236 km
JohannesburgSouth Africa15°NNE5,446 km

City coordinates are city-centre points, so a bearing can differ by a degree or so across a large city. For your exact position use the compass at the top of this page.

If you cannot be sure of the direction

A traveller on a motorway, a patient in a hospital room, a worker in a windowless building: the question of what to do when the Qibla cannot be established is an old one, and the Hanafi madhhab answers it gently.

For those far from Makkah the obligation is to face the direction of the Kaaba (jihah), not to strike its exact point, so a small deviation does not harm the prayer. Someone who cannot determine the direction asks whoever is there to ask, uses whatever instrument is available, and failing that makes a sincere judgement (ijtihad) and prays — the prayer is not left until its time runs out. If it later emerges that the judgement was mistaken, that prayer is not repeated. This is the ruling recorded by Sadr-ush-Shariah in Bahar-e-Shariat in the chapter on the Qibla, following the Hanafi fuqaha.

For a specific case — a new mosque’s alignment, a prayer room at work, prayers already offered in a direction later found wrong — ask a reliable Hanafi mufti rather than relying on a web page.

Frequently Asked Questions

What is the Qibla direction?

The Qibla is the direction of the Kaaba in Masjid al-Haram, Makkah, which Muslims face in Salah. It is a compass bearing measured clockwise from true north: about 268° from Karachi, 260° from Lahore and 256° from Islamabad.

How can I find the Qibla without a compass?

Use the sun. In Pakistan the Qibla is roughly west-south-west, so the late-afternoon sun sits close to it; face a little to the right of the setting sun from Karachi and Lahore. You can also line up with the mihrab or the rows of the nearest mosque, or read the bearing for your city from the table on this page and measure it from north on a map.

Is my Salah valid if the Qibla direction was slightly off?

In the Hanafi madhhab those far from Makkah are required to face the direction (jihah) of the Kaaba rather than hit its exact point, so a small deviation does not invalidate the prayer. One who cannot establish the direction makes a sincere effort (ijtihad) and prays; if it later turns out to have been mistaken, that prayer is not repeated. This is the ruling recorded in Bahar-e-Shariat; for your own case ask a reliable Hanafi mufti.

What should I do if I cannot determine the Qibla at all?

Ask someone local who knows, or use any reliable means available — a compass, this page, a mosque nearby. If none of that is possible, decide on the most likely direction and pray; the prayer is not delayed until the time is lost. Allah says: "And to Allah belong the East and the West" (Surah Al-Baqarah 2:115).

Does the Qibla compass work on a desktop computer?

The live compass needs a magnetometer, which laptops and desktops do not have, so on a computer this page shows the Qibla bearing in degrees from your location instead of a rotating needle. Open the page on a phone for the live compass, and calibrate the phone by moving it in a figure-8 if the needle drifts.

Why does the Qibla from Pakistan point west and not south-west towards Makkah on a flat map?

A Qibla bearing is a great-circle direction on a sphere, which a flat map distorts. The shortest path from Karachi to Makkah leaves on a bearing of about 268°, close to due west, even though on a rectangular world map the line looks as if it should run south-west.

Once you are facing the Qibla: read the Quran online, check today’s prayer times or read the Hajj & Umrah guide.