CalcaTools

Qibla Direction | Find Bearing and Compass Direction to Kaaba

Finds the Qibla (direction of the Kaaba in Mecca) for any location on Earth. Enter your city or latitude/longitude coordinates and the tool computes the great-circle bearing to the Kaaba (21.4225°N, 39.8262°E), then converts it into a compass direction such as ENE or SE. The result also shows the angular distance so you can orient yourself accurately for prayer.

Last updated: June 2026 · Free · No sign-up required

Use decimal degrees. North = positive, south = negative.

East = positive, west = negative.

Results

Enter values above and click Calculate to see your result instantly.

Quick reference

CityQibla bearingDistance
New York58.48° (ENE)10,306 km
London118.99° (ESE)4,750 km
Karachi267.7° (W)2,100 km
Jakarta295.1° (WNW)7,900 km

mosque Calculated to Shariah-compliant formulas

Every Islamic calculator on CalcaTools uses formulas from recognised Shariah authorities — the Hilal Committee's Hijri conversion tables, the MWL/ISNA/Umm al-Qura prayer-time methods, the four-school consensus for Zakat Nisab, and the Faraid distribution rules from classical fiqh. The exact authority is cited on every tool page.

menu_book Sunni & Shia rules side by side

For tools where the calculation differs between schools (Faraid inheritance, certain Zakat triggers, prayer-time conventions), we surface the choice as a selector and document the difference in the methodology block. Pick the school that matches your tradition — the answer adjusts.

savings Zakat with the live Nisab

Zakat tools fetch the current spot gold/silver price (or let you enter your local rate) so the Nisab threshold reflects today's value, not a stale figure from last year. The 2.5% rate is the standard hawl-based calculation; agricultural Zakat (1/10 or 1/20) is available on the dedicated Ushr calculator.

verified For guidance, not a fatwa

These calculators give you the number — they do not give a fatwa. For complex personal situations (inheritance with revoked rights, mixed-asset Zakat, late prayer makeup rules), please confirm with a qualified scholar in your tradition. We're here to help with the arithmetic, not to replace your local imam.

Interpretation guide

OutputHow to use it
Bearing (° from true north)Set a compass to this heading and face it
Compass directionQuick 16-point reading (e.g. ENE)
Magnetic declinationAdjust compass readings — NYC is ≈ −13°
Great-circle distanceWhy the bearing can look counter-intuitive

lightbulb Worked example

Let's say you are using the Qibla Direction Calculator. Finds the Qibla (direction of the Kaaba in Mecca) for any location on Earth. Enter your city or latitude/longitude coordinates and the tool computes the great-circle bearing to the Kaaba (21.4225°N, Enter the values that match your situation into the input fields and press calculate — using realistic numbers makes the result directly useful for you.

Result: The calculator instantly applies the formula bearing = atan2(sinΔλ, cosφ₁tanφₖ − sinφ₁cosΔλ), toward 21.4225°N 39.8262°E and returns the result with appropriate precision.

What this means: Read the result in the context of what you are measuring. The step-by-step breakdown lets you confirm the math and understand which input most affects the outcome.

Formula & methodology

Formula: bearing = atan2(sinΔλ, cosφ₁tanφₖ − sinφ₁cosΔλ), toward 21.4225°N 39.8262°E

The Qibla Direction Calculator is built on a well-established calculation method. It uses the formula bearing = atan2(sinΔλ, cosφ₁tanφₖ − sinφ₁cosΔλ), toward 21.4225°N 39.8262°E to turn your inputs into a reliable result. Finds the Qibla (direction of the Kaaba in Mecca) for any location on Earth. Enter your city or latitude/longitude coordinates and the tool computes the great-circle bearing to the Kaaba (21.4225°N, 39.8262°E), then The steps are shown on the page so you can follow the reasoning from input to output.

  1. Enter your latitude and longitude (decimal degrees).
  2. The spherical-trig formula computes the initial great-circle bearing to the Kaaba.
  3. Read the bearing from TRUE north and the compass direction.
  4. Correct for local magnetic declination if using a magnetic compass.

Example: New York (40.7128, −74.0060) → 58.48° — ENE — 10,306 km to Mecca.

Authoritative source: TimeandDate.com — Sun & Earth

Frequently asked questions

Why is the Qibla from New York northeast, not southeast?
The Qibla Direction Calculator is free, private, and accurate: it runs entirely in your browser (no uploads, no accounts), applies the standard calculation, and explains each step so you can verify the result. Finds the Qibla (direction of the Kaaba in Mecca) for any location on Earth. Enter your city or latitude/longitude coordinates and the tool computes the great-circle bearing to the Kaaba (21.4225°N, 39.8262°E), then converts it into a compass direction such There is no limit on usage, and it works on any device.
How accurate is the calculated bearing?
The Qibla Direction Calculator applies the standard formula: bearing = atan2(sinΔλ, cosφ₁tanφₖ − sinφ₁cosΔλ), toward 21.4225°N 39.8262°E. It is tested against published worked examples before launch and uses native double-precision arithmetic, so results are accurate to typical precision for the values you enter — with no intermediate rounding that could distort the answer.
Do I need to adjust for magnetic north?
Yes — the calculator returns the bearing from TRUE north (geographic north), but compasses point to magnetic north, which differs by an angle called magnetic declination that varies by location and changes slowly over time. Before praying, adjust the compass bearing by your area's current declination, or verify with a compass app that applies it automatically.
What are the Kaaba’s exact coordinates?
The Kaaba is located at approximately 21.4225°N latitude and 39.8262°E longitude in Mecca, Saudi Arabia. These are the coordinates the great-circle formula uses to compute the qibla bearing from any location. The calculation treats the Kaaba as a point on the sphere, which is more than precise enough for prayer direction.
Can I just use the sun to verify?
Yes — when the sun is directly over the Kaaba (its solar culmination, roughly twice a year around late May and mid-July), shadows in your location point directly away from the qibla, letting you verify the direction by sight. The calculator's bearing is the geometric reference; the sun method is a practical confirmation. For routine prayer, the computed bearing is sufficient.
What does the Qibla Direction Calculator do?
Finds the Qibla (direction of the Kaaba in Mecca) for any location on Earth. Enter your city or latitude/longitude coordinates and the tool computes the great-circle bearing to the Kaaba (21.4225°N, 39.8262°E), then converts it into a compass direction such. The calculator takes your inputs, applies the standard calculation, and returns a clear result so you can make an informed decision without doing the math by hand.
What formula does the Qibla Direction Calculator use?
It computes the great-circle bearing from your location to the Kaaba at 21.4225°N, 39.8262°E using bearing = atan2(sinΔλ, cosφ₁tanφₖ − sinφ₁cosΔλ), where φ is latitude and Δλ the longitude difference. Enter your address or coordinates and the tool returns the qibla bearing in degrees from true north, plus the compass direction.
Is the Qibla Direction Calculator free and private?
Yes — the Qibla Direction Calculator. There is no sign-up, no paywall, no trial, and no limit on how many calculations you can run. CalcaTools covers its costs with non-intrusive display advertising, so the calculator itself never asks for payment or restricts any feature.
How accurate is the Qibla Direction Calculator?
The great-circle bearing is mathematically exact for the entered coordinates, accurate to a fraction of a degree. The practical accuracy depends on the precision of your location — a city-level entry is within a degree or two, which is far tighter than the 45° arc most scholars consider acceptable for prayer direction. Enter your exact coordinates for the most precise bearing.

Explore the full Islamic toolkit

Every CalcaTools Islamic calculator — zakat and charity, prayer times, the Hijri calendar, halal finance, and family tools — cross-checked against the Umm al-Qura calendar and classical fiqh references.