Skip to content

Qibla Finder — Free Online Qibla Direction Calculator

Find the precise direction of the Qibla from anywhere in the world.

Tip: Click "Use My Location" to automatically detect your GPS coordinates, or enter them manually. The Kaaba is located at 21.4225 N, 39.8262 E in Makkah, Saudi Arabia.

Qibla Direction Results

Qibla Bearing58.48°
Compass DirectionENE
Distance to Kaaba10,306 km
Your Coordinates40.7128, -74.006

Qibla Direction Reference Table

City Coordinates Bearing Compass Distance (km)
New York, USA 40.71, -74.01 58.5° ENE 10,146
London, UK 51.51, -0.13 119.0° ESE 4,583
Istanbul, Turkey 41.01, 28.98 153.1° SSE 2,254
Cairo, Egypt 30.04, 31.24 136.6° SE 1,234
Jakarta, Indonesia -6.21, 106.85 295.1° WNW 7,892
Tokyo, Japan 35.68, 139.65 293.0° WNW 8,848
Sydney, Australia -33.87, 151.21 277.5° W 12,035
Los Angeles, USA 34.05, -118.24 23.7° NNE 13,372

Related Calculators

About this calculator

Qibla Direction Formula and How It Works

Bearing = atan2(sin(dLng), cos(lat1) x tan(lat2) - sin(lat1) x cos(dLng))
Distance = R x 2 x atan2(sqrt(a), sqrt(1-a))

where:

a = sin(dLat/2)^2 + cos(lat1) x cos(lat2) x sin(dLng/2)^2

Variables Explained

  • lat1, lat2: The latitudes of your location and the Kaaba (21.4225 N) respectively, converted to radians for trigonometric calculations. Latitude measures the angular distance north or south of the equator.
  • dLng: The difference in longitude between the Kaaba (39.8262 E) and your location, converted to radians. This angular difference, combined with the latitudes, determines the bearing along the great-circle path.
  • dLat: The difference in latitude between the Kaaba and your location, used in the Haversine distance formula. This measures how far north or south you are relative to the Kaaba.
  • R: The mean radius of the Earth, approximately 6,371 kilometers. This constant is used to convert the angular distance from the Haversine formula into a linear distance in kilometers.
  • Bearing: The initial compass direction from your location to the Kaaba, measured in degrees clockwise from true north (0 to 360 degrees). This is the direction you should face for prayer.
  • Distance: The great-circle (shortest path on the surface of a sphere) distance from your location to the Kaaba in kilometers. This is calculated using the Haversine formula, which accounts for Earth's spherical geometry.

Step-by-Step Example

Calculate the Qibla direction from New York City (40.7128 N, 74.0060 W):

  1. Convert coordinates to radians: lat1 = 40.7128 x pi/180, lat2 = 21.4225 x pi/180
  2. Calculate longitude difference: dLng = (39.8262 - (-74.0060)) x pi/180 = 113.8322 x pi/180
  3. Compute bearing components: y = sin(dLng), x = cos(lat1) x tan(lat2) - sin(lat1) x cos(dLng)
  4. Bearing = atan2(y, x) converted to degrees = approximately 58.48 degrees
  5. Compass direction: 58.48 degrees falls in the ENE (east-northeast) sector
  6. Distance using Haversine: approximately 10,146 km from NYC to the Kaaba

From New York City, the Qibla is approximately 58.5 degrees from true north, which is in the east-northeast direction. This means Muslims in New York face roughly ENE during prayer, and the Kaaba is about 10,146 kilometers away via the great-circle route.

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Consult a qualified Islamic scholar for religious rulings on Qibla direction and prayer validity. This tool provides mathematical calculations and should not be considered a fatwa or religious ruling.

Last updated: November 3, 2026