How to travel from Yogyakarta to Jakarta by train

train at Yogyakarta Railway Station
510km
18 per day
6h - 8h
IDR 270k-980k
Reverse route

The journey from Yogyakarta to Jakarta is one of Indonesia’s most popular rail routes, connecting the cultural heart of Java with the capital. A variety of trains run along the line, from faster services with limited stops to slower options that call at more stations.

Journey times range from six to eight hours, depending on the service, but it remains one of the most comfortable and straightforward ways to travel between the two cities. With centrally located stations, regular departures, and a range of travel classes, many travellers choose the train over flying.

Whatever option you go for, this guide has all the information you need on routes, timetables, ticket booking, and prices.

Route map and details

After departing from the popular tourist destination of Yogyakarta, the line heads inland across Central Java, passing through rice fields, small towns, and rural landscapes before reaching the northern port city of Cirebon.

From there, the route continues for around 500 km towards Jakarta. After passing Jatinegara, the line splits, with trains terminating at either Gambir or Pasar Senen stations, both located less than two kilometres apart in the heart of the city.

Timetables

Trains from Yogyakarta to Jakarta arrive at two stations in the capital: Gambir and Pasar Senen.

Yogyakarta to Gambir timetable

TrainYogyakartaGambir
Taksaka07:3013:35
Argo Lawu09:1815:25
Manahan10:4017:31
Argo Semeru12:5619:32
Taksaka14:4520:54
Gajayana20:2403:05
Taksaka21:0503:15
Argo Dwipangga21:2303:30
Batavia22:5607:05
Bima23:1105:45
Manahan23:2706:33
11 trains per day
Average journey time: 6 hours 40 minutes

Yogyakarta to Pasar Senen timetable

TrainYogyakartaPasar Senen
Fajar Utama07:0014:26
Bogowonto08:2315:54
Mataram09:3416:34
Madiun Jaya10:0317:04
Bangunkarta10:5018:33
Senja Utama17:3000:32
Senja Utama19:4702:51
7 trains per day
Average journey time: 7 hours
view out of the window on the Jakarta to Bandung train
view out of the window on the Jakarta to Yogyakarta train

How to buy tickets

The easiest way to buy train tickets in Indonesia is online rather than going to the station. You do pay a very small commission but the ease and convenience makes it worthwhile in our opinion.

For the normal train, Tiket is the best place to book and has a simple to use interface and accepts international credit cards. It’s also a good place to check availability, timetables and prices.

Yogyakarta Railway Station
platform at Yogyakarta Railway Station

How much does it cost?

Several types of train operate on the route from Yogyakarta to Jakarta, including some of the country’s best trains (branded as ‘Argo’), which have airline-style lie-flat beds and complimentary meals and refreshments.

On the Argo trains to Gambir station, the most expensive option are in the Panoramic carriages, costing from IDR980,000 (US$60). As you drop down the various classes on this and other trains (Luxury, Executive, Economy), tickets can be bought for as little as IDR270,000 (US$15).


Book your train travel:

Loading train search engine…