Skip to main content
Masaajidh
QuranIqraHadithDuasHistoryLearnCourses
Guided ProgramMosquesCharacterMobile App
Sign InGet Started
Masaajidh
Sign InRegister

Learn or teach the Quran online with Masaajidh

For students and parents

Learn Quran online with a live teacher

Quran classes for kids and adults: Iqra reading, Tajweed classes, recitation and Hifz. Free trial class.

See Quran classes →

For teachers

Teach Quran online: we are hiring

Online Quran teacher jobs for Quran, Tajweed, Arabic and Islamic studies tutors. Flexible hours, from home.

Apply to teach →
Masaajidh
Masaajidhمساجد

A sacred space for Islamic learning and knowledge. Building understanding, strengthening faith, and connecting hearts to the wisdom of our tradition.

Learn

  • Iqra Books
  • Quran
  • Learn Quran Online
  • Courses
  • Teachers

Resources

  • Seerah
  • Tafseer
  • Hadith
  • History
  • Pioneers
  • Daily Duas

Community

  • Mosques
  • Events
  • Blog
  • Teach Quran Online
  • Support

Get the App

  • iPhone — App Store
  • Android — coming soon
  • About the app

About

  • Our Mission
  • Contact Us
  • Privacy Policy
  • Terms of Service
  • Refund Policy

Subscribe to our Newsletter

Receive weekly Islamic reminders and learning resources

سُبْحَانَ اللَّهِ وَبِحَمْدِهِ

© 2026 Masaajidh.com. All rights reserved.

Privacy✦Terms✦Cookies
Back to Blog

Qibla Direction: How to Find the Qibla Anywhere

Masaajidh Editorial Team
October 27, 2026
8 min read
Prayer & Salah
Qibla Direction: How to Find the Qibla Anywhere

Every Muslim prayer is made facing one point on earth: the Ka'bah in Makkah. That direction is the qibla. At home you might have it marked on a wall, and in a mosque the mihrab shows it. But at a hotel, an office or a park, you need to work out the qibla direction yourself. This guide explains how the direction is calculated, how to use a compass or phone qibla finder properly, and how much accuracy scholars require.

This is part of our guide to prayer times explained. If there is a mosque nearby, its prayer hall is already aligned: use the Masaajidh mosque finder to locate one.

What the qibla is and how it was set

For the first months after the Hijrah, the Muslims in Madinah prayed towards Jerusalem. Al-Bara' ibn 'Azib (may Allah be pleased with him) narrated that "Allah's Messenger ﷺ prayed facing Baitul-Maqdis for sixteen or seventeen months but he loved to face the Ka'ba (at Mecca)", and then Allah revealed the verse that changed the qibla (Sahih al-Bukhari, no. 394 (Masaajidh edition)):

قَدْ نَرَىٰ تَقَلُّبَ وَجْهِكَ فِى ٱلسَّمَآءِ ۖ فَلَنُوَلِّيَنَّكَ قِبْلَةًۭ تَرْضَىٰهَا ۚ فَوَلِّ وَجْهَكَ شَطْرَ ٱلْمَسْجِدِ ٱلْحَرَامِ ۚ وَحَيْثُ مَا كُنتُمْ فَوَلُّوا۟ وُجُوهَكُمْ شَطْرَهُۥ

"We have certainly seen the turning of your face, [O Muhammad], toward the heaven, and We will surely turn you to a qiblah with which you will be pleased. So turn your face toward al-Masjid al-Haram. And wherever you [believers] are, turn your faces toward it [in prayer]." (Quran 2:144)

Facing the qibla is a condition of the obligatory prayer for anyone who is able, which is why our step-by-step guide to salah starts with it.

Why the qibla is a great-circle direction

The earth is a sphere, so the shortest path between two places is a great circle, like the route a long-haul flight takes. The qibla is the direction you face at the start of that shortest path to the Ka'bah. This is what nearly all modern scholars, mosques and qibla apps use.

The result can surprise people who look at a flat map. On a common wall map, Makkah appears to be south-east of New York, yet the great-circle qibla from New York points to the north-east. In Australia, a flat map makes Makkah look due west, while the true direction is a little north of west.

CityApproximate qibla bearing (degrees from true north)In words
Sydney277°Just north of west
Melbourne279°Just north of west
Brisbane280°Just north of west
Adelaide283°West, slightly north
Perth295°West-north-west
London, Birmingham, Manchester118° to 119°East-south-east
Karachi268°Almost due west
Kuala Lumpur293°West-north-west
New York58°North-east
Los Angeles24°North-north-east

These bearings for the qibla direction were calculated from city centres to the Ka'bah. They change only slightly across a city, so they are fine as a check. For your exact spot, use a qibla finder with your location.

Method 1: a phone qibla finder

Most people now use a phone app or a website qibla finder. It reads your location, calculates the great-circle bearing and points you using the phone's magnetic sensor. To get a reliable result:

  1. Turn on location so the app knows exactly where you are.
  2. Calibrate the compass. Most phones ask you to move the phone in a figure-of-eight a few times. Do this whenever the app warns of low accuracy.
  3. Hold it flat, away from your body, at waist height.
  4. Move away from metal and magnets. Steel desks, car bodies, laptops, speakers, magnetic phone cases and reinforced concrete floors can pull the needle by many degrees.
  5. Check twice. Take a reading in two different spots in the room. If they disagree a lot, something is interfering.

The Masaajidh mosque finder includes a qibla tool, and our mobile app has a qibla compass.

Method 2: an ordinary compass

A magnetic compass shows magnetic north, not true north. The difference, called magnetic declination, depends on where you are and changes slowly over the years. In Britain it is small, while in parts of eastern Australia it is more than ten degrees. Good apps correct for this automatically. With a hand compass:

  1. Look up the qibla bearing for your town (in degrees from true north).
  2. Look up the current magnetic declination for your area from an official source.
  3. Adjust the bearing: if declination is east, subtract it; if west, add it.
  4. Hold the compass flat, let the needle settle on north, then turn to the adjusted bearing.

Method 3: the sun over the Ka'bah

Twice a year, the sun passes almost directly over the Ka'bah at local noon in Makkah, usually around 27 to 28 May and 15 to 16 July. At that moment, anyone who can see the sun can find the qibla with no instruments: stand a stick upright, and its shadow points directly away from Makkah. Face along the shadow towards the stick and the sun, and you are facing the qibla. The exact minute is published each year, and the method only works where the sun is above the horizon at that moment.

On other days you can still use the sun as a rough guide if you know where it rises and sets, but treat this as an emergency method.

How accurate must you be?

Scholars distinguish between someone who can see the Ka'bah and someone far away:

  • Inside or near Masjid al-Haram, you must face the Ka'bah itself.
  • Far away, the majority of scholars say it is enough to face its general direction (al-jihah). A small error does not invalidate the prayer.

Some point to a narration reported by at-Tirmidhi: "What is between the east and the west is Qiblah" (Jami' at-Tirmidhi, no. 342 (Masaajidh edition)). It was said to people in Madinah, who face south towards Makkah, and scholars differ on its grading, so ask a qualified teacher before building a ruling on it. Its meaning is widely used to show that the requirement for those far away is a sincere effort at the right direction, not laser precision. The Shafi'i school expects a person to aim, by their best effort, at the Ka'bah itself rather than only the general direction.

In practice: make a genuine effort with the tools you have, then pray with confidence.

If you find out you faced the wrong way

  • During the prayer: if someone corrects you or you realise, turn to the right direction and continue.
  • After the prayer: if you made a real effort to find the qibla, most scholars say the prayer is valid and does not need repeating. If you did not try at all when you could have, ask your imam.
  • In a vehicle: Ibn 'Umar narrated that the Prophet ﷺ "used to offer (Nawafil) prayers on his Rahila (mount) facing its direction by signals, but not the compulsory prayer" (Sahih al-Bukhari, no. 973 (Masaajidh edition)). Obligatory prayers have stricter conditions, so ask a scholar about trains and planes.

Marking the qibla direction at home

Once you have found the qibla direction in your home, mark it so the whole family can pray without checking a phone each time. A simple way to do it:

  1. Choose the room where you usually pray and take three readings with a calibrated phone, in different parts of the room, away from the television and other electronics.
  2. If the readings agree within a few degrees, lay a long ruler or piece of tape on the floor along that line.
  3. Find a fixed reference on the wall at the end of the line, such as a corner or window edge, and place a small sticker or arrow there.
  4. Lay prayer mats parallel to the line, so children learn to line up neatly, just as rows in a mosque do.

Rooms are rarely built square to the qibla direction, so prayer mats often sit at an angle to the walls. That is normal.

Qibla at work, school and while travelling

  • Ask colleagues or the prayer room organiser; many rooms already have an arrow on the ceiling or wall.
  • Mark the direction once with a small sticker so you do not need to check every day.
  • In a hotel, check the drawer or ceiling: many hotels in Muslim-majority countries mark it.
  • Friday prayers at work or university are often held in a hall that has already been aligned. Our Jummah prayer guide has more Friday tips.

Conclusion

Finding the qibla is a small act that connects every Muslim to the same centre. Use a calibrated phone or a compass with the declination corrected, keep away from metal, and remember that for those far from Makkah, a sincere best effort is what is asked of you.

When you are out and about, the easiest qibla of all is a mosque that has already been aligned. Find a mosque near you on Masaajidh.

Keep learning:

  • How to Pray Salah: A Step-by-Step Guide
  • Prayer Times Explained: How the Five Salah Times Are Set
  • Jummah Prayer: Time, Etiquette and the Friday Khutbah

Frequently asked questions

Which direction is the qibla from Australia?

From the main Australian cities the qibla is roughly west, a little to the north. It is about 277 degrees from true north in Sydney, around 279 in Melbourne and about 295 in Perth. Use a calibrated qibla finder at your exact location for the most accurate result.

Which direction is the qibla from the UK?

From London, Birmingham and Manchester the qibla is east-south-east, about 118 to 119 degrees from true north. Many people expect south-east from a flat map, but the shortest great-circle path to Makkah leaves Britain slightly south of east.

Is my prayer valid if the qibla was slightly off?

For people far from Makkah, the majority of scholars say facing the general direction of the Ka'bah is enough, so a small error does not invalidate the prayer. If you made a genuine effort and later found a larger mistake, most scholars say you do not need to repeat it.

Why does my qibla finder app keep changing?

Phone compasses are easily disturbed by metal, magnets and electronics, and they drift if not calibrated. Move the phone in a figure-of-eight to calibrate it, hold it flat away from metal objects, and check in two places. If readings still jump, use another method.

#qibla#salah#compass#travel

Share this article

Masaajidh Editorial Team

Masaajidh Editorial Team

Masaajidh Editorial Team contributes to the Masaajidh Islamic Knowledge Blog.

Related Articles

Prayer Times Explained: How the Five Salah Times Are Set

Prayer Times Explained: How the Five Salah Times Are Set

Where the five daily prayer times come from, how calculators turn sun positions into minutes, and why your mosque timetable may differ from your app.

Read More
Adhan vs Iqamah: What Iqamah Times Mean and Why They Change

Adhan vs Iqamah: What Iqamah Times Mean and Why They Change

What the adhan and the iqamah each mean, why there is a gap between them, and why your mosque changes its congregation times through the year.

Read More
Qibla Direction: How to Find the Qibla Anywhere | Masaajidh