How to find the Qibla with your phone, and when the compass lies
A Qibla app does two very different jobs. The first is maths it will always get right. The second depends on a tiny magnetic sensor that is easily confused. Knowing which is which tells you when to trust the arrow.
The part the app always gets right
The direction of the Kaaba from any point on Earth is a calculation: given your latitude and longitude and the coordinates of Makkah, the app works out the great-circle bearing. This number is as reliable as your location. If the app knows where you are to within a kilometre, the bearing is correct to a fraction of a degree. You can even type a city name instead of granting location access, and the result is still accurate enough for prayer.
The part that can go wrong
To point an arrow on the screen, the app needs to know which way the phone is facing. That comes from the magnetometer, a sensor that reads the Earth’s magnetic field. It is small, cheap, and sensitive to everything around it:
- Metal desks, car dashboards, steel-framed buildings and reinforced concrete pull the reading off by tens of degrees.
- Magnetic phone cases, wallet cases with clasps, and laptop lids nearby do the same.
- Sensors drift over time and after the phone has been near a strong magnet, such as a wireless charger.
That is why two phones side by side can disagree, and why the same phone can be right outdoors and wrong in a car park.
Calibrate in ten seconds
- Take off a magnetic case if you have one, and step away from metal and electronics.
- Move the phone in a figure-of-eight pattern a few times, rotating it through all three axes.
- Hold the phone flat, like a tray, and wait for the arrow to settle.
- If the app shows a calibration or accuracy indicator, wait until it reports high accuracy before you trust the arrow.
When to trust the mihrab instead
Inside a mosque, the mihrab was set by people who measured carefully, often with a survey. If your phone disagrees with it by a few degrees, the phone is almost certainly wrong, usually because of the building itself. Outdoors in an open space, a freshly calibrated phone is very reliable, and it is the right tool when you are travelling or praying somewhere unfamiliar.
The Qibla compass in Quran Companion works offline, lets you enter a city instead of sharing your location, and shows the bearing in degrees so you can cross-check it against a physical compass or a map.
Alazka Technologies is an independent Android game studio in Rawalpindi, Pakistan. We make short-session games with fair rules, and a small number of apps including Quran Companion.
Free tools you might need
Hijri Date Converter
Convert any Gregorian date to the Hijri (Islamic) calendar and back, with today's Hijri date and the Umm al-Qura calendar used in Saudi Arabia.
Open the tool →Zakat Calculator
Work out your Zakat on gold, silver, cash, savings, investments and business stock, with the nisab checked against today's gold or silver price.
Open the tool →More notes
How to read the Quran offline on Android (and why many apps still need a signal)
What makes a Quran app truly offline on Android, what to check before you rely on one during travel or Ramadan, and how Quran Companion handles text, translation and audio without a connection.
2026-10-12AppsAzan not playing on Android? The battery settings to check first
Why prayer-time alarms go silent on Android phones, which battery and notification settings cause it, and the exact steps to fix the Azan in Quran Companion or any prayer app.
2026-10-12GamesWhy our games have no energy meters or loot boxes
The case against energy timers, loot boxes and pay-to-win in mobile games, and the simple rules Alazka Technologies follows instead: short sessions, clear prices, and fun that does not need a wallet.
2026-10-12