Dreaming of Italy? Save up to 70%* with discounted Italo eXtra Magic fares Book Now

ReferralsBusiness

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

  • eurostar
  • sncf
  • trenitalia
  • db
  • flixtrain
  • italo
  • ouigo
  • renfe
  • westbahn
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 Madrid

Let's do this trip right

What customers say about Trainline

Read real reviews from real users

About the train journey from Budapest to Madrid

Want to travel from Budapest to Madrid by train? Start your journey with us.

The train from Budapest to Madrid usually takes 30 hours 13 minutes on average to travel 1976 km, although the quickest services can take as little as 26 hours 24 minutes. You can expect to find 7 trains per day running on this popular route. As there aren't any direct services running between Budapest and Madrid, you'll need to make 4 changes on your way to Madrid. You can choose to travel with TGV, AVE or Avlo to get to Madrid. As the main rail operators on this route, their trains offer modern comfortable seating and plenty of space for luggage as standard.

To help you get the best train deals, we'll highlight the cheapest train ticket prices from Budapest to Madrid in our Journey Planner. Just remember, the sooner you book your tickets, the more you'll save, as advance tickets start from $541.54.

Keep reading for more information about the train journey to Madrid, including FAQs, timetables with first and last train times and tips on booking cheap train tickets. If you're ready to book, just start a search for tickets with us today.

Budapest to Madrid by train

It takes an average of 30h 13m to travel from Budapest to Madrid by train, over a distance of around 1228 miles (1976 km). There are normally 7 trains per day traveling from Budapest to Madrid and tickets for this journey start from $541.54 when you book in advance.

First train

7:55 am

Last train

8:55 pm

Departure station

Budapest

Arrival station

Madrid

Journey time

From 26h 24m

Distance

1228 miles (1976 km)

Frequency

7 trains per day

Changes

4 changes

Price

From $541.54

Train and bus operators

Deutsche Bahn, SNCF, ÖBB, Flixbus, Renfe, iryo, TGV Lyria, ALSA, SNCF Voyageurs, Regiojet

FAQs about the train journey from Budapest to Madrid

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

How do you get to Madrid from Budapest?

To travel to Madrid from Budapest, you can take the train - on average, the journey takes around 30 hours and 13 minutes, though the fastest trains can take 26 hours and 24 minutes. Use our Journey Planner to get more information on routes and timetables.

How long is the train ride from Budapest to Madrid?

Trains from Budapest to Madrid take an average of 30 hours and 13 minutes, although on the fastest services it can take just 26 hours and 24 minutes. You'll usually find 7 trains per day on this route, so use our Journey Planner to check specific dates as times may vary.

How much is the train to Madrid from Budapest?

Train tickets to Madrid from Budapest can start from $541.54 when booked in advance, but they’re usually more expensive if bought on the day of travel. Prices may also vary depending on the time of day, route, and class you choose.

What is the quickest journey time between Budapest and Madrid by train?

The quickest journey time between Budapest and Madrid by train is 26 hours and 24 minutes.

Budapest to Madrid train times

Check out the next trains departing from Budapest to Madrid for Tuesday Jun 10th 2025. For the full train timetable/schedule, or to search for a later time or date, click here.
DepartsArrivesDuration
6:55 am2:52 pm31h 57m, 5 changes
6:58 am2:52 pm31h 54m, 6 changes
8:55 am4:32 pm31h 37m, 4 changes
9:55 am4:32 pm30h 37m, 7 changes
2:55 pm8:02 pm29h 7m, 7 changes
2:55 pm8:52 pm29h 57m, 6 changes
7:55 pm10:19 pm26h 24m, 4 changes

Deutsche Bahn, SNCF, ÖBB and Renfe trains from Budapest to Madrid

You can travel from Budapest to Madrid on Deutsche Bahn, SNCF, ÖBB and Renfe trains. When you search for times and tickets, we might also show you some other options with multiple connections or operators if they’re available.

PhotoJoachimKohlerBremen, under licence CC BY-SA 4.0

The Deutsche Bahn Group is owned by the German State and controls the majority of rail traffic in Germany as well as in many border regions of the country. Every year, Deutsche Bahn transports several million passengers and many stations in Germany are served exclusively by DB trains, including the ICE, IC and EC fleet.

PhotoCtruongngoc, under licence CC BY-SA 3.0

SNCF is the national train operator of France. It operates all domestic trains and routes across France, as well as international services to Spain and Germany. There are three different types of domestic trains that operate under the SNCF banner – TGV (high-speed, full-service trains that connect the major cities in France), Intercités (usually a more frequent stopping service, but with all the amenities), and TER (regional train services with basic onboard facilities).

ÖBB is the major railway company for Austria, subdivided into several subsidiaries, responsible for certain areas of transport, such as long distance and local transport, the operation of postal buses and the transport of goods. Railjet is ÖBB's high-speed train, which travels at speeds of up to 143 mph (230 km/h) and connects the main Austrian cities with Germany, Hungary, Switzerland, the Czech Republic and Italy.

Renfe is the national train operator in Spain. It operates trains on the longest high-speed railway network in Europe, and the second-longest in the world. The country's major cities are linked up by the high-speed AVE and Avlo trains, while other long-distance routes are served by Altaria, Talgo, Alvia and Euromed trains. Renfe also operates cross-border services into neighbouring Portugal and France. Depending on which service you are travelling on, you'll usually find two classes on Renfe trains - Estándard (Standard Class) and Confort (First Class). Fare types range from the cheapest (but least flexible) Básico fare, to the more flexible Elige fares, to the Premium fare for seats in Confort carriages.

TGV INOUI, iryo, AVE and Avlo classes from Budapest to Madrid

Compare the different travel classes offered by TGV INOUI, iryo, AVE and Avlo when traveling from Budapest to Madrid.

Onboard services on TGV INOUI, iryo, AVE and Avlo

Discover more about the onboard services offered on trains from Budapest to Madrid.

LuggageLuggageWhat baggage limits are there?

On board TGV INOUI trains, you can take up to 2 pieces of luggage measuring no more than 70 x 90 x 50 cm (27.5 x 35.4 x 19.6 inches), plus one hand luggage measuring no more than 40 x 30 x 15 cm (15.7 x 11.8 x 5.9 inches). If you are bringing an XL baggage (maximum 90 x 130 cm or 35.4 x 51.1 inches), it will replace one of the two 70 x 90 x 50 cm (27.5 x 35.4 x 19.6 inches) pieces of luggage authorised.

All your luggage must be labelled before entering the train.

RestaurantRestaurantWhat food and drink is available?

All TGV INOUI trains are equipped with a café-bar car offering a range of food and drink to suit you at any time of day. The Bar is always situated in car 4 or 14 of the train. There's a range of local and responsibly sourced products on offer.

WiFiWiFiWhat onboard entertainment is available?

TGV INOUI trains have free WiFi on board for you to use throughout your journey, allowing you to stay connected, reply to emails or even relax and enjoy what's offered on the TGV INOUI entertainment portal.

ChildPassengerChildPassengerWhat facilities are there for travel with children?

Children under 12 can get a half price ticket on TGV INOUI trains. Children under 4 travel free when they travel on your lap.

ModeOfTransportBikeModeOfTransportBikeCan I bring a bike on board?

If you've got a foldable bicycle, you can take it on the train as hand baggage, so long as it's no larger than 130 x 90 cm once folded. Or, if you can dismantle your bike, you can transport it in a cover or case no larger than 130 x 90 cm. You can still travel with a bike that cannot be folded or dismantled - you'll need to reserve a bike space on the train when you buy your ticket. Bike tickets cost €10 per bike, per journey.

PetPetCan I bring pets on board?

Small pets are allowed on board TGV INOUI trains provided they weigh less than 10kg. They must travel in a carrier no larger than 45 x 30 x 25 cm. Tickets for small pets cost €7. Larger dogs can also travel on TGV INOUI services, provided they are wearing a muzzle and are kept on a leash. Tickets for larger dogs cost €20. Guide dogs and assistance dogs travel free of charge on all SNCF trains.

WheelchairWheelchairWhat special assistance is available?

For disabled passengers or those with reduced mobility, you can request assistance through 'Accès Plus'. With this service, a member of staff will meet you at the station and help you get to your seat on the train. To book assistance, contact Accès Plus after you book your tickets (and no later than 48 hours before your train is due to depart).

LuggageLuggageWhat baggage limits are there?

You can carry up to 3 pieces of baggage on iryo trains, as long as they do not exceed 25kg (55.1lbs) in total. These 3 pieces can be 2 suitcases with a maximum size of 85 x 55 x 35cm (33.4 x 21.6 x 13.7 inches) and a backpack or handbag that does not exceed the dimensions of 36 x 27 x 15cm (14.1 x 10.6 x 5.9 inches).

RestaurantRestaurantWhat food and drink is available?

iryo offers different menus with high-quality products in all classes. You can buy your favorite meal from their onboard restaurant/bar car, which is usually near car 2. If you’re traveling in the Infinita Bistró Class, you can enjoy the Infinita Bistró food service – your meal will be served straight to your seat. Please note that you’ll need to book your meal at least 24 hours in advance.

WiFiWiFiWhat onboard entertainment is available?

You can enjoy free WiFi in all classes on iryo trains, as well as an onboard entertainment platform providing a wide selection of movies, TV series, live news and Spotify.

ChildPassengerChildPassengerWhat facilities are there for travel with children?

Kids aged 0-3 travel for free on all iryo trains. Kids aged 4-13 get a discounted ticket while those aged 14-18 need to pay the full price. Please note that kids aged under 18 need to be accompanied by their parents or legal guardians.

ModeOfTransportBikeModeOfTransportBikeCan I bring a bike on board?

You can take your bike on board iryo trains for free if it’s folded and does not exceed 90 x 120 x 40cm. Also, your bike must travel without the pedals and with the handlebar rotated 90 degrees.

PetPetCan I bring pets on board?

iryo allows pets that do not exceed 10kg (22lbs) in weight, as long as they travel inside a carrier with a maximum size of 60 x 35 x 35cm (23.6 x 13.7 x 13.7 inches). You'll need to buy a ticket for your pet in advance. In addition, guide dogs can travel at no additional cost.

WheelchairWheelchairWhat special assistance is available?

There are 2 seats for people with reduced mobility on iryo trains. Step-free access is also available both when boarding and when getting off the train.

LuggageLuggageWhat baggage limits are there?

With AVE, you can travel with up to 3 pieces of baggage that do not exceed 290cm (114.1 inches) and 25kg (55.1 pounds). In total, the maximum measurements of each piece of baggage are 85 x 55 x 35cm (33.4 x 21.6 x 13.7 inches). Musical instruments also count as hand baggage as long as they do not exceed the dimensions 30 x 120 x 38cm (11.8 x 47.2 x 14.9 inches) and are stored in a case.

RestaurantRestaurantWhat food and drink is available?

If you’d like to stretch your legs and grab a coffee during your journey, AVE trains have an onboard dining car. If you’d prefer to stay in your seat, AVE staff will pass through each car with a food and drink cart.

WiFiWiFiWhat onboard entertainment is available?

On AVE trains, you can take advantage of PlayRenfe – their free WiFi and entertainment pass. Giving you access to exclusive content and fast connection speeds, PlayRenfe can be downloaded from the app store on your phone. Once you’re connected, you can access the PlayRenfe portal, where you’ll find exclusive live sport, news, films and TV series.

ChildPassengerChildPassengerWhat facilities are there for travel with children?

Children under 3 years old travel for free with AVE, as long as they do not occupy a seat and have their free child ticket. Children from 3 to 14 years old can take advantage of a 40% discount on ticket prices.

ModeOfTransportBikeModeOfTransportBikeCan I bring a bike on board?

On all AVE trains, each passenger can take one bicycle or scooter on board, as long as it’s folded and carried inside a case. Also, the pedals must be removed and handlebars turned 90 degrees. Lastly, if the sum of the dimensions of the case is less than 180cm (70.8 inches), it's considered as hand luggage. However, if it’s bigger, it will be considered as special luggage (max dimensions 120 x 90 x 40 cm or 47.2 x 35.4 x 15.7 inches).

PetPetCan I bring pets on board?

With AVE, you can travel with a pet as long as it weighs no more than 10 kg (22 pounds) and travels inside a cage or carrier that measures max 60 x 35 x 35 cm (23 x 13 x 13 inches). Your pet must have their own pet ticket, unless you’re traveling with a Premium ticket, in which case the pet ticket is free. Guide and assistance dogs travel for free.

WheelchairWheelchairWhat special assistance is available?

AVE offer a free assistance and care service for people with reduced mobility. To request the service, passengers should contact AVE directly.

LuggageLuggageWhat baggage limits are there?

Traveling with a Básica ticket on an Avlo train? You can travel with 1 piece of hand baggage and 1 suitcase. Both pieces of baggage are not subject to a weight limit, but the hand baggage cannot exceed 27cm (10.6") x 36cm (14.1") x 25cm (9.8") and the suitcase cannot exceed 55cm (21.6") x 35cm (13.7") x 25cm (9.8") in dimensions. If you’d like to add 1 extra piece of baggage, you’ll need to pay a fee of €10 if you buy it at the time of purchase and €30 if you get it at the station.

RestaurantRestaurantWhat food and drink is available?

On Avlo trains, there is no onboard dining service. However, you will find a vending machine, serving a diverse variety of hot and cold drinks and snacks. Please note that the vending machine only accepts card payments.

WiFiWiFiWhat onboard entertainment is available?

If you’re traveling with Avlo, you can enjoy free WiFi through the PlayRenfe platform. As soon as you’re connected you can enjoy films, television shows, newspapers and much more.

ChildPassengerChildPassengerWhat facilities are there for travel with children?

Children under 3 years old travel for free with Avlo, as long as they do not occupy a seat. Children under 14 travel for €5 (maximum of 2 child tickets per adult).

ModeOfTransportBikeModeOfTransportBikeCan I bring a bike on board?

Only folding bikes and scooters are allowed on board Avlo trains, as long as they do not exceed the dimensions permitted for suitcases – 55 x 35 x 25cm (21.6" x 13.7" x 9.8").

PetPetCan I bring pets on board?

You can travel with your pet for only €10 ($11.01), provided that you have a small pet, such as a dog, cat, ferret or bird (not poultry). Your pet must not weigh more than 10 kg (22 lbs) and must travel inside a cage or carrier, which must not exceed dimensions of 60 x 35 x 35 cm (23.6" x 13.7" x 13.7").

Please note there is a maximum of 1 pet per person and all pets must always travel with their own pet ticket and not take up a seat. Guide and assistance dogs are allowed on the train free of charge.

WheelchairWheelchairWhat special assistance is available?

With Avlo, passengers with reduced mobility can request the assistance service. For more information, contact Avlo directly.

Cheap train tickets from Budapest to Madrid

The price of train tickets from Budapest to Madrid starts at $541.54 one-way for a Standard Class ticket if you book in advance. Booking on the day is usually more expensive and costs can vary depending on the time of day, route or class.

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 Budapest to Madrid 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.

§Some train companies may not offer any Advance ticket types or cheaper deals for early bookings. On rare occasions, train companies may choose to release special offers closer to the date on last-minute or late-release tickets. This is dependent on the individual train operating company you travel with.

* 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.