How do you find the Qibla with the iPhone compass?
Look up the Qibla bearing for your city (it is a true-north bearing), then turn until True Heading in Device Monitor's Digital Compass shows that number. There is no Kaaba arrow in the app, and the big number on the dial is magnetic, not true, which is the one thing that trips people up.
Qibla direction in degrees from 12 cities
These are great-circle bearings to the Kaaba (21.4225° N, 39.8262° E), measured clockwise from true north, computed from each city centre. Within a city the figure moves by a fraction of a degree, far less than any phone compass can show.
| City | Qibla (true) | Distance |
|---|---|---|
| New York | 58.5° | 10,306 km |
| Toronto | 54.6° | 10,496 km |
| Chicago | 48.7° | 11,146 km |
| Los Angeles | 23.9° | 13,424 km |
| London | 119.0° | 4,794 km |
| Madrid | 104.0° | 4,598 km |
| Berlin | 136.7° | 4,130 km |
| Istanbul | 151.6° | 2,405 km |
| Lagos | 63.3° | 4,251 km |
| Karachi | 267.7° | 2,800 km |
| Jakarta | 295.2° | 7,920 km |
| Sydney | 277.5° | 13,236 km |
The North American rows surprise people. On a flat map Mecca sits to the south-east of New York, and a straight line on that map gives 101.3°. The shortest path over the globe leaves New York heading north-east, at 58.5°. That is why many mosques in the US and Canada face north-east.
Not in the table? Open Wireless & Location > GPS Accuracy Test > Start GPS Test; it prints your Lat and Lon to four decimals. With your latitude φ, longitude λ and the Kaaba's φK, λK, the bearing is atan2(sin(λK−λ)·cos φK, cos φ·sin φK − sin φ·cos φK·cos(λK−λ)), converted to degrees and added to 360 if negative. A spreadsheet does it in one cell.
Turning to face it
- Take off any case with a magnet, and move away from steel tables, speakers and laptops.
- Open Diagnostics > Environment Sensors > Digital Compass and allow location when asked. True north needs your position.
- Hold the phone flat, top edge pointing away from you.
- Scroll to Heading Details. Watch Accuracy: the number turns green under 5°. If it is yellow or red, wave the phone in a slow figure-8 for a few seconds.
- Turn your body until True Heading reads your Qibla bearing. In New York that is 58.5°; in London, 119.0°.
This is easy to get wrong. The large figure in the middle of the dial and the direction word under it follow Magnetic Heading, which is off from true north by the local declination (more than 10° west in New York, for example). Only the small True Heading line has the correction built in, so read that one.
True Heading shows -1.0°
A negative value is iOS saying it has no position for the compass yet. Check that location is allowed for the app, step outside or near a window, run the GPS Accuracy Test once and go back to the compass. If it still shows -1.0°, you can still work in magnetic terms: take the declination for your town from a geomagnetic calculator, subtract an east declination from your true bearing (or add a west one), and turn until Magnetic Heading matches.
How far off is a few degrees?
The Accuracy figure is the error iOS puts on the heading, in plus or minus degrees. Over thousands of kilometres an angle turns into distance at the far end:
| From | 2° off | 5° off | 15° off |
|---|---|---|---|
| London (4,794 km) | 167 km | 418 km | 1,241 km |
| Jakarta (7,920 km) | 276 km | 690 km | 2,050 km |
| New York (10,306 km) | 360 km | 898 km | 2,667 km |
Those numbers look scary. But you face a direction, not a point, and how exact that must be is a question for your imam, not an app. A red Accuracy of 15° or more is worth a recalibration first. Green, under 5°, is as good as a phone gets.
What Device Monitor does and doesn't do here
- No Qibla pointer, no prayer times, no map. It is a compass and sensor tool; you bring the bearing.
- The Digital Compass and the GPS test are free. The free version shows ads, including a full-screen one now and then when you leave a section.
- Your location is used on the phone to correct for true north and is not saved or sent anywhere.
If you want an app that draws an arrow to Mecca and nothing else, a dedicated Qibla app is simpler. This one is worth installing only if you want the raw true and magnetic headings plus the accuracy figure, and are happy to judge the reading yourself.
Questions and answers
Is the Qibla measured from true north or magnetic north?
What is the Qibla direction in degrees from London?
How do I find the Qibla direction from my location?
How do I find the Qibla direction without a compass?
You might also like
More Device Monitor guides
- How to check for dead pixels on your iPhone
- How to test your iPhone speaker and microphone
- How to check a used iPhone before buying it: a 10-minute checklist
- How to use your iPhone as a bubble level
- iPhone compass: true north vs magnetic north, and how to get an accurate heading
- How to test your iPhone's sensors: proximity, barometer, motion and GPS
- How to check how much RAM your iPhone has, and its other specs
- Does a metal detector app on iPhone really work?
- How Do You Test Your iPhone's Touch Latency?
- How Fast Is Your iPhone Charging, and Why Does It Get Hot?
- How do you run a hardware test on an iPad?
- Can you monitor CPU usage on an iPhone?
- All questions about Device Monitor
- Back to Device Monitor