Qibla · Central Java

Qibla direction in Pekalongan

To face the Kaaba in Pekalongan, turn to 294.7° measured clockwise from true north, which is north-west (24.7° north of west). The Sacred Mosque in Mecca lies 8,235 km away along the shortest path over the globe, and this is the direction the mihrabs of the mosques in Pekalongan should follow.

Line up the top of your phone or compass with the green needle: it marks 294.7°, the Qibla of Pekalongan. Phone compasses usually display true north, so a reading of 295° is all you need; a needle compass reads magnetic north and needs the local declination added or subtracted first.

Find the Qibla with your phone

How to face the Qibla in Pekalongan

Stand where you will pray and find north first. Then turn towards west and move a further 24.7° towards north: the result is the bearing of 294.7°. A small error of a few degrees is forgiven by most scholars, but aiming simply at west would leave you about 25° off.

Facing the Qibla is a condition of the prayer. Whoever prays inside the Sacred Mosque faces the Kaaba itself; whoever is far away, as in Pekalongan, faces its direction and makes a sincere effort to be accurate. Any of the mosques of Pekalongan is a handy reference, because the prayer rows were aligned when it was built. Once you know the direction at home, a discreet mark on the wall saves you from checking again.

Why a flat map shows a different direction

A straight line drawn on a flat (Mercator) map from Pekalongan to Mecca points to 292.4° (west), 2.2° away from the correct 294.7°. That map line is a rhumb line: it keeps the same compass heading all the way, but it is 12 km longer than the true shortest route. The Qibla follows the great circle, the shortest path on the curved Earth, which is why the bearing differs.

How is the figure of 294.7° obtained? From the coordinates of Pekalongan (6.8886° S, 109.6753° E) and of the Kaaba (21.4225° N, 39.8262° E), spherical trigonometry gives the starting bearing of the great circle joining them. Mosque architects and astronomical Qibla tables rely on exactly the same calculation.

Distance from Pekalongan to Mecca and Medina

Mecca is 8,235 km from Pekalongan as the crow flies, and Medina, the city of the Prophet ﷺ, is 8,342 km away. A direct flight would take roughly 10 h 11 min, although most pilgrims from Pekalongan connect through Jeddah or Medina airport.

Clocks in Pekalongan run 4 hours ahead of Mecca all year. Prayer times, however, depend on the sun at your own location, so always use the prayer times of Pekalongan rather than those of Mecca.

Finding the Qibla with the sun in Pekalongan

On 221 days of 2027, the sun passes exactly through the Qibla direction of Pekalongan while it is well above the horizon. At that moment, facing the sun means facing Mecca. The effect is most frequent in May (31 days); for example, on 15 March 2027 it happens at 12:30 local time.

On 144 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 January (31 days), for instance on 1 January 2027 at 08:32.

Sun in the Qibla direction in Pekalongan, 2027 (local time, 24-hour clock). — means it does not happen that day.
DateSun in the Qibla direction (face the sun)Sun opposite (shadows point to the Qibla)
1 January 2027—08:32
15 January 2027—09:12
1 February 2027—10:12
15 February 2027—11:01
1 March 2027—11:47
15 March 202712:30—
1 April 202713:22—
15 April 202714:04—
1 May 202714:54—
15 May 202715:39—
1 June 202716:29—
15 June 202716:58—
1 July 202716:57—
15 July 202716:28—
1 August 202715:38—
15 August 202714:51—
1 September 202713:51—
15 September 202713:01—
1 October 202712:04—
15 October 2027—11:14
1 November 2027—10:14
15 November 2027—09:28
1 December 2027—08:42
15 December 2027—08:19

Twice a year the sun passes directly over the Kaaba, on 28 May 2027 and 16 July 2027. Both moments are in daylight in Pekalongan: at 16:18 and 16:27 local time, face the sun and you face the Qibla exactly, anywhere in the city.

Pekalongan compared with other cities

Compared with Jakarta, 322 km away, the Qibla in Pekalongan is turned 0.5° further anticlockwise (294.7° against 295.2°), and Mecca is 315 km farther away. The nearest city with its own Qibla page, Pemalang (32 km), prays towards 294.7°, a difference of 0.1°.

Across the 140 cities in Indonesia on this site, the Qibla ranges from 290.2° in Merauke to 295.5° in Pelabuhanratu, a spread of 5.3°. That is too large to use one national direction, so each city has its own bearing.

See all cities on the Qibla page for Indonesia.

Qibla in cities near Pekalongan

Qibla in Pekalongan: questions and answers

What is the Qibla direction in Pekalongan?

It is 294.7° from true north, which is north-west: 24.7° north of west.

How far is Pekalongan from Mecca?

8,235 km in a straight line over the globe, and 8,342 km to Medina.

When does the sun show the Qibla in Pekalongan?

On 221 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.

Is the Qibla the same everywhere in Indonesia?

No. It ranges from 290.2° to 295.5° across the country, so each city has its own bearing.

Does the Qibla change during the year?

No. The direction of 294.7° is fixed; only the times when the sun lines up with it change from day to day.

More for Pekalongan