Home › Routes › Jakarta to Yogyakarta
How to get from Jakarta to Yogyakarta
KAI trains run from Jakarta Gambir and Pasar Senen to Yogyakarta in about 6–8 h, several times a day and overnight. Flights take about 1 h 15 to Yogyakarta International Airport, which is about 1 h from the city. Driving on the Trans-Java toll road takes about 8–9 h.
Best option: Train. Trains run from central Jakarta to central Yogyakarta, avoiding the long airport transfers, and overnight services save a hotel night.
All the ways to make the trip
| How | Time | How often | Price* | Good to know |
|---|---|---|---|---|
| train KAI long-distance trains from Jakarta Gambir or Pasar Senen to Yogyakarta (Tugu) station, including the Taksaka executive service | about 6–8 h | several a day, including overnight | about IDR 300,000–700,000 in executive class; economy cheaper | Book on the KAI Access app or online; trains fill at weekends and holidays. |
| flight Flights from Soekarno-Hatta (CGK) or Halim (HLP) to Yogyakarta International Airport (YIA) in Kulon Progo | about 1 h 15 in the air; about 4–5 h door to door | many a day | about IDR 700,000–1,500,000 one way | YIA is about 1 h from central Yogyakarta by airport train or road. |
| car Trans-Java toll road east, then south to Yogyakarta (about 550 km) | about 8–9 h | fuel plus tolls of roughly IDR 500,000–700,000 | Traffic leaving Jakarta and around holidays (Lebaran) can add hours. |
*Approximate prices and times for 2026. Timetables change by season: check with the operator before you travel.
Open the route in Google Maps →
Book the trip
Partner links: TonyPlan may earn a small commission at no extra cost to you.
Tips
- Avoid travelling around Lebaran (Eid), when trains and roads are extremely busy.
- Overnight trains save a hotel night; bring a jacket, as carriages are cold.
- Tugu station is next to Malioboro Street in central Yogyakarta.
- Foreigners need a passport to buy and board KAI trains.
Common questions
How long is the train from Jakarta to Yogyakarta?
About 6–8 h, depending on the train and class. Executive trains such as the Taksaka leave from Gambir; others leave from Pasar Senen. Arrival is at Yogyakarta's Tugu station, next to Malioboro. Book on the KAI Access app or online, and carry your passport.
Is it better to fly or take the train?
The flight is about 1 h 15, but Yogyakarta International Airport is about 1 h from the city and Jakarta's airports can be slow to reach. Door to door, flying saves only a few hours. The train is often more relaxing, and overnight trains save a hotel night.
What is the cheapest way from Jakarta to Yogyakarta?
Economy trains are usually the cheapest, followed by business and executive classes. Low-cost flights booked early can also be cheap, but add airport transfers. Long-distance buses run too but take longer. Book trains early for the best fares, as the cheapest seats sell out first, particularly at weekends.
Do I need to book the train in advance?
Yes, especially for weekends and holidays, when executive trains sell out. Tickets open for sale well in advance on the KAI Access app or website. Around Lebaran, demand is extreme, so book as early as tickets are released, or avoid travelling then.
Compiled by TonyPlan from operator and transport information and travel knowledge; updated 2026-10-05. Anything we could not confirm is marked as approximate.