Qibla direction
Enter your position, or use your device's: you get the bearing to the Kaaba and the distance.
How the Qibla is computed
The Qibla is the direction of the Kaaba, in Mecca (21.4225° N, 39.8262° E), which Muslims face when praying. It is computed as the initial bearing of the great circle, the shortest path on the Earth's surface, joining your position to the Kaaba.
The bearing is counted in degrees from geographic north (true north), clockwise: 0° is north, 90° east, 180° south, 270° west. The computation assumes a spherical Earth of mean radius 6,371 km; the difference from a computation on the ellipsoid is a few tenths of a degree at most.
A compass shows magnetic north, which differs from true north by the magnetic declination of your place: correct for it before using the bearing shown. For a precise orientation, check the direction with a local authority or a dedicated application.