Skip to content

Ljubljana to Zagreb Train: Routes, Tickets and Alternatives

6 min readBy Europe by Train Editorial
Ljubljana to Zagreb Train: Routes, Tickets and Alternatives

Last updated November 2026. The Ljubljana to Zagreb train links the two capitals over about 117 km, via Dobova on the Slovenian side and Savski Marof on the Croatian side. Slovenske železnice and HŽ Putnički prijevoz share the route, so the operator timetables decide which departure suits you. Buses cover the same distance in roughly 1h 50m to 2h 30m, which is the benchmark any train needs to match. For wider planning, start with our Balkans rail overview.

Featured image: Petar Milošević, CC BY-SA 4.0, via Wikimedia Commons.

Ljubljana To Zagreb Train, Balkans — 1
Photo: Viktar Palstsiuk, CC BY-SA 4.0, via Wikimedia Commons.

Ljubljana to Zagreb train: what to expect

Both capitals sit on the same line, and the route crosses an international border at Dobova and Savski Marof. Two national operators run it, so a single journey touches Slovenian and Croatian rail systems. Timetables, daily frequency and journey time change by season and by timetable year. Read them on the operator sites before you plan around a specific departure. HŽ Putnički prijevoz publishes Croatian-side times on its official site. Slovenske železnice publishes the Slovenian side.

Ljubljana To Zagreb Train, Balkans — 2
Photo: Leonhard Lenz, CC0, via Wikimedia Commons.
  • Route: Ljubljana to Zagreb via Dobova and Savski Marof.
  • Distance: about 117 km between the two city centres.
  • Operators: Slovenske železnice and HŽ Putnički prijevoz.
  • Best planning step: compare the first and last departures of your travel day on both sites.

Tickets, prices and passes

Ljubljana To Zagreb Train, Balkans — 3
Photo: Jorge Franganillo, CC BY 2.0, via Flickr.

Buy an international ticket from either operator's website or at a station counter. Fares change by date and by how early you book. Look up the current price for your date on the operator site before you compare it with a bus. Youth and advance fares can exist on international tickets, so look for them at checkout. Rail pass holders should read the Eurail Balkans coverage for pass validity. Find out whether your train needs a seat reservation before you board. The most common mistake is buying a ticket for the wrong date or the wrong direction, so recheck both before you pay.

Border crossing and what to carry

Carry a valid passport or national ID card for the whole journey. Border or police checks may happen on the train near Dobova and Savski Marof. Border-control status can change, so check the official Slovenian and Croatian government pages shortly before departure. Keep your documents in an easy pocket rather than in a packed bag. A checklist helps.

Good to know

Those 20 to 30 minutes early also leave room for a possible on-board check near Dobova and Savski Marof, so keep documents ready.

Ljubljana To Zagreb Train, Balkans — 4
Photo: corno.fulgur75, CC BY 2.0, via Flickr.
  • Passport or national ID card, within its validity date.
  • Ticket on your phone or printed, plus any seat reservation.
  • Arrival at the station 20 to 30 minutes early on your first rail trip.
  • Luggage you can lift onto a rack without help.

Train vs bus vs shared transfer

Buses on this route are listed at about 1h 50m to 2h 30m, with Nomago among the operators. GoOpti sells shared transfers on the same corridor. Compare them honestly against the train for your own date.

OptionBest forTrade-off
TrainTravelers who want space, a luggage rack and no road trafficFewer departures than buses may be on offer, so your schedule must fit
Bus (for example Nomago)Flexible departures through the daySeats and legroom are tighter, and road delays are possible
Shared transfer (for example GoOpti)Door-to-door pickup with heavy bagsUsually the least flexible once booked, and pricing varies by demand
Steam locomotive gear (JŽ 06-018; Slovenia) — 5
Photo: Petar Milošević, CC BY-SA 4.0, via Wikimedia Commons.

Stations and arriving in the city

Trains arrive at Zagreb Glavni kolodvor, the main station, which is the starting point for onward rail in Croatia. Ljubljana's own station is the departure point on the Slovenian side. Use the operator or city transport sites for the current walking, tram or taxi connection to your accommodation. Skip the train if your hotel is far from a station and you carry heavy luggage, because a shared transfer then removes a leg of the trip.

Continuing onward from Zagreb

Ljubljana To Zagreb Train, Balkans — 6
Photo: corno.fulgur75, CC BY 2.0, via Flickr.

Zagreb is the junction for most Croatian rail trips. Our Croatia rail guide covers the national network. If you start in Ljubljana and want Slovenian day trips first, read about the Ljubljana to Bled train. Readers comparing other cross-border departures can look at the route to Trieste. Further south, the Sarajevo to Mostar train shows how Balkan rail changes character once you leave the Croatian main lines.

Tip

Where a Zagreb connection is tight, a bus listed at 1h 50m to 2h 30m for the same 117 km can fit a tighter window.

Planning an onward train from Zagreb

Zagreb Glavni kolodvor is the useful point to plan any same-day Croatian rail connection. The Ljubljana route covers about 117 km and crosses the border near Dobova and Savski Marof. That makes a tight onward connection a poor bet when a late arrival would disrupt the rest of your trip.

Check the arrival time in Zagreb and the next train separately before buying either ticket. Allow for the same practical steps as at departure: arrive 20 to 30 minutes early for your first rail trip, keep documents accessible, and confirm whether either train needs a reservation.

If the rail timetable leaves a long gap, consider staying in Zagreb for the night or using a bus for the first leg. Buses are commonly listed at roughly 1h 50m to 2h 30m, so they can be the better choice when their departures fit your onward connection more closely. For routes deeper into Croatia, see our Zagreb to Split train guide.

Linking Ljubljana and Zagreb into a longer rail loop

Many travelers ride this line as one leg of a bigger trip, not on its own. Ljubljana and Zagreb sit between Vienna and Budapest, so the two capitals fit neatly into a multi-city loop where each leg is a separate ticket.

  • Coming from the north: our Vienna to Ljubljana train guide covers the leg that puts you in Slovenia before you continue to Zagreb.
  • Heading on to Hungary: from Zagreb, the Budapest to Zagreb train guide explains the route in the other direction, so you can reverse it for the next leg.

A few habits keep a loop like this from unravelling:

  1. Book each leg separately. A delay on one ticket is not covered by the next unless both were sold as a single booking, so leave a buffer between connections.
  2. Sleep in the connecting city. Ending a day in Ljubljana or Zagreb, rather than racing through, removes the risk of a missed onward departure.
  3. Check the border each time. Every country change brings the same document rules described above, so keep your passport or ID in an accessible pocket for the whole trip.
  4. Compare timetables per leg. Departure patterns differ from one route to the next, so read the operator sites for each leg and do not assume this route's frequency applies elsewhere.

If one leg has no sensible train, a bus or shared transfer for that stretch alone is usually better than rebuilding the whole itinerary around a poor departure.

Frequently Asked Questions

Where can I go by train from Ljubljana?

From Ljubljana you can reach Zagreb, Bled and Trieste by rail. See our Bled train guide for the Slovenian side trip.

Can I take a train from Zagreb to Split?

Yes, Zagreb is the starting point for rail toward the Adriatic coast. Our Zagreb to Split train guide covers the details.

Rail notes for your next trip

Optional updates when our rail guides change.

No spam. Unsubscribe anytime.

More guides

Picked from the same area