SNCF First Class seats from Paris on sale from just $76! Book now

Business

No tickets in your cart.

Why not plan a trip?

My Bookings
Loading...
Loading...

TrainlineTrainline is Europe’s Nº 1 destination for train and bus tickets*

Official distributor

  • renfe
  • iryo
  • ouigo
  • ave
  • avlo
  • tgv_inoui
  • eurostar
  • blablabus
  • alsa
Support image
TrainlineTrainline

Search. Book. Travel.

Say hello to Your Account

All your tickets and travel info, all in one place. Easy as that.

ChatChat

Got a question? Our support team are on hand 24/7.

Companion image
TrainlineTrainline

Search. Book. Travel.

No more fumbling in your pockets

Digital tickets live neatly in our app, so you can just tap, scan and go.

ETicketETicket

All your tickets, all in the palm of your hand.

Calendar week image
TrainlineTrainline

Search. Book. Travel.

Looking for a cheap price?

Look no further. Compare tickets easily with our price calendar.

CalendarCalendar

We’ll find you the cheapest day to travel.

Support image
TrainlineTrainline

Search. Book. Travel.

Say hello to Your Account

All your tickets and travel info, all in one place. Easy as that.

ChatChat

Got a question? Our support team are on hand 24/7.

Companion image
TrainlineTrainline

Search. Book. Travel.

No more fumbling in your pockets

Digital tickets live neatly in our app, so you can just tap, scan and go.

ETicketETicket

All your tickets, all in the palm of your hand.

Calendar week image
TrainlineTrainline

Search. Book. Travel.

Looking for a cheap price?

Look no further. Compare tickets easily with our price calendar.

CalendarCalendar

We’ll find you the cheapest day to travel.

Support image
TrainlineTrainline

Search. Book. Travel.

Say hello to Your Account

All your tickets and travel info, all in one place. Easy as that.

ChatChat

Got a question? Our support team are on hand 24/7.

Companion image
TrainlineTrainline

Search. Book. Travel.

No more fumbling in your pockets

Digital tickets live neatly in our app, so you can just tap, scan and go.

ETicketETicket

All your tickets, all in the palm of your hand.

Calendar week image
TrainlineTrainline

Search. Book. Travel.

Looking for a cheap price?

Look no further. Compare tickets easily with our price calendar.

CalendarCalendar

We’ll find you the cheapest day to travel.

Popular in Ljubljana

Let's do this trip right

What customers say about Trainline

Read real reviews from real users

Take the train from Madrid to Ljubljana in 29 hours 24 minutes

If you want to travel from Madrid to Ljubljana by train, you've come to the right place.

You can expect the journey from Madrid to Ljubljana by train to take around 34 hours 37 minutes. If you want to get there as quickly as possible, it can take as little as 29 hours 24 minutes on the fastest services. You'll usually find around 8 trains per day running on this route, which spans 1599 km. You'll have to make 4 changes along the way on your journey to Ljubljana.

Use our Journey Planner at the top of the page to search for cheap ticket prices – we'll show you how much you can save on train tickets from Madrid to Ljubljana if you book in advance.

If you want to know more about the journey, keep reading for train schedules, tips on finding cheap tickets and FAQs, including first and last train times. Want to go straight to booking? Start a search with us today!

Madrid to Ljubljana by train

First train

6:22 am

Last train

9:07 pm

Departure station

Madrid

Arrival station

Ljubljana

Journey time

From 29h 24m

Distance

993 miles (1599 km)

Frequency

8 trains per day

Changes

4 changes

Train and bus operators

Flixbus

FAQs about the train journey from Madrid to Ljubljana

Want to know more about your journey from Madrid to Ljubljana? We've compiled some of the most frequently asked questions by our customers to help you plan your journey.

How do I travel from Madrid to Ljubljana?

You can get from Madrid to Ljubljana in 34 hours and 37 minutes on average, with the fastest trains taking just 29 hours and 24 minutes. Check out our Journey Planner for more details on times, tickets and prices.

How long does the train from Madrid to Ljubljana take?

The average journey time by train between Madrid and Ljubljana is 34 hours and 37 minutes, with around 8 trains per day running on this route. The journey time may be longer on weekends and holidays, so use our Journey Planner on this page to search for a specific travel date.

What's the fastest journey time between Madrid and Ljubljana by train?

The fastest journey time by train from Madrid to Ljubljana is 29 hours and 24 minutes.

Can you take a train directly from Madrid to Ljubljana?

No, there are no direct train services from Madrid to Ljubljana. Travelling from Madrid to Ljubljana by train will require a minimum of 4 changes.

Madrid to Ljubljana train times

Check out the next trains departing from Madrid to Ljubljana for Tuesday May 13th 2025. For the full train timetable/schedule, or to search for a later time or date, click here.
DepartsArrivesDuration
5:22 am10:46 am29h 24m, 7 changes
5:22 am1:00 pm31h 38m, 4 changes
11:57 am12:01 am36h 4m, 5 changes
12:18 pm12:01 am35h 43m, 7 changes
8:07 pm9:13 am37h 6m, 7 changes
8:07 pm9:50 am37h 43m, 6 changes

Cheap train tickets from Madrid to Ljubljana

Book in advance

Most of the train companies across Europe release their tickets around three to six months in advance, many of which can be cheaper the earlier you book. If you know the dates you want to travel, you may be able to find some cheaper train tickets from Madrid to Ljubljana by booking early.§

Be flexible with your travel times

Many of the train services in Europe are also popular commuter services, lots of train companies increase ticket prices during “peak hours” (generally between 06:00 – 10:00 and 15:00 – 19:00 on weekdays). If you can, consider travelling outside of peak hours to find lower priced tickets.

Choose a slower or connecting train

On some of the busier routes, you might also have the option to take a slower or connecting train. It may take a little longer than some high-speed or direct services, but if you have a little extra time on your hands, you might find a cheaper fare. Plus, you'll have more time to enjoy the view of the countryside!

Look out for special deals

Take a look at our handy guides to find out when train operators release their special deals and offers to see if you can find cheap European train tickets for your journey.

For specific information about how to get your hands on cheap tickets, check out our European train tickets hub.


* Based on European average monthly visitors to Trainline’s app and website from 1.1.2023 to 10.31.2023 vs other independent retailers.

Europe’s leading train and coach app

We help customers across Europe make more than 172,000 smarter journeys every day.