Qibla Direction Calculator

Get the qibla direction in degrees from your location: the great-circle bearing to the Kaaba in Mecca (21.4225°N, 39.8262°E), worked out with spherical trigonometry. You also get the compass direction and the distance in kilometres and miles.

Qibla Direction Calculator

Qibla Direction Calculator

Find the direction of the Qibla (Kaaba in Mecca) from any location on Earth.

RESULT
—

What Is the Qibla Direction in Degrees From My Location?

It is the angle, clockwise from true north, of the shortest path across the globe from you to the Kaaba. From New York that is about 58.5°, so you face northeast. From London it is about 119°, toward the southeast. Enter your own coordinates for your exact figure.

CityBearing from true northDirectionDistance
New York58.5°NE≈ 10,300 km
Toronto54.6°NE≈ 10,500 km
Chicago48.7°NE≈ 11,150 km
London119.0°SE≈ 4,800 km
Cairo136.1°SE≈ 1,290 km
Karachi267.7°W≈ 2,800 km

Formula: Bearing = atan2(sin Δλ, cos φ × tan φK − sin φ × cos Δλ), where φ is your latitude, φK the Kaaba’s latitude and Δλ the Kaaba’s longitude minus yours. The result is turned into degrees from 0 to 360.

How to Find the Qibla Direction With a Compass

Take the true-north bearing, correct it for magnetic declination, then turn until your compass shows that reading.

  1. Find your bearing: about 58.5° in New York.
  2. Look up the current magnetic declination for your location.
  3. Subtract an east declination, or add a west one, to get the compass reading.
  4. Hold the compass flat and turn until it shows that reading.

True north versus magnetic north

A compass needle points to magnetic north, not true north. The angle between them, called magnetic declination, depends on where you are and slowly changes over time; in some places it is tiny, in others large enough to matter. Many phone compass apps can switch to true north when location services are on, which removes this step.

Getting a steady compass reading

  • Keep clear of steel furniture, radiators, speakers and laptops, which can pull the needle several degrees.
  • Calibrate a phone compass when it asks, usually by moving it in a figure-of-eight.
  • Compare readings in two or three spots; if they disagree, one spot is probably affected by metal or wiring.

Mark it once, then use landmarks

Once you have a reliable direction, mark it with something lasting, such as a small sticker on the wall. When travelling, a hotel room may already have a qibla marker, but it is worth a quick check against your own bearing.

Why the Qibla From New York and Toronto Points Northeast

The shortest route across a globe is a great-circle path, which often looks curved on a flat map. That is why the qibla direction from New York (58.5°) and from Toronto (54.6°) points northeast rather than southeast, even though Mecca sits further south on a flat map. Small differences between tools usually come from rounded coordinates or from one of them using magnetic north.

Local mosques have normally established the qibla with care, so a nearby mihrab is a helpful check. For the history and methods, see the qibla article on Wikipedia, then enter your new coordinates in the qibla direction calculator whenever you pray somewhere unfamiliar.

Common questions about the qibla direction

How do I find the qibla direction in degrees from my location?Enter your latitude and longitude, and the tool returns the great-circle bearing to the Kaaba in degrees clockwise from true north. From New York, for example, it is about 58.5°.
What is the qibla direction from New York?About 58.5° from true north, which is northeast, with the Kaaba roughly 10,300 km (6,400 miles) away along the great circle.
What is the qibla direction from London in degrees?About 119° from true north, which falls in the southeast sector, at a distance of roughly 4,800 km (3,000 miles).
What is the qibla direction from Toronto?About 54.6° from true north, northeast, and roughly 10,500 km (6,500 miles) away.
How do I find the qibla direction with a compass?Get your bearing here, then correct it for magnetic declination: subtract an east declination or add a west one to get the compass reading. Hold the compass flat, away from metal, and turn until it shows that reading.
Why does the qibla point northeast from North America?The shortest route across a globe is a great-circle path, which looks curved on a flat map. From much of North America that path heads northeast, even though Mecca sits further south on a flat map.

Related Calculators

The Qibla direction calculator finds the compass bearing from your location to the Kaaba in Mecca, Saudi Arabia — the direction Muslims face during prayer. Enter your latitude and longitude for an instant bearing in degrees.

How Qibla Direction Is Calculated

Qibla Bearing = atan2(sin(ΔLng), cos(φ₁)×tan(φ₂) − sin(φ₁)×cos(ΔLng)) Kaaba Coordinates: Latitude: 21.4225°N Longitude: 39.8262°E Result: degrees clockwise from True North

How to Find Your Coordinates

  1. Open Google Maps and right-click your location
  2. Your latitude and longitude appear at the top of the menu
  3. Enter them in this calculator

Qibla Direction Calculator FAQ

How do I find the Qibla direction?

Enter your latitude and longitude into this calculator. It computes the great-circle bearing from your location to the Kaaba in Mecca (21.4225°N, 39.8262°E) in degrees from True North.

Is the Qibla always east?

No. The Qibla direction varies by your location. From North America, it is roughly northeast. From Europe, roughly southeast. From Indonesia, roughly northwest. The calculator gives the precise bearing for your exact coordinates.

Should I use True North or Magnetic North?

This calculator gives True North bearing. If using a magnetic compass, adjust for your local magnetic declination. In most of the US, magnetic declination is 0–15° west.

How do I find my latitude and longitude?

Right-click on your location in Google Maps — coordinates appear at the top. Or search "my coordinates" on your phone. GPS coordinates are typically shown as latitude, longitude.

Why is the great-circle direction different from a straight line on a map?

Maps distort the Earth's curved surface. A great-circle route (shortest path on a sphere) appears curved on a flat map. The Qibla bearing follows the great-circle direction, which is the actual shortest path to Mecca.

Is this Qibla calculator free?

Yes, completely free. Enter coordinates for instant Qibla bearing with distance to Kaaba.

Related Calculators