How to find the Qibla direction (and how a compass can mislead)

The Qibla is the direction of the Kaaba in Mecca. It is worked out as the great-circle bearing, the shortest path over the Earth, from where you stand to the Kaaba. A phone compass can show it live, but metal, magnets and electronics can pull the reading, so check it against a second source.

How the direction is worked out

QiblaFlow calculates the great-circle bearing from your latitude and longitude to the Kaaba in Masjid al-Haram, Mecca (about 21.4225 degrees north, 39.8262 degrees east). The result is an angle clockwise from true north, for example a bearing between east and south-east. That is the angle your compass needle should match.

Ways to find it

  • A live compass. Open the QiblaFlow Qibla compass, allow location access and hold your phone flat.
  • A bearing and a physical compass. Get your bearing, then line it up on a real compass held level.
  • Your mosque. The prayer hall's rows already face the Qibla. Find a mosque near you.

How a compass can mislead

  • Magnetic interference. Steel furniture, speakers, laptops, magnetic phone cases and car bodies all pull the needle.
  • Magnetic vs true north. A magnetic compass points to magnetic north, which differs from true north by a few degrees depending on place. Good apps correct for this; a plain compass may not.
  • Calibration. A phone compass often needs a figure-of-eight motion to recalibrate.
  • Tilt. Hold the phone level, not at an angle.
  • Indoors. Buildings with a lot of metal are the worst places to read it. Step near a window or outside.

A quick sanity check

Take the reading in two different spots a few metres apart. If the two readings disagree by a lot, interference is the likely cause. Check it against the sun: at solar noon the sun is due south in the UK, which gives you a rough check on your reading.

Looking for times as well as direction? See prayer times by UK city or why prayer times differ.

Common questions

Which way is the Qibla from the UK?

From most of the UK the Qibla is roughly east-south-east to south-east, but the exact bearing depends on where you are. A compass bearing for your exact location is better than a rule of thumb.

Why is my phone compass showing the wrong direction?

Phone compasses read the magnetic field. Nearby metal, magnets, speakers, cases with magnetic clasps and electronics can distort it. Moving away from them and recalibrating usually helps.

Why not just point at Mecca on a flat map?

A flat map distorts long distances. The shortest path over the Earth, the great circle, is the standard way to get the bearing.

Does QiblaFlow have a Qibla compass?

Yes. QiblaFlow has a live Qibla compass in the web app and the iPhone and Android apps.

Get live times & reminders for your location

Free, no account needed. Open the web app now, or get the app on iPhone or Android.

More guides

This guide explains how prayer times are commonly calculated. It is not a religious ruling. Scholarly bodies and mosques differ, so follow the timetable of your local mosque.