Smart Unit ConvertersSmart Unit Converters

Qibla Direction Finder

Find the exact direction of the Kaaba in Mecca from anywhere in the world. Compass + bearing in degrees.

Or use a different source
Or enter coordinates manually
Resolving your location…

?What is the Qibla Direction Finder?

The Qibla is the direction Muslims face during prayer — toward the Kaaba in Masjid al-Haram, Mecca. This calculator finds that exact direction from your location using the great-circle initial-bearing formula. Enter your country and get the bearing in degrees clockwise from true north (e.g. 254° from London, 267° from New York, 272° from Karachi). The interactive compass dial visualizes the direction relative to north, east, south, and west, and the calculator also displays the great-circle distance to the Kaaba in kilometres and miles. All math runs locally in your browser — no network call needed once your location is known.

The Formula

θ = atan2(sin(Δλ)·cos(φ_K), cos(φ)·sin(φ_K) − sin(φ)·cos(φ_K)·cos(Δλ)) where φ = your latitude, λ = your longitude, φ_K = 21.4225°N, λ_K = 39.8262°E (Kaaba).

This is the standard great-circle initial-bearing (or 'forward azimuth') formula. It computes the direction you would face at the start of the shortest path along Earth's surface to reach the Kaaba. Because Earth is roughly spherical, that bearing changes as you travel — but Muslims face the initial bearing at the moment of prayer. The Kaaba's coordinates (21.4225°N, 39.8262°E) are taken from the Saudi Geological Survey. The result is normalized to 0–360° clockwise from true north. To use it with a magnetic compass you may need to apply a small declination correction (typically ±5°) for your region; for prayer purposes most scholars consider this small offset acceptable.

Qibla Direction Reference Table — Major Cities

Approximate Qibla bearing (degrees clockwise from true north) and great-circle distance to the Kaaba from major cities worldwide.

CityCountryQibla bearingDistance
MeccaSaudi Arabia0 km
RiyadhSaudi Arabia246°870 km
CairoEgypt136°1,310 km
IstanbulTurkey151°2,800 km
TehranIran207°1,790 km
KarachiPakistan268°2,950 km
LahorePakistan256°3,560 km
IslamabadPakistan254°3,790 km
DhakaBangladesh276°4,930 km
Kuala LumpurMalaysia292°7,470 km
LondonUK119°4,750 km
New YorkUSA58°10,300 km
TorontoCanada55°9,950 km
SydneyAustralia277°12,070 km
TokyoJapan293°8,840 km
Cape TownSouth Africa26°7,300 km

Put It in Perspective

From any point in Saudi Arabia, the Qibla and Mecca are within 1,500 km — a distance comparable to the length of Italy.

Muslims in Hawaii face roughly 333° (north-northwest) — almost the opposite direction from what a flat map would suggest.

From the South Pole, every direction is technically 'north' — including the Qibla — making this calculator essential for the rare Antarctic researcher.

Astronauts on the ISS have used real-time Qibla calculators that account for their ~28,000 km/h orbital motion — the bearing changes every few seconds.

Practical Examples

1

From Karachi (24.86°N, 67.0°W) the Qibla is approximately 268° — almost due west.

2

From Lahore (31.55°N, 74.34°E) the Qibla is approximately 256° — west-southwest.

3

From Islamabad (33.69°N, 73.05°E) the Qibla is approximately 254° — west-southwest.

4

From London (51.51°N, -0.13°E) the Qibla is approximately 119° — east-southeast.

5

From New York (40.71°N, -74.0°W) the Qibla is approximately 58° — northeast (the great-circle path goes over the Atlantic and southern Europe).

6

From Tokyo (35.68°N, 139.69°E) the Qibla is approximately 293° — west-northwest.

7

From Sydney (-33.87°N, 151.21°E) the Qibla is approximately 277° — almost due west.

Frequently Asked Questions

Practically yes. Within a single city the Qibla bearing changes by less than 0.1° — far smaller than the precision of any handheld compass. Use the same direction throughout your home or workplace without recalculating room by room.

Popular Conversions

Jump to a ready-made conversion — useful for quick reference and sharing: