Finding the Qibla When Travelling or Offline: Why Phone Compasses Drift and What to Do

To find the Qibla without internet, you need two things: your approximate location and a trustworthy north. Your phone's GPS can give the first one without data, but its compass is the weak link. It is a small magnetic sensor, and metal, magnets and speakers easily throw it off. Calibrate it (move it in a wide figure-eight), take off any magnetic case, step away from metal, and check the reading twice. If the two readings disagree, use a backup: a sunrise or sunset line, a known landmark, the hotel's Qibla sticker, or the sun's shadow on two days of the year.

Get Namaz Time on Google Play

Namaz Time calculates the Qibla bearing on your phone from your location, next to prayer times and azan alarms, offline. Free.

This guide is for travellers: hotel rooms, airports, rental cars, campsites and the stretch of motorway where signal drops. It is not a ruling on how precise the direction must be. That is a question for a local scholar or your mosque.

What "Qibla direction" actually means on a phone

A Qibla app does two separate jobs, and they fail in different ways.

  • The calculation. From your latitude and longitude, it works out the bearing to the Kaaba, measured clockwise from true north. The standard method is the great-circle (shortest path over the globe) initial bearing, using the Kaaba at roughly 21.4225 N, 39.8262 E. This is just maths and runs offline once the phone knows where you are. Flat-map "straight line" guesses can be off by a large angle over long distances, which is why the great-circle method is used (overview).
  • The pointing. The phone reads its magnetometer to decide where north is, then draws an arrow at the calculated angle. This is where most errors come from.

So when your Qibla arrow looks wrong, the number is usually fine and the sensor is the problem. That is good news: the number is checkable, and the sensor is fixable.

Why a phone compass reads wrong

Magnetic interference nearby. Support pages for prayer apps list the same culprits again and again: magnetic phone cases, pop sockets and car mounts with magnets, and nearby metal (Mawaqit help). In a hotel room, add reinforced concrete, steel bed frames, a TV, a laptop and a kettle. On a plane, the whole cabin is a metal tube. In a car, the engine, the doors and the dashboard magnet all matter.

Uncalibrated sensor. The compass can drift, and after a while the phone asks you to recalibrate. The usual advice is to move it through the air in a figure-eight a few times. Muslim Pro suggests large, shoulder-width loops, about five or six times (Muslim Pro support).

Magnetic north is not true north. A compass finds magnetic north. Qibla bearings are measured from true north. The angle between them is called magnetic declination, positive when magnetic north lies east of true north and negative when west (NOAA NCEI). It differs by place and drifts over time, which is why navigation systems rely on a model that is refreshed about every five years; the current edition is WMM 2025, published by NOAA and the British Geological Survey (NESDIS). Phone operating systems normally apply this correction for you when they show "true north". A cheap standalone compass app or a physical compass does not, so you may need to add or subtract the local declination yourself. Local anomalies of a few degrees also exist, mostly over small areas.

No compass at all. Some Android phones have no magnetometer, and then no Qibla app can point properly (Muslim Pro support). If the arrow never moves as you turn, that is probably your case. Skip to the backup methods.

Stale location. If you flew in and the phone still thinks you are at home, the bearing is for the wrong city. Wait for a fresh GPS fix, or set the city by hand. This also affects prayer times, and the same logic is covered in our guide to prayer times while travelling.

How to calibrate and test, step by step

  • Remove the case and any magnet. Pop sockets, wallet cases and magnetic mounts go off the phone.
  • Move away from metal and electronics. Walk to the middle of the room, away from the bed frame, TV and laptop. Outdoors is better. In a car, step out of it.
  • Turn on location and wait for a fix. GPS works without mobile data, but it may take a minute indoors. Near a window helps.
  • Calibrate. Android: open a maps app that shows a compass accuracy prompt and follow its calibration screen, or move the phone in a wide figure-eight several times (Asurion). iPhone: the Compass app asks you to roll the ball around the circle. Some guides also suggest toggling Compass Calibration in Location Services system settings; menu names change between iOS versions (Android Authority).
  • Test it. Hold the phone flat and still. Note the reading. Turn it 90 degrees and bring it back. It should settle on the same bearing. Repeat in a second spot a few metres away. Two readings within a few degrees of each other are a good sign. A jump of 20 degrees or more means interference is still there.
  • Restart if needed. Restarting the phone or closing and reopening the app is a common fix for a stuck compass (Mawaqit help).

Note that these are support-page recommendations rather than lab tests, and calibration steps differ between devices.

Sanity check: does the bearing make sense?

You do not need to be a navigator. A rough sense of the direction is enough to spot a wildly wrong arrow. From London, the Qibla is roughly south-east. From New York it is north-east, and from the US West Coast it points north-north-east. If your phone says south-west in Manchester, something is off. Use that gut check before you trust any arrow.

Another coarse check: the sun rises roughly in the east and sets roughly in the west, though the exact point shifts through the year. That is good enough to catch a wildly wrong arrow, not to set the final angle.

Backup methods that need no signal

1. Ask the building. Hotels in many countries, and many airport prayer rooms, mark the Qibla with an arrow, sticker or carpet pattern. Check the wardrobe, the desk drawer and the ceiling. In a prayer room, the mihrab or the line of the carpet shows the direction. Ask at reception: it is a common request.

2. Use a landmark you already know. If a mosque is nearby, its prayer hall faces the Qibla. In a city you know, you may already know the street that points the right way.

3. Take the sun's shadow on the right day. Twice a year the sun is directly over the Kaaba around midday in Mecca, in late May and mid July. The exact dates and times shift slightly by year, so look them up for the current year (commonly quoted times are around 12:18 and 12:27 Saudi time). At those moments, the shadow of any upright object points directly away from the Kaaba, so the opposite way is the Qibla (overview). The window is fairly forgiving, within a couple of days either side with small time shifts. It only works if the sun is up where you are at that moment, so it suits parts of Europe, Africa and Asia, not the Americas. Photograph the line and mark it on a map or a floor for later. Check the time against a local almanac that year, since reports vary by a few minutes.

4. Use a physical compass, with declination. A baseplate compass does not need power or signal. Look up your local declination before you travel and write it on a card, then adjust. It will not know about nearby metal either, so use it away from steel.

5. Pre-load the answer. Before you leave, open your destination in a Qibla app or on a map and note the bearing in degrees. Write it down, or take a screenshot. With a number in hand you can use any compass later.

When to stop trusting the phone

Switch to a backup if:

  • The arrow keeps spinning or points differently every time you open the app.
  • Two spots a few metres apart give very different readings.
  • You are inside a steel-heavy building, on a plane, train or boat.
  • The phone has no compass sensor.
  • You are near a magnetic mount, a speaker or a charging pad that you cannot move away from.

On a plane, the cabin is a poor place to find a precise heading anyway. Many travellers use the destination bearing or the aircraft's direction of travel as a rough guide. Which prayer positions and directions are acceptable in flight is a question of fiqh. Ask a scholar you trust before the journey.

How Namaz Time handles it

Namaz Time calculates the Qibla as a bearing from true north, from your coordinates, on the phone itself. The calculation does not need an internet connection once it has a location. As with any phone app, the live arrow still relies on your phone's compass, so the calibration and interference tips above apply. If you want a number to cross-check, it is a quick way to see your bearing in degrees and compare it against a second method.

If you travel often, you may also want the app's prayer times to follow you. Try Namaz Time on Google Play.

Sources

Questions

Why does my Qibla compass point somewhere different every time?
Usually interference or an uncalibrated sensor. Remove magnetic cases, move away from metal and electronics, and calibrate with a wide figure-eight.
Does a Qibla app work without internet?
The calculation can, because it only needs coordinates. GPS does not need mobile data. Map tiles or city search do. Test your app in airplane mode before you travel.
How accurate does the Qibla have to be?
That is a matter of fiqh, and scholars give guidance for different situations, such as when you cannot find the direction. Ask a scholar or your local mosque.
Is the Qibla a straight line on a flat map?
No. The standard method is the great-circle bearing over the globe. A straight line drawn on a flat map can differ a lot over long distances.
Which is better, a physical compass or a phone?
A phone is convenient and normally corrects for declination. A physical compass has no battery and no software, but you must apply declination yourself. Both suffer from nearby metal.
What if I cannot find the direction at all?
Make a best effort with the methods above, ask someone nearby, and follow the guidance of a scholar for your situation.
Get the free Namaz Time app

Sehri and Iftar for your city, azan alarms that ring on every phone, Qibla, offline. Or see the timetable for your city and when Ramadan starts.

Who publishes this

Each line links to where you can verify it, with the date we last read it. We do not publish reviews, customer names or sales figures here.

  • Every Android app we publish is listed under one Google Play developer account. Source: Google Play developer page, read .

More from the blog

Dates follow the Umm al-Qura calendar and can differ by a day where the month starts after local moon sighting. For religious questions, ask your imam.