Find the Ka’bah from anywhere

Qibla Direction

Which way to face, from wherever you are. Prayer times →

Step 1 · Where you are
Your location Not set yet

Tap “Use my location,” or choose a city, to find your direction.

Step 2 · Which way to face

This bearing is exact for wherever you are. Everything below is about getting your phone to agree with it.

N E S W
clockwise from true north

On a phone, the live compass turns the dial as you turn — point the arrow away from you, toward the Ka’bah.

Holding your phone

Lay it flat Hold the phone level, screen facing up — like a compass resting in your palm. Tilting it throws the reading off.
Step away from metal Car doors, laptops, desks, speakers and magnetic cases all pull the needle. A metre of clear air is usually enough.
Turn your whole body Rotate slowly with the phone held steady in front of you, rather than twisting the phone on its own.

The bearing is calculated to the Ka’bah itself (21.4224779°N, 39.8251832°E) using the WGS84 ellipsoidal geodesic method — the same standard professional surveying tools use, and more accurate than the spherical formula most Qibla calculators settle for. It depends only on your location, so it is exact the moment that is set.

Your phone’s magnetic compass is the part that isn’t exact. It drifts, metal nearby pulls it, and on many Android devices it reports direction relative to magnetic north rather than the true north this bearing is measured from — a gap that exceeds twenty degrees in some parts of the world. That is why the accuracy reading and the calibration prompt are here, and why the sun method above is offered first: it is the one route to the Qibla on this page that no sensor can get wrong.