🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 114 (from laksa049)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

đź“„
INDEXABLE
âś…
CRAWLED
22 hours ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://rail.ninja/route/barcelona-to-madrid
Last Crawled2026-04-14 15:47:11 (22 hours ago)
First Indexed2018-04-28 09:26:33 (7 years ago)
HTTP Status Code200
Meta TitleBarcelona to Madrid Train Tickets | Fast Ave Train
Meta DescriptionPlanning on traveling onboard a modern train during your trip? Learn more about the Barcelona to Madrid Trains route & book your train tickets on Rail.Ninja!
Meta Canonicalnull
Boilerpipe Text
One Way Round Trip Group booking 17 Apr Barcelona Madrid Find stay for your trip Rail Ninja is a reservation service for booking train tickets online. It is not a rail carrier, does not own or operate any trains, and does not represent an official website of any railway company. It is a commercial business that makes it easier for you to book train tickets online. Best Mobile App Rated Exceptional Rated Excellent Our free app for every step of your journey — travel planning has never been easier! Barcelona to Madrid Train Timetable Morning departures Fastest trip 3 hrs 2 min Longest trip 6 hrs 33 min Earliest 05:40 Latest 11:25 Departures 19 Afternoon departures Fastest trip 3 hrs 2 min Longest trip 7 hrs 3 min Earliest 12:00 Latest 17:25 Departures 16 Evening departures Fastest trip 3 hrs 2 min Longest trip 3 hrs 44 min Earliest 18:00 Latest 20:00 Departures 7 Barcelona to Madrid Train Information The charming Spanish capital, Madrid, and the popular Catalonian gem, Barcelona, are surely worth seeing at least once in a lifetime. And taking a well-equipped high-speed Barcelona to Madrid train is certainly a great and comfortable option, saving a lot of your time. Below you can find out more about travel from Barcelona to Madrid, the route, and the trains, including answers to frequently asked questions. Or you can enhance your experience and make the most of your Spain trip with the innovative trip planner. Let your imagination go wild with the Spain itinerary builder . Mix the amazing sights into one trip and get ready to dive into the charms of this incredible country! Barcelona 505 km Madrid Shortest travel time: 3 h 2 m Earliest departure: 05:40 Longest travel time: 7 h 3 m Lowest ticket cost: $73 Avg. daily departures: 42 Latest departure: 20:00 Popular questions about Barcelona to Madrid Trains How far is Barcelona from Madrid? The distance from Barcelona to Madrid is 505 kilometers which is approximately 314 miles. Although it may seem that traveling on an airplane for your connection between the cities is the wisest choice when covering such a long distance, taking a train from Barcelona to Madrid has proven itself to be a more time-efficient option. Are there direct train services? The most popular choice among travelers is the direct train which runs on the route, the high-speed AVE, which can reach the speed of 186 mph. Such trains are operated by the Renfe company and are favored for their onboard comfort and convenience of departure and arrival locations (right in the city centers: the Sants Station in Barcelona and the Puerta de Atocha Station in Madrid). How long does it take to travel? As mentioned before, one of the fastest and most advantageous travel options is taking the bullet train. If you’re wondering how long is the train from Barcelona to Madrid, the trip duration varies from 2 hours 30 minutes to 3 hours 10 minutes and the train doesn’t make any stops along the way after its departure. What time is the first and last train of the day? Luckily, the fast train from Barcelona to Madrid boasts an extensive schedule with practically hourly departures. Therefore, no matter which day of the week you’ll be traveling, you can count on over 10 options. As a rule, the first train departs at around 6 a.m. and the last train leaves at about 9 p.m. When to buy tickets - now or in advance? When it comes to purchasing your train tickets from Barcelona to Madrid, the smartest way to go is “the earlier - the better”, especially if you’re sure about your travel dates. On Rail Ninja you can book rail tickets for departures as early as 2 years in advance. This way can avoid higher rates and safeguard yourself from the unfortunate cases of little or no availability for your specific date or needed departure time, which is possible when booking last-minute. What is the minimum price of a ticket? Ticket prices for the bullet train Barcelona to Madrid vary based on the departure time, the chosen coach class, the traveler's age (child or adult), as well as on the proximity to the departure. Generally, ticket prices start from around 100 USD. What class to choose? If you plan to take the high-speed AVE Barcelona to Madrid train, you’ll have the choice of several classes: First Class, also called Preferente, or the Second Class, referred to as Turista. All train cars are air-conditioned, modern, and have comfortable seats. First Class cars are more spacious and designed for a smaller number of passengers. You can read more about the seat classes and the train here: AVE high-speed train . Do you need seat reservation? Seat reservation is included in the ticket. When booking your ticket you may indicate your preferable seat choice and, depending on the availability, the best option will be provided for you. Information about your assigned seat and the seat number will be displayed in the ticket. Trains on Barcelona - Madrid route AVE Bullet train Travel time 3 hrs 2 min Price from $78 Departures 25 Euromed Train with 1 change Travel time 6 hrs 22 min Price from $124 Departures 2 Renfe Train with 1 change Travel time 6 hrs 33 min Price from $105 Departures 1 One Way Round Trip Group booking 17 Apr Barcelona Madrid Find stay for your trip 9.8 / 10 based on 62 reviews Related to Barcelona to Madrid Trains Ave High-Speed Train Spain Trains Extensive Network One platform, 34+ destinations, 700+ routes around the globe. Convenient Booking We speak your language and offer over 20 payment methods. Excellent Rating Read authentic Rail Ninja reviews and see what our travelers say about us. Flexible Planning You can conveniently book train tickets for up to a year in advance! Real Human Support Need a hand? Contact our customer support before or during your trip.
Markdown
![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2F2023-06%2Fken-cheung-vbltncebtfe-unsplash-1-min_1.webp&w=3840&q=75) - European Trains - Asia & Oceania - Americas Trains - Middle East & Africa - About My Tickets # Barcelona to Madrid Trains One Way Round Trip Group booking Find stay for your trip Rail Ninja is a reservation service for booking train tickets online. It is not a rail carrier, does not own or operate any trains, and does not represent an official website of any railway company. It is a commercial business that makes it easier for you to book train tickets online. - [Best Mobile App![](https://rail.ninja/sites/default/files/2026-03/en.webp)](https://onelink.to/uhudy7) - [Rated Exceptional![](https://rail.ninja/sites/default/files/2026-03/feefo1.webp)](https://www.feefo.com/en-GB/reviews/rail-ninja) - [Rated Excellent![](https://rail.ninja/sites/default/files/2026-03/trustpilot_43.webp)](https://www.trustpilot.com/review/rail.ninja) ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2F2025-02%2Frectangle_6407.webp&w=1080&q=1) ###### Our free app for every step of your journey — travel planning has never been easier\! ## Barcelona to Madrid Train Timetable Morning departures Fastest trip3 hrs 2 min Longest trip6 hrs 33 min Earliest05:40 Latest11:25 Departures19 Afternoon departures Fastest trip3 hrs 2 min Longest trip7 hrs 3 min Earliest12:00 Latest17:25 Departures16 Evening departures Fastest trip3 hrs 2 min Longest trip3 hrs 44 min Earliest18:00 Latest20:00 Departures7 - 1 - 2 ## Barcelona to Madrid Train Information ![video](https://rail.ninja/_next/image?url=https%3A%2F%2Fi3.ytimg.com%2Fvi_webp%2FtdjEpupns6k%2Fmaxresdefault.webp&w=3840&q=60) The charming Spanish capital, Madrid, and the popular Catalonian gem, Barcelona, are surely worth seeing at least once in a lifetime. And taking a well-equipped high-speed Barcelona to Madrid train is certainly a great and comfortable option, saving a lot of your time. Below you can find out more about travel from Barcelona to Madrid, the route, and the trains, including answers to frequently asked questions. Or you can enhance your experience and make the most of your Spain trip with the innovative trip planner. Let your imagination go wild with the [Spain itinerary builder](https://triptile.com/destination/spain). Mix the amazing sights into one trip and get ready to dive into the charms of this incredible country\! ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2Fdescription-route-page.webp&w=3840&q=75) Barcelona 3 stations [Sants Station, Spain](https://rail.ninja/station/sants-barcelona) Barcelona Airport Terminal, SpainBarcelona Estacion Nord, Spain 505 km Madrid 6 stations [Pta. Atocha - Almudena Grandes, Spain](https://rail.ninja/station/puerta-atocha-madrid) [Chamartin, Spain](https://rail.ninja/station/chamartin-madrid) [Madrid - Atocha Cercanias, Spain](https://rail.ninja/station/madrid-atocha-cercanias) [Principe Pio, Spain](https://rail.ninja/station/madrid-principe-pio) Madrid Estacion Sur, SpainMadrid Avenida de America Bus Station, Spain Shortest travel time:3 h 2 m Earliest departure:05:40 Longest travel time:7 h 3 m Lowest ticket cost:\$73 Avg. daily departures:42 Latest departure:20:00 ## Popular questions about Barcelona to Madrid Trains ## How far is Barcelona from Madrid? The distance from Barcelona to Madrid is 505 kilometers which is approximately 314 miles. Although it may seem that traveling on an airplane for your connection between the cities is the wisest choice when covering such a long distance, taking a [train from Barcelona to Madrid](https://www.spanishtrains.com/barcelona-to-madrid-train) has proven itself to be a more time-efficient option. ## Are there direct train services? The most popular choice among travelers is the direct train which runs on the route, the high-speed AVE, which can reach the speed of 186 mph. Such trains are operated by the Renfe company and are favored for their onboard comfort and convenience of departure and arrival locations (right in the city centers: the Sants Station in Barcelona and the Puerta de Atocha Station in Madrid). ## How long does it take to travel? As mentioned before, one of the fastest and most advantageous travel options is taking the bullet train. If you’re wondering how long is the train from Barcelona to Madrid, the trip duration varies from 2 hours 30 minutes to 3 hours 10 minutes and the train doesn’t make any stops along the way after its departure. ## What time is the first and last train of the day? Luckily, the fast train from Barcelona to Madrid boasts an extensive schedule with practically hourly departures. Therefore, no matter which day of the week you’ll be traveling, you can count on over 10 options. As a rule, the first train departs at around 6 a.m. and the last train leaves at about 9 p.m. ## When to buy tickets - now or in advance? When it comes to purchasing your train tickets from Barcelona to Madrid, the smartest way to go is “the earlier - the better”, especially if you’re sure about your travel dates. On Rail Ninja you can book rail tickets for departures as early as 2 years in advance. This way can avoid higher rates and safeguard yourself from the unfortunate cases of little or no availability for your specific date or needed departure time, which is possible when booking last-minute. ## What is the minimum price of a ticket? Ticket prices for the bullet train Barcelona to Madrid vary based on the departure time, the chosen coach class, the traveler's age (child or adult), as well as on the proximity to the departure. Generally, ticket prices start from around 100 USD. ## What class to choose? If you plan to take the high-speed AVE Barcelona to Madrid train, you’ll have the choice of several classes: First Class, also called Preferente, or the Second Class, referred to as Turista. All train cars are air-conditioned, modern, and have comfortable seats. First Class cars are more spacious and designed for a smaller number of passengers. You can read more about the seat classes and the train here: [AVE high-speed train](https://rail.ninja/train/ave-high-speed-train). ## Do you need seat reservation? Seat reservation is included in the ticket. When booking your ticket you may indicate your preferable seat choice and, depending on the availability, the best option will be provided for you. Information about your assigned seat and the seat number will be displayed in the ticket. ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2Ftrains-route-page.webp&w=3840&q=75) ## Trains on Barcelona - Madrid route AVEBullet train![AVE](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Ftrain_base%2Fbrand_logo%2FAVE.svg_.webp&w=256&q=75) Travel time3 hrs 2 min Price from\$78 Departures25 EuromedTrain with 1 change![Euromed](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Ftrain_base%2Fsupplier_logo%2Frenfe.webp&w=256&q=75) Travel time6 hrs 22 min Price from\$124 Departures2 RenfeTrain with 1 change![](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Ftrain_base%2Fsupplier_logo%2Frenfe.webp&w=256&q=75) Travel time6 hrs 33 min Price from\$105 Departures1 IryoBullet train![Iryo](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Ftrain_base%2Fbrand_logo%2Fsnimok.webp&w=256&q=75) Travel time3 hrs 2 min Price from\$73 Departures13 AVE INTExpress train![AVE INT](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Ftrain_base%2Fsupplier_logo%2Frenfe.webp&w=256&q=75) Travel time3 hrs 28 min Price from\$102 Departures1 - 1 - 2 - 3 - 4 One Way Round Trip Group booking Find stay for your trip ## Popular routes from Barcelona and Madrid If you have ever been to Spain, you know that the nature in the country is simply stunning. And while not everyone enjoys hiking or one-on-one time with nature at all, scenic views can be really hard to resist. And taking a Barcelona to Madrid train is a great compromise. Fast travel times, great onboard amenities, and awesome views are all pack of the deal. But why not see even more? Check out the most popular trains from Barcelona and Madrid and get inspired to explore the breathtaking country of Spain far and wide\! ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F1.webp&w=3840&q=75) [Trains from Madridto Barcelona](https://rail.ninja/route/madrid-to-barcelona) Trains per day36 Distance505 km Popular trainsAVE, Alvia, AVLO, Iryo, AVE INT ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F2.webp&w=3840&q=75) [Trains from Barcelonato Valencia](https://rail.ninja/route/barcelona-to-valencia) Trains per day8 Distance303 km Popular trainsEuromed, Renfe ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F3.webp&w=3840&q=75) [Trains from Valenciato Barcelona](https://rail.ninja/route/valencia-to-barcelona) Trains per day7 Distance303 km Popular trainsEuromed, Renfe ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F4.webp&w=3840&q=75) [Trains from Barcelonato Seville](https://rail.ninja/route/barcelona-to-seville) Trains per day34 Distance828 km Popular trainsAVE, Iryo, AVE INT ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F5.webp&w=3840&q=75) [Trains from Sevilleto Barcelona](https://rail.ninja/route/seville-to-barcelona) Trains per day8 Distance828 km Popular trainsAVE, AVLO, Iryo ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F6.webp&w=3840&q=75) [Trains from Barcelonato Malaga](https://rail.ninja/route/barcelona-to-malaga) Trains per day5 Distance770 km Popular trainsAVE ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F1.webp&w=3840&q=75) [Trains from Malagato Barcelona](https://rail.ninja/route/malaga-to-barcelona) Trains per day6 Distance771 km Popular trainsAVE, Iryo ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F2.webp&w=3840&q=75) [Trains from Barcelonato Paris](https://rail.ninja/route/barcelona-to-paris) Trains per day2 Distance1080 km Popular trainsTGV INOUI ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F3.webp&w=3840&q=75) [Trains from Paristo Barcelona](https://rail.ninja/route/paris-to-barcelona) Trains per day2 Distance1080 km Popular trainsTGV INOUI ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F4.webp&w=3840&q=75) [Trains from Barcelonato San Sebastian](https://rail.ninja/route/barcelona-to-san-sebastian) Trains per day1 Distance634 km Popular trainsAlvia ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F5.webp&w=3840&q=75) [Trains from San Sebastianto Barcelona](https://rail.ninja/route/san-sebastian-to-barcelona) Trains per day1 Distance634 km Popular trainsAlvia ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F6.webp&w=3840&q=75) [Trains from Barcelonato Bilbao](https://rail.ninja/route/barcelona-to-bilbao) Trains per day3 Distance658 km Popular trainsAVE, Alvia ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F1.webp&w=3840&q=75) [Trains from Bilbaoto Barcelona](https://rail.ninja/route/bilbao-to-barcelona) Trains per day3 Distance658 km Popular trainsRenfe, Alvia ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F2.webp&w=3840&q=75) [Trains from Barcelonato Alicante](https://rail.ninja/route/barcelona-to-alicante) Trains per day5 Distance519 km Popular trainsEuromed, Renfe ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F3.webp&w=3840&q=75) [Trains from Alicanteto Barcelona](https://rail.ninja/route/alicante-to-barcelona) Trains per day5 Distance519 km Popular trainsEuromed, Renfe ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F4.webp&w=3840&q=75) [Trains from Barcelonato Marseille](https://rail.ninja/route/barcelona-to-marseille) Trains per day1 Distance528 km Popular trainsAVE INT ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F5.webp&w=3840&q=75) [Trains from Marseilleto Barcelona](https://rail.ninja/route/marseille-to-barcelona) Trains per day1 Distance528 km Popular trainsAVE INT ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F6.webp&w=3840&q=75) [Trains from Barcelonato Zaragoza](https://rail.ninja/route/barcelona-to-zaragoza) Trains per day26 Distance314 km Popular trainsAVE, Alvia, Iryo ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F1.webp&w=3840&q=75) [Trains from Madridto Valencia](https://rail.ninja/route/madrid-to-valencia) Trains per day27 Distance389 km Popular trainsAVE, AVLO, Iryo ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F2.webp&w=3840&q=75) [Trains from Valenciato Madrid](https://rail.ninja/route/valencia-to-madrid) Trains per day24 Distance389 km Popular trainsAVE, AVLO, Iryo ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F3.webp&w=3840&q=75) [Trains from Madridto Seville](https://rail.ninja/route/madrid-to-seville) Trains per day24 Distance390 km Popular trainsAVE, Alvia, Renfe, AVLO, Iryo ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F4.webp&w=3840&q=75) [Trains from Sevilleto Madrid](https://rail.ninja/route/seville-to-madrid) Trains per day27 Distance390 km Popular trainsAVE, Alvia, Renfe, AVLO, Iryo ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F5.webp&w=3840&q=75) [Trains from Madridto Malaga](https://rail.ninja/route/madrid-to-malaga) Trains per day16 Distance417 km Popular trainsAVE, AVLO, Iryo ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F6.webp&w=3840&q=75) [Trains from Malagato Madrid](https://rail.ninja/route/malaga-to-madrid) Trains per day16 Distance417 km Popular trainsAVE, AVLO, Iryo ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F1.webp&w=3840&q=75) [Trains from Madridto Lisbon](https://rail.ninja/route/madrid-to-lisbon) Trains per day21 Distance502 km Popular trainsAlsa ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F2.webp&w=3840&q=75) [Trains from Lisbonto Madrid](https://rail.ninja/route/lisbon-to-madrid) Trains per day4 Distance502 km Popular trainsAlsa ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F3.webp&w=3840&q=75) [Trains from Madridto San Sebastian](https://rail.ninja/route/madrid-to-san-sebastian) Trains per day65 Distance462 km Popular trainsAlvia, Avant, Renfe, AVE INT, Renfe ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F4.webp&w=3840&q=75) [Trains from San Sebastianto Madrid](https://rail.ninja/route/san-sebastian-to-madrid) Trains per day6 Distance462 km Popular trainsAlvia, Renfe ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F5.webp&w=3840&q=75) [Trains from Madridto Toledo](https://rail.ninja/route/madrid-to-toledo) Trains per day15 Distance73 km Popular trainsAvant ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F6.webp&w=3840&q=75) [Trains from Toledoto Madrid](https://rail.ninja/route/toledo-to-madrid) Trains per day12 Distance73 km Popular trainsAvant ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F1.webp&w=3840&q=75) [Trains from Madridto Cordoba (Spain)](https://rail.ninja/route/madrid-to-cordoba) Trains per day41 Distance318 km Popular trainsAVE, Alvia, Avant, Renfe, AVLO, Iryo ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F2.webp&w=3840&q=75) [Trains from Cordoba (Spain)to Madrid](https://rail.ninja/route/cordoba-to-madrid) Trains per day40 Distance318 km Popular trainsAVE, Alvia, Renfe, AVLO, Iryo ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F3.webp&w=3840&q=75) [Trains from Madridto Bilbao](https://rail.ninja/route/madrid-to-bilbao) Trains per day3 Distance491 km Popular trainsAlvia, Renfe ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F4.webp&w=3840&q=75) [Trains from Bilbaoto Madrid](https://rail.ninja/route/bilbao-to-madrid) Trains per day3 Distance491 km Popular trainsAlvia ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2F5.webp&w=3840&q=75) [Trains from Madridto Alicante](https://rail.ninja/route/madrid-to-alicante) Trains per day17 Distance487 km Popular trainsAVE, Alvia, Avant, AVLO - 1 - 2 - 3 - 4 - 5 - 6 9\.8 / 10 based on 62 reviews ## Related to Barcelona to Madrid Trains Extensive Network One platform, 34+ destinations, 700+ routes around the globe. Convenient Booking We speak your language and offer over 20 payment methods. Excellent Rating Read authentic [Rail Ninja reviews](https://www.feefo.com/en-GB/reviews/rail-ninja) and see what our travelers say about us. Flexible Planning You can conveniently book train tickets for up to a year in advance\! Real Human Support Need a hand? Contact our customer support before or during your trip. ###### Our free app for every step of your journey — travel planning has never been easier\! [Trains from Lisbon to Porto](https://rail.ninja/route/lisbon-to-porto)[Trains from Porto to Lisbon](https://rail.ninja/route/porto-to-lisbon)[Trains from Lisbon to Albufeira](https://rail.ninja/route/lisbon-to-albufeira)[Trains from Albufeira to Lisbon](https://rail.ninja/route/albufeira-to-lisbon)[Trains from Lisbon to Lagos](https://rail.ninja/route/lisbon-to-lagos)[Trains from Lagos to Lisbon](https://rail.ninja/route/lagos-to-lisbon)[Trains from Lisbon to Madrid](https://rail.ninja/route/lisbon-to-madrid)[Trains from Madrid to Lisbon](https://rail.ninja/route/madrid-to-lisbon)[Trains from Lisbon to Faro](https://rail.ninja/route/lisbon-to-faro)[Trains from Faro to Lisbon](https://rail.ninja/route/faro-to-lisbon)[Trains from Lisbon to Coimbra](https://rail.ninja/route/lisbon-to-coimbra)[Trains from Coimbra to Lisbon](https://rail.ninja/route/coimbra-to-lisbon)[Trains from Lisbon to Braga](https://rail.ninja/route/lisbon-to-braga)[Trains from Braga to Lisbon](https://rail.ninja/route/braga-to-lisbon)[Trains from Porto to Coimbra](https://rail.ninja/route/porto-to-coimbra)[Trains from Coimbra to Porto](https://rail.ninja/route/coimbra-to-porto)[Trains from Barcelona to Madrid](https://rail.ninja/route/barcelona-to-madrid)[Trains from Madrid to Barcelona](https://rail.ninja/route/madrid-to-barcelona)[Trains from Barcelona to Valencia](https://rail.ninja/route/barcelona-to-valencia)[Trains from Valencia to Barcelona](https://rail.ninja/route/valencia-to-barcelona)[Trains from Barcelona to Paris](https://rail.ninja/route/barcelona-to-paris)[Trains from Paris to Barcelona](https://rail.ninja/route/paris-to-barcelona)[Trains from Barcelona to Seville](https://rail.ninja/route/barcelona-to-seville)[Trains from Seville to Barcelona](https://rail.ninja/route/seville-to-barcelona)[Trains from Barcelona to San Sebastian](https://rail.ninja/route/barcelona-to-san-sebastian)[Trains from San Sebastian to Barcelona](https://rail.ninja/route/san-sebastian-to-barcelona)[Trains from Barcelona to Malaga](https://rail.ninja/route/barcelona-to-malaga)[Trains from Malaga to Barcelona](https://rail.ninja/route/malaga-to-barcelona)[Trains from Madrid to Seville](https://rail.ninja/route/madrid-to-seville)[Trains from Seville to Madrid](https://rail.ninja/route/seville-to-madrid)[Trains from Madrid to Malaga](https://rail.ninja/route/madrid-to-malaga)[Trains from Malaga to Madrid](https://rail.ninja/route/malaga-to-madrid)[Trains from Madrid to Valencia](https://rail.ninja/route/madrid-to-valencia)[Trains from Valencia to Madrid](https://rail.ninja/route/valencia-to-madrid)[Trains from Madrid to Cordoba](https://rail.ninja/route/madrid-to-cordoba)[Trains from Cordoba to Madrid](https://rail.ninja/route/cordoba-to-madrid)[Trains from Madrid to Alicante](https://rail.ninja/route/madrid-to-alicante)[Trains from Alicante to Madrid](https://rail.ninja/route/alicante-to-madrid)[Trains from Madrid to San Sebastian](https://rail.ninja/route/madrid-to-san-sebastian)[Trains from San Sebastian to Madrid](https://rail.ninja/route/san-sebastian-to-madrid)[Trains from Malaga to Valencia](https://rail.ninja/route/malaga-to-valencia)[Trains from Valencia to Malaga](https://rail.ninja/route/valencia-to-malaga)[Trains from Malaga to Seville](https://rail.ninja/route/malaga-to-seville)[Trains from Seville to Malaga](https://rail.ninja/route/seville-to-malaga)[Trains from Seville to Valencia](https://rail.ninja/route/seville-to-valencia)[Trains from Valencia to Seville](https://rail.ninja/route/valencia-to-seville)[Trains from Seville to Cordoba](https://rail.ninja/route/seville-to-cordoba)[Trains from Cordoba to Seville](https://rail.ninja/route/cordoba-to-seville)[Trains from Florence to Rome](https://rail.ninja/route/florence-to-rome)[Trains from Rome to Florence](https://rail.ninja/route/rome-to-florence)[Trains from Rome to Venice](https://rail.ninja/route/rome-to-venice)[Trains from Venice to Rome](https://rail.ninja/route/venice-to-rome)[Trains from Rome to Milan](https://rail.ninja/route/rome-to-milan)[Trains from Milan to Rome](https://rail.ninja/route/milan-to-rome)[Trains from Rome to Naples](https://rail.ninja/route/rome-to-naples)[Trains from Naples to Rome](https://rail.ninja/route/naples-to-rome)[Trains from Venice to Florence](https://rail.ninja/route/venice-to-florence)[Trains from Florence to Venice](https://rail.ninja/route/florence-to-venice)[Trains from Venice to Milan](https://rail.ninja/route/venice-to-milan)[Trains from Milan to Venice](https://rail.ninja/route/milan-to-venice)[Trains from Venice to Vienna](https://rail.ninja/route/venice-to-vienna)[Trains from Vienna to Venice](https://rail.ninja/route/vienna-to-venice)[Trains from Milan to Florence](https://rail.ninja/route/milan-to-florence)[Trains from Florence to Milan](https://rail.ninja/route/florence-to-milan)[Trains from Milan to Zurich](https://rail.ninja/route/milan-to-zurich)[Trains from Zurich to Milan](https://rail.ninja/route/zurich-to-milan)[Trains from Vienna to Salzburg](https://rail.ninja/route/vienna-to-salzburg)[Trains from Salzburg to Vienna](https://rail.ninja/route/salzburg-to-vienna)[Trains from Vienna to Zurich](https://rail.ninja/route/vienna-to-zurich)[Trains from Zurich to Vienna](https://rail.ninja/route/zurich-to-vienna)[Trains from Munich to Berlin](https://rail.ninja/route/munich-to-berlin)[Trains from Berlin to Munich](https://rail.ninja/route/berlin-to-munich)[Trains from Munich to Salzburg](https://rail.ninja/route/munich-to-salzburg)[Trains from Salzburg to Munich](https://rail.ninja/route/salzburg-to-munich)[Trains from Munich to Prague](https://rail.ninja/route/munich-to-prague)[Trains from Prague to Munich](https://rail.ninja/route/prague-to-munich)[Trains from Berlin to Prague](https://rail.ninja/route/berlin-to-prague)[Trains from Prague to Berlin](https://rail.ninja/route/prague-to-berlin)[Trains from Prague to Vienna](https://rail.ninja/route/prague-to-vienna)[Trains from Vienna to Prague](https://rail.ninja/route/vienna-to-prague)[Trains from Prague to Budapest](https://rail.ninja/route/prague-to-budapest)[Trains from Budapest to Prague](https://rail.ninja/route/budapest-to-prague)[Trains from Prague to Zagreb](https://rail.ninja/route/prague-to-zagreb)[Trains from Zagreb to Prague](https://rail.ninja/route/zagreb-to-prague)[Trains from Prague to Rijeka](https://rail.ninja/route/prague-to-rijeka)[Trains from Rijeka to Prague](https://rail.ninja/route/rijeka-to-prague)[Trains from Prague to Split](https://rail.ninja/route/prague-to-split)[Trains from Split to Prague](https://rail.ninja/route/split-to-prague)[Trains from Budapest to Salzburg](https://rail.ninja/route/budapest-to-salzburg)[Trains from Salzburg to Budapest](https://rail.ninja/route/salzburg-to-budapest)[Trains from Budapest to Vienna](https://rail.ninja/route/budapest-to-vienna)[Trains from Vienna to Budapest](https://rail.ninja/route/vienna-to-budapest)[Trains from Budapest to Munich](https://rail.ninja/route/budapest-to-munich)[Trains from Munich to Budapest](https://rail.ninja/route/munich-to-budapest)[Trains from Vienna to Innsbruck](https://rail.ninja/route/vienna-to-innsbruck)[Trains from Innsbruck to Vienna](https://rail.ninja/route/innsbruck-to-vienna)[Trains from Vienna to Ljubljana](https://rail.ninja/route/vienna-to-ljubljana)[Trains from Ljubljana to Vienna](https://rail.ninja/route/ljubljana-to-vienna)[Trains from Vienna to Munich](https://rail.ninja/route/vienna-to-munich)[Trains from Munich to Vienna](https://rail.ninja/route/munich-to-vienna) [Trains from Amsterdam to Brussels](https://rail.ninja/route/amsterdam-to-brussels)[Trains from Brussels to Amsterdam](https://rail.ninja/route/brussels-to-amsterdam)[Trains from Amsterdam to Paris](https://rail.ninja/route/amsterdam-to-paris)[Trains from Paris to Amsterdam](https://rail.ninja/route/paris-to-amsterdam)[Trains from Brussels to Paris](https://rail.ninja/route/brussels-to-paris)[Trains from Paris to Brussels](https://rail.ninja/route/paris-to-brussels) [Trains from Paris to Marseille](https://rail.ninja/route/paris-to-marseille)[Trains from Marseille to Paris](https://rail.ninja/route/marseille-to-paris)[Trains from Geneva to Paris](https://rail.ninja/route/geneva-to-paris)[Trains from Paris to Geneva](https://rail.ninja/route/paris-to-geneva)[Trains from Paris to London](https://rail.ninja/route/paris-to-london)[Trains from London to Paris](https://rail.ninja/route/london-to-paris)[Trains from London to Edinburgh](https://rail.ninja/route/london-to-edinburgh)[Trains from Edinburgh to London](https://rail.ninja/route/edinburgh-to-london)[Trains from London to Liverpool](https://rail.ninja/route/london-to-liverpool)[Trains from Liverpool to London](https://rail.ninja/route/liverpool-to-london)[Trains from London to Birmingham](https://rail.ninja/route/london-to-birmingham)[Trains from Birmingham to London](https://rail.ninja/route/birmingham-to-london)[Trains from London to Glasgow](https://rail.ninja/route/london-to-glasgow)[Trains from Glasgow to London](https://rail.ninja/route/glasgow-to-london)[Trains from Glasgow to Edinburgh](https://rail.ninja/route/glasgow-to-edinburgh)[Trains from Edinburgh to Glasgow](https://rail.ninja/route/edinburgh-to-glasgow)[Trains from Glasgow to Fort William](https://rail.ninja/route/glasgow-to-fort-william)[Trains from Fort William To Glasgow](https://rail.ninja/route/fort-william-to-glasgow)[Trains from Dublin to Belfast](https://rail.ninja/route/dublin-to-belfast)[Trains from Belfast to Dublin](https://rail.ninja/route/belfast-to-dublin)[Trains from Dublin to Cork](https://rail.ninja/route/dublin-to-cork)[Trains from Cork to Dublin](https://rail.ninja/route/cork-to-dublin)[Trains from Budapest to Bratislava](https://rail.ninja/route/budapest-to-bratislava)[Trains from Bratislava to Budapest](https://rail.ninja/route/bratislava-to-budapest)[Trains from Bucharest to Brasov](https://rail.ninja/route/bucharest-to-brasov)[Trains from Brasov to Bucharest](https://rail.ninja/route/brasov-to-bucharest)[Trains from Krakow to Warsaw](https://rail.ninja/route/krakow-to-warsaw)[Trains from Warsaw to Krakow](https://rail.ninja/route/warsaw-to-krakow)[Trains from Sofia to Varna](https://rail.ninja/route/sofia-to-varna)[Trains from Varna to Sofia](https://rail.ninja/route/varna-to-sofia)[Trains from Ankara to Istanbul](https://rail.ninja/route/ankara-to-istanbul)[Trains from Istanbul to Ankara](https://rail.ninja/route/istanbul-to-ankara)[Trains from Athens to Thessaloniki](https://rail.ninja/route/athens-to-thessaloniki)[Trains from Thessaloniki to Athens](https://rail.ninja/route/thessaloniki-to-athens)[Trains from Mecca to Medina](https://rail.ninja/route/mecca-to-medina)[Trains from Medina to Mecca](https://rail.ninja/route/medina-to-mecca)[Trains from Athens to Livadeia](https://rail.ninja/route/athens-to-livadeia)[Trains from Livadeia to Athens](https://rail.ninja/route/livadeia-to-athens)[Trains from Helsinki to Rovaniemi](https://rail.ninja/route/helsinki-to-rovaniemi)[Trains from Rovaniemi to Helsinki](https://rail.ninja/route/rovaniemi-to-helsinki)[Trains from Helsinki to Turku](https://rail.ninja/route/helsinki-to-turku)[Trains from Turku to Helsinki](https://rail.ninja/route/turku-to-helsinki)[Trains from Oslo to Stockholm](https://rail.ninja/route/oslo-to-stockholm)[Trains from Stockholm to Oslo](https://rail.ninja/route/stockholm-to-oslo)[Trains from Oslo to Bergen](https://rail.ninja/route/oslo-to-bergen)[Trains from Bergen to Oslo](https://rail.ninja/route/bergen-to-oslo)[Trains from Oslo to Flam](https://rail.ninja/route/oslo-to-flam)[Trains from Flam to Oslo](https://rail.ninja/route/flam-to-oslo)[Trains from Oslo to Myrdal](https://rail.ninja/route/oslo-to-myrdal)[Trains from Myrdal to Oslo](https://rail.ninja/route/myrdal-to-oslo)[Trains from Copenhagen to Gothenburg](https://rail.ninja/route/copenhagen-to-gothenburg)[Trains from Gothenburg to Copenhagen](https://rail.ninja/route/gothenburg-to-copenhagen)[Trains from Copenhagen to Stockholm](https://rail.ninja/route/copenhagen-to-stockholm) [Trains from Stockholm to Copenhagen](https://rail.ninja/route/stockholm-to-copenhagen)[Trains from Stockholm to Gothenburg](https://rail.ninja/route/stockholm-to-gothenburg)[Trains from Gothenburg to Stockholm](https://rail.ninja/route/gothenburg-to-stockholm)[Trains from Flam to Myrdal](https://rail.ninja/route/flam-to-myrdal)[Trains from Myrdal to Flam](https://rail.ninja/route/myrdal-to-flam)[Trains from Flam to Bergen](https://rail.ninja/route/flam-to-bergen)[Trains from Bergen to Flam](https://rail.ninja/route/bergen-to-flam)[Trains from Busan to Seoul](https://rail.ninja/route/busan-to-seoul)[Trains from Seoul to Busan](https://rail.ninja/route/seoul-to-busan)[Trains from Daegu to Seoul](https://rail.ninja/route/daegu-to-seoul)[Trains from Seoul to Daegu](https://rail.ninja/route/seoul-to-daegu)[Trains from Seoul to Gwangju](https://rail.ninja/route/seoul-to-gwangju)[Trains from Gwangju to Seoul](https://rail.ninja/route/gwangju-to-seoul)[Trains from Seoul to Daejeon](https://rail.ninja/route/seoul-to-daejeon)[Trains from Daejeon to Seoul](https://rail.ninja/route/daejeon-to-seoul)[Trains from Seoul to Gyeongju](https://rail.ninja/route/seoul-to-gyeongju)[Trains from Gyeongju to Seoul](https://rail.ninja/route/gyeongju-to-seoul)[Trains from Seoul to Jeonju](https://rail.ninja/route/seoul-to-jeonju)[Trains from Jeonju to Seoul](https://rail.ninja/route/jeonju-to-seoul)[Trains from Seoul to Ulsan](https://rail.ninja/route/seoul-to-ulsan)[Trains from Ulsan to Seoul](https://rail.ninja/route/ulsan-to-seoul)[Trains from Seoul to Mokpo](https://rail.ninja/route/seoul-to-mokpo)[Trains from Mokpo to Seoul](https://rail.ninja/route/mokpo-to-seoul)[Trains from Seoul to Changwon](https://rail.ninja/route/seoul-to-changwon)[Trains from Changwon to Seoul](https://rail.ninja/route/changwon-to-seoul)[Trains from Seoul to Pohang](https://rail.ninja/route/seoul-to-pohang)[Trains from Pohang to Seoul](https://rail.ninja/route/pohang-to-seoul)[Trains from Seoul to Pyeongchang](https://rail.ninja/route/seoul-to-pyeongchang)[Trains from Pyeongchang to Seoul](https://rail.ninja/route/pyeongchang-to-seoul)[Trains from Seoul to Gumi](https://rail.ninja/route/seoul-to-gumi)[Trains from Gumi to Seoul](https://rail.ninja/route/gumi-to-seoul)[Trains from Seoul to Yeosu](https://rail.ninja/route/seoul-to-yeosu)[Trains from Yeosu to Seoul](https://rail.ninja/route/yeosu-to-seoul)[Trains from Seoul to Iksan](https://rail.ninja/route/seoul-to-iksan)[Trains from Iksan to Seoul](https://rail.ninja/route/iksan-to-seoul)[Trains from Seoul to Suncheon](https://rail.ninja/route/seoul-to-suncheon)[Trains From Suncheon to Seoul](https://rail.ninja/route/suncheon-to-seoul)[Trains from Seoul to Cheonan](https://rail.ninja/route/seoul-to-cheonan)[Trains from Cheonan to Seoul](https://rail.ninja/route/cheonan-to-seoul)[Trains from Busan to Daegu](https://rail.ninja/route/busan-to-daegu)[Trains from Daegu to Busan](https://rail.ninja/route/daegu-to-busan)[Trains from Busan to Suwon](https://rail.ninja/route/busan-to-suwon)[Trains from Suwon to Busan](https://rail.ninja/route/suwon-to-busan)[Trains from Beijing to Shanghai](https://rail.ninja/route/beijing-to-shanghai)[Trains from Shanghai to Beijing](https://rail.ninja/route/shanghai-to-beijing)[Trains from Hong Kong to Shenzhen](https://rail.ninja/route/hong-kong-to-shenzhen)[Trains from Shenzhen to Hong Kong](https://rail.ninja/route/shenzhen-to-hong-kong)[Trains from Guangzhou to Hong Kong](https://rail.ninja/route/guangzhou-to-hong-kong)[Trains from Hong Kong to Guangzhou](https://rail.ninja/route/hong-kong-to-guangzhou)[Trains from Jeddah to KAEC](https://rail.ninja/route/jeddah-airport-to-kaec)[Trains from Jeddah to Mecca](https://rail.ninja/route/jeddah-to-mecca)[Trains from Jeddah to Medina](https://rail.ninja/route/jeddah-to-medina)[Trains from Mecca to Jeddah](https://rail.ninja/route/mecca-to-jeddah)[Trains from Medina to Jeddah](https://rail.ninja/route/medina-to-jeddah)[Trains from Shanghai to Hangzhou](https://rail.ninja/route/shanghai-to-hangzhou)[Trains from Hangzhou to Shanghai](https://rail.ninja/route/hangzhou-to-shanghai)[Trains from Beijing to Xian](https://rail.ninja/route/beijing-to-xian)[Trains from Xian to Beijing](https://rail.ninja/route/xian-to-beijing)[Trains from Tokyo to Osaka](https://rail.ninja/route/tokyo-to-osaka)[Trains from Osaka to Tokyo](https://rail.ninja/route/osaka-to-tokyo)[Trains from Tokyo to Kyoto](https://rail.ninja/route/tokyo-to-kyoto)[Trains from Kyoto to Tokyo](https://rail.ninja/route/kyoto-to-tokyo)[Trains from Kyoto to Osaka](https://rail.ninja/route/kyoto-to-osaka)[Trains from Osaka to Kyoto](https://rail.ninja/route/osaka-to-kyoto)[Trains from Tokyo to Hiroshima](https://rail.ninja/route/tokyo-to-hiroshima)[Trains from Hiroshima to Tokyo](https://rail.ninja/route/hiroshima-to-tokyo)[Trains from Nagoya to Kyoto](https://rail.ninja/route/nagoya-to-kyoto)[Trains from Kyoto to Nagoya](https://rail.ninja/route/kyoto-to-nagoya)[Trains from Tokyo to Nagoya](https://rail.ninja/route/tokyo-to-nagoya)[Trains from Nagoya to Tokyo](https://rail.ninja/route/nagoya-to-tokyo)[Trains from Tokyo to Fukuoka](https://rail.ninja/route/tokyo-to-fukuoka)[Trains from Fukuoka to Tokyo](https://rail.ninja/route/fukuoka-to-tokyo)[Trains from Hiroshima to Fukuoka](https://rail.ninja/route/hiroshima-to-fukuoka)[Trains from Fukuoka to Hiroshima](https://rail.ninja/route/fukuoka-to-hiroshima)[Trains from Taipei to Nangang](https://rail.ninja/route/taipei-to-nangang)[Trains from Nangang to Taipei](https://rail.ninja/route/nangang-to-taipei)[Trains from Taipei to Taoyuan](https://rail.ninja/route/taipei-to-taoyuan)[Trains from Taoyuan to Taipei](https://rail.ninja/route/taoyuan-to-taipei)[Trains from Taipei to Hsinchu](https://rail.ninja/route/taipei-to-hsinchu)[Trains from Hsinchu to Taipei](https://rail.ninja/route/hsinchu-to-taipei)[Trains from Taipei to Miaoli](https://rail.ninja/route/taipei-to-miaoli)[Trains from Miaoli to Taipei](https://rail.ninja/route/miaoli-to-taipei)[Trains from Kuala Lumpur to Gemas](https://rail.ninja/route/kuala-lumpur-to-gemas)[Trains from Gemas to Kuala Lumpur](https://rail.ninja/route/gemas-to-kuala-lumpur)[Trains from Gemas to Johor Bahru](https://rail.ninja/route/gemas-to-johor-bahru)[Trains from Johor Bahru to Gemas](https://rail.ninja/route/johor-bahru-to-gemas)[Trains from Kuala Lumpur to Butterworth](https://rail.ninja/route/kuala-lumpur-to-butterworth)[Trains from Butterworth to Kuala Lumpur](https://rail.ninja/route/butterworth-to-kuala-lumpur)[Trains from Brisbane to Sydney](https://rail.ninja/route/brisbane-to-sydney)[Trains from Sydney to Brisbane](https://rail.ninja/route/sydney-to-brisbane)[Trains from Melbourne to Sydney](https://rail.ninja/route/melbourne-to-sydney)[Trains from Sydney to Melbourne](https://rail.ninja/route/sydney-to-melbourne)[Trains from Newcastle to Sydney](https://rail.ninja/route/newcastle-to-sydney)[Trains from Sydney to Newcastle](https://rail.ninja/route/sydney-to-newcastle)[Trains from Sydney to Canberra](https://rail.ninja/route/sydney-to-canberra)[Trains from Canberra to Sydney](https://rail.ninja/route/canberra-to-sydney)[Trains from Brisbane to Melbourne](https://rail.ninja/route/brisbane-to-melbourne)[Trains from Melbourne to Brisbane](https://rail.ninja/route/melbourne-to-brisbane)[Trains from Canberra to Melbourne](https://rail.ninja/route/canberra-to-melbourne)[Trains from Melbourne to Canberra](https://rail.ninja/route/melbourne-to-canberra)[Trains from Casablanca to Marrakech](https://rail.ninja/route/casablanca-to-marrakesh)[Trains from Marrakech to Casablanca](https://rail.ninja/route/marrakesh-to-casablanca)[Trains from Casablanca to Fes](https://rail.ninja/route/casablanca-to-fez)[Trains from Fes to Casablanca](https://rail.ninja/route/fez-to-casablanca)[Trains from Casablanca to Tanger](https://rail.ninja/route/casablanca-to-tangier)[Trains from Tanger to Casablanca](https://rail.ninja/route/tangier-to-casablanca)[Trains from Casablanca to Rabat](https://rail.ninja/route/casablanca-to-rabat)[Trains from Rabat to Casablanca](https://rail.ninja/route/rabat-to-casablanca)[Trains from Marrakech to Rabat](https://rail.ninja/route/marrakesh-to-rabat)[Trains from Fes to Oujda](https://rail.ninja/route/fes-to-oujda)[Trains from Oujda to Fes](https://rail.ninja/route/oujda-to-fes)[Trains from Toronto to Montreal](https://rail.ninja/route/toronto-to-montreal)[Trains from Montreal to Toronto](https://rail.ninja/route/montreal-to-toronto)[Trains from Montreal to Quebec](https://rail.ninja/route/montreal-to-quebec)[Trains from Quebec to Montreal](https://rail.ninja/route/quebec-to-montreal)[Trains from Ottawa to Toronto](https://rail.ninja/route/ottawa-to-toronto)[Trains from Toronto to Ottawa](https://rail.ninja/route/toronto-to-ottawa)[Trains from Montreal to Ottawa](https://rail.ninja/route/montreal-to-ottawa)[Trains from Ottawa to Montreal](https://rail.ninja/route/ottawa-to-montreal)[Trains from Ottawa to Quebec](https://rail.ninja/route/ottawa-to-quebec)[Trains from Jeddah Airport (KAIA) to Mecca](https://rail.ninja/route/jeddah-airport-to-mecca)[Trains from Mecca to Jeddah Airport (KAIA)](https://rail.ninja/route/mecca-to-jeddah-airport)[Trains from Medina to Jeddah Airport (KAIA)](https://rail.ninja/route/medina-to-jeddah-airport)[Trains from Quebec to Ottawa](https://rail.ninja/route/quebec-to-ottawa)[Trains from Seoul to Suwon](https://rail.ninja/route/seoul-to-suwon)[Trains from Suwon to Seoul](https://rail.ninja/route/suwon-to-seoul)[Trains from Jeonju to Suncheon](https://rail.ninja/route/jeonju-to-suncheon)[Trains from Suncheon to Jeonju](https://rail.ninja/route/suncheon-to-jeonju)[Trains from Gumi to Seoul](https://rail.ninja/route/gumi-to-seoul)[Trains from Cheongju(Osong) to Busan](https://rail.ninja/route/cheongju-osong-to-busan)[Trains from Busan to Cheongju(Osong)](https://rail.ninja/route/busan-to-cheongju-osong)[Trains from Daegu to Suwon](https://rail.ninja/route/daegu-to-suwon)[Trains from Suwon to Daegu](https://rail.ninja/route/suwon-to-daegu) Show more popular routes Firebird GT Limited (OC 1451)432, Triq Fleur de Lys, Suite 1, Birkirkara, BKR 9061, Malta Firebird GT Limited (1885055)Unit G 15/F Tal Building 49 Austin Road, KL, Hong Kong Rail Ninja ®All Rights Reserved © 2026 Rail Ninja is a reservation service for booking train tickets online. Rail Ninja is not a rail carrier and does not own or operate any trains English [Customer Support](https://rail.ninja/customer-support)[Terms and Conditions](https://rail.ninja/terms-and-conditions)[Privacy Policy Statement](https://rail.ninja/privacy-policy)
Readable Markdown
![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2F2023-06%2Fken-cheung-vbltncebtfe-unsplash-1-min_1.webp&w=3840&q=75) One WayRound TripGroup booking Find stay for your trip Rail Ninja is a reservation service for booking train tickets online. It is not a rail carrier, does not own or operate any trains, and does not represent an official website of any railway company. It is a commercial business that makes it easier for you to book train tickets online. - [Best Mobile App![](https://rail.ninja/sites/default/files/2026-03/en.webp)](https://onelink.to/uhudy7) - [Rated Exceptional![](https://rail.ninja/sites/default/files/2026-03/feefo1.webp)](https://www.feefo.com/en-GB/reviews/rail-ninja) - [Rated Excellent![](https://rail.ninja/sites/default/files/2026-03/trustpilot_43.webp)](https://www.trustpilot.com/review/rail.ninja) ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2F2025-02%2Frectangle_6407.webp&w=1080&q=1) ###### Our free app for every step of your journey — travel planning has never been easier\! ## Barcelona to Madrid Train Timetable Morning departures Fastest trip3 hrs 2 min Longest trip6 hrs 33 min Earliest05:40 Latest11:25 Departures19 Afternoon departures Fastest trip3 hrs 2 min Longest trip7 hrs 3 min Earliest12:00 Latest17:25 Departures16 Evening departures Fastest trip3 hrs 2 min Longest trip3 hrs 44 min Earliest18:00 Latest20:00 Departures7 ## Barcelona to Madrid Train Information ![video](https://rail.ninja/_next/image?url=https%3A%2F%2Fi3.ytimg.com%2Fvi_webp%2FtdjEpupns6k%2Fmaxresdefault.webp&w=3840&q=60) The charming Spanish capital, Madrid, and the popular Catalonian gem, Barcelona, are surely worth seeing at least once in a lifetime. And taking a well-equipped high-speed Barcelona to Madrid train is certainly a great and comfortable option, saving a lot of your time. Below you can find out more about travel from Barcelona to Madrid, the route, and the trains, including answers to frequently asked questions. Or you can enhance your experience and make the most of your Spain trip with the innovative trip planner. Let your imagination go wild with the [Spain itinerary builder](https://triptile.com/destination/spain). Mix the amazing sights into one trip and get ready to dive into the charms of this incredible country\! ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2Fdescription-route-page.webp&w=3840&q=75) Barcelona 505 km Madrid Shortest travel time:3 h 2 m Earliest departure:05:40 Longest travel time:7 h 3 m Lowest ticket cost:\$73 Avg. daily departures:42 Latest departure:20:00 Popular questions about Barcelona to Madrid Trains ## How far is Barcelona from Madrid? The distance from Barcelona to Madrid is 505 kilometers which is approximately 314 miles. Although it may seem that traveling on an airplane for your connection between the cities is the wisest choice when covering such a long distance, taking a [train from Barcelona to Madrid](https://www.spanishtrains.com/barcelona-to-madrid-train) has proven itself to be a more time-efficient option. ## Are there direct train services? The most popular choice among travelers is the direct train which runs on the route, the high-speed AVE, which can reach the speed of 186 mph. Such trains are operated by the Renfe company and are favored for their onboard comfort and convenience of departure and arrival locations (right in the city centers: the Sants Station in Barcelona and the Puerta de Atocha Station in Madrid). ## How long does it take to travel? As mentioned before, one of the fastest and most advantageous travel options is taking the bullet train. If you’re wondering how long is the train from Barcelona to Madrid, the trip duration varies from 2 hours 30 minutes to 3 hours 10 minutes and the train doesn’t make any stops along the way after its departure. ## What time is the first and last train of the day? Luckily, the fast train from Barcelona to Madrid boasts an extensive schedule with practically hourly departures. Therefore, no matter which day of the week you’ll be traveling, you can count on over 10 options. As a rule, the first train departs at around 6 a.m. and the last train leaves at about 9 p.m. ## When to buy tickets - now or in advance? When it comes to purchasing your train tickets from Barcelona to Madrid, the smartest way to go is “the earlier - the better”, especially if you’re sure about your travel dates. On Rail Ninja you can book rail tickets for departures as early as 2 years in advance. This way can avoid higher rates and safeguard yourself from the unfortunate cases of little or no availability for your specific date or needed departure time, which is possible when booking last-minute. ## What is the minimum price of a ticket? Ticket prices for the bullet train Barcelona to Madrid vary based on the departure time, the chosen coach class, the traveler's age (child or adult), as well as on the proximity to the departure. Generally, ticket prices start from around 100 USD. ## What class to choose? If you plan to take the high-speed AVE Barcelona to Madrid train, you’ll have the choice of several classes: First Class, also called Preferente, or the Second Class, referred to as Turista. All train cars are air-conditioned, modern, and have comfortable seats. First Class cars are more spacious and designed for a smaller number of passengers. You can read more about the seat classes and the train here: [AVE high-speed train](https://rail.ninja/train/ave-high-speed-train). ## Do you need seat reservation? Seat reservation is included in the ticket. When booking your ticket you may indicate your preferable seat choice and, depending on the availability, the best option will be provided for you. Information about your assigned seat and the seat number will be displayed in the ticket. ![background](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Fdefault_background_image%2Ftrains-route-page.webp&w=3840&q=75) ## Trains on Barcelona - Madrid route AVEBullet train![AVE](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Ftrain_base%2Fbrand_logo%2FAVE.svg_.webp&w=256&q=75) Travel time3 hrs 2 min Price from\$78 Departures25 EuromedTrain with 1 change![Euromed](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Ftrain_base%2Fsupplier_logo%2Frenfe.webp&w=256&q=75) Travel time6 hrs 22 min Price from\$124 Departures2 RenfeTrain with 1 change![](https://rail.ninja/_next/image?url=https%3A%2F%2Fback.rail.ninja%2Fsites%2Fdefault%2Ffiles%2Ftrain_base%2Fsupplier_logo%2Frenfe.webp&w=256&q=75) Travel time6 hrs 33 min Price from\$105 Departures1 One WayRound TripGroup booking Find stay for your trip 9\.8 / 10 based on 62 reviews ## Related to Barcelona to Madrid Trains Extensive NetworkOne platform, 34+ destinations, 700+ routes around the globe. Convenient BookingWe speak your language and offer over 20 payment methods. Excellent RatingRead authentic [Rail Ninja reviews](https://www.feefo.com/en-GB/reviews/rail-ninja) and see what our travelers say about us. Flexible PlanningYou can conveniently book train tickets for up to a year in advance\! Real Human SupportNeed a hand? Contact our customer support before or during your trip.
Shard114 (laksa)
Root Hash2715540861054913514
Unparsed URLninja,rail!/route/barcelona-to-madrid s443