Semarang and Yogyakarta are about 130 km apart, and until recently the train was the slow option: the only service, KA Joglosemarkerto, loops around through Purwokerto and Kutoarjo. That changes on 1 December 2026, when KAI introduces KA Pandawa, a direct Semarang–Solo–Yogyakarta service that cuts the trip to under three hours. This guide covers the new train, the bus, and the drive.
Semarang to Yogyakarta at a glance
| Option | Time | Cost | Notes |
|---|---|---|---|
| KA Pandawa (from 1 Dec 2026) | 2 h 37 – 3 h | Rp 110,000 weekday / Rp 130,000 weekend | Direct via Solo; facultative service |
| KA Joglosemarkerto | Long loop via Purwokerto | From Rp 32,000 | The only train option until 30 Nov 2026 |
| Bus | About 4 h | Economy fares | Frequent departures, depends on traffic |
| Car | 2.5 – 4 h | Fuel + tolls | Toll road most of the way |
| Shuttle / travel | 3 – 4 h | Per seat | Door-to-door, book ahead |
The new direct train: KA Pandawa
KA Pandawa is one of the additions in the 2026 timetable (Gapeka 2026), which takes effect on 1 December 2026. It runs between Semarang Tawang and Yogyakarta via Solo Balapan, with four scheduled trips in the timetable, and it is classified as facultative — meaning it operates on selected dates rather than every day of the year.
Two departures are listed for the Semarang–Yogyakarta direction:
| Train | Departs Semarang Tawang | Arrives Yogyakarta | Duration |
|---|---|---|---|
| Pandawa 279 (morning) | 05:35 | 08:34 | 2 h 59 |
| Pandawa 339 (afternoon) | 14:45 | 17:22 | 2 h 37 |
Tickets are executive class: Rp 110,000 on weekdays and Rp 130,000 at weekends. Booking opened on 1 November 2026 through the Access by KAI app, and because the service is facultative you should check that your date is running before you build a plan around it.
The morning train is the useful one for sightseeing: you reach Yogyakarta before 09:00, which leaves the whole day for Prambanan or the city.
Until then: KA Joglosemarkerto
Before 1 December 2026, the train connection is KA Joglosemarkerto, which runs a loop through Solo, Yogyakarta, Purwokerto, Semarang and Tegal. It is a comfortable train and the cheapest way to travel the corridor — fares start at Rp 32,000 — but the Semarang–Yogyakarta leg goes the long way around via Purwokerto, Kutoarjo and Wates, so expect a much longer journey than the direct service will offer.
If you are travelling before December, the bus or a car is usually the better use of your day.
By bus
Buses run between Semarang and Yogyakarta throughout the day, from the Semarang terminals to Giwangan in Yogyakarta. The trip takes about four hours in normal traffic and longer during holidays, when the Solo–Yogyakarta road jams.
There are also executive shuttles (travel) that pick up and drop off at hotels or meeting points; they are quicker than the economy bus and worth the extra if you are carrying luggage.
By car
Driving is straightforward: take the Semarang–Solo toll road, then continue on the Solo–Yogyakarta toll road towards Sleman. Outside holiday periods the drive takes about 2.5 to 3 hours; in the June–July and December peaks, add an hour.
Tolls apply on both sections, and the total depends on your vehicle class and entry and exit gates. Fuel and tolls together usually cost less than four train tickets for a group, which is why families often drive.
If you would rather not drive, a private car with a driver can make the trip and continue to Borobudur or Prambanan on the same day.
Which option should you choose?
- Fastest and most comfortable: KA Pandawa, once it starts running.
- Travelling before December: bus or car.
- Tight budget: Joglosemarkerto (from Rp 32,000) if you have the time, or an economy bus.
- Group or family: drive, or book a car with a driver.
- Going straight to the temples: car — the train stations are in the city, and Borobudur is another hour away.
Getting to Semarang Tawang station
Tawang is in the old town, close to Kota Lama and a short ride from the port. If you are arriving on a cruise ship at Tanjung Emas, allow 20 to 30 minutes by taxi to the station, more in the morning peak. Poncol station, the other main station in Semarang, handles different services, so check which one your ticket names.
On arrival in Yogyakarta
KA Pandawa arrives at Yogyakarta station (Tugu), which is a short walk from Malioboro and the easiest base for the temples. From there, Prambanan is 30 to 45 minutes by car, and Borobudur is about 1.5 hours. If you are heading straight to a hotel in the Prawirotaman area, a taxi takes about 15 minutes.
For the return leg, the afternoon train leaves Yogyakarta in time to reach Semarang before dark, which makes a same-day return possible if you only need a few hours in the city.
Frequently asked questions
Is there a direct train from Semarang to Yogyakarta?
From 1 December 2026, yes — KA Pandawa runs Semarang Tawang–Solo–Yogyakarta in about 2.5 to 3 hours, on selected (facultative) dates. Before that, the train goes the long way around via Purwokerto.
How far is Semarang from Yogyakarta?
About 130 km by road, or 2.5 to 4 hours by car depending on traffic.
How much is the train ticket?
KA Pandawa costs Rp 110,000 on weekdays and Rp 130,000 at weekends in executive class. Joglosemarkerto fares start at Rp 32,000.
Can I do Semarang to Yogyakarta as a day trip?
Yes with the morning Pandawa train, but it is a long day. Staying one night in Yogyakarta is more comfortable.
Sources and further reading
- Mulai 1 Desember 2026, ada kereta baru hubungkan Semarang dan Yogyakarta — Kompas, 4 November 2026.
- Panduan dan jadwal KA Pandawa — Good News From Indonesia, 2 November 2026 (times and fares).
- Jadwal KA Joglosemarkerto — Kompas, April 2026 (route and fares).
- PT Kereta Api Indonesia — official schedules and booking.
Written by the Yogyakartatour.com team, a licensed local operator based in Yogyakarta. The Pandawa schedule reflects the Gapeka 2026 announcement of November 2026; confirm your date in the Access by KAI app before booking onward travel.







