{{ compassInstructionLong }}
{{ sunAlignmentNote }}
Masjid al-Haram (Kaaba) coordinates anchor every calculation.
| Metric | Value | Copy |
|---|---|---|
| {{ row.label }} | {{ row.display }} |
Qibla direction is the bearing from your position to the Kaaba in Makkah, expressed clockwise from true north. It supports daily prayer and helps with practical room or outdoor orientation.
The calculation follows the shortest path on the Earth and reports both the bearing and the distance along the surface. You also see a central angle that shows how far around the globe the path spans.
Magnetic declination can be entered to turn the true bearing into a heading for a physical compass. Sun alignment times offer quick observational checks when daylight and a clear view are available.
Provide coordinates directly, search a city, select a point on a map, allow a GPS fix, or use an IP based estimate. Keep inputs consistent between attempts to make results comparable over time.
Qibla direction measures the horizontal orientation from an observer to the Kaaba as a true bearing. Inputs are latitude and longitude in decimal degrees, treated as a momentary snapshot rather than an average over time.
The computation derives an initial bearing and a great‑circle distance. Bearings are described in degrees clockwise from true north and may be translated into a 16‑point cardinal label for readability.
Distance is computed from the central angle between the two points on a sphere. The distance equals that angle multiplied by a chosen Earth radius. A separate setting converts the true bearing to a magnetic heading using a user‑supplied declination where east is positive.
Results include bearing, cardinal label, distance in multiple units, central angle, and an optional magnetic heading. Comparisons assume identical coordinates, the same Earth radius choice, and the same declination.
| Symbol | Meaning | Unit/Datatype | Source |
|---|---|---|---|
| Observer latitude | degree | Input | |
| Observer longitude | degree | Input | |
| Kaaba latitude | degree | Constant | |
| Kaaba longitude | degree | Constant | |
| Longitude difference | degree | Derived | |
| Initial bearing from observer | degree | Derived | |
| Central angle | radian/degree | Derived | |
| Great‑circle distance | km, mi, nm | Derived | |
| Earth radius (mean/equatorial/polar/custom) | km | Setting | |
| Magnetic declination (east positive) | degree | Input | |
| Solar noon offset vs Makkah | hour | Derived |
| Field | Type | Min | Max | Step/Pattern | Error handling |
|---|---|---|---|---|---|
| Latitude | Number | −90 | 90 | 0.0001 | Clamped to range |
| Longitude | Number | −180 | 180 | 0.0001 | Normalized to [−180, 180] |
| Earth radius (custom) | Number | 1000 | 10000 | 1 | Clamped to range |
| Bearing precision | Integer | 0 | 3 | 1 | Rounded to nearest integer |
| Magnetic declination | Number | — | — | 0.1 | Applied as east positive |
| City search query | Text | 2 chars | — | Plain text | Network errors surfaced |
Location calculations run on the device. When you request IP lookup, city search, or map tiles, your device contacts external services directly; no additional personal data is collected by the app.
Compute a Qibla bearing and distance with clear, compass‑ready output.
Example. With 40.7128° N, 74.006° W and mean radius, the bearing is about 58.5° (ENE) and the distance is about 10306.32 km.
Calculations run on your device. IP lookup, city search, and map tiles contact external services. The app does not send your coordinates to its own server.
Your network or those services may log requests.It uses a spherical Earth model, which is suitable for everyday orientation. For survey work or critical navigation, use an ellipsoidal geodesic calculator.
Bearings in degrees with a 16‑point label, distances in kilometers, miles, and nautical miles, latitude and longitude in decimal and DMS formats.
Yes for manual coordinates. IP detection, city search, and the map require a network connection to fetch data and tiles.
Consult a current source for your location and date, then enter the value. Positive values mean magnetic north is east of true north.
It is the angular separation between the two points at Earth’s center. Larger angles indicate longer great‑circle paths.
Times are fixed annual instants and your local display uses the device time zone. Weather, latitude, and obstructions affect visibility.
No pricing information is included. The calculator runs on the device; external services may have their own usage policies.