Free Qibla & Kaaba Direction Tool

Qibla Direction Finder

Find the exact direction to the Kaaba in Makkah (Mecca) from anywhere in the world — an accurate compass bearing and distance, calculated privately in your browser.

N
E
S
W
--°to Makkah

Your location is used only in your browser to calculate the bearing — nothing is stored or sent to a server.

Calculated with a great-circle bearing to the Kaaba at 21.4225° N, 39.8262° E. Location stays in your browser.

More than an arrow

What makes this Qibla finder different

Most Qibla tools stop at a spinning arrow. This one adds a sun-based method for when your compass fails, a 3D globe view, built-in prayer times, saved locations, and fully private, in-browser calculation.

Live compass & exact bearing

Point your phone and the gold marker turns to the Qibla — with the exact degree bearing and distance to Makkah, not just a rough arrow.

Find the Qibla without a compass

No compass, or a steel building throwing yours off? Our sun-and-shadow method finds the Qibla from the sun’s position — something most finders can’t do.

See the path on a 3D globe

Watch the true great-circle route curve across the globe to Makkah, so the direction finally makes sense — a view you won’t find on other tools.

Prayer times, built in

Get today’s five daily prayer times for your exact location, with your own calculation method and Asr school — no separate app needed.

Save your places

Store home, work, or a travel destination and pull up the Qibla in a single tap on your next visit.

Private & offline-ready

Everything is calculated in your browser. Your location is never stored or sent, and it keeps working once the page has loaded.

Understanding the Qibla

What is the Qibla direction?

The Qibla is the direction Muslims face during salah (prayer): toward the Kaaba, the cube-shaped structure at the centre of the Sacred Mosque (Masjid al-Haram) in Makkah, Saudi Arabia. Wherever you are on Earth, the Qibla is a single compass bearing — and this tool calculates it from your exact location.

“So turn your face toward al-Masjid al-Haram. And wherever you are, turn your faces toward it.”

— Qur’an 2:144 (Surah al-Baqarah)

Step by step

How to find your Qibla direction

1

Allow your location

Tap “Find Qibla direction” and let your browser share your location. It stays on your device and is never uploaded.

2

Enable the compass

On a phone, allow motion & orientation access, then hold the device flat and level, away from metal or magnets.

3

Turn to the marker

Rotate until the gold Kaaba marker points to the top of the dial — you are now facing the Qibla.

4

No sensor? Use the bearing

On a desktop, read the degrees (e.g. 119°) and use any compass with North pointing up to face the Qibla.

The method

How the Qibla direction is calculated

Because the Earth is a sphere, the true direction to Makkah is rarely a straight line on a flat map. This tool uses the same great-circle method trusted by astronomers and navigators.

Target

21.4225° N, 39.8262° E

The fixed location of the Kaaba inside Masjid al-Haram in Makkah, used as the target for every bearing.

Method

Great-circle bearing

We compute the initial bearing of the shortest path across the globe using spherical trigonometry, measured clockwise from true north.

Accuracy

±5–15° on device

The calculation is mathematically exact; real-world accuracy depends on your GPS position and how well your phone’s compass is calibrated.

This direction is valid across the Hanafi, Shafi’i, Maliki, and Hanbali schools of jurisprudence — all agree on facing the Kaaba. The bearing is measured from true north, so a magnetic compass may read a few degrees off depending on your local magnetic declination.

Plan your day

Prayer times for your location

Once you know the Qibla, get today’s five daily prayer times calculated for your exact coordinates — pick your calculation method and Asr school.

Prayer timesFor your exact location

Calculated in your browser from your location — nothing is stored.

After every prayer

Keep your dhikr count with a tasbih

Keep your dhikr count with a tasbih

The Sunnah after each salah is to say SubhanAllah 33 times, Alhamdulillah 33 times, and Allahu Akbar 34 times. A handcrafted tasbih or smart zikr ring keeps the count effortless, so your heart stays present in remembrance.

Quick reference

Qibla direction from major cities

Approximate Qibla bearing (from true north) and great-circle distance to Makkah for cities around the world. Use the tool above for your exact location.

City

Qibla direction

Distance

London, UK

ESE · 119°

4,794 km

Paris, France

ESE · 119°

4,496 km

Istanbul, Türkiye

SSE · 152°

2,405 km

New York, USA

ENE · 58°

10,306 km

Toronto, Canada

NE · 55°

10,496 km

Chicago, USA

NE · 49°

11,146 km

Los Angeles, USA

NNE · 24°

13,424 km

Cairo, Egypt

SE · 136°

1,287 km

Lagos, Nigeria

ENE · 63°

4,251 km

Johannesburg, SA

NNE · 15°

5,446 km

Dubai, UAE

WSW · 258°

1,631 km

Karachi, Pakistan

W · 268°

2,800 km

Dhaka, Bangladesh

W · 278°

5,172 km

Jakarta, Indonesia

WNW · 295°

7,920 km

Kuala Lumpur, Malaysia

WNW · 293°

6,974 km

Sydney, Australia

W · 277°

13,236 km

Frequently asked

Qibla direction — your questions answered

What is the Qibla?

The Qibla is the direction Muslims face during salah (prayer): toward the Kaaba in the Sacred Mosque (Masjid al-Haram) in Makkah, Saudi Arabia. The Qur’an instructs believers to turn their faces toward al-Masjid al-Haram (Qur’an 2:144). From any point on Earth it is a single compass bearing.

How do I find the Qibla direction from my location?

Allow this page to access your location and it calculates the exact bearing to the Kaaba, then shows it on the compass. On a phone with a compass sensor, turn until the gold marker points up; on a desktop, use the degree reading (for example 119 degrees) together with any compass.

How can I find the Qibla without a compass?

Use the bearing this tool gives you (a number from 0 to 360 degrees measured clockwise from north) together with the sun or a map. At solar noon the sun sits due south in the northern hemisphere, giving you a north to south line to measure the Qibla angle from. Twice a year the sun passes directly over the Kaaba, so at that moment shadows everywhere point along the Qibla.

Why doesn’t the Qibla point straight toward Mecca on a flat map?

The Qibla follows the shortest path across a sphere, a great-circle route, not a straight line on a flattened map. That is why many locations face the Kaaba along a surprising bearing; from North America, for instance, the shortest path to Makkah runs to the northeast rather than the southeast.

How accurate is this Qibla finder?

The calculated bearing is mathematically precise from your coordinates. Real-world accuracy depends on your device: GPS location is usually within a few metres, but a phone’s magnetic compass can drift by 5 to 15 degrees if it is not calibrated or is near metal or magnets.

Is my prayer valid if I am slightly off from the exact Qibla?

Yes. The majority of scholars hold that facing the general direction of the Kaaba is sufficient when you cannot see it, and a minor deviation does not invalidate the prayer. Make a sincere effort to face correctly; if you later learn you were slightly off, most schools do not require you to repeat the prayer.

Does the Qibla use true north or magnetic north?

This tool calculates the bearing from true (geographic) north. A physical magnetic compass points to magnetic north, which differs from true north by the local magnetic declination, so the two can disagree by several degrees depending on where you are.

What are the coordinates of the Kaaba?

The Kaaba is located at approximately 21.4225 degrees N latitude and 39.8262 degrees E longitude, inside Masjid al-Haram in Makkah. This tool uses those coordinates to compute your Qibla bearing.

How far is the Kaaba from my location?

This tool shows the great-circle distance to Makkah in kilometres alongside the direction. It ranges from a few hundred kilometres near the Arabian Peninsula to more than 13,000 km on the far side of the world.

Can I use this Qibla compass offline?

You need a connection to load the page and read your GPS position the first time. Once your location and bearing are shown, the direction itself does not change while you stay in one place, so you can keep the page open and continue using it without a live connection.

How do I calibrate my phone’s compass?

Move your phone in a figure-eight motion a few times, away from metal objects, magnets, and cases with magnetic clasps. On many devices, opening the built-in Maps or Compass app and following its calibration prompt also recalibrates the sensor this page reads.

Can I use Google Maps to find the Qibla?

Google Maps shows locations but does not give you a Qibla bearing directly. A dedicated Qibla finder like this one computes the great-circle direction to the Kaaba for you, which is more reliable than estimating a straight line on a map.

Why do two Qibla apps show slightly different directions?

Small differences usually come from magnetic versus true north, an uncalibrated compass, slightly different Kaaba coordinates, or one app showing a rhumb line instead of the great-circle bearing. The underlying great-circle bearing to the Kaaba is fixed for a given location.

Does this Qibla finder also show prayer times?

Yes. Alongside the Qibla direction, this tool calculates today’s five daily prayer times — Fajr, Dhuhr, Asr, Maghrib and Isha — for your exact location, and lets you choose your calculation method (such as Muslim World League or ISNA) and your Asr school (Standard or Hanafi).

What makes this Qibla finder different from other apps?

It goes beyond a simple spinning arrow: a live compass with the exact bearing and distance to Makkah, a sun-and-shadow method to find the Qibla when a compass isn’t reliable, a 3D globe view of the great-circle path, built-in prayer times, saved locations you can recall in one tap, and fully private calculation that runs in your own browser.

About this tool

Method: great-circle (initial) bearing computed with spherical trigonometry, measured clockwise from true north. Target: the Kaaba at 21.4225 degrees N, 39.8262 degrees E in Masjid al-Haram, Makkah. Distances use the haversine formula. Real-world accuracy depends on your device’s GPS position and magnetic compass calibration.

Last updated 10 July 2026 · Built by Weslamic for the global Muslim community.