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.
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:
| City | Bearing | Cardinal | Distance |
|---|---|---|---|
| London, UK | 119.0° | ESE | 4,794 km |
| New York, USA | 58.5° | ENE | 10,306 km |
| Istanbul, Turkey | 151.6° | SSE | 2,405 km |
| Kuala Lumpur, Malaysia | 292.5° | WNW | 6,974 km |
| Lagos, Nigeria | 63.3° | ENE | 4,251 km |
| Sydney, Australia | 277.5° | W | 13,236 km |
| Tokyo, Japan | 293.0° | WNW | 9,472 km |
| Toronto, Canada | 54.6° | NE | 10,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:
- Hold a compass flat and away from phones, speakers and large metal objects, which can deflect the needle.
- Establish true north. If your compass reads magnetic north, rotate by your local declination; the bearing shown here is already measured from true north.
- Turn until the bearing this tool gives you lines up with north on the dial. You are now facing the Qibla.
- 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
Tap 'Use My Location' or enter your coordinates manually
Read the Qibla bearing in degrees from true north
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?
How is the Qibla direction calculated?
Why doesn't the Qibla point east from the UK?
What's the difference between true north and magnetic north?
How accurate is this Qibla finder?
What if I can't determine the exact Qibla?
Can I use this on my phone?
Does the Qibla direction change when I travel?
What is the Kaaba?
Is my location data stored?
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.