Qibla Direction

Pick your city or enter latitude/longitude.

Qibla direction
243.8°
From north toward SW
N
S
W
E

How it works

We compute the shortest great-circle bearing from your location to the Ka'bah, measured from true north.

Formula

θ = atan2(sin Δλ · cos φ₂, cos φ₁ · sin φ₂ − sin φ₁ · cos φ₂ · cos Δλ)

Worked example

Riyadh ≈ 244° (south-west).

FAQ

Magnetic or true north?
True north. Adjust for your local magnetic declination on a compass.
Using the bearing with a compass?
Turn to the given bearing from north, factoring in declination.
Near the poles?
Math holds; bearings converge near south for polar locations.

Related calculators