Explore Tools →

Qibla Direction Calculator

Direct answer: Your Qibla direction is the great-circle bearing from your location to the Kaaba in Makkah (21.4225° N, 39.8262° E), measured in degrees clockwise from true north.

Find the exact Qibla direction for prayer, anywhere on Earth. Enter your coordinates or use your device location, and get the bearing in degrees plus a live compass needle.

How it works

  1. Enter your latitude and longitude, or tap Use my location.
  2. We compute the great-circle bearing to the Kaaba.
  3. Turn to that degree on a compass and face that way to pray.

Formula & methodology

Bearing θ = atan2( sin Δλ, cos φ₁·sin φ₂ − sin φ₁·cos φ₂·cos Δλ ), where φ is latitude and Δλ the longitude difference to the Kaaba. Distance uses the spherical law of cosines (Earth radius 6,371 km).

Frequently asked questions

What is the Qibla direction?

The Qibla is the direction of the Kaaba in Makkah (21.4225° N, 39.8262° E) that Muslims face in prayer, from wherever they are in the world.

How accurate is this Qibla calculator?

It uses the great-circle (shortest path) bearing formula — the same method used by compass apps — accurate to a fraction of a degree.

Does magnetic north matter?

Phone compasses point to magnetic north, which differs from true north by local declination. Our bearing is true north — most phones correct automatically.

What is the Qibla from the UK / USA?

From London it is about 119° (south-east); from New York about 58° (north-east). Enter your city coordinates to get your exact bearing.

Qibla finder, compass and Kaaba direction — which should you use?

There are three ways to find the direction of the Kaaba from where you stand. A Qibla compass points to magnetic north and asks you to rotate to a printed angle — simple, but magnetic north differs from true north by several degrees in many regions, and phone cases and metal furniture disturb the needle. A Qibla finder (like this page) calculates the exact great-circle bearing from your GPS coordinates to the Kaaba (21.4225° N, 39.8262° E) — the shortest path over the Earth's curve — and shows it on a live compass. A bearing in degrees is what both methods produce: for reference, the Qibla is approximately 58° from New York, 119° from London, 257° from Karachi, 292° from Kuala Lumpur and 295° from Jakarta, measured clockwise from true north. For the most accurate result outdoors, stand away from metal and electronics, hold the phone flat, and rotate the compass rose in a figure-of-eight to calibrate. Indoors, compare the bearing with a map of your street — buildings rarely align with the Qibla, which is why the degree reading matters more than "facing the wall". The same bearing is used for the direction of prayer (Salah), for burying the deceased, and for orienting a new mosque's mihrab.

Sources & further reading

External links open in a new tab. FaithCalculator is not affiliated with these publishers; we cite them as the authoritative references behind each formula.

Related faith calculators

Last updated: 2026-11-21 · Author: FaithCalculator Editorial Team · Reviewed for calculation accuracy against the published formulas on this page.