Skip to content
induwara.lk
Premium
induwara.lkSri Lanka · Utility

Sri Lanka Qibla Direction Finder

Find the exact Qibla — the direction to the Kaaba in Makkah — from any city in Sri Lanka. Get the true-north bearing in degrees, a live rotating compass, and the distance to Makkah. Free, no signup, computed in your browser.

By Induwara AshinsanaUpdated Jul 9, 2026
Find your Qibla direction
Your location
NESW

294.8°

Qibla bearing
294.8°
WNW · west-northwest
Compass point
WNW
16-point rose from true north
Distance to Makkah
4,589 km
Great-circle (shortest path)
Your coordinates
6.9271°, 79.8612°
Observer position used

Qibla by Sri Lankan city

CityQibla (true N)PointTo Makkah
Colombo294.8°WNW4,589 km
Kandy294.2°WNW4,650 km
Galle295.6°WNW4,666 km
Jaffna291.8°WNW4,485 km
Negombo294.5°WNW4,574 km
Batticaloa293.4°WNW4,738 km
Trincomalee292.7°WNW4,651 km
Kalmunai293.7°WNW4,766 km
Kurunegala294.0°WNW4,614 km
Anuradhapura293.2°WNW4,581 km
Puttalam293.6°WNW4,535 km
Matara295.5°WNW4,704 km

Bearings are measured from true north. A magnetic compass in Sri Lanka reads about 1–2° off true north (WMM declination), so nudge a phone compass a degree or two if it shows magnetic north. Kaaba reference: 21.4225°N, 39.8262°E.

How it works

The Qibla is the direction a Muslim faces during prayer: the shortest-path (great-circle) direction from where you stand to the Kaaba in Makkah, at latitude 21.4225°N and longitude 39.8262°E. On a sphere the shortest route between two points is an arc of a great circle, and the direction you set off in — the initial bearing or forward azimuth — is the Qibla. Because that arc bends toward the pole, the direction from Sri Lanka is west-northwest rather than due west.

Let your position be latitude φ₁, longitude λ₁ and the Kaaba be φ₂, λ₂. The tool converts everything to radians and applies the standard initial-bearing formula:

Δλ      = λ₂ − λ₁
y       = sin(Δλ) · cos(φ₂)
x       = cos(φ₁) · sin(φ₂) − sin(φ₁) · cos(φ₂) · cos(Δλ)
θ       = atan2(y, x)
bearing = (θ° + 360) mod 360

The result is the angle clockwise from true north, from 0° to 360°. A 16-point compass label (N, NNE, … WNW, NW) is assigned by rounding the bearing to the nearest 22.5°. To prove the number, the tool independently recomputes it with the classic Qibla cotangent form — θ = atan2(sin Δλ, cos φ₁ · tan φ₂ − sin φ₁ · cos Δλ) — which is the same great-circle bearing rearranged, and confirms both agree to within 0.01°.

The distance to Makkah uses the haversine formula on a sphere of mean radius R = 6,371.0088 km: a = sin²(Δφ/2) + cos φ₁ · cos φ₂ · sin²(Δλ/2), then d = 2R · asin(√a). For Colombo this gives 4,589 km.

One caveat: bearings are relative to true north, the geographic pole. A magnetic compass points at magnetic north, which in Sri Lanka sits about 1–2° west of true north (the NOAA World Magnetic Model declination). That gap is far too small to affect the validity of prayer, so the tool reports the true bearing and notes the correction rather than bundling a magnetic model. When a phone exposes a live compass heading, the dial rotates so you can turn to face the Qibla directly.

Worked examples

Colombo6.9271°N, 79.8612°E

294.8°(4,589 km to Makkah)

  1. Δλ = 39.8262 − 79.8612 = −40.035°
  2. y = sin(−40.035°)·cos(21.4225°) = −0.5988
  3. x = cos(6.9271°)·sin(21.4225°) − sin(6.9271°)·cos(21.4225°)·cos(−40.035°) = 0.2767
  4. θ = atan2(−0.5988, 0.2767) = −65.20°
  5. bearing = −65.20 + 360 = 294.79° → WNW

Jaffna9.6615°N, 80.0255°E

291.8°(4,485 km to Makkah)

  1. Northern-most reference city — smallest bearing on the island.
  2. Δλ = 39.8262 − 80.0255 = −40.199°
  3. Same great-circle formula, higher latitude φ₁ = 9.6615°.
  4. θ maps to bearing = 291.83° → WNW
  5. Distance to Makkah = 4,485 km

Galle6.0535°N, 80.2210°E

295.6°(4,666 km to Makkah)

  1. Southern-most reference city — largest bearing on the island.
  2. bearing = 295.55° → WNW
  3. Jaffna 291.8° vs Galle 295.6° = a 3.7° spread,
  4. which confirms the Qibla is not identical everywhere in Sri Lanka.
  5. Distance to Makkah = 4,666 km

Frequently asked questions

Sources & references

Bearings for Colombo, Kandy, and Jaffna were last cross-checked against IslamicFinder and Aladhan Qibla output on 2026-07-09 — all within ±0.2°. The great-circle method matches the convention used by every mainstream Qibla service.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a bug, edge case, or want to suggest an improvement?

Email me at [email protected] — most fixes ship within 24 hours.