Loading calculator…

Accurate Online Qibla Direction Calculator

Determine the Qibla direction (Kaaba in Mecca) from your location using latitude and longitude coordinates. Accurate spherical trigonometry calculation for Muslims worldwide. Free online compass tool for finding prayer direction anywhere on Earth.

Qibla Direction Formula (Spherical Trigonometry)

tan Q = sin(Δλ) / (cos φ tan φk - sin φ cos(Δλ))

Variables:

  • QQibla Direction (Azimuth)
    Qibla Direction (Azimuth)
  • φLocation Latitude
    Location Latitude
  • λLocation Longitude
    Location Longitude
  • φkKaaba Latitude (21.4225° N)
    Kaaba Latitude (21.4225° N)
  • λkKaaba Longitude (39.8262° E)
    Kaaba Longitude (39.8262° E)
  • ΔλLongitude Difference (λk - λ)
    Longitude Difference (λk - λ)

How to Find the Qibla Direction

  1. 1

    Allow Location Access

    Enable browser GPS to detect your coordinates automatically.

  2. 2

    Enter Coordinates Manually

    Alternatively, enter latitude and longitude manually.

  3. 3

    Calculate

    Get the Qibla bearing in degrees from true north (clockwise).

Examples

Qibla Direction from London

Problem:

Location: London (51.5074° N, 0.1278° W)

Solution:
  1. 1.Enter London coordinates
  2. 2.Apply the Qibla formula
Result:118.62°

Qibla is approximately 119° (southeast) from London.

Qibla Direction from New York

Problem:

Location: New York (40.71° N, 74.00° W)

Solution:
  1. 1.Enter New York coordinates
  2. 2.Apply the Qibla formula
Result:58.48°

Qibla is approximately 58° (northeast) from New York.

Frequently Asked Questions

Is this calculator accurate?
Yes, it uses spherical trigonometry formulas that account for Earth's curvature.
How do I use a compass?
Point 0° on the compass to true north, then find the angle shown by the calculator (e.g., 295°).
Why does the Qibla direction differ by location?
Earth is spherical, so the shortest path to the Kaaba (great circle route) changes depending on where you are on the surface.
How do I calibrate a phone compass for accuracy?
Move your phone in a figure-8 pattern several times to calibrate the magnetometer and reduce interference from nearby metal or electronics.
What is the difference between magnetic north and true north?
Magnetic north is what a compass needle points to; true north is the geographic North Pole. This calculator gives bearings relative to true north.

Related Calculators

References