Guide

How to find the Qibla without a compass

You are somewhere new, the prayer time has entered, and you have no compass — or the compass on your phone is spinning. Here are four reliable ways to find the Qibla, and the one thing about it that surprises almost everyone.

Written by the ImanKeeper team · 1 August 2026

1. Use a Qibla tool that computes the bearing

The most reliable method is not a compass at all — it is the geometry. From your exact latitude and longitude, the direction to the Kaaba is a fixed number of degrees. ImanKeeper's Qibla direction pages compute that great-circle bearing for your city and show it in plain degrees, so you can line up against a known reference rather than trust a wobbling magnetic needle.

2. Use the sun — the Rashdul Qibla method

Twice a year the sun passes directly over the Kaaba at Mecca's solar noon: around 27–28 May and 15–16 July, at roughly 12:18 Mecca time. At that precise minute, anywhere on Earth where the sun is up, every shadow points straight away from the Qibla. So you simply face the sun — no compass, no phone, no maths. It is the oldest and most foolproof check there is.

Outside those dates you can still use the sun roughly: it rises in the east and sets in the west, which gives you a coarse orientation to sanity-check any other method against.

3. Line up with a nearby mosque

A mosque is already built facing the Qibla — that is what its whole orientation is for. If there is a masjid nearby, its prayer hall (or the direction people face inside) gives you the local Qibla directly. Even the angle of an established mosque's building on a map is a strong reference for the surrounding area.

4. Use a map

On a map you can draw the direction to Mecca — but here is the catch that trips people up.

Why the Qibla is not a straight line on a flat map

The Qibla is the shortest path over the curved surface of the Earth — the great-circle direction — not a straight line ruled across a flat map. Over short distances the two agree. Over thousands of kilometres they can diverge sharply. From much of North America the true Qibla is roughly north-east, even though Mecca feels like it should be "south-east." Trust the computed bearing, not your intuition about which way Mecca "is."

This is also why a phone's magnetic compass is the weak link, not the calculation: the bearing is exact geometry, but the needle drifts near metal, speakers and magnets, and it points to magnetic north rather than true north. Cross-check it against the sun or a mosque whenever you can.

A note on scope

This guide explains how to find the direction in practice. It is not a religious ruling. For questions about your prayer's validity when the exact direction is uncertain — for instance when travelling — ask your local imam.

Questions people ask

How do I find the Qibla without a compass?
The most reliable way is a Qibla tool that computes the great-circle bearing from your exact location to the Kaaba — that is what ImanKeeper's Qibla pages do. With no phone at all, you can use the sun: on two days each year the sun sits directly over the Kaaba, so at that moment facing the sun faces the Qibla. You can also line up with a nearby mosque, which is already built facing the Qibla.
Why is the Qibla to the north when Mecca is south of me?
The Qibla is the shortest path across the curved surface of the Earth — the great-circle direction — not a straight line drawn on a flat map. Over long distances the shortest path can bend well away from the compass 'toward Mecca' you would expect. From much of North America, for example, the true Qibla is roughly north-east, not south-east.
What is Rashdul Qibla, the sun method?
Twice a year — around 27–28 May and 15–16 July — the sun passes directly overhead the Kaaba at Mecca's solar noon (about 12:18 Mecca time). At that exact minute, anywhere on Earth the sun is visible, shadows point directly away from the Qibla. So you face the sun to face the Qibla, with no compass or phone needed.
Is a phone Qibla direction accurate?
The calculated bearing is precise — it is fixed geometry from your coordinates to Mecca. What varies is your phone's magnetic compass, which can drift near metal, electronics or magnets. That is why it helps to cross-check against the sun or a nearby mosque, and why ImanKeeper shows the true bearing in degrees so you are not relying on a wobbling needle.
Does true north versus magnetic north matter for the Qibla?
It can. A computed Qibla bearing is measured from true north, but a magnetic compass points to magnetic north, and the two differ by a local angle (magnetic declination) that can be several degrees. Over the distance to Mecca a few degrees is usually minor, but where you can, aligning with the sun or an established mosque avoids the question entirely.

Your Qibla, in degrees you can trust

A prayer app that shows your exact Qibla bearing and matches your mosque's real times. Download on the App Store.

Download on theApp Store