Skip to main content

    Qibla Direction Finder

    Find the exact direction of the Kaaba from any location on Earth. Uses spherical trigonometry for precise Qibla bearing, no app download needed.

    Free to use. Runs in your browser.

    The Qibla is the direction toward the Kaaba in Mecca (21.4225°N, 39.8262°E). From the UK it points roughly south-east; from the US it points north-east. Enter your location for the exact compass bearing.

    Your bearing is calculated using spherical trigonometry, accurate anywhere on Earth.

    Your Location

    Don't know your coordinates? Search "my coordinates" on Google Maps.

    How the Qibla bearing is calculated

    Formula or method

    The bearing is the great-circle (shortest-path) direction from your latitude and longitude to the Kaaba at 21.4225 degrees N, 39.8262 degrees E, computed with spherical trigonometry. Distance to the Kaaba uses the Haversine formula. Both run entirely in your browser.

    Basis and assumptions

    • The Kaaba is taken as 21.4225 degrees N, 39.8262 degrees E.
    • The bearing is measured in degrees clockwise from true north, not magnetic north.
    • Accuracy is limited mainly by your GPS fix; the formula itself is exact to a fraction of a degree.

    Key handling decisions

    • The great-circle method is used, which is why the Qibla from the UK is roughly south-east (about 119 degrees) rather than due east.
    • Results are given from true north; where magnetic declination is large, adjust your compass accordingly. UK declination is currently within about a degree.

    What this tool does not decide

    • Whether a prayer is valid when the direction is slightly off. All four schools accept a reasonable effort to face the Qibla; for specific concerns consult a qualified scholar.
    • A live compass heading from your device's magnetometer; this tool gives the target bearing, not a moving needle.

    Sources

    • Qur'an 2:144, Surah Al-Baqarah (facing al-Masjid al-Haram)
    • Great-circle bearing by spherical trigonometry; Kaaba at 21.4225 degrees N, 39.8262 degrees E

    Last checked: 2026-06-04

    Why Does the Qibla Direction Matter?

    Five times a day, roughly 2 billion Muslims around the world face the same point on Earth, the Kaaba in Makkah. It's one of the most striking acts of unity in any religion. The command comes directly from the Quran: "Turn your face towards al-Masjid al-Haram. Wherever you may be, turn your faces towards it" (Surah Al-Baqarah 2:144).

    Facing the Qibla is a condition for the validity of prayer in all four schools of Islamic jurisprudence (Hanafi, Maliki, Shafi'i, and Hanbali). You don't need to align with surgical precision, a reasonable effort to face the right direction is sufficient, but you do need to make that effort. That's where tools like this come in, especially when you're travelling or in an unfamiliar place.

    Qibla Directions from Major Cities

    The Qibla bearing varies dramatically depending on where you are. Here are approximate bearings from major cities:

    CityBearingCardinalDistance
    London, UK119.0°ESE4,794 km
    New York, USA58.5°ENE10,306 km
    Istanbul, Turkey151.6°SSE2,405 km
    Kuala Lumpur, Malaysia292.5°WNW6,974 km
    Lagos, Nigeria63.3°ENE4,251 km
    Sydney, Australia277.5°W13,236 km
    Tokyo, Japan293.0°WNW9,472 km
    Toronto, Canada54.6°NE10,496 km

    The Maths Behind the Qibla

    The Qibla direction is calculated using the great-circle bearing formula from spherical trigonometry. It's the same maths pilots use to plot the shortest flight path between two points on a globe. The formula takes your latitude and longitude, compares them to the Kaaba's coordinates (21.4225°N, 39.8262°E), and produces a bearing in degrees from true north.

    This is why the Qibla from London points southeast (~119°) rather than due east. On a flat map, Makkah looks directly east of London. But on a globe, the shortest path curves through southeastern Europe and the Mediterranean. If you've ever seen a flight path from London to Jeddah on an in-flight map, you'll notice it doesn't go straight east, it arcs south through Turkey. That arc is the great circle, and your Qibla direction follows the same starting bearing.

    Facing the Qibla in Practice

    The obligation is to face the direction of the Kaaba, not to align to the millimetre. Scholars across all four schools agree that a reasonable, honest effort to determine the Qibla is enough for a valid prayer, in keeping with the command of Surah Al-Baqarah 2:144. When you are travelling or unsure, use the best information available and pray with confidence rather than delaying.

    • Read the bearing from true north, then allow for your compass's magnetic declination. In the UK this is currently within about a degree, so the correction is small.
    • Smartphone GPS is usually accurate to within a few metres, far more than enough; even a few kilometres of error shifts the Qibla by less than a tenth of a degree.
    • The Qibla changes with your location, so recalculate whenever you travel to a new city.
    • If you cannot establish the direction at all, face your best estimate; the effort is what is required of you.

    Using the Bearing with a Compass or Phone

    Once you have the bearing in degrees, here is how to turn it into a real direction on the ground:

    1. Hold a compass flat and away from phones, speakers and large metal objects, which can deflect the needle.
    2. Establish true north. If your compass reads magnetic north, rotate by your local declination; the bearing shown here is already measured from true north.
    3. Turn until the bearing this tool gives you lines up with north on the dial. You are now facing the Qibla.
    4. On a phone, a compass app set to true-north mode can be pointed at the same bearing without a separate declination step.

    The Kaaba: One Direction for the World

    The Kaaba is the cube-shaped structure at the centre of Masjid al-Haram in Makkah. Muslims believe it was first built by the Prophet Ibrahim (Abraham) and his son Ismail (peace be upon them). It is not an object of worship; it is the shared point that orients the prayer of roughly two billion Muslims, wherever they happen to be.

    That shared direction is what turns millions of separate prayers into a single, ordered act. A worshipper in Toronto faces north-east, one in Sydney faces north-west, and one in Tokyo faces west-north-west, yet every line points to the same building. The bearing this tool gives you is simply your own place in that worldwide circle.

    Common Qibla Mistakes

    A few simple errors account for most of the confusion people have about the Qibla:

    • Assuming Makkah is due east from the UK. On a flat map it looks east, but the great-circle direction is roughly south-east.
    • Reading a compass without correcting for magnetic declination, then wondering why two apps disagree. The bearing here is from true north.
    • Keeping the same direction after moving to a new city or country. The Qibla depends on your location, so recalculate when you travel.

    How to use this tool

    1

    Tap 'Use My Location' or enter your coordinates manually

    2

    Read the Qibla bearing in degrees from true north

    3

    Face the indicated direction for prayer

    Common uses

    • Finding prayer direction when travelling
    • Checking Qibla for a new home or office
    • Verifying the direction in a hotel room
    • Setting up a prayer space in an unfamiliar location
    • Teaching children about the Qibla concept

    Share this tool

    Frequently Asked Questions

    What is the Qibla direction?
    The Qibla is the direction that Muslims face during prayer (salah). It points towards the Kaaba in Masjid al-Haram in Makkah, Saudi Arabia. Facing the Qibla is a requirement for the validity of prayer, as commanded in the Quran: 'Turn your face towards al-Masjid al-Haram. Wherever you may be, turn your faces towards it' (Surah Al-Baqarah 2:144).
    How is the Qibla direction calculated?
    The Qibla bearing is calculated using spherical trigonometry, specifically the great-circle bearing from your location to the Kaaba (21.4225°N, 39.8262°E). This gives the shortest path on Earth's surface, which is why the Qibla from the UK points roughly southeast (about 119°), not due east as you might expect from a flat map.
    Why doesn't the Qibla point east from the UK?
    On a flat map (Mercator projection), Makkah appears to be due east of the UK. But Earth is a sphere. The shortest distance between two points on a sphere follows a great circle, not a straight line on a flat map. From London, the great-circle route to Makkah goes southeast at roughly 119°, confirmed by any aircraft flight path from London to Jeddah.
    What's the difference between true north and magnetic north?
    True north is the geographic North Pole. Magnetic north is where a compass needle points, which shifts over time. In the UK (2024-2026), magnetic declination is roughly 0-1° west, so the difference is small. In other regions it can be significant. This tool calculates bearing from true north.
    How accurate is this Qibla finder?
    The mathematical calculation is accurate to within fractions of a degree. The main source of error is your GPS coordinates, smartphone GPS is typically accurate to 3-5 metres, which is more than sufficient. Even a few kilometres of error would shift the Qibla by less than 0.1°.
    What if I can't determine the exact Qibla?
    Scholars across all four schools agree that a reasonable effort to determine the Qibla is sufficient. If you're confident in the general direction, your prayer is valid. The obligation is to face the direction of the Kaaba, not to align with millimetre precision. When travelling and uncertain, scholars advise doing your best with available information.
    Can I use this on my phone?
    Yes. This tool uses your browser's Geolocation API to detect your position. On most smartphones, tapping 'Use My Location' will provide accurate GPS coordinates. If geolocation isn't available, you can enter your coordinates manually, search 'my coordinates' on Google Maps to find them.
    Does the Qibla direction change when I travel?
    Yes. The Qibla direction is specific to your location. From London it's roughly 119° (SE), from New York it's roughly 58° (NE), and from Tokyo it's roughly 293° (WNW). Always recalculate when you travel to a new city.
    What is the Kaaba?
    The Kaaba is a cube-shaped structure in the centre of Masjid al-Haram in Makkah, Saudi Arabia. Muslims believe it was originally built by Prophet Ibrahim (Abraham) and his son Ismail (peace be upon them). It serves as the focal point for Muslim prayer worldwide, not as an object of worship, but as a unifying direction.
    Is my location data stored?
    No. Your coordinates are used only in your browser to calculate the bearing. No location data is stored, transmitted, or logged. The calculation is performed entirely client-side using a mathematical formula, no server calls are made.

    Results are for general informational purposes only and should be checked before use. They are not professional advice. See our Disclaimer and Terms of Service.