Most of us have stood in an unfamiliar room, prayer mat in hand, wondering which wall to face: a hotel, a friend’s flat, a corner of an airport. Five times a day, Muslims everywhere turn toward one small building in Makkah in worship of God, and each of us has to work out where it lies from wherever we stand.
Below you will find the day the qibla changed, the geometry that surprises many people, how to make a phone compass trustworthy, the older methods that need no phone, and what to do when you honestly cannot be sure, including on a plane.
The day the qibla changed
The Muslims did not always face Makkah. After the Hijra, the Prophet ﷺ and his Companions in Madinah prayed toward Bayt al-Maqdis in Jerusalem for sixteen or seventeen months, though he loved to face the Kaaba (Ṣaḥīḥ al-Bukhārī 399, Ṣaḥīḥ Muslim 525). Then the command came:
قَدْ نَرَىٰ تَقَلُّبَ وَجْهِكَ فِى ٱلسَّمَآءِ ۖ فَلَنُوَلِّيَنَّكَ قِبْلَةً تَرْضَىٰهَا ۚ فَوَلِّ وَجْهَكَ شَطْرَ ٱلْمَسْجِدِ ٱلْحَرَامِ ۚ وَحَيْثُ مَا كُنتُمْ فَوَلُّوا۟ وُجُوهَكُمْ شَطْرَهُۥ
“We have certainly seen the turning of your face toward the heaven, and We will surely turn you to a qibla with which you will be pleased. So turn your face toward al-Masjid al-Ḥarām. And wherever you are, turn your faces toward it.”
Qur’an 2:144
The first prayer the Prophet ﷺ led toward the Kaaba was ʿAṣr. A man who had prayed it with him passed a mosque where people were bowing toward Jerusalem, told them, and they turned toward the Kaaba where they stood (Ṣaḥīḥ al-Bukhārī 40). The next morning the news reached Qubāʾ during Fajr, and that congregation also turned around mid-prayer (Ṣaḥīḥ al-Bukhārī 403, Ṣaḥīḥ Muslim 526).
The surrounding passage, Qur’an 2:142–150, answers those who objected, “To God belongs the east and the west” (2:142), and comforts believers who worried about the prayers they had already offered: “And never would God have caused you to lose your faith” (2:143). The House itself was raised by Ibrāhīm and Ismāʿīl (peace be upon them) (Qur’an 2:127), whom you can meet in the 25 prophets guide.
Two lessons sit inside this story. Facing the qibla is an act of obedience, not a belief that God is located in a building. And the Companions acted on the knowledge they had: their prayers toward Jerusalem were correct, and when they learned of the change, they simply turned.
Why North America faces north-east
Here is the part that surprises people. Draw a straight line from New York to Makkah on a flat world map and it points a little south of east, about 101° from north. Yet the qibla from New York is about 58°, north-east. Both lines join the same two cities; only one is right.
The Earth is round and flat maps are not. On the familiar Mercator map, a straight line keeps a constant compass heading, which is not the shortest route. The shortest route on a sphere is a great circle, the path long-haul flights follow. From North America it arcs up over the North Atlantic and down across Europe, so you set off facing north-east. Qibla calculations use this bearing. Some examples, in degrees clockwise from true north:
- New York — about 58°, north-east
- Chicago — about 49°, north-east
- Los Angeles — about 24°, north-north-east
- London — about 119°, east-south-east
- Jakarta — about 295°, west-north-west
- Sydney — about 277°, just north of west
Tip: try it with a globe and a piece of string. Pin one end on your city and pull it tight to Makkah: the way the string leaves your city is your qibla. Children love this one.
This was not always obvious. Some older prayer rooms in North America were set up facing south-east, and the community debated the question seriously before north-east became widely accepted. If the carpet lines in an older building look odd, that history may be why; a respectful word with the mosque committee beats quietly praying at a different angle.
How a phone compass works, and how to trust it
Your phone’s magnetometer senses the Earth’s magnetic field, which gives magnetic north. Qibla bearings are measured from true north, the direction of the North Pole. The gap between the two, called magnetic declination, depends on where you are and exceeds 10 degrees in parts of North America. A good compass app uses your location to correct for it.
The bigger everyday problem is interference. The sensor cannot tell the Earth’s field apart from a magnetic case, a car mount, a wireless charger, a laptop, a speaker or the steel in a desk, and any of these can pull the reading off by tens of degrees. Before you trust it:
- Remove any magnetic case or wallet, and step away from laptops, speakers and metal furniture.
- Calibrate by moving the phone slowly in a figure-of-eight a few times.
- Hold the phone flat and level, and let the reading settle.
- Allow location access, so the app can use true north.
- Cross-check once against a second device, a satellite map of your street, or the nearest mosque.
We built the Qibla compass in Awwab around these steps: it works from true north using your location, asks you to calibrate when the reading looks unreliable, and shows the Kaaba’s bearing in degrees so you can cross-check it. Whatever app you use, that quick cross-check is the habit worth keeping.
Finding the qibla without a phone
The local mosque. The miḥrāb (the niche in the front wall) and the prayer rows show the qibla the community has agreed on. In a new city, note which way the nearest mosque faces relative to a main road and carry that direction back with you. In many Muslim-majority countries, hotel rooms have a small qibla arrow on the ceiling or in a drawer.
The sun at midday. In the northern hemisphere, outside the tropics, the sun at its highest point is due south, so a shadow cast then points due north (the reverse in the southern hemisphere). From north, turn by your city’s bearing: about 119° in London, about 58° in New York.
Two days a year, the sun points straight at the Kaaba. Around 27–28 May at about 12:18 Makkah time (09:18 UTC), and around 15–16 July at about 12:27 Makkah time (09:27 UTC), the sun stands almost directly over Makkah. At that moment, wherever the sun is up, the shadow of an upright stick points directly away from the Kaaba, so facing the opposite way faces the qibla. Many people use these dates to check the direction of a home or a mosque.
The night sky. In the northern hemisphere, Polaris, the Pole Star, sits within about a degree of true north.
God asks for your honest effort, not a surveyor’s precision.
When you honestly cannot be sure
Sometimes there is no mosque, the sky is cloudy and the phone is dead. The Qur’an says “God does not charge a soul except with that within its capacity” (2:286) and “So fear God as much as you are able” (64:16). The Prophet ﷺ said: “If I order you to do something, then do of it as much as you can” (Ṣaḥīḥ al-Bukhārī 7288, Ṣaḥīḥ Muslim 1337).
Scholars apply this to the qibla through ijtihād (a reasoned effort): if there is no one knowledgeable to ask, you weigh the best clues, settle on a direction, and pray. Beyond that:
- Someone who can see the Kaaba must face it exactly. For everyone else, the Ḥanafī, Mālikī and Ḥanbalī schools hold that facing its general direction is enough, while the Shāfiʿī school asks you to aim at the Kaaba itself by your best estimate. Many scholars cite the hadith “What is between the east and the west is a qibla” (Jāmiʿ at-Tirmidhī 342, graded ṣaḥīḥ by al-Albānī), which they explain was said for the people of Madinah, who face south.
- If you learn of a mistake during the prayer, you turn and continue, as the people of Qubāʾ did.
- If you learn of it afterwards, having made a real effort, the Ḥanafī, Mālikī and Ḥanbalī schools hold the prayer valid, though Mālikīs recommend repeating it within its time. The better-known Shāfiʿī view is that it is repeated once the error is certain.
- If you made no effort when you easily could have checked, many scholars say the prayer should be repeated if it was wrong.
These are summaries, not rulings, so ask a scholar you trust about your own situation. What they share is mercy: you are responsible for trying, and God knows you tried.
Planes, trains and long drives
Voluntary prayers are the easy case. Jābir reported that the Prophet ﷺ prayed voluntary prayers on his mount in whatever direction it turned (Ṣaḥīḥ al-Bukhārī 400), and Ibn ʿUmar said the verse “So wherever you turn, there is the Face of God” (Qur’an 2:115) was revealed about this (Ṣaḥīḥ Muslim 700). Anas reported that on journeys the Prophet ﷺ would face his camel toward the qibla for the opening takbīr, then pray in whatever direction it went (Sunan Abī Dāwūd 1225, graded ḥasan by al-Albānī). On a train or in a car seat, you can do the same.
Obligatory prayers need more care: in the same narration, Jābir says that for an obligatory prayer the Prophet ﷺ dismounted and faced the qibla. So plan first:
- Pray before boarding or after landing if the prayer’s time allows. Check the times at both airports, and remember that different calculation methods can shift them by a few minutes.
- Most schools allow travellers to join prayers (jamʿ: Dhuhr with ʿAṣr, Maghrib with ʿIshāʾ). The Ḥanafī school allows it only at ʿArafah and Muzdalifah during Hajj. For those following the majority view, joining often avoids praying in the cabin at all.
- If the time will run out in the air, most contemporary scholars say pray on board. If the crew allow it, stand in the galley facing the qibla, using the seat-back map for the plane’s heading. If you cannot stand, pray seated, following the Prophet’s ﷺ words to a sick man: “Pray standing, and if you cannot, then sitting” (Ṣaḥīḥ al-Bukhārī 1117).
Scholars differ on whether an obligatory prayer prayed seated, or away from the qibla, must be repeated after landing, so learn your school’s position before you fly. Our guide to keeping your five prayers has more on habits that survive travel days.
Frequently asked questions
Which direction is the Qibla from the USA and Canada?
North-east, not south-east. Along the shortest path over the globe, the Kaaba lies about 58° from true north in New York, 49° in Chicago and 24° in Los Angeles. A flat map misleads because the Earth is round.
How accurate does my Qibla direction need to be?
If you can see the Kaaba, face it exactly. Further away, the Ḥanafī, Mālikī and Ḥanbalī schools accept its general direction, while the Shāfiʿī school asks you to aim at the Kaaba itself by your best estimate. What is asked of you is an honest effort, not survey-grade precision.
What if I find out I prayed in the wrong direction?
If you realise during the prayer, turn and continue, as the Companions at Qubāʾ did. If you realise afterwards, having made a real effort, the Ḥanafī, Mālikī and Ḥanbalī schools hold the prayer valid, while the better-known Shāfiʿī view is to repeat it.
Do I need to face the Qibla when praying on a plane?
Voluntary prayers may face the direction of travel, as the Prophet ﷺ prayed on his mount. For obligatory prayers, most scholars say face the Qibla and stand if you can, otherwise pray as you are able. Scholars differ on repeating it after landing.