Qibla Finder With Live Compass for Your Location

The number below is your qibla, the direction of prayer: turn that many degrees clockwise from true north to face Makkah (Mecca). On your first visit, this qibla finder starts from the town your internet connection points to. From London, for example, it is 119.0°. If the town is wrong, tap "Change city" or "Use exact GPS".

·

Compass dial showing the qibla direction N E S W

Qibla direction in big cities (November 2026)
CityTrue northMagnetic compass
London119.0° east-southeast117.8°
Birmingham117.9° east-southeast117.4°
Toronto54.6° northeast64.7°
Chicago48.7° northeast52.8°
Lahore260.3° west258.1°
Karachi267.7° west266.4°
Delhi266.6° west265.2°
Dhaka277.7° west278.0°
Dubai258.8° west256.5°
Lagos63.2° east-northeast64.5°
Kuala Lumpur292.5° west-northwest292.5°
Jakarta295.2° west-northwest294.5°
Nairobi7.2° north7.0°
Johannesburg14.6° north-northeast35.4°
Cape Town23.4° north-northeast50.2°
Sydney277.5° west264.7°

How to use the qibla finder

Check the town, read the number, then turn to it.

  1. Check the town. The first result is only a guess, marked "from your internet connection", and the tool never saves it. "Change city" searches 12,459 places: towns of 50,000 people or more, plus every capital. It also knows other names such as Bombay and Joburg. For the closest fix, "Use exact GPS" reads your phone's position and tells you how many metres it may be off.
Phone screen with the qibla finder's city search box and Birmingham suggestions listed under it
  1. Read the number. The large figure is your bearing, and the word beside it names the compass point. A plain sentence beside the dial (below it on a phone) says the same thing. You can copy it, or a screen reader can speak it: "From London the qibla is 119.0° from true north, east-southeast. On a magnetic compass, look for 117.8°." A small table below adds the distance to the Kaaba.

  2. Turn to it. The "How to face it" box lists ways to turn, such as the sun and a nearby mosque. With no compass, the box names today's sunrise or sunset point and the turn from there. The sun line works best with these checks on a sunset. Inside a mosque, the mihrab on the qibla wall already shows the way.

Qibla direction in degrees

Read your number as a turn from true north, always clockwise: 0 is north, 90 east, 180 south and 270 west. London's 119.0 therefore means 29 degrees past due east.

Use the number rather than the compass word. "West" covers both Lahore at 260.3 and Dhaka at 277.7, even though those two cities sit 17 degrees apart on the dial.

Phone showing the qibla result for Lahore, 260.3 degrees west, with the dial

Magnetic declination is how far the needle's north sits to the east or west of true north at your location. True and magnetic numbers stay within 5 degrees of each other in nine of these ten cities.

Qibla numbers for ten cities, early November 2026

CityQibla from true northCompass wordQuadrant formDeclinationMagnetic compass number
London119.0°east-southeastS 61.0° E+1.2°117.8°
Birmingham117.9°east-southeastS 62.1° E+0.5°117.4°
Chicago48.7°northeastN 48.7° E-4.2°52.8°
Lahore260.3°westS 80.3° W+2.2°258.1°
Karachi267.7°westS 87.7° W+1.3°266.4°
Dhaka277.7°westN 82.3° W-0.4°278.0°
Dubai258.8°westS 78.8° W+2.2°256.5°
Lagos63.2°east-northeastN 63.2° E-1.2°64.5°
Kuala Lumpur292.5°west-northwestN 67.5° W0.0°292.5°
Johannesburg14.6°north-northeastN 14.6° E-20.8°35.4°

The quadrant form is the same true bearing written another way, so it is not the number to read on a needle. S 61.0° E means start at south, then turn 61 degrees toward east.

How to find qibla with a compass

With a needle compass, use the magnetic number, not the true one. The needle points at magnetic north, which in most places sits a little east or west of true north. Take the declination away from the true bearing, counting east as plus and west as minus, and you have the figure to read.

In Johannesburg the true bearing is 14.6 and the declination is -20.8, so the figure to read is 35.4. Turn to 14.6 on a needle there and you end up almost 21 degrees off. The magnetic figure also changes slowly over the years, though the true bearing for a place stays put. That is why the printed page carries a date.

With a needle or baseplate compass

Lay the compass flat, well away from keys, steel desks and window frames. Turn the compass until the needle lies over the N on the dial. Then, without turning the compass, face the mark for your magnetic number on its rim. Then fix that line in your prayer room so you only do this once.

With the live compass on your phone

On a phone, tap "Start live compass" and hold the phone flat, top edge pointing away from you. Metal nearby can throw a phone sensor off. Before you mark a prayer spot, check the dial a second way, with the sun or a mosque.

Qibla finder dial for London with the Kaaba marker at the top

Qibla calculator by coordinates

Type your latitude and longitude into the city box and you get the same result as a town search. These forms all work: 51.5072, -0.1276, 51.5072 N 0.1276 W and 51°30'26"N 0°7'39"W. Longitude can come first only if N, S, E or W letters make that clear.

The box uses one formula. It gives the first heading of the great-circle route, the shortest path over a round Earth, to the Kaaba's location at 21.4225 N, 39.8262 E.

q = atan2( sin Δλ × cos φK , cos φ × sin φK - sin φ × cos φK × cos Δλ )

Here φ is your latitude, λ your longitude, K the Kaaba, and Δλ = λK - λ. Wikipedia's navigation article sets out the same bearing. Exact solutions for the qibla appeared in the middle of the 9th century, and Habash al-Hasib, active around 850, wrote an early one.

Worked example for London

  1. Start from 51.5085 N, 0.1257 W. The longitude gap Δλ comes to 39.9519°.
  2. The top part of the formula, y, comes to 0.59778.
  3. The bottom part, x, comes to -0.33123.
  4. The angle atan2(y, x) is 118.99°, which the tool rounds to 119.0°.
  5. Distance uses a separate formula, the haversine with an Earth radius of 6,371 km: London is 4,794 km (2,979 miles) from the Kaaba.

To check the formula against an outside figure, use the Yogyakarta example in Wikipedia's qibla article. It gives "approximately 295°", and this formula returns 294.7.

How to find qibla on Google Maps

Use Google Maps to pin down your spot, then take the bearing for that spot from the box above. Your spot is the blue dot. A light blue circle may show around it. Maps Help says: "The smaller the circle, the more certain the app is about your location." A grey or missing dot means Maps cannot find you.

Copy the coordinates for your spot into the city box. It also reads long Maps links carrying @lat,lng or ?q=lat,lng, but not short maps.app.goo.gl links.

Avoid ruling your own line to Makkah across the flat map. From Chicago that line misses the true bearing by 52 degrees, and why North America prays toward the north-east explains the gap.

How to use Google's Qibla Finder

Open qiblafinder.withgoogle.com (short link g.co/QiblaFinder) in your phone's browser and allow location. It is a separate tool made by Google. Its calibration prompt reads: "Tilt and move your device 3 times like this." This site is not part of Google; see who runs it.

What you see depends on your device.

DeviceWhat you seeWhat it asks forIf you get stuck
Android phoneA blue line over the camera image, plus a compassLocation and cameraTurn the camera off; 9to5Google reported in 2017 that the tool kept working without it
Laptop or desktopA map with a line, and a note that the tool "is best experienced on mobile"Your place on the mapTake the number from a calculator instead

Google's help page says the tool is built for "GPS and camera (on Android)" and that its route is "calculated using the haversine formula". About your location, it says: "This information is never stored, and is not shared outside the Qibla Finder." You can change those permissions in your browser at any time.

Is there a Google Qibla Finder app?

You do not need to download anything. Google announced the tool on 12 June 2017 as "a web app", "available through your browser".

Gulf News reported in 2018 that an update added offline use and a home-screen shortcut on Android. On iPhone, Apple's Safari guide shows how to put a website on the Home Screen with "Add to Home Screen" and "Open as Web App".

Offline use has a catch. The app says it "needs to find your location in order to work offline". So let it find you once while you have signal, ideally before a flight or a hotel stay. Store apps with a similar name may come from other developers, so check who made one before you install it.

Is a qibla finder accurate?

Yes for the number: correct calculators land on nearly the same figure. Trust the number more than the arrow. Most of the error comes in after the calculation, as the table shows. Choosing the right north matters far more than choosing between two good tools.

StepHow large the error getsWhat it looks like
The Kaaba point usedAbout 0.001° on London's bearingGoogle's point sits 105 m from the one used here, and London's bearing rounds to 119.0° with either
Using the wrong northThe full declinationLondon 1.2°, Chicago 4.2°, Johannesburg 20.8°
The phone's compass sensorNo fixed sizeApple warns of "magnetic or environmental interference"

Google Maps Help puts GPS at around 20 metres and a mobile data connection at a few thousand metres. Wikipedia's qibla article says nearly all qibla apps and websites rest on the same spherical trigonometry. This tool's declinations match NOAA's published test values to within 0.01 degrees.

The sensor deserves the most doubt, so test yours with these checks for a phone's qibla reading. A check with no sensor at all comes on the two days a year the sun passes over Makkah. How far off a prayer line may be is a separate question for scholars, and their tolerance rulings have their own page.

Qibla finder not working

Look at the browser's permissions first, because a web tool can only use what the browser lets it read. Find what you see in the left column.

What you seeLikely causeFix
The location prompt comes back on each new visit when you tap "Use exact GPS"You chose "Allow this time" in ChromeChoose "Allow while visiting the site", or reset it under the site's Permissions
Tapping "Use exact GPS" changes nothingLocation is blocked, so the tool keeps the place it already showsReset the permission as in the next row, or tap "Change city"
"Location is not allowed in this browser"Location is blocked for the siteChrome: reset the permission. iPhone: Settings, Apps, Safari, Location, then Ask or Allow. Or search your city
A nearby town appears, not yoursThe first guess comes from your internet connectionTap "Use exact GPS", or tap "Change city"

If two apps point opposite ways, believe neither until one matches your number in the box above. Rulings on prayers you already made off the line are a separate matter.

FAQ

Which north does a qibla number use?

True north, the fixed north printed on maps. Every qibla bearing on this site counts from it. The one exception is the magnetic compass number, which counts from magnetic north because that is where a needle points.

How does a qibla finder work?

It takes your latitude and longitude and runs one bearing formula toward the Kaaba. It then works out the magnetic declination for your place and today's date from the World Magnetic Model, which gives the needle compass figure.

Does the qibla finder work on a laptop?

Yes, for the number. A laptop gets its place from your connection, "Use exact GPS", the city search or typed coordinates. With no compass sensor, the dial stays still with north at the top and the bearing drawn on it. Carry that number to a compass or a landmark.

Is the approximate city good enough?

In cities far from Makkah, yes, if the town shown is your own: from London, Lahore or Chicago, a 20 km miss moves the bearing by under 0.4 degrees. Under 50 km from the Kaaba, the tool tells you to use GPS. Jeddah, about 67 km out, gets no such note, so use GPS there too.

Does this qibla tool store my location?

Not on any server. Your approximate area comes from this site's own server, which reads your connection and neither stores nor logs it. GPS position, search text and result stay on your device. Your browser remembers the last place so the next visit is quicker, and the "Forget location" button clears it.

Can I share or print the qibla direction?

Yes. "Share" makes a link that holds only your latitude and longitude, and it does so only when you tap it. "Print" fits one page, A4 or Letter, showing the bearing, the compass word, the magnetic number and the date you printed it.

Conclusion

Print your result while your phone still works, because paper does not run out of battery. If your number and your arrow ever disagree, the number is the one to keep. With no phone at all, you can still work out the line from the sky or a nearby mosque.