- Must visit
Museo del Prado
World-class art museum with masterpieces by Velázquez, Goya, and Bosch; essential for Spanish and European painting.
Cheapest price on Aug 31
$38
Average ticket price on Aug 31
$42
Fastest journey on Aug 31
2 h 51 m
Average journey duration on Aug 31
2 h 52 m
Trains on Aug 31
23
Distance
487 km
The best way to find a cheap train ticket from Castelldefels to Madrid is to book your journey as far in advance as possible and to avoid traveling at rush hour.
The average ticket from Castelldefels to Madrid will cost around $42 if you buy it on the day, but the cheapest tickets can be found for only $38.
On Mon, Aug 31, we found 23 trains from Castelldefels to Madrid, including 23 direct services.
On Mon, Aug 31 the direct trains cover the 487 km distance in an average of 2 h 52 m but if you time it right, some trains will get you there in just 2 h 51 m .
On Mon, Aug 31 the slowest trains will take 2 h 57 m and usually involve a change or two along the way, but you might be able to save a few pennies if you’re on a budget.
06320
06080
06020
06070
06180
06014
06020
06360
06080
06012Omio recommends booking the train as it is the most popular option from Castelldefels to Madrid among Omio's users. If you are prioritising price, take the bus, with an average ticket price of $37 For those with little time, consider booking a train, which has an average total journey time of 3h 29m. Average ticket prices depend on the travel mode: a bus costs an average of $37, while a flight costs an average of $97.
Distance: 302 miles (487 km)
Most popular Train | Bus | Flight | Driving |
|---|---|---|---|
$53 Average price | $37 Average price Cheapest | $97 Average price | $123 Average price (fuel + tolls) |
3h 29m Average total duration Fastest 2h 59m Onboard + 30m Additional time* | 7h 48m Average total duration 7h 18m Onboard + 30m Additional time* | 3h 30m Average total duration 1h 30m Onboard + 2h 0m Additional time* | 6h 17m Average total duration (door-to-door) |
![]() Most popular train company | ![]() Most popular bus company | ![]() Most popular airline | Your own car or car rental |
Direct Options | Direct Options | Direct Options | Direct Options |
This is compared to other travel options from Castelldefels to Madrid:
A bus is $15 (€12) less than a train for this route with tickets for a train from Castelldefels to Madrid costing on average $53 (€43).
A bus is $60 (€49) less than a flight for this route with tickets for a flight from Castelldefels to Madrid costing on average $97 (€79).
Other travel options to Madrid take longer:
Train takes on average 2h 59m.
Bus takes on average 7h 18m.
The journey is about 3h 18m faster (2h 59m by train vs 6h 17m by car) and roughly $70 (€57) cheaper once you factor in fuel and tolls ($53 (€43) vs $123 (€100)). You'll also arrive in the city centre rather than hunting for parking, and you can work, read, or watch the landscape go by instead of concentrating on the road.
Direct services run with iryo, SNCF OUIGO.
Driving is still worth considering if you want to stop along the way or need a car once you arrive.
The table below shows live departures for Castelldefels to Madrid trains for today, Sunday, August 30. You can also manually refresh the results below to see updated train journeys.
| Provider | Departs | Duration | Arrives | Transfers | Tickets |
|---|---|---|---|---|---|
06360 | On time 3:52 PM Barcelona Sants | 3h24 | 7:16 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06360 | Delayed 2:25 PM 4:25 PMCamp de Tarragona | 2h51 | 7:16 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06180 | On time 5:20 PM Barcelona Sants | 3h02 | 8:22 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06570 | On time 5:40 PM Barcelona Sants | 3h02 | 8:42 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06190 | On time 6:53 PM Barcelona Sants | 3h17 | 10:10 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06610 | Delayed 8:20 PM Barcelona Sants | 3h28 | 9:48 PM 9:48 PMMadrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06210 | On time 8:28 PM Barcelona Sants | 3h24 | 11:52 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06210 | Delayed 7:01 PM 9:01 PMCamp de Tarragona | 2h51 | 11:52 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
| Monday, August 31 | |||||
06060 | On time 5:45 AM Barcelona Sants | 3h17 | 9:02 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06070 | On time 7:05 AM Barcelona Sants | 3h02 | 10:07 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
07410 | 7:35 AM Barcelona Sants | 3h30 | 11:05 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06420 | On time 7:35 AM Barcelona Sants | 3h30 | 11:05 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06080 | On time 7:50 AM Barcelona Sants | 3h25 | 11:15 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06080 | Delayed 6:23 AM 8:23 AMCamp de Tarragona | 2h52 | 11:15 AM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06012 | 8:45 AM Barcelona Sants | 3h31 | 12:16 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06012 | 9:19 AM Camp de Tarragona | 2h57 | 12:16 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06500 | 10:40 AM Barcelona Sants | 3h17 | 1:57 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06110 | 10:45 AM Barcelona Sants | 3h04 | 1:49 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06020 | 11:18 AM Barcelona Sants | 3h24 | 2:42 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06020 | 11:51 AM Camp de Tarragona | 2h51 | 2:42 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06320 | 12:14 PM Barcelona Sants | 3h02 | 3:16 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06014 | 1:13 PM Barcelona Sants | 3h24 | 4:37 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06014 | 1:46 PM Camp de Tarragona | 2h51 | 4:37 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06540 | 1:50 PM Barcelona Sants | 3h02 | 4:52 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06150 | 2:50 PM Barcelona Sants | 3h02 | 5:52 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
Find all the dates and times for this journey
Compare train, bus, and flight prices over the next three weeks. See the best deals at a glance, find the lowest fares, and choose the option that fits your budget.
Trains from Castelldefels to Madrid run on average 18 times per day, taking around 2h 59m. Cheap train tickets for this journey start at $27 (€22) but you can travel from only $21 (€17) by bus.
There are 18 trains per day. The earliest train runs at 05:45, the last at 21:13. The fastest train covers the 302 miles (487 km) distance in 2h 51m.
Distance 302 miles (487 km) |
Average train duration 2h 59m |
Cheapest ticket price $27 (€22) |
Trains per day 18 |
Direct trains 18 |
Fastest train 2h 51m |
First train 5:45 AM |
Last train 9:13 PM |
Cheapest Month Nov |
Cheapest Day Tue |
High Season Jul - Sep |
Low Season Jan - Mar |
Busiest Day Tue |
Least Busy Day Mon |
Best time to book 1 day |
Discover the best of Madrid — top attractions, local food, transport tips, budget advice, and currency essentials. Plan your perfect Madrid trip today.
World-class art museum with masterpieces by Velázquez, Goya, and Bosch; essential for Spanish and European painting.
Leading modern art museum best known for Picasso’s Guernica, plus major works by Dalí and Miró.
Celebrated collection of European masters from Van Eyck to Hopper in a refined palace setting.
Madrid’s most famous park offers gardens, a boating lake, monuments, and relaxed walks in the city center.
Lively grand avenue known for architecture, shopping, theaters, and nonstop energy from day to night.
Elegant boulevard linking major museums and landmarks, ideal for a classic central Madrid walk.
A hearty chickpea stew with meats, vegetables, and broth, especially traditional in Madrid and often served in stages.
Crisp fried squid rings served in a baguette roll. This iconic Madrid street food is especially linked to bars around Plaza Mayor.
Tripe stew with chorizo and morcilla in a rich sauce. A classic old Madrid tavern dish with deep local roots.
Refined two-Michelin-star dining focused on seasonal Spanish produce, with elegant modern cooking in a polished fine-dining room.
Traditional Madrid restaurant known for cocido madrileño served in stages, with an old-school dining room and loyal local following.
Historic century-old tavern famed for roast suckling pig and Castilian dishes in a classic, wood-lined setting near Plaza Mayor.
Moderate for Western Europe: hotels vary, dining is reasonable, and public transport is good value for tourists.
Tipping is modest: round up or leave 5-10% in restaurants for good service. Taxis are usually rounded up. In cafés, small change is enough.
Official public transport app
Madrid-Puerta de Atocha-Almudena Grandes -> Puerta del Sol, Madrid
Find answers to the most common questions about traveling from Castelldefels to Madrid by train. From journey times and ticket prices to direct connections, first and last departures, and even whether the route is scenic, our FAQs cover everything you need to plan your trip. Whether you’re looking for the fastest train, the cheapest option, or tips for making the most of your visit at Madrid, this guide helps you travel smarter and with confidence.

Most Castelldefels to Madrid trains use the Barcelona Sants to Madrid-Puerta de Atocha-Almudena Grandes station pair. Use this guide to compare Castelldefels and Madrid train stations on this route, check city-centre transport, alongside checking practicalities like train station facilities and services.
Madrid-Puerta de Atocha-Almudena Grandes is 1 km from Madrid city centre. Public transport options include:
Madrid-Puerta de Atocha-Almudena Grandes has practical services for this route, including Wifi, Lockers, Parking, Dining, ATM, Taxis, Accessibility, WC, Hotel, Lost and Found Office, Ticket Office, Bike Parking, Bike Rental, Car Rental, and Information Desk.
Food options include: Passion Food, La Barrila, Enrique Tomás, Pic Nic, Foodissimo!, PureGusto, Burger King
Free WiFi in the station and on all Renfe trains. ATMs are in various points at the station.
The ticket office is open Mon - Sun: 10:00 - 20:00. Information desks are on the ground floor of the main concourse.
Luggage storage is open daily from 05:30 to 22:00. Lost and found is available at the station.
Available at Madrid-Puerta de Atocha-Almudena Grandes: Parking, Taxis, WC.
Available at Madrid-Puerta de Atocha-Almudena Grandes: Bike Parking, Bike Rental, Car Rental.
Accessibility facilities are available at Madrid-Puerta de Atocha-Almudena Grandes: Wheelchair parking, adapted elevators, adapted platforms, lobby shopping area.
Nearby hotels include 60 Balconies Urban Stay, Only YOU Hotel Atocha, SLEEP’N Atocha.
Here are some other resources that might have the information you need