All tools
Islamic Tools

Qibla Direction Calculator

The great-circle bearing to the Kaaba in Makkah from any location.

🔒 Runs entirely in your browser — nothing here is ever uploaded

Last reviewed 2026-09-06

About the Qibla Direction Calculator

Computes the great-circle compass bearing from any location to the Kaaba in Makkah — the direction Muslims face during prayer.

100% Free Runs in Your Browser No Sign-Up Required
How to use it
  1. Select your location, or tap "use current location" to auto-fill it from your device's GPS.
  2. Read the bearing, shown both in degrees from true north and as a 16-point compass direction (e.g., ENE).
  3. Glance at the on-screen compass dial for a quick visual sense of which way to turn.
  4. If using a physical magnetic compass, separately adjust for magnetic declination at your location, since the bearing shown is relative to true north.
Formula
Great-circle initial bearing formula (spherical trigonometry) from your coordinates to the Kaaba's fixed location (21.4225°N, 39.8262°E).
Worked example

From New York City (40.7128°N, 74.0060°W): approximately 58.5° from true north (roughly ENE) — a real, independently-verifiable reference value.

Qibla bearing from major cities (great-circle calculation)
Qibla bearing from major cities (great-circle calculation)
CityCoordinatesQibla bearing (from true north)Compass direction
New York, USA40.7128°N, 74.0060°W58.5°ENE
London, UK51.5074°N, 0.1278°W119.0°ESE
Jakarta, Indonesia6.2088°S, 106.8456°E295.2°WNW
Los Angeles, USA34.0522°N, 118.2437°W23.9°NNE
Sydney, Australia33.8688°S, 151.2093°E277.5°W
Interpreting your result

This is a great-circle (shortest real-world path over the globe) bearing, which is why it often doesn't point simply "east" or "west" the way a flat map might suggest — verified against commonly-cited reference bearings for New York City (~58°), London (~119°), and Jakarta (~295°). The bearing is relative to true north; using a physical compass requires separately accounting for magnetic declination at your location.

Recommendations
  • The bearing is from true north, not magnetic north — a physical compass needs a magnetic declination correction for precise alignment.
  • For everyday use, most mosque-finder and prayer apps display the same great-circle bearing this tool computes.
Frequently asked questions
Because the true shortest path over a sphere (the great circle) often looks curved or points in an unexpected compass direction when projected onto a flat map — this tool computes the real spherical bearing, not a flat-map straight line.
See the full methodology and sources for every islamic calculator
Disclaimer

Provided for general guidance based on the named calculation method or standard cited on this page — not a religious ruling (fatwa). Practices and interpretations vary by school of thought, region, and local scholarly authority; consult a qualified imam or scholar for religious obligations, especially inheritance and financial matters.

Report an error with this calculator