How to Get from Yogyakarta to Jakarta
Find the best way from Yogyakarta to Jakarta. Compare train, flight and bus options, travel times and tips for your Indonesian journey.
Last updated: October 29, 2026

Photo: Gunawan Kartapranata / Wikimedia Commons, CC BY-SA 3.0
Contents
Leaving behind the artistic soul and ancient temple complexes of Yogyakarta for the high-octane energy of Jakarta is a classic passage across the island of Java. While Yogyakarta moves to the gentle rhythm of gamelan and traditional shadow puppets, Jakarta greets you with a skyline of gleaming skyscrapers and a legendary street food scene that never sleeps. This journey takes you from the cultural heartland of the Javanese people to the sprawling, modern megalopolis that serves as Indonesia's powerhouse.
The route across Central and West Java is remarkably well-connected, offering a fascinating look at the changing Indonesian landscape. You will transition from the emerald green rice paddies and volcanic backdrops surrounding Yogyakarta to the industrial corridors and urban density of the capital. Whether you prefer the scenic romance of the rails, the speed of a domestic flight, or the affordability of a long-distance coach, there are several reliable ways to make the trip. You can easily compare schedules and book tickets for these options on GoAsia.cc to ensure a smooth transition between these two iconic cities.
Yogyakarta to Jakarta by Train
For many travelers, the train is the gold standard for traveling between Yogyakarta and Jakarta. It offers a good balance of comfort, scenic views, and efficiency, and it lands you in the heart of Jakarta, often at Gambir Station, which is conveniently located near the National Monument. KA Gajayana, for example, runs from Gambir via Purwokerto and Yogyakarta to Malang.[1] Intercity tickets go on sale in the Access by KAI app 45 days before departure, and foreign passengers enter their passport number when they book.[2] Executive class has reclining seats, air conditioning and plenty of legroom, and economy trains are clean and efficient, a great way to travel like a local while keeping costs down. Book early to secure a good seat.

Yogyakarta to Jakarta by Flight
When time is of the essence, flying is the fastest way to bridge the gap. Super Air Jet, Citilink, Batik Air, TransNusa and Garuda Indonesia fly non-stop from Yogyakarta International Airport (YIA) to Jakarta, and the flight takes about 1 hour 10 minutes. Fares start at around 714,000 rupiah.[3] It is the most expensive option, but it saves you most of a day of overland travel.
The flight itself is short, so factor in the trip to YIA and the commute from Jakarta's Soekarno-Hatta (CGK) airport into the city traffic. The airport train from Yogyakarta Station to YIA runs from 04:20 to 21:30 and costs 20,000 rupiah on the regular service or 40,000 to 60,000 rupiah on the express.[4]
Yogyakarta to Jakarta by Bus
The bus is the most flexible and often the most affordable mode of transport, with a large variety of departure times throughout the day and night. On booking platforms, tickets cost about $10 to $37 depending on the class (October 2026). The trip takes from about 9 hours, and up to 17 hours depending on traffic and the specific route.[5] Luxury buses are a favorite for those who want to save on a night's accommodation by traveling overnight.
Comparing Your Options
| Mode | Departs From | Good For |
|---|---|---|
| Train | Yogyakarta, arriving at Gambir | Comfort and scenery without road traffic |
| Flight | Yogyakarta International Airport (YIA) | Speed |
| Bus | Yogyakarta | Flexible departure times, lowest fares |
Tips for Traveling from Yogyakarta to Jakarta
- Book Train Tickets Early: The Yogyakarta to Jakarta train route is incredibly popular, especially on weekends and public holidays. Tickets can sell out weeks in advance, so use GoAsia.cc to secure your seat early.
- Mind the Station: Yogyakarta has two main stations, Tugu (Yogyakarta) and Lempuyangan. Double-check which one your train departs from before heading out.
- Prepare for Aircon: Whether on the train or a luxury bus, the air conditioning in Indonesia is often set to "arctic." Bring a light jacket or a sarong to stay warm during the journey.
- Traffic Warnings: If you choose the bus, be prepared for unpredictable traffic as you enter the outskirts of Jakarta or Bekasi. A journey can easily stretch longer during peak commute times or holiday periods.
- Airport Transfer: If flying, consider taking the dedicated airport train (Railink) from Yogyakarta city center to YIA. It is much more predictable than taking a taxi through local traffic.
Timetable
| Flight Yogyakarta - Jakarta $ 78.47–114.57 1h 20m – 1h 30m | |
|
|
| Bus Yogyakarta - Jakarta $ 10.39–36.92 9h – 17h | |
|
|
| Train Yogyakarta - Jakarta $ 21.16–38.79 6h 48m – 7h 52m | |
|
| Bus Yogyakarta - Bekasi $ 11.09–36.92 8h – 17h | |
|
Frequently Asked Questions
Use the booking tool on this page to compare the transport options currently available from Yogyakarta to Jakarta, including current prices and schedules.
The cheapest way to travel this route is by bus, with tickets starting at about $10 on booking platforms (October 2026). Prices vary depending on the operator and the class.
The fastest way to get to Jakarta is by taking a flight, which takes about 1 hour 10 minutes. However, you should also factor in the time needed for airport transfers and security checks.
Flights take about 1 hour 10 minutes, the train takes several hours, and buses take from about 9 hours and up to 17 hours depending on traffic and the number of stops.
Most travelers prefer arriving at Gambir Station because it is located in Central Jakarta, close to major hotels and attractions. Some economy services may arrive at Pasar Senen, which is also well-connected but slightly further from the main tourist hubs.
Food is usually available on long-distance trains and buses, or at the stations and rest stops along the way. It is best to bring your own snacks for the journey.
Yes, overnight travel is a very common practice in Indonesia, and many travelers use night buses and trains to save a night's accommodation.
Sources and background
Numbers in the text such as [1] refer to these sources.
- [1] PT Kereta Api Indonesia (KAI): Menyusuri Pulau Jawa dengan Kereta, Kenali 5 Relasi Terpanjang di Indonesia. Retrieved October 15, 2026.
- [2] PT Kereta Api Indonesia (KAI): Bagaimana cara melakukan pemesanan tiket? (Contact Center KAI). Retrieved October 15, 2026.
- [3] AirAsia: Cheap flights from Jakarta (CGK) to Yogyakarta Kulon Progo (YIA). Retrieved October 15, 2026.
- [4] Railink: Complete Guide to Taking the Airport Train from Yogyakarta Station to Yogyakarta International Airport (YIA). Retrieved October 15, 2026.
- [5] 12Go: 12Go timetable: Yogyakarta to Jakarta. Retrieved October 27, 2026.
Guide prices and journey times are indicative, not live quotes. A booked package may include transfers and waiting time as well as the main journey. Check the selected offer, pickup point and current conditions before booking.