Sutrah blog
How to find the qibla on iPhone, with or without an app
The iPhone's Compass app does not show the qibla. Apple's guide for it covers your bearing, coordinates and elevation and says nothing about Mecca. You still have three ways to find the direction: take the qibla bearing for your city and line it up in the Compass app, use an app that does the pointing, or read a shadow on one of four days a year. We make Sutrah, a prayer app blocker that includes a qibla compass, and say where it fits.
By the Sutrah team · Published
What the Compass app gives you, and what it does not
Apple's guide to the Compass app says it shows the direction the iPhone is pointing, your current location and your elevation. You hold the phone flat to line up the crosshairs, tap the dial to lock a direction, and a red band appears when you drift off it. The page never mentions the qibla, and the guide does not say whether the dial reads true north or magnetic north.
Apple adds a warning: magnetic or environmental interference can affect the compass, so use it only for basic navigation and do not rely on it for precise direction. That applies to every method below that leans on the phone's compass, including the apps. Keep the phone off a steel desk, a speaker or a magnetic mount while you read it.
Your qibla bearing, from true north
A bearing is an angle measured clockwise from north: 0° is north, 90° east, 180° south, 270° west. The qibla bearing is the angle from true north to the Kaaba along the shortest path over the Earth's surface, the great circle. Wikipedia's article on the qibla calls that the most common technical definition among Muslim astronomers. The instruction itself is in the Quran: "So turn your face [i.e., yourself] toward al-Masjid al-Ḥarām. And wherever you [believers] are, turn your faces [i.e., yourselves] toward it [in prayer]" (2:144, Sahih International, on quran.com).
Here are eight cities to compare against your own phone.
Swipe or scroll sideways to see every column.
| City | Qibla bearing | Distance to the Kaaba |
|---|---|---|
| Toronto | 54.6° | 10,496 km |
| New York | 58.5° | 10,306 km |
| Chicago | 48.7° | 11,146 km |
| Los Angeles | 23.9° | 13,424 km |
| London | 119.0° | 4,794 km |
| Karachi | 267.7° | 2,800 km |
| Jakarta | 295.2° | 7,920 km |
| Sydney | 277.5° | 13,236 km |
Why the great-circle bearing from Toronto is northeast
On a flat map the Kaaba looks due east of Toronto. On the globe the shortest path leaves Toronto at 54.6°, northeast, and climbs to about 54° N over the North Atlantic before it bends south toward Arabia. We worked out that peak with a great-circle calculation of our own. Los Angeles ends up facing almost north at 23.9°, and Sydney faces 277.5°, close to due west.
A straight line across a flat map points somewhere else, and Wikipedia says a minority of Muslims use that line, the rhumb line, for the qibla. It also records a 1990s dispute in North America over a southeast qibla, which most North American Muslims settled as north or northeast. Which one your masjid follows is for your masjid and scholars to say. If you check a bearing on a map, use a globe or a map that draws the great circle as a curve.
Method one: a bearing and the Compass app
Take the bearing for your city from the table or from the Aladhan endpoint. Open Compass, and if it cannot find your location, go to Settings, Privacy & Security, Location Services, Compass, and choose While Using the App, as Apple's guide describes. Hold the iPhone flat, turn until the degrees on the dial match your bearing, then tap the dial to lock that direction. The red band shows when you have turned away from it.
Be honest about the limit. A magnetic compass reads magnetic north, and Wikipedia says the gap from true north, the declination, can reach 20° in some places and changes over time. Apple's guide does not say which north the Compass dial uses, so treat it as approximate and check it once against method three.
Method two: an app that does the pointing
A good qibla screen takes your location, or a city you pick, calculates the great-circle bearing, shows you the number so you can check it, and tells you when the compass needs calibrating. Google also runs a Qibla Finder in the browser at qiblafinder.withgoogle.com. It needs JavaScript, and we did not test its accuracy.
Sutrah's Qibla screen sits on the Prayer tab and under More. Compass mode shows the bearing in degrees with its compass point, labelled "from true north", and a needle. It says "Turn left 12°" or "Turn right 12°" until you are within 3°, then shows "Facing the Kaaba". Map mode draws the great-circle line to the Kaaba on a standard or satellite map with the distance in kilometres or miles, following your region settings. When the compass reading is poor or missing, it shows the line "Move your phone in a figure 8 to calibrate the compass". All of this is from the released app source (version 1.3, whose Qibla code is unchanged in 1.3.1), read on 18 November 2026.
The code uses the true-north heading when iOS supplies one and magnetic north otherwise, and the screen does not show which, so we cannot tell you how often each applies. It needs a saved location, a recent location fix or a city you type in; without one the screen asks for it first. We make the app, so check it against the table above before you trust it. The same app holds prayer times with twelve calculation methods, which the calculation methods post compares, plus adhan reminders.
Method three: the sun's shadow, four days a year
Twice a year the sun is directly above the Kaaba. Wikipedia's qibla article gives 27 and 28 May at 12:18 Saudi time (09:18 UTC), and 15 and 16 July at 12:27 (09:27 UTC). A vertical stick on flat ground (use a tall one where the sun is high) then casts a shadow that falls straight away from the Kaaba, so the qibla runs from the tip of the shadow back through the foot of the stick. The practice is called rasd al-qiblat. Wikipedia says a reading within five minutes of those moments, or at the same clock time two days either side, is still accurate.
We checked the times with our own solar-position calculation, and it lands on the same minutes for 2027. The sun has to be above your horizon at that moment, which rules out much of the Americas, Australia and the Pacific.
Swipe or scroll sideways to see every column.
| City | 28 May (09:18 UTC) | 15 July (09:27 UTC) | Sun height |
|---|---|---|---|
| Dubai | 1:18 pm | 1:27 pm | 75° |
| Karachi | 2:18 pm | 2:27 pm | 65° |
| London (BST) | 10:18 am | 10:27 am | 47° |
| Jakarta | 4:18 pm | 4:27 pm | 19° |
For the Americas and Australia: when the sun is under the Kaaba
Those places get the mirror-image event, when the sun is directly beneath the Kaaba. Wikipedia lists 29 November at 00:09 Saudi time, which is 21:09 UTC on 28 November, and 14 January at 00:30 Saudi time, 21:30 UTC on 13 January. The shadows then fall the opposite way from the May and July days: the qibla runs from the foot of the stick out along the shadow to its tip, not back from the tip.
The next one is 28 November 2026 at 21:09 UTC. Our calculation puts it at 1:09 pm in Los Angeles (sun 31° up), 3:09 pm in Chicago (10°) and 8:09 am on 29 November in Sydney (29°). In Toronto and New York it falls at 4:09 pm with the sun only 3 to 4° high, so the shadow is long and easy to blur behind a building.
Mark the shadow's line with tape or string, stand along it, and read your phone's compass. If the reading differs from your bearing by more than a few degrees, the gap may come from the phone, from magnetic declination or from how precisely you marked the shadow.
How exact does it have to be?
That is a question for your scholar, not for this page. Wikipedia's summary is that most Islamic scholars accept facing the right direction (jihat al-ka'ba) when the exact point (ayn al-ka'ba) cannot be established. Where your masjid or school gives a number, follow it.
The practical part is smaller. Calibrate the compass, hold the phone flat and away from metal, and check it once against a shadow or against your masjid's rows. After that you know how far your phone is likely to be off at home.
Questions, answered
Does the iPhone Compass app show the qibla?
No. Apple's guide to the Compass app describes your bearing, coordinates and elevation and does not mention the qibla. You can use it with a qibla bearing for your city, or use a qibla app.
How accurate is a phone qibla compass?
It is as accurate as the compass sensor on that day. Apple warns that magnetic or environmental interference can affect the iPhone compass, and Wikipedia says a magnetic compass can differ from true north by up to 20° in some places. Hold the phone flat, away from metal, and check it once against a sun shadow.
Why does the qibla from Toronto point northeast?
The most common technical definition among Muslim astronomers, per Wikipedia, is the great-circle direction, the shortest path over the globe. From Toronto that starts at 54.6°, northeast, even though Mecca looks due east on a flat map. A minority use the flat-map line instead, so ask your masjid which it follows.
Can I find the qibla on my iPhone without internet?
The bearing needs only your coordinates, and the heading comes from the phone's compass. In Sutrah the bearing is calculated on the phone from saved coordinates, but setting a new city needs a connection. We have not tested its map view offline.
When is the sun directly over the Kaaba?
On 27 and 28 May at 09:18 UTC and on 15 and 16 July at 09:27 UTC. The sun is directly beneath it at 21:09 UTC on 28 November and 21:30 UTC on 13 January (the five-minute and two-day tolerances apply), when shadows fall toward the Kaaba.
Keep reading
Sources
- Quran 2:144 (turn your face toward al-Masjid al-Haram), quran.com
- Apple: Use the compass on iPhone (bearings, interference warning)
- Wikipedia: Qibla (great circle, sun over the Kaaba, declination, jihat al-ka'ba)
- Aladhan API: qibla direction by latitude and longitude (example: Toronto)
- Google Qibla Finder (opened 18 November 2026; not tested)