Your timetable · visible arithmetic

Distance to the Kaaba calculator

The shortest surface path on a spherical Earth is a great-circle arc.

This page applies the haversine relation to the entered coordinates and a fixed Kaaba coordinate.

Calculator

Enter values

Runs in your browser
Great-circle distance4,793.8 km
Distance in miles2,978.7 mi
Initial bearing118.99°

The spherical great-circle distance from 51.5074°, -0.1278° to the Kaaba coordinate is approximately 4,793.8 km.

Formula

How it is calculated

distance = 2R × atan2(√a, √(1−a)), using the haversine a
  1. Enter decimal coordinates.
  2. Calculate the central angle to the Kaaba coordinate.
  3. Multiply by mean Earth radius 6,371.0088 km.

What the result means

This is surface great-circle distance, not road, flight or walking distance.

All decision-bearing times, offsets or coordinates remain visible inputs. The page does not look up a hidden local convention, mosque timetable or current location.

Limits and local confirmation

The mean-radius spherical model ignores the Earth’s ellipsoidal detail and local route constraints. It is not a navigation route.

For worship planning, confirm the applicable times, method and interpretation with the local mosque or authority you follow.

Questions about this calculation

Does this Qibla-distance calculator choose prayer times for me?

No. It uses only the timetable values or coordinates you enter. Obtain prayer times and method guidance from a trusted local timetable, mosque or authority.

Does it store my values or location?

No. The arithmetic runs in your browser and the form does not submit coordinates, times or results to a server.

What happens when an interval crosses midnight?

Clock-interval tools move forward on a 24-hour clock, so an end time earlier than the start is treated as occurring on the following calendar day.

Need a full location-based timetable? Use the prayer times and Qibla calculator.