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.
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
- help.mawaqit.net
- support.muslimpro.com
- asurion.com
- androidauthority.com
- nesdis.noaa.gov
- ncei.noaa.gov
- en.wikipedia.org
- webspace.science.uu.nl
- medium.com
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.
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
- How to Track Monthly Bills on Android Without a Bank Login
- How to Delete Old Screenshots on Android and Stop Them Piling Up
- How to Find and Delete Blurry Photos on Android (Samsung, Xiaomi, Pixel)
- Deleted a Photo on Android? Where It Goes and How to Get It Back
- How to Find Similar Photos on Android (Bursts and Near-Duplicates)
- Android Storage Full? What to Delete First, in Order of Risk
- WhatsApp Photos Filling Your Android Storage? Clear Them Safely
- Zero-Based Budget vs 50/30/20 for 2027: Which One Should You Use?
- Ramadan and Eid 2027 Budget: What to Plan For, and How Zakat al-Fitr Works
- Odoo Community Upgrade Checklist: Moving Between 17, 18, 19 and 20 Without Breaking Custom Modules
- How Big Should Your Emergency Fund Be? Months of Expenses in the US, UK and EU
- How Long to Keep Tax Records in the US (and Store Digital Copies)
- Phone vs Dedicated Barcode Scanner for a Small Warehouse: When Is a Phone Enough?
- How to Read Google Play's Data Safety Section (and Why Offline Apps Have Less to Hide)
- Delete Blurry Photos, Screenshots and Big Videos Safely: A Backup-First Checklist for Android and iPhone
- How to Send Customers a Statement of Account That Gets Paid
- The End-of-2026 Phone and Money Reset: A Checklist
- Open Password vs Permissions Password on a PDF: What Each Does, and Why to Unlock Your Own Files Offline
- How Freelancers Can Log Business Expenses All Year So Tax Time Is Not a Scramble
- Which Odoo Versions Are Supported in 2026? When to Upgrade
- How to Print Barcode Labels for Products, Lots and Stock Locations
- Upload Rejected Because the PDF Is Password Protected? Here Is the Fix
- How to Split a Group Bill and Still Know Who Owes You
- Free Up Space on Android: Duplicate Files and Photos
- How to Track Expenses Without Connecting Your Bank Account
- Why Your Payslip PDF Has a Password, and How to Keep a Copy Without One
- Prayer Times While Travelling: Time Zones, Flights and Qasr
- How to Export Your Expenses to CSV and Use Them in a Spreadsheet
- How to Track Cash Spending When You Have No Receipts
- Weekly Budget or Monthly Budget? How to Pick the One You Will Keep
- Google Account Storage Full? What Counts Toward 15 GB
- Imsak vs Fajr: Which Time Do You Stop Eating Sehri?
- How to Audit App Permissions on Android in Ten Minutes
- How Iftar Time Is Calculated, and Why Two Apps Disagree
- Find and Cancel Every Subscription on Your Android Phone
- A 30-Day Plan to Prepare for Ramadan 2027
- A 60-Minute Year-End Money Review for 2026
- Ramadan 2027 Calendar by Country: Start Dates and Why They Differ
- Android Developer Verification and Sideloading in 2026
- Cyber Monday 2026: Set a Holiday Spending Limit First
- Ramadan 2027 Fasting Hours by City: Longest and Shortest Days
- Laylat al-Qadr 2027: Which Nights, and Dates for Each
- When Is Eid al-Fitr 2027? Date, Prayer and What to Prepare
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.