Qibla · Taiwan
Qibla direction in Keelung
To face the Kaaba in Keelung, turn to 286.6° measured clockwise from true north, which is west (16.6° north of west). The Sacred Mosque in Mecca lies 8,242 km away along the shortest path over the globe, and this is the direction the mihrabs of the mosques in Keelung should follow.
On the compass the green needle points to 286.6°. If your phone shows true north, rotate until the heading reads 287°; with a classic magnetic compass, first correct for the local magnetic declination, which can shift the needle by several degrees.
Find the Qibla with your phone
How to face the Qibla in Keelung
Stand where you will pray and find north first. Then turn towards west and move a further 16.6° towards north: the result is the bearing of 286.6°. A small error of a few degrees is forgiven by most scholars, but aiming simply at west would leave you about 17° off.
Scholars agree that someone who can see the Kaaba must face it exactly, while someone far away faces its direction (jihat al-Ka‘bah) as precisely as reasonably possible. If a mosque is nearby, its mihrab and prayer lines are the easiest reference, since they were set when the building was laid out. At home, mark the direction once with tape or a small arrow so the whole family prays the same way.
Why a flat map shows a different direction
This is a place where maps mislead badly: a straight line on a flat map from Keelung to Mecca points to 267.2° (west), a full 19.4° away from the true Qibla of 286.6° (west). The map line keeps one compass heading and is 134 km longer than the great-circle route. Because the Earth is a sphere, the shortest way to Mecca from Keelung first heads west, and that is the direction to face.
The angle on this page is the initial bearing of the great circle from 25.1309° N, 121.7409° E to the Kaaba (21.4225° N, 39.8262° E). It is the method used by mosque architects and by every serious Qibla calculator, and it gives one exact answer for each point on Earth.
Distance from Keelung to Mecca and Medina
Mecca is 8,242 km from Keelung as the crow flies, and Medina, the city of the Prophet ﷺ, is 8,141 km away. A direct flight would take roughly 10 h 12 min, although most pilgrims from Keelung connect through Jeddah or Medina airport.
Clocks in Keelung run 5 hours ahead of Mecca all year. Prayer times, however, depend on the sun at your own location, so always use the prayer times of Keelung rather than those of Mecca.
Finding the Qibla with the sun in Keelung
On 93 days of 2027, the sun passes exactly through the Qibla direction of Keelung while it is well above the horizon. At that moment, facing the sun means facing Mecca. The effect is most frequent in July (31 days); for example, on 15 May 2027 it happens at 17:44 local time.
On 260 days the sun stands exactly opposite the Qibla: then the shadow of any vertical object, a pole, a door frame or a plumb line, points straight towards Mecca. This is most frequent in March (31 days), for instance on 15 February 2027 at 06:54.
| Date | Sun in the Qibla direction (face the sun) | Sun opposite (shadows point to the Qibla) |
|---|---|---|
| 1 January 2027 | — | — |
| 15 January 2027 | — | — |
| 1 February 2027 | — | — |
| 15 February 2027 | — | 06:54 |
| 1 March 2027 | — | 07:31 |
| 15 March 2027 | — | 08:06 |
| 1 April 2027 | — | 08:48 |
| 15 April 2027 | — | 09:22 |
| 1 May 2027 | — | 10:02 |
| 15 May 2027 | 17:44 | 10:35 |
| 1 June 2027 | 17:12 | 11:11 |
| 15 June 2027 | 16:59 | 11:28 |
| 1 July 2027 | 17:05 | 11:30 |
| 15 July 2027 | 17:26 | 11:14 |
| 1 August 2027 | 18:02 | 10:39 |
| 15 August 2027 | — | 10:02 |
| 1 September 2027 | — | 09:13 |
| 15 September 2027 | — | 08:31 |
| 1 October 2027 | — | 07:42 |
| 15 October 2027 | — | 07:00 |
| 1 November 2027 | — | — |
| 15 November 2027 | — | — |
| 1 December 2027 | — | — |
| 15 December 2027 | — | — |
Twice a year the sun passes directly over the Kaaba, on 28 May 2027 and 16 July 2027. Both moments are in daylight in Keelung: at 17:18 and 17:27 local time, face the sun and you face the Qibla exactly, anywhere in the city.
Keelung compared with other cities
The Qibla here is practically the same as in Taipei (286.6°), and Mecca is 18 km farther away. The nearest city with its own Qibla page, Taipei (23 km), prays towards 286.6°, a difference of 0.1°.
Across the 13 cities in Taiwan on this site, the Qibla ranges from 286.4° in Hsinchu to 287.1° in Taitung, a spread of 0.6°. The difference is small, yet each city should still use its own bearing.
See all cities on the Qibla page for Taiwan.
Qibla in cities near Keelung
Qibla in Keelung: questions and answers
What is the Qibla direction in Keelung?
It is 286.6° from true north, which is west: 16.6° north of west.
How far is Keelung from Mecca?
8,242 km in a straight line over the globe, and 8,141 km to Medina.
When does the sun show the Qibla in Keelung?
On 93 days of 2027 the sun stands in the Qibla direction; the table on this page gives the exact time for the 1st and 15th of each month.
Why is the Qibla in Keelung not the direction shown on a map?
Flat maps distort directions. The line on a map points to 267.2°, but the shortest route on the globe leaves Keelung at 286.6°, and that is the Qibla.
Does the Qibla change during the year?
No. The direction of 286.6° is fixed; only the times when the sun lines up with it change from day to day.
