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.

427 km apart (straight line)Day trip: noTrain · Flight · Car

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

HowTimeHow oftenPrice*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 hseveral a day, including overnightabout IDR 300,000–700,000 in executive class; economy cheaperBook 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 doormany a dayabout IDR 700,000–1,500,000 one wayYIA 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 hfuel plus tolls of roughly IDR 500,000–700,000Traffic 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

Compare flightsJakarta to Yogyakarta and backHire a carPick up in JakartaBook a transferDoor to door on arrivalHotels in YogyakartaCompare prices for your dates

Partner links: TonyPlan may earn a small commission at no extra cost to you.

Tips

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.

Yogyakarta travel guideHow many days in YogyakartaWhere to stay in YogyakartaJakarta travel guide

Compiled by TonyPlan from operator and transport information and travel knowledge; updated 2026-10-05. Anything we could not confirm is marked as approximate.

Some links on this page are partner links. If you book through them TonyPlan earns a small commission — the price you pay is exactly the same.