InstantTools.siteZero Latency Utilities
islamic Tool
100% In-Memory (Zero Server Upload)

Qibla Direction & Compass

Get the exact bearing to the Kaaba from your coordinates, and on a phone with a compass, a live arrow that tells you how far you still need to turn.

North and south of the equator. Your own coordinates never leave the browser.

East and west of the prime meridian.

Take this from an official geodetic chart for your area. Without it, no magnetic heading is shown.

58.5°

The Qibla is 58.5° from true north (East-North-East)

That is East-North-East, 4933 km from the Kaaba in a straight line. The distance is not a walking or driving distance.

No magnetic heading is shown because no declination was entered. Point a compass at the true bearing of 58.5° and the needle error will be small, but a large declination in your region would still put you noticeably out.

Method & assumptions

Formula
Great-circle initial bearing

θ = atan2(sin Δλ, cos φ₁ · tan φ₂ − sin φ₁ · cos Δλ), the standard spherical-trigonometry form.

Kaaba coordinates
21.4225° N, 39.8262° E

A fixed reference point; the Kaaba does not move.

True vs magnetic
True north only

Declination is user-supplied from an official chart, never guessed or fetched.

Your coordinates
Typed by you

A location read stays on this page — it is never transmitted or stored.

Scholarly positions differ on some points above. This tool shows one selected position and does not claim it is the only valid one. The bearing to the Kaaba is a geometric fact, so there is no difference of opinion about it. What people differ on is nothing here — but magnetic declination changes over time and by region, so the value you enter must come from a current official chart.

Sources

  • Coordinates: Kaaba at 21.4225° N, 39.8262° EA fixed published reference coordinate. Values used by different sources vary in the third decimal, which is far below the precision anyone can point at.
  • Distance: Great-circle (haversine) distance on a sphere of mean radius 6371.0088 kmStraight-line only. It is not a route, and it ignores elevation and terrain.
  • Compass reading: Browser DeviceOrientation API, with the absolute-heading variant where the platform provides itNo calibration data is fetched and no accuracy is claimed. A phone compass near metal, in a car, or under thick cover can be badly wrong, which is why the manual bearing is always shown as well.

About Qibla Direction & Compass

Enter your latitude and longitude, or press one button to read them from the device, and the tool gives the true bearing to the Kaaba as a degree figure and a compass point, plus the straight-line distance. On a phone with a compass it can read the live heading and tell you which way to turn and how many degrees off you are. Magnetic declination is never guessed — enter a value from an official chart and the magnetic heading is shown as well. Nothing is transmitted or stored, and the page is clear about how far a phone compass can drift.

Key Features & Privacy Guarantee

  • Zero server transmission: all computation happens instantly in your local browser runtime.
  • No sign-up, no subscriptions, and no usage quotas.
  • Optimized for maximum speed, accuracy, and lightweight performance.
  • Instant one-click clipboard copying.

Frequently Asked Questions

Common questions and helpful answers about this utility.

Because the number is a true-north bearing and a phone compass needle reads magnetic north, which sits several degrees away from true north depending on where you are. Enter your local magnetic declination from an official chart and the tool shows the magnetic heading to match, or just align against the true bearing — the difference is usually small in most of the world.