How to travel from Jakarta to Yogyakarta by train

Indonesia high speed train
510km
18 per day
6h - 8h
IDR 240k-850k
Reverse route

The route from Jakarta to Yogyakarta is one of the most popular train journeys in Indonesia, linking the capital with the cultural heart of Java. A range of services operate along the line, from faster, limited-stop trains to slower services that make more stops along the way.

Although the journey takes between six and eight hours, depending on the service, it is one of the most comfortable and straightforward ways to travel between the two cities. With central stations, frequent departures, and a choice of travel classes, the train is often preferred over flying.

Whichever service you choose, this guide covers everything you need to know about routes, timetables, ticket booking, and prices.

Route map and details

Gambir and Pasar Senen stations are less than two kilometres apart, both located in the heart of Jakarta. After around 5 km, the two lines converge at Jatinegara, before continuing along the same route for the next 500km to Yogyakarta.

After passing through the northern port city of Cirebon, the line turns inland across Central Java, travelling through rice fields, small towns, and rural landscapes as it heads towards the south coast, before arriving in the popular tourist destination of Yogyakarta.

Timetables

Trains to Yogyakarta depart from two stations in Jakarta: Gambir and Pasar Senen.

Gambir to Yogyakarta timetable

TrainGambirYogyakarta
Argo Semeru06:2012:45
Taksaka07:4513:50
Argo Dwipangga08:5014:51
Batavia09:3517:02
Manahan10:3017:23
Taksaka14:0020:10
Bima17:0023:25
Gajayana18:5001:24
Argo Lawu20:4502:47
Taksaka21:2003:30
Manahan22:5005:39
11 trains per day
Average journey time: 6 hours 30 minutes

Pasar Senen to Yogyakarta timetable

TrainPasar SenenYogyakarta
Fajar Utama05:4012:34
Fajar Utama07:3515:10
Bangunkarta12:2519:54
Bogowonto18:1001:38
Senja Utama19:0002:00
Madiun Jaya21:1004:05
Mataram21:4004:35
7 trains per day
Average journey time: 7 hours 10 minutes
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 Jakarta to Yogyakarta, 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 from Gambir station, the most expensive option are in the Panoramic carriages, costing from IDR800,000 (US$50). As you drop down the various classes on this and other trains (Luxury, Executive, Economy), tickets can be bought for as little as IDR240,000 (US$15).


Book your train travel:

Loading train search engine…