GoAsia
Indonesia

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

How to Get from Yogyakarta to Jakarta

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.

Train, Bus, Flight and Ferry tickets

Booking and payment are handled by 12Go, not GoAsia. We may receive a commission when you book through our links.

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.

A platform at Gambir station in Jakarta
A platform at Gambir station in JakartaPhoto: Gunawan Kartapranata / Wikimedia Commons, CC BY-SA 4.0

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

ModeDeparts FromGood For
TrainYogyakarta, arriving at GambirComfort and scenery without road traffic
FlightYogyakarta International Airport (YIA)Speed
BusYogyakartaFlexible 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
  • →  Economy 06:15, 08:00, 09:40, 11:45, 15:30
Bus Yogyakarta - Jakarta $ 10.39–36.92 9h – 17h
  • →  Executive 06:00, 06:30, 06:45, 06:50, 07:00, 07:30, 08:00, 08:15, 08:50, 09:00, 12:30, 12:50, 13:00, 13:30, 13:35, 13:40, 14:00, 14:05, 14:10, 14:15, 14:25, 14:30, 14:45, 15:30, 15:40, 16:00, 16:30, 16:45, 16:50, 17:00, 17:30, 17:55, 18:00, 18:05, 18:20, 18:30, 18:55, 19:00
  • →  Express 06:30, 06:45, 06:50, 07:00, 08:00, 17:00, 18:15, 18:30
  • →  Luxury 15:00, 15:30, 16:00, 18:00
Train Yogyakarta - Jakarta $ 21.16–38.79 6h 48m – 7h 52m
  • →  Economy CB 07:00, 09:34, 10:50, 17:30, 19:47, 22:56
  • →  Executive AA 00:45, 07:00, 23:27
Bus Yogyakarta - Bekasi $ 11.09–36.92 8h – 17h
  • →  Executive 06:00, 06:30, 06:45, 06:50, 07:00, 07:30, 08:00, 08:15, 08:30, 08:50, 09:00, 13:00, 13:30, 13:35, 13:40, 14:00, 14:05, 14:10, 14:15, 14:25, 14:30, 14:45, 15:30, 15:40, 16:00, 16:30, 16:45, 16:50, 17:00, 17:30, 17:55, 18:00, 18:05, 18:20, 18:30, 18:55, 19:00
  • →  Express 06:30, 06:45, 06:50, 07:00, 08:00, 17:00, 18:15, 18:30
  • →  Luxury 15:00, 15:30, 16:00, 18:00

Frequently Asked Questions

How can I book tickets from Yogyakarta to Jakarta?

Use the booking tool on this page to compare the transport options currently available from Yogyakarta to Jakarta, including current prices and schedules.

What is the cheapest way to get from Yogyakarta to Jakarta?

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.

What is the fastest way to get from Yogyakarta to Jakarta?

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.

How long does it take to get from Yogyakarta to Jakarta?

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.

Which train station in Jakarta should I arrive at?

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.

Are meals provided on the journey?

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.

Is it safe to travel overnight by bus or train?

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. [1] PT Kereta Api Indonesia (KAI): Menyusuri Pulau Jawa dengan Kereta, Kenali 5 Relasi Terpanjang di Indonesia. Retrieved October 15, 2026.
  2. [2] PT Kereta Api Indonesia (KAI): Bagaimana cara melakukan pemesanan tiket? (Contact Center KAI). Retrieved October 15, 2026.
  3. [3] AirAsia: Cheap flights from Jakarta (CGK) to Yogyakarta Kulon Progo (YIA). Retrieved October 15, 2026.
  4. [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.