Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Qibla Direction Finder

  • Free
  • Nothing stored
  • No account needed

From Lagos, Nigeria face 63.4 degrees from true north to face the Kaaba; that is roughly east-northeast and about 4,253 km away. This tool shows bearing, compass point, distance and facing instructions.

Qibla direction
63.3 degrees from true north
Compass point
ENE (east-northeast)
Distance to the Kaaba
4,251 km (2,642 miles)
How to face it
Face north, then turn 63 degrees clockwise (to your right).

A phone compass points to magnetic north, which can be several degrees from true north (and is disturbed by metal and magnets). For best results calibrate the compass, or line up with the Sun or a map of your street.

Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the Qibla Direction Finder

This tool gives the direction to the Kaaba from any city or coordinates. You pick a city from the list or enter latitude and longitude. Results update instantly as you type; there is no calculate button. The page shows the Qibla bearing in degrees from true north, a plain compass point, the great-circle distance to the Kaaba, and a short instruction on how to face it. The calculation uses the great-circle bearing and a haversine distance on a spherical Earth; the Kaaba coordinates used are 21.4225 N, 39.8262 E. The tool runs in your browser and nothing is uploaded. You can copy the result or share a link that reopens with the same numbers. For compass use, correct for magnetic declination or line up with the Sun or a map for best results.

How to use it

  1. 1Select a city from the list or choose Somewhere else and enter latitude and longitude.
  2. 2Watch the bearing, compass point, distance and facing instruction update instantly as you type.
  3. 3Copy the result or click Share to create a link that reopens with the same numbers.
  4. 4Face true north, then turn clockwise by the shown bearing to face the Qibla.
Advertisement

Worked example

Input: Lagos, Nigeria (6.5244 N, 3.3792 E). Result: Qibla bearing 63.4 degrees from true north; compass point east-northeast; distance 4,253 km. How to face: face north then turn clockwise 63.4 degrees.

How it works

The Qibla is the direction of the shortest path over the Earth's surface (the great circle) to the Kaaba in Makkah (21.4225 N, 39.8262 E)Bearing = atan2(sin(dLon), cos(lat1) x tan(lat2) - sin(lat1) x cos(dLon)), measured clockwise from true northDistance uses the haversine formula with an Earth radius of 6,371 km

Source: Movable Type, Calculate distance and bearingNOAA, Magnetic declination and World Magnetic ModelGoogle Support, Kaaba coordinates used by Qibla Finder. Last checked 6 November 2026.

What it is good for

  • Instant results as you type, no Calculate button.
  • Runs wholly in your browser; nothing is uploaded or stored.
  • Quick city shortcuts for Nigeria, Gulf states, UK, US and more.
  • Uses a spherical great-circle method; ellipsoidal geodesic gives more precise geodetic results.
  • Phone compasses point to magnetic north and can be disturbed by metal or magnets.
Advertisement

Questions people ask

What does the tool show?

It shows the Qibla bearing in degrees from true north, a simple compass point name, the great-circle distance to the Kaaba, and a short instruction on how to face it.

Which Kaaba coordinates does the tool use?

The tool uses the commonly cited Kaaba coordinates 21.4225 N, 39.8262 E. This is the coordinate used by many online Qibla finders and documentation.

Do I need to give my location to use it?

No. You can pick a city from the built-in list or enter latitude and longitude. The page runs in your browser and nothing is uploaded.

Why might my phone compass disagree with the shown bearing?

Phone compasses point to magnetic north and can be off by several degrees due to local magnetic declination or nearby metal. Calibrate your compass or use the Sun or a map to find true north.

How accurate are the numbers?

The bearing uses the spherical great-circle forward azimuth and the distance uses the haversine formula with Earth radius 6,371 km. For sub-metre geodesy use an ellipsoidal geodesic method such as GeographicLib.

Can I save or share a result?

Yes. You can copy the result or share a link that reopens the tool with the same city or coordinates and numbers.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement