Qibla finder / Indonesia
Qibla direction from Yogyakarta, 294.7° west-northwest
From Yogyakarta, face 294.7° clockwise from true north to face the Kaaba in Makkah, 8,347 km away. With a magnetic compass, face 293.9°.
- Distance to the Kaaba
- 8,347 km (5,187 miles)
- Magnetic compass bearing
- 293.9°
- Magnetic declination
- 0.8° east
- City centre
- -7.7956, 110.3695
How to face the qibla
Stand with a compass and turn until it reads 293.9°. That is 294.7° from true north, adjusted for the 0.8° east magnetic declination in Yogyakarta. Or open the live compass on your phone.
Worked out for the centre of Yogyakarta. Across the city the direction changes by less than a degree.
Guide
Why the qibla is west-northwest from Yogyakarta
The qibla is the direction of the Kaaba, measured along the shortest path over the globe. From Yogyakarta that path leaves heading west-northwest, at 294.7° from true north. Flat maps distort this route, so it can look wrong on a map even though it is the true direction.
A compass points to magnetic north, which in Yogyakarta is 0.8° east of true north this year, by the World Magnetic Model 2025. That is why the compass bearing, 293.9°, differs from the true bearing.
Someone far from Makkah faces the direction (jihah) of the Kaaba. A small turn to the left or right does not affect the prayer, and a prayer made after a genuine effort stays valid even if you later learn you were slightly off.
Other madhhabs
- Shafi'i
- The stronger view is to aim at the Kaaba itself by your best effort, even from far away.
- Maliki, Hanbali
- Facing the direction is enough, as in the Hanafi school.
Qibla from other cities in Indonesia
| City | Qibla | Direction |
|---|---|---|
| Jakarta | 295.2° | WNW |
| Surabaya | 294.0° | WNW |
| Bandung | 295.2° | WNW |
| Medan | 292.8° | WNW |
| Semarang | 294.5° | WNW |
| Makassar | 292.5° | WNW |
| Palembang | 294.5° | WNW |
| Denpasar | 293.8° | WNW |
| Banda Aceh | 292.2° | WNW |
| Tangerang | 295.2° | WNW |
| Depok | 295.2° | WNW |
| Bekasi | 295.1° | WNW |
| Balikpapan | 292.2° | WNW |
Checked by our team. For a more accurate answer to your own situation, consult a scholar.
Questions
Good to know
What is the qibla direction from Yogyakarta?
The qibla from Yogyakarta is 294.7° from true north, which is west-northwest. With an ordinary magnetic compass, face 293.9°.
How far is Yogyakarta from Makkah?
About 8,347 km (5,187 miles) in a straight line over the globe.
Why is the qibla west-northwest from Yogyakarta?
The qibla follows the shortest route over the curved Earth to the Kaaba, called a great circle. On a flat map this route looks curved, so the direction can look different from what a map suggests.
How exact do I need to be?
In the Hanafi school, someone far from Makkah faces the general direction of the Kaaba. A small turn to either side does not affect the prayer. Do your best, or follow the direction of your local masjid.