Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Prayer TimesMoon Phase CalculatorSunrise & Sunset CalculatorHijri Calendar ConverterZakat Calculator⏱️ Countdown Timer🌐 Time Zone Converter
Home Page > Miscellaneous > General Tools

Qibla Direction Finder

Find the Qibla from wherever you are with MiniWebtool’s Qibla Direction Finder: a live phone compass that points to the Kaaba in Mecca, plus the exact bearing in degrees and the distance, from GPS or any city.

Need help using this tool? Ask AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

Free to useNo sign-up requiredInstant Results
Qibla Direction FinderTry it now — free ▼
From Dubai the Qibla is 258.2° (WSW)

Find the Qibla bearing from any city, see it on a compass and get the distance to the Kaaba.

Quick examples — tap a city, then Find Qibla Direction
Decimal degrees, north positive (−90 to 90)
Decimal degrees, east positive (−180 to 180)
Only affects the sun-alignment clock times. City buttons & 📍 set it automatically.
Defaults to today at the location
Enter it only if you will use a real magnetic compass — you get the corrected compass reading. Find your declination on topographic maps or the NOAA magnetic-field calculator.

Embed Qibla Direction Finder Widget

📍 Dubai, UAE · October 25, 2026
258.2° WSW
Qibla bearing from true north
🕋 1,631 km (1,014 mi) to the Kaaba
🧭 Compass Dial
0306090120150180210240270300330 NNEESESSWWNW 🕋
The green needle points along the great-circle route to the Kaaba: 258.2° from true north (WSW).
📱 Live Phone Compass

On a phone or tablet, turn on the live compass: rotate on the spot until the 🕋 marker sits under the red pointer — you are then facing the Qibla.

☀️ Verify with the Sun — No Compass Needed · October 25, 2026

On this date the sun does not cross the Qibla line above the horizon at your location, so no sun-alignment time exists — use the compass dial or the live phone compass instead.

🧮 Step-by-Step Calculation
Step 1: Set Up the Coordinates
$$\varphi_1 = 25.2048\text{°},\quad \lambda_1 = 55.2708\text{°} \quad \text{(your location)}$$$$\varphi_2 = 21.4225\text{°},\quad \lambda_2 = 39.8262\text{°} \quad \text{(the Kaaba)}$$$$\Delta\lambda = \lambda_2 - \lambda_1 = -15.4446\text{°}$$
Step 2: Apply the Great-Circle Bearing Formula
$$\theta = \operatorname{atan2}\left(\sin\Delta\lambda,\ \cos\varphi_1\tan\varphi_2 - \sin\varphi_1\cos\Delta\lambda\right)$$$$= \operatorname{atan2}\left(-0.2663,\ -0.0555\right) = \mathbf{258.2\text{°}} \text{ from true north}$$
Step 3: Distance to the Kaaba (Haversine)
$$d = 2R \cdot \arcsin\sqrt{\sin^2\tfrac{\Delta\varphi}{2} + \cos\varphi_1\cos\varphi_2\sin^2\tfrac{\Delta\lambda}{2}}$$$$= \mathbf{1,631\ \text{km}} \ (1,014\ \text{mi})$$
💡 Getting an Accurate Reading
📱 Hold the phone flat. For the live compass, hold the device level like a plate, and sweep it in a figure-8 to calibrate the magnetometer if the reading drifts.
🧲 Stay clear of metal. Cars, radiators, steel desks, speakers, and magnetic phone cases can swing a compass by tens of degrees.
🧭 True vs magnetic north. This tool reports bearings from true north. A physical compass needs the magnetic-declination correction — enter your declination in the form above.
☀️ The sun never lies. The sun and shadow alignment times are astronomical and immune to magnetic interference — they are the most reliable way to verify the Qibla.

           

✨Want faster & ad-free?
Go Premium

About Qibla Direction Finder

The Qibla Direction Finder calculates the exact compass bearing from your location to the Kaaba in the Sacred Mosque (Masjid al-Haram) in Mecca, Saudi Arabia — the direction Muslims face for salah (prayer). Enter coordinates, tap a city preset, or use GPS, and the tool shows the Qibla on an animated compass dial, the great-circle distance to Mecca, a live phone-compass mode, and — uniquely — the exact clock times when the sun or your shadow aligns with the Qibla, so you can verify the direction with no compass at all.

At a Glance

Qibla Direction Finder points to the Kaaba in Mecca from wherever you are, with a live phone compass, the exact bearing and the distance.

Qibla Direction Finder: features at a glance
FeatureWhat you getGood for
Live compassOn a phone, the dial turns with you and points to the QiblaPraying at home, work or travelling
Exact bearingDegrees from true north and from a magnetic compassUsing a normal compass
Any locationGPS, a city button or typed coordinatesPlanning for a trip
Distance to MeccaGreat-circle distance in km and milesCuriosity and teaching
No compass neededThe times today when the sun lines up with the QiblaPhones without a compass sensor
Major citiesA quick table of Qibla bearingsChecking a mosque’s direction

How to Use the Qibla Direction Finder

  1. Set your location: tap a city button, press 📍 Use my location, or type your latitude and longitude in decimal degrees.
  2. Optionally refine: choose a date for the sun-alignment times (defaults to today) and enter your magnetic declination if you will use a real magnetic compass.
  3. Click 🕋 Find Qibla Direction. The compass dial shows the bearing from true north, with a Kaaba marker on the rim and the distance to Mecca.
  4. Verify on the ground: on a phone, start the Live Compass and rotate until the 🕋 marker sits under the red pointer — or face the sun or your shadow at the listed alignment times.

What Is the Qibla?

The Qibla (Arabic: قِبْلَة, "direction") is the direction of the Kaaba, the cube-shaped building at the center of the Masjid al-Haram in Mecca (21.4225° N, 39.8262° E). Facing the Qibla is a condition of the five daily prayers, and it also orients mosques worldwide: the mihrab (prayer niche) of every mosque marks the local Qibla. Because worshippers stand on a spherical Earth, the Qibla from any point is defined as the initial bearing of the great circle — the shortest path along the Earth's surface — that connects that point to the Kaaba.

Why the Qibla from North America Points Northeast

On a flat Mercator map, Mecca looks southeast of the United States — yet the correct Qibla from New York is 58.5°, northeast. The reason is that the shortest route on a sphere is a great circle, and from North America that arc swings up over the Atlantic toward the pole before descending to Arabia. Flat maps stretch the high latitudes, so the true shortest path looks curved and the "straight" map line is actually the longer route:

New York 🕋 Mecca great circle — shortest ✓ straight map line ✗

The same effect explains other surprising results: from Anchorage the Qibla is almost due north (over the pole), and from parts of the US west coast it is north-northeast.

The Qibla Formula

With your latitude \( \varphi_1 \), the Kaaba's latitude \( \varphi_2 = 21.4225° \), and the longitude difference \( \Delta\lambda \), the initial great-circle bearing is:

$$\theta = \operatorname{atan2}\left(\sin\Delta\lambda,\ \cos\varphi_1 \tan\varphi_2 - \sin\varphi_1 \cos\Delta\lambda\right)$$

normalized to 0–360° clockwise from true north. This is the classical spherical-trigonometry solution that Muslim astronomers such as al-Biruni were already computing in the 11th century; the tool also reports the great-circle distance via the haversine formula, and every step of the calculation is shown with your numbers.

Find the Qibla with the Sun — No Compass Needed

Compasses fail near metal and phone sensors drift, but the sun's position is exactly predictable. This tool computes, for your coordinates and date, the moments when the sun's azimuth crosses the Qibla line:

  • ☀️ Sun alignment: at the listed minute, the sun stands exactly on the Qibla bearing — face the sun and you face the Qibla.
  • 🌗 Shadow alignment: at the listed minute, the sun stands exactly opposite the Qibla — the shadow of any vertical object (a stick, a lamp post, you) points straight at the Kaaba.

Twice a year the whole planet gets a free Qibla check: on the Qibla observation days (Istiwa al-A'zam), around May 27–28 at 9:18 UTC and July 15–16 at 9:27 UTC, the sun passes directly over the Kaaba itself. Wherever the sun is visible at that moment — Europe, Africa, Asia — facing it means facing the Qibla exactly. Half a year later, around late November and mid-January, the sun passes over the point exactly opposite the Kaaba, and every shadow on the sunlit side of the Earth points toward Mecca. The tool detects all of these automatically and shows the exact local clock time.

True North vs Magnetic North

The bearing reported by this tool is measured from true (geographic) north — the direction of the North Pole. A magnetic compass needle instead points to magnetic north, which currently sits in the Arctic Ocean and drifts every year. The angle between the two, the magnetic declination, ranges from 0° to more than 20° depending on where you live (about −13° in New York, +1.5° in Dubai, +11° in Cape Town). If you will orient yourself with a real compass, enter your local declination in the form and the tool prints the corrected needle reading: \( \theta_{magnetic} = \theta_{true} - \delta \). Phone compass apps and this tool's live mode usually work in true bearings once the declination is known.

Qibla Direction in Major Cities

Reference values computed with the same great-circle formula (bearing from true north):

CityQibla bearingCompass pointDistance to Mecca
New York, USA58.5°ENE10,306 km (6,404 mi)
Los Angeles, USA23.9°NNE13,424 km (8,341 mi)
Toronto, Canada54.6°NE10,496 km (6,522 mi)
London, UK119.0°ESE4,794 km (2,979 mi)
Paris, France119.2°ESE4,496 km (2,794 mi)
Berlin, Germany136.7°SE4,130 km (2,566 mi)
Istanbul, Turkey151.6°SSE2,405 km (1,494 mi)
Cairo, Egypt136.1°SE1,287 km (800 mi)
Karachi, Pakistan267.7°W2,800 km (1,740 mi)
Delhi, India266.6°W3,835 km (2,383 mi)
Dhaka, Bangladesh277.6°W5,172 km (3,214 mi)
Kuala Lumpur, Malaysia292.5°WNW6,974 km (4,333 mi)
Jakarta, Indonesia295.2°WNW7,920 km (4,921 mi)
Sydney, Australia277.5°W13,236 km (8,225 mi)

How Accurate Is This Qibla Finder?

The bearing itself is computed on the WGS-84 sphere with the standard great-circle formula and is exact to a small fraction of a degree; using a full ellipsoidal model changes the answer by under 0.2° at any inhabited location. In practice your accuracy is limited by the instrument you point with: phone magnetometers are good to roughly ±5–10°, physical compasses need the declination correction, and the sun-alignment method is the most precise everyday option (better than 1° if you read the clock to the minute). Islamic jurisprudence generally accepts facing the general direction of the Kaaba (jihat al-Kaaba) when far from Mecca, so small errors are not a concern for prayer.

Frequently Asked Questions

Q: What is the Qibla?

A: The Qibla is the direction Muslims face during salah: toward the Kaaba in the Sacred Mosque in Mecca (21.4225° N, 39.8262° E). From any point on Earth it is the initial bearing of the shortest great-circle path to the Kaaba.

Q: Why does the Qibla from North America point northeast instead of southeast?

A: Because the shortest path on the globe arcs over the North Atlantic. A flat map distorts high latitudes, making the great-circle route look curved; the "straight" southeast line on a Mercator map is actually a longer path.

Q: How can I find the Qibla without any compass?

A: Use the sun-alignment times this tool lists: face the sun at a ☀️ time, or face along your shadow at a 🌗 time. On the global Qibla observation days (around May 27–28, 9:18 UTC and July 15–16, 9:27 UTC) anyone who can see the sun can face it to find the Qibla exactly.

Q: Should I use true north or magnetic north?

A: The tool reports bearings from true north. For a magnetic compass, enter your local declination (east positive) and use the corrected reading the tool prints. Phone compass apps usually apply this correction automatically.

Q: How precise does the Qibla have to be?

A: Most scholars accept facing the general direction of the Kaaba (jihat al-Kaaba) when far from Mecca, so being within a few degrees is more than sufficient. This tool gives the mathematically exact bearing so you can be as precise as you like.

Q: Does the tool need internet, GPS, or send my location anywhere?

A: The calculation runs from the coordinates in the form. GPS geolocation and the live compass are optional, run entirely in your browser, and no location data is stored or transmitted to us.

Sources and Method

Bearing and distance use the standard spherical great-circle (initial azimuth) and haversine formulas with the Kaaba at 21.422487° N, 39.826206° E. Sun positions come from the low-precision solar algorithm of the US Astronomical Almanac (declination and equation of time, accurate to well under a minute of time for 1950–2050) — the same model used by prayer-timetable software worldwide. Qibla observation-day detection checks whether the sun passes within 1° of the zenith of the Kaaba or of its antipode on the chosen date.

Reference this content, page, or tool as:

"Qibla Direction Finder" at https://MiniWebtool.com/qibla-direction-finder/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: October 25, 2026

Chat with your favorite AI

For Gemini, paste the copied question into the chat. You can also copy it below.

View the question

General Tools:

Top & Updated:

Quote FinderJob FinderBirthstone and Zodiac Flower FinderView all →
Home Page > Miscellaneous > General Tools > Qibla Direction Finder
×

Do us a favor and answer 3 quick questions

Thank you for participating in our survey. Your input will help us to improve our services.

Where exactly did you first hear about us?

What is your favorite tool on our site?

if Other, please specify:

How likely is it that you would recommend this tool to a friend?

NOT AT ALL LIKELYEXTREMELY LIKELY

Likely score: (1-10)