Qibla · Central Java
Qibla direction in Klaten
To face the Kaaba in Klaten, turn to 294.6° measured clockwise from true north, which is north-west (24.6° north of west). The Sacred Mosque in Mecca lies 8,367 km away along the shortest path over the globe, and this is the direction the mihrabs of the mosques in Klaten should follow.
Line up the top of your phone or compass with the green needle: it marks 294.6°, the Qibla of Klaten. 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 Klaten
Stand where you will pray and find north first. Then turn towards west and move a further 24.6° towards north: the result is the bearing of 294.6°. 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 Klaten, faces its direction and makes a sincere effort to be accurate. Any of the mosques of Klaten 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
On a flat (Mercator) map, the straight line from Klaten to Mecca points to 292.7°, only 1.9° away from the true Qibla. Here the two methods practically agree, so a map gives a usable first idea, although the 294.6° bearing remains the exact one.
How is the figure of 294.6° obtained? From the coordinates of Klaten (7.7058° S, 110.6064° 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 Klaten to Mecca and Medina
Mecca is 8,367 km from Klaten as the crow flies, and Medina, the city of the Prophet ﷺ, is 8,475 km away. A direct flight would take roughly 10 h 21 min, although most pilgrims from Klaten connect through Jeddah or Medina airport.
Clocks in Klaten 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 Klaten rather than those of Mecca.
Finding the Qibla with the sun in Klaten
On 225 days of 2027, the sun passes exactly through the Qibla direction of Klaten 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:33 local time.
On 138 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:39.
| Date | Sun in the Qibla direction (face the sun) | Sun opposite (shadows point to the Qibla) |
|---|---|---|
| 1 January 2027 | — | 08:39 |
| 15 January 2027 | — | 09:18 |
| 1 February 2027 | — | 10:17 |
| 15 February 2027 | — | 11:05 |
| 1 March 2027 | — | — |
| 15 March 2027 | 12:33 | — |
| 1 April 2027 | 13:24 | — |
| 15 April 2027 | 14:06 | — |
| 1 May 2027 | 14:55 | — |
| 15 May 2027 | 15:39 | — |
| 1 June 2027 | 16:29 | — |
| 15 June 2027 | 16:57 | — |
| 1 July 2027 | 16:56 | — |
| 15 July 2027 | 16:28 | — |
| 1 August 2027 | 15:39 | — |
| 15 August 2027 | 14:53 | — |
| 1 September 2027 | 13:54 | — |
| 15 September 2027 | 13:04 | — |
| 1 October 2027 | 12:07 | — |
| 15 October 2027 | — | 11:17 |
| 1 November 2027 | — | 10:18 |
| 15 November 2027 | — | 09:33 |
| 1 December 2027 | — | 08:48 |
| 15 December 2027 | — | 08:26 |
Twice a year the sun passes directly over the Kaaba, on 28 May 2027 and 16 July 2027. Both moments are in daylight in Klaten: at 16:18 and 16:27 local time, face the sun and you face the Qibla exactly, anywhere in the city.
Klaten compared with other cities
Compared with Jakarta, 447 km away, the Qibla in Klaten is turned 0.5° further anticlockwise (294.6° against 295.2°), and Mecca is 446 km farther away. The nearest city with its own Qibla page, Yogyakarta (29 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 Klaten
- Yogyakarta294.7° · 29 km
- Surakarta294.5° · 30 km
- Salatiga294.6° · 43 km
- Magelang294.7° · 50 km
- Ungaran294.5° · 67 km
- Purwodadi Grobogan294.4° · 77 km
Qibla in Klaten: questions and answers
What is the Qibla direction in Klaten?
It is 294.6° from true north, which is north-west: 24.6° north of west.
How far is Klaten from Mecca?
8,367 km in a straight line over the globe, and 8,475 km to Medina.
When does the sun show the Qibla in Klaten?
On 225 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.6° is fixed; only the times when the sun lines up with it change from day to day.
