Qibla Direction

The Qibla from your location in degrees, with a phone compass and the sun method

العربية
CityOr choose your city from the list
1
Qibla direction
—

A phone compass points to magnetic north, so it can be several degrees off the angle shown (which is from true north).

Choose your city or use your location

Distance to the Kaaba
—
Direction
—
Coordinates
—

The angle is calculated exactly from the coordinates along the shortest path over the Earth (great circle), the standard way of finding the Qibla. A phone compass itself can be off by a few degrees near metal or magnets, so step away from steel and calibrate it (move the phone in a figure 8). Your location is never sent anywhere; everything is calculated on your device.

How do I find the Qibla?

The easiest way: tap “Use my location” and the calculator shows the angle from north and an arrow on the dial. On a phone, tap “Start the compass” and turn until you see “You are facing the Qibla”. If the compass doesn’t work, open your phone’s compass app and turn to the angle shown.

Qibla direction in major cities

CityQibla from northDistance
Cairo136.1°1,287 km
Alexandria135.4°1,467 km
Aswan111.3°769 km
Riyadh243.8°790 km
Madinah176.1°339 km
Jeddah96.0°66 km
Dammam244.1°1,181 km
Dubai258.2°1,631 km
Abu Dhabi260.2°1,527 km
Kuwait City224.6°1,204 km
Doha252.6°1,269 km
Manama246.2°1,217 km
Muscat266.4°1,920 km

In Cairo, for example, the Qibla is 136.1° from north — south-east, 44° east of south. In Riyadh it is 243.8°, towards the south-west.

How is it calculated?

The Earth is round, so the Qibla is the direction of the shortest path from you to the Kaaba over the Earth’s surface (a great circle), not a straight line on a flat map. The calculator uses the Kaaba’s coordinates (21.4225 N, 39.8262 E) and the standard bearing formula; the results match published values for well-known cities (London 119°, New York 58.5°).

Finding the Qibla with the sun

Twice a year the sun is directly above the Kaaba: around 27–28 May at 12:18 and 15–16 July at 12:27 Makkah time. In 2027, by our astronomical calculation, the closest days are 28 May and 16 July. At that moment anyone who can see the sun can face it and be facing the Qibla exactly — an excellent way to check the Qibla of a home or mosque.

Frequently Asked Questions

Why does my phone compass disagree with the angle?

Phone compasses are affected by steel, electronics and magnets and need calibrating. Step away from metal, move the phone in a figure 8, and try again. The angle itself is calculated exactly from the coordinates.

True north or magnetic north?

The angle is from true (geographic) north. The difference from magnetic north in Egypt and the Gulf is small (about 2 to 5 degrees), less than the error of a phone compass. A phone compass itself points to magnetic north, so the live compass here can be off by that amount (more in some other parts of the world).

What if I pray slightly off the Qibla?

Most scholars hold that someone far from the Kaaba only needs to face its general direction, and a slight deviation does no harm; what matters is making the effort to find it.

What about prayer times?

See prayer times for Egypt and Saudi Arabia by the official methods, and the last third of the night calculator.

Sources

Related calculators