- Direct train
- 1 a day, via Hodoš
- Journey time
- Nearly 8 hours
- Fare
- From €16 (First Minute)
From Budapest to Ljubljana there's one direct train a day via Hodoš and Murska Sobota, taking nearly eight hours and costing from €16 with the First Minute offer; another option runs via Graz to Budapest Keleti. FlixBus and Nomago cover the route by coach, and by car it's about 460 km, with vignettes in both Hungary and Slovenia.
Trains between Ljubljana and Budapest
| Train | Leaves | Arrives | Via |
|---|---|---|---|
| MV 247 | Ljubljana 9.15am | Budapest Déli 4.59pm | Celje, Pragersko, Murska Sobota and Hodoš |
| MV 246 | Budapest Déli 9am | Ljubljana 4.44pm | Hodoš, Murska Sobota, Pragersko and Celje |
| IC 351 | Ljubljana 5am | Budapest Keleti 1.44pm | Maribor and Graz |
| IC 350 | Budapest Keleti 4.13pm | Ljubljana 1.04am | Graz and Maribor |
Slovenske železnice, timetable from 14 December 2025, checked on 17 October 2026. The Tourist Board warns of engineering works on the Hungarian side; check the line's status with Hungarian Railways before travelling.
If I were heading for Maribor, Ptuj or Prekmurje, the direct train is a good way to enter from the east and stop on the way. For Ljubljana in a hurry, I'd check the coach first, and only buy the train on First Minute three days ahead, when it's cheapest.
Budapest to Ljubljana: the quick answer
Full read: 2 min
- One direct train a day via Hodoš, nearly eight hours, from €16.
- Another option via Graz to Budapest Keleti.
- FlixBus and Nomago coaches, from the airport too.
- By car, about 460 km and Hungarian and Slovenian vignettes.
Before you set off, check this
My key points
Before you go to Slovenia, this
-
01 To save money
First Minute from €16
The ticket via Hodoš ranges from €16 to €33 depending on the price level, the same from Ljubljana, Celje or Maribor. Bought three or more days ahead, it's cheaper.
train to Slovenia -
02 Getting there
One direct train a day
The MV 247 leaves Ljubljana at 9.15am and reaches Budapest Déli at 4.59pm. The MV 246 leaves Budapest Déli at 9am and reaches Ljubljana at 4.44pm.
-
03 My tip
From Maribor, change at Pragersko
The direct train doesn't stop in Maribor. Slovenske železnice suggests the 10.50am ICS from Maribor to Pragersko to connect with the MV 247 at 11.23am.
Ljubljana to Maribor -
04 Money
Children free on First Minute
On First Minute tickets to Hungary, under-15s travel free with their parents or grandparents, according to Slovenske železnice.
By direct train via Hodoš
The Tourist Board explains that the line links the two capitals via Celje and Maribor, with two possible routes from Maribor, via Hodoš or via Spielfeld. Slovenske železnice runs one direct train a day via Hodoš. The MV 247 leaves Ljubljana at 9.15am, calls at Celje, Pragersko and Murska Sobota and pulls into Budapest’s Déli station at 4.59pm. Coming back, the MV 246 leaves Budapest Déli at 9am and reaches Ljubljana at 4.44pm. It doesn’t stop in Maribor; from there you connect at Pragersko with the 10.50am ICS, and on the way back with the 2.50pm IC. The Tourist Board warns of works on the Hungarian side, so check the line’s status before you go.
By train via Graz
There’s a second option through Austria. The IC 351 leaves Ljubljana at 5am, runs via Maribor and Graz and reaches Budapest Keleti at 1.44pm. The IC 350 returns from Budapest Keleti at 4.13pm and reaches Ljubljana at 1.04am. It leaves very early, takes nearly nine hours and is far dearer, €111.70 at the standard fare from Ljubljana, so I’d only use it to stop in Graz.
Train fares and First Minute
For Hodoš, the Slovenske železnice table only lists First Minute fares, the joint offer with Hungarian Railways, from €16 to €33 one way depending on the level, the same price from Ljubljana, Celje or Maribor. It’s cheaper bought three or more days ahead, isn’t sold on the day of travel, is valid for two days and isn’t refundable. Under-15s travel free with their parents or grandparents. Via Spielfeld, First Minute costs €42.90 from Ljubljana bought three days ahead. Other cross-border deals are listed in trains to Slovenia.
To sleep close to everything, search places to stay in Maribor on Expedia and filter by area before price.
Budapest to Ljubljana by coach
By road, FlixBus and Nomago are the companies the Tourist Board names between Ljubljana and Budapest, and from Budapest’s main bus station there are routes to Ljubljana via Maribor and Celje. FlixBus also runs direct from Budapest airport, which is 461 km from Ljubljana and 340 km from Maribor.
By car, with two vignettes
It’s about 461 km centre to centre and nearly five hours without traffic, by my OpenStreetMap calculation, on the E57 and E71 according to Ljubljana’s tourist board. Hungary has its own motorway vignette, and in Slovenia you need the DARS one from the first motorway. Coming in through Prekmurje, Maribor is 340 km from Budapest, a good place to stop before carrying on; it’s covered in Ljubljana to Maribor. How to buy the Slovenian vignette is in the Slovenian vignette. Other ways into the country are in how to get to Slovenia.
If you are short on time, see the best tours in Maribor and pick one that fits your day.
To sleep close to everything, search places to stay in Maribor on Booking.com and filter by area before price.
Ptuj Castle and the old town rooftops above the Drava, seen from a bridge with a cycle and footpath
The vineyard hills of Jeruzalem in early spring, with rows of vines on terraced slopes and scattered houses
Fares to Budapest (second class)
| Fare | From Ljubljana | From Maribor |
|---|---|---|
| First Minute via Hodoš, level 1 | €16.00 | €16.00 |
| First Minute via Hodoš, level 5 | €33.00 | €33.00 |
| Standard via Spielfeld (Graz) | €111.70 | €84.30 |
| First Minute via Spielfeld, 3 days ahead | €42.90 | €34.90 |
Slovenske železnice, fares valid from 14 December 2025. First Minute tickets are limited, not sold on the day of travel, valid for two days and non-refundable.
Test yourself
True or false?
0/3 Pick before you peek.
-
The direct Ljubljana-Budapest train stops in Maribor.
See the answer
False. It runs via Pragersko; from Maribor you connect there with an ICS, according to Slovenske železnice.
-
First Minute tickets to Hungary can be bought on the day of travel.
See the answer
False. Slovenske železnice says they aren't issued on the day of travel.
-
There's a direct coach from Budapest airport to Ljubljana.
See the answer
True. The Tourist Board lists a direct FlixBus service.
- Ljubljana-Budapest on First Minute
- €16
- By road, centre to centre
- 461 km
- Direct MV 247 journey time
- 7 h 44 min
- Direct train a day each way
- 1
Frequently asked questions
Is there a direct train from Budapest to Ljubljana?
Yes, one a day each way via Hodoš, the MV 246 from Budapest Déli at 9am, arriving in Ljubljana at 4.44pm, according to Slovenske železnice.
How much is the train from Budapest to Ljubljana?
From €16 on First Minute via Hodoš. Via Spielfeld and Graz, the standard fare from Ljubljana is €111.70.
Is there a coach from Budapest to Ljubljana?
Yes. The Tourist Board names FlixBus and Nomago, and from Budapest's main bus station there are routes to Ljubljana via Maribor and Celje. FlixBus also runs direct from Budapest airport.
How far is Budapest from Ljubljana?
About 461 km by road, nearly five hours without traffic, and 340 km from Budapest to Maribor, by my OpenStreetMap calculation.
Do I need a vignette to drive?
Yes, the Hungarian one for Hungary's motorways and the DARS one for Slovenia's.
0 of 425 Slovenia guides
Your next stamp
- Vienna to Ljubljana
- Ljubljana to Maribor
- Trains to Slovenia
- Venice to Ljubljana
- Zagreb to Ljubljana
- Trieste to Ljubljana
- How to get there
- Getting around
- Bogenšperk Castle
- Bogojina
- Debeli rtič
- Ig pile dwellings
- Jeruzalem
- Kolpa River
- Koper
- Lake Cerknica
- Lipica
- Ljubljana
- Ljubljana to Bled
- Mariborsko Pohorje
- Mount Snežnik
- Palace Portorož
- Park of Military History
- Plečnik House
- Postojna
- Postojna Cave
- Škocjan Caves
- Štanjel
- Tartini Square
- Trbovlje
- Županova jama
- Izola
- Kamnik
- Karst
- Ljubljana to Postojna
- Lovrenc Lakes
- Maribor
- Portorož
- Predjama Castle
- Things to do in Ljubljana
- Travel guide
- Vilenica Cave
- Zagorje ob Savi
- Celje
- Cerknica
- Domžale
- Hrastnik
- Ljubljana in a day
- Ljubljana to Piran
- Piran
- Slovenian Istria
- Strunjan
- Things to do
- Activities
- Ankaran
- Grosuplje
- Litija
- Ljubljana in two days
- Pivka
- Sečovlje salt pans
- Velenje
- Brežice Castle
- Getting around Ljubljana
- Ilirska Bistrica
- Mežica Mine
- Most beautiful places
- Novo mesto
- Sevnica Castle
- Terme Olimia
- Vrhnika
- Žiče Charterhouse
- Dolenjska
- Ig
- Prettiest villages
- Ptuj
- Sežana
- Divača
- Medvode
- Murska Sobota
- Posavje
- World Heritage
- Hrpelje-Kozina
- Logatec
- Map
- Mengeš
- Brezovica
- Komen
- Savinjska
- Where is Slovenia
- Bled
- Brežice
- Čatež ob Savi
- Celje Castle
- Coal Mining Museum
- Gorenjska
- Hotels in Piran
- Hrastovlje
- Karawanken Geopark
- Koroška
- Kostanjevica Cave
- Kostel Castle
- Krokar primeval forest
- Kurentovanje
- Lent
- Ljubljana Castle
- Ljubljana Cathedral
- Logar Valley
- Oldest vine in the world
- Olimje
- Otočec
- Regions
- Rimske Toplice
- Rinka Waterfall
- Rogla
- Sava River
- Slovenj Gradec
- Topolšica
- Velika Planina
- Goriška
- Krško
- Lake Bled
- Municipalities
- Podravje
- Prešeren Square
- Ravne na Koroškem
- Restaurants in Piran
- Škocjan Inlet
- Volčji Potok Arboretum
- Bled Island
- Cities
- Mežica
- Pomurje
- Sevnica
- Socerb Castle
- Bled Castle
- Coast and Karst
- Dravograd
- Kostanjevica na Krki
- Population
- Notranjska
- Ojstrica viewpoint
- Radlje ob Dravi
- Size
- Central Slovenia
- Language
- Mislinja
- Plečnik's Ljubljana
- Slovenska Bistrica
- Vila Bled
- Currency
- Grand Hotel Toplice
- Ormož
- Zasavje
- EU and Schengen
- Hotel Savica Garni
- Hotels in Bled
- Pohorje
- Haloze
- History
- Restaurants in Bled
- Flag and symbols
- Hoče-Slivnica
- Bizeljsko
- Bohinj
- Christmas in Ljubljana
- City Hotel Ljubljana
- Gorjanci
- Kranj
- Krka River
- Laško
- Moravske Toplice
- Ptuj Castle
- Public holidays
- Rajhenburg Castle
- Šentilj
- Slovenia beaches
- Šmartno pri Litiji
- Uršlja Gora
- Brdo Castle
- Independence Day
- Lake Bohinj
- Ljubljana Festival
- Radenci
- Rogaška Slatina
- Day trips from Ljubljana
- Jesenice
- Lendava
- Podčetrtek
- Savica waterfall
- Time zone
- Dobrna
- Facts
- Ljubljana nightlife
- Ljutomer
- Nova Gorica
- Vogel
- Bohinjska Bistrica
- Gornja Radgona
- Ljubljana Old Town
- Slovenia and Croatia
- Solkan
- Zreče
- Grad
- Sabotin
- Slovenia, Italy and Austria
- Slovenske Konjice
- Stara Fužina
- Trnovo
- Goričko
- Holidays and tours
- Hotels in Bohinj
- Škofja Loka
- Vitanje
- Škofja Loka Castle
- Slovenia or Slovakia
- Šoštanj
- Veržej
- Slovenian phrases
- Slovenia in 3 days
- Bela krajina
- Caves in Slovenia
- Črnomelj
- Dragon Bridge
- Gorje
- Hiking
- Hotels in Maribor
- Kozjansko Regional Park
- Kranjska Gora
- Lake Ptuj
- Ljubljana Marshes
- Slovenia in 5 days
- Vinarium Tower
- Where to stay in Ljubljana
- Žalec
- Metlika
- Slovenia castles
- Slovenia in a week
- Slovenian Mountain Trail
- Triple Bridge
- Vintgar Gorge
- Vršič Pass
- Where to eat in Ljubljana
- Best viewpoints in Slovenia
- Central Market
- Juliana Trail
- Lake Jasna
- Road trip
- Semič
- Žirovnica
- Kočevje
- Metelkova
- Motorhome
- Museums in Slovenia
- Naklo
- Soča rafting
- Tržič
- Zelenci
- Jezersko
- Kostel
- Lake Planšar
- Skiing
- Slovenia with kids
- Slovenian Alpine Museum
- Tivoli Park
- Best time to visit
- Cerklje na Gorenjskem
- Cycling
- Dolenjske Toplice
- Ljubljanica river
- Mojstrana
- Šenčur
- Krvavec
- National Gallery
- Parenzana
- Peričnik waterfall
- Šmarješke Toplice
- Weather
- National and University Library
- Paragliding
- Slovenia in winter
- Strmol Castle
- Trebnje
- Vrata valley
- Climbing
- Events
- Martuljek waterfalls
- Žale
- Fly fishing
- In January
- Ljubljana museums
- National Museum of Slovenia
- Rateče
- Bovec
- Festival Lent
- Golf
- Hotels in Ptuj
- In February
- Kamnik-Savinja Alps
- Nature parks
- Parking in Ljubljana
- Pekel Cave
- Planica
- Snežnik Castle
- Solčava
- Gornji Grad
- In March
- Kranjska Gora ski resort
- Lakes
- Trenta
- Ziplines
- Alpe Adria Trail
- Hotels in Kranjska Gora
- In April
- Kanin
- Nazarje
- Waterfalls
- In May
- Rivers
- Virje waterfall
- Vransko
- Hotels in Bovec
- In June
- Mountains
- Šentjur
- Dobra Vila Bovec
- In July
- Ljubljana Card
- Mozirje
- Spas
- In August
- Nebesa Chalets
- Rečica ob Savinji
- In September
- Kobarid
- Šmartno ob Paki
- In October
- Kobarid Museum
- Hiša Franko
- In November
- In December
- Radovljica
- Železniki
- In spring
- Museum of Apiculture
- Žiri
- In summer
- Kropa
- Tolmin
- Brezje
- In autumn
- Metaldays
- Tolmin Gorges
- Begunje
- Javorca church
- Slovenia in 10 days
- Most na Soči
- Two weeks in Slovenia
- Idrija
- Ljubljana Marathon
- Idrija mercury mine
- Wild Lake
- Cerkno
- Flights
- Laufarji
- Divje babe
- Franja Partisan Hospital
- Ljubljana Airport
- Ajdovščina
- Nearby airports
- Vipava
- Vipavski Križ
- Brda
- Šmartno
- Dobrovo Castle
- Trains
- Buses
- Julian Alps
- Car hire
- Triglav National Park
- Driving
- Pokljuka
- Triglav Lakes
- Vignette
- Mount Triglav
- Taxis
- Distances
- Soča Valley
- Soča River
- Kozjak Waterfall
- Boka Waterfall
- Walk of Peace
- Bled to Bohinj
- Mangart
- Lake Krn
- Prices and budget
- Slovenia on a budget
- Vipava Valley
- Free things to do
- Otlica Natural Window
- Entry requirements
- Rihemberk Castle
- Customs
- Safety
- Scams
- Bears
- Healthcare
- Mobile and roaming
- Plugs
- Packing list
- What to buy
- Hotels
- Campsites
- Farm stays
- Mountain huts
- Food
- Bled cream cake
- Wine
- Potica
- Prekmurska gibanica
- Štruklji
- Carniolan sausage
- Idrija žlikrofi
- Beer
- Tipping
Questions about Slovenia? Write to me
I read every email. If a fact is wrong or missing, tell me and I will check it.
My email sergiolepone@gmail.com
By
Tourism graduate with a master’s in Tourism Management and Planning from the University of Málaga, who has travelled across Europe. He writes every guide from official sources and his own judgement.
Published on . Updated on . Facts checked on .
Sources
Some links in this guide are affiliate links: if you book through them, the site earns a commission at no extra cost to you. Affiliate disclosure
Photos: Jernej Furman from Maribor, Slovenia (CC BY 2.0); focusonmore.com (CC BY 2.0); KocmutD (CC BY-SA 3.0), via Wikimedia Commons.