OneQibla

Qibla direction from your city

OneQibla's calculated bearing to the Kaaba: Sydney 277.5°, London 119.0°, New York 58.5° (great circle, from true north).

This page computes nothing in your browser and never asks where you are; its numbers were worked out when the site was built. Find the nearest city below, or work out the bearing for any place with the formula further down. The OneQibla app does the same calculation on your phone, for the place you set. For iPhone it is free on the App Store, available in most countries but not yet in the European Union: OneQibla on the App Store.

Bearings from major cities

Latitude and longitude in decimal degrees. Bearing in degrees clockwise from true north, rounded to 0.1°. Across 50 km: the gap between the highest and lowest bearing within a 50 km square centred on the city's centre point. Cities nearer Makkah change more.
CityLatitudeLongitudeBearingAcross 50 km
Cairo30.0444° N31.2357° E136.1°3.4°
Delhi28.6139° N77.2090° E266.6°0.9°
Dhaka23.8103° N90.4125° E277.6°0.6°
Dubai25.2048° N55.2708° E258.2°2.2°
Istanbul41.0082° N28.9784° E151.6°1.9°
Jakarta6.2088° S106.8456° E295.2°0.3°
Karachi24.8607° N67.0011° E267.7°1.2°
Kuala Lumpur3.1390° N101.6869° E292.5°0.3°
Lagos6.5244° N3.3792° E63.3°0.7°
London51.5074° N0.1278° W119.0°1.2°
New York40.7128° N74.0060° W58.5°0.4°
Paris48.8566° N2.3522° E119.2°1.2°
Riyadh24.7136° N46.6753° E243.8°5.0°
Sydney33.8688° S151.2093° E277.5°0.5°
Toronto43.6532° N79.3832° W54.6°0.5°

Using the number

A bearing is measured clockwise from true north: 90° is east, 180° is south, 270° is west. Face true north, then turn clockwise by the bearing.

A magnetic compass points to magnetic north, which is not true north: in Sydney, for example, magnetic north is about 13° east of true north. A phone's compass can also be a few degrees out, especially near metal or other electronics.

How it is calculated

The bearing here is the initial bearing of the great circle from your place to the Kaaba in Makkah, on a spherical model of the Earth. It is the same method the app uses.

Some communities and published tables define the direction in other ways. From some places, North America above all, the results differ by tens of degrees. Which definition to follow is a religious question this page does not answer.

θ = atan2( sin Δλ · cos φ₂,
           cos φ₁ · sin φ₂ − sin φ₁ · cos φ₂ · cos Δλ )
bearing = (θ + 360°) mod 360°
φ₁, λ₁
your latitude and longitude, with south and west negative
φ₂, λ₂
the Kaaba: 21.4225° N, 39.8261° E (21°25′21″ N, 39°49′34″ E), from Saudi Arabia's aeronautical information publication (AIP ENR 5.1, area OEP01). That is an aviation publication, not a religious attestation.
Δλ
λ₂ − λ₁, the difference in longitude

Worked example: Sydney

φ₁ = −33.8688° (south), λ₁ = 151.2093°, so Δλ = 39.8261° − 151.2093° = −111.3832°. The formula gives θ = −82.5°, and −82.5° + 360° = 277.5°: 7.5° north of due west.

What has been checked

Every row above was computed with this formula from the coordinates shown, each city's usual central point. Every change to the site is checked by a separate program, which recomputes every row from the numbers on this page; the rows for London, New York, Sydney and Jakarta must match the app's own tests. The choice of method and of Kaaba coordinate has not been reviewed by a qualified religious scholar.