The cheapest and fastest trains from Castelldefels to Madrid
Cheapest price
$39
Average price
$78
Fastest journey
2 h 26 m
Average duration
2 h 42 m
Trains per day
4
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 $78 if you buy it on the day, but the cheapest tickets can be found for only $39.
Of the 4 trains that leave Castelldefels for Madrid on Thu, Nov 27, 4 travel direct so it’s quite easy to avoid journeys where you’ll have to change along the way.
On Thu, Nov 27 the direct trains cover the 487 km distance in an average of 2 h 42 m but if you time it right, some trains will get you there in just 2 h 26 m .
On Thu, Nov 27 the slowest trains will take 2 h 52 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.








Travel Information
Compare bus, train, and flight for Castelldefels to Madrid
Omio 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 train with prices starting from €13. For those with little time consider booking a flight which can get you there in 1h 28m. The ticket price range depends on the travel mode: a train costs an average of €13, and a flight costs an average of €42.
Distance: 302 miles (487 km)
Compare train with
Most popular Train | Flight |
|---|---|
€56 Average price Cheapest | €93 Average price |
3h 15m Average total duration 2h 45m Onboard + 30m Additional time* | 4h 28m Average total duration Fastest 1h 28m Onboard + 3h 0m Additional time* |
![]() Most popular train company | ![]() Most popular airline |
Direct Options | Direct Options |
Live departures
Castelldefels to Madrid train times
The table below shows live departures for Castelldefels to Madrid trains for today, Wednesday, November 26. You can also manually refresh the results below to see updated train journeys.
| Provider | Departs | Duration | Arrives | Transfers | Tickets |
|---|---|---|---|---|---|
06130 | On time 12:05 PM Barcelona Sants | 2h52 | 2:57 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06014 | On time 12:45 PM Barcelona Sants | 2h52 | 3:37 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06150 | On time 1:55 PM Barcelona Sants | 2h37 | 4:32 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06160 | On time 2:55 PM Barcelona Sants | 2h52 | 5:47 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06180 | On time 4:35 PM Barcelona Sants | 2h37 | 7:12 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06570 | On time 4:40 PM Barcelona Sants | 2h37 | 7:17 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06190 | On time 6:05 PM Barcelona Sants | 2h52 | 8:57 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06200 | On time 6:47 PM Barcelona Sants | 2h37 | 9:24 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
06610 | On time 7:40 PM Barcelona Sants | 3h02 | 10:42 PM Madrid-Puerta de Atocha-Almudena Grandes | 0 transfersDirect | |
| Thursday, November 27 | |||||
![]() | 4:25 AM Castelldefels | 2h52 | 7:17 AM Madrid | 0 transfersDirect | |
Find all the dates and times for this journey
Compare prices and tickets Castelldefels to Madrid by bus, train, or flight
Compare bus, train, 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.
Nov 27
Nov 28
Nov 29
Nov 30
Dec 01
Dec 02
Dec 03
Why should you book Castelldefels to Madrid trains with Omio?
Ouigo as well as iryo and Rodalies de Catalunya offer trains services from Castelldefels to Madrid. Omio is an official ticket reseller for all your travel options from Castelldefels to Madrid.
Why book with Omio vs Ouigo?
- Compare with other providers: On Omio, you can not only buy tickets for Ouigo, but also compare tickets for the likes of iryo and Rodalies de Catalunya to find the best option for your trip from Castelldefels to Madrid.
- Designed for International Travelers: Omio is in your language including 24/7 customer service and offers multiple payment options, including PayPal, credit cards, and bank transfer, in your preferred currency.
- Compare all your options: Omio allows you to compare Ouigo with all available travel options, which are bus, train and flight to ensure you get the best deal for traveling from Castelldefels to Madrid.
Why book with Omio over Trainline and Rail Europe?
- Multiple travel company options: While Ouigo tickets can be bought on Ouigo's website or third party sellers, Omio allows you to compare with the likes of iryo and Rodalies de Catalunya to help you choose the right option for your journey from Castelldefels to Madrid.
- Multiple modes of transport: Omio allows you to compare travel options including bus, train and flight to find the ideal travel option from Castelldefels to Madrid.
Journey information
Overview: Train from Castelldefels to Madrid
Trains from Castelldefels to Madrid run on average 16 times per day, taking around 2h 45m. Cheap train tickets for this journey start at $16 (€13) if you book in advance.
There are 16 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 26m.
Distance 302 miles (487 km) |
Average train duration 2h 45m |
Cheapest ticket price $16 (€13) |
Trains per day 16 |
Direct trains 16 |
Fastest train 2h 26m |
First train 05:45 |
Last train 21:13 |
Train companies: Ouigo, iryo, Rodalies de Catalunya from Castelldefels to Madrid trainsOuigo, iryo, Rodalies de Catalunya trains will get you between Castelldefels and Madrid from $16 (€13). With over 1000 travel companies on Omio, you can find the best train times and tickets for your trip.
iryo
Ouigo
Rodalies de Catalunya
FAQs: Trains from Castelldefels to 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.

popular train stations
Popular train stations from Castelldefels to Madrid
- Mon - Sun: 10:00 - 20:00
- Free WiFi in the station and on all Renfe trains.
- Open daily from 05:30 to 22:00.
- Passion Food
- La Barrila
- Enrique Tomás
- Pic Nic
- Foodissimo!
- PureGusto
- Burger King
- Wheelchair parking, adapted elevators, adapted platforms, lobby shopping area.
- 60 Balconies Urban Stay
- Only YOU Hotel Atocha
- SLEEP’N Atocha
- Mon - Sun: 10:00 - 20:00
- On the ground floor of the main concourse.
- Metro lines: 1
- Bus lines: 10, 14, 24, 26, 32, 37, 54, 57, 59, 85, 86, 102, 121, 203
- Train lines: C1, C2, C3, C4, C5, C7, C8, C10
Most popular train connections from Castelldefels
More options for your journey from Castelldefels to Madrid
Here are some other resources that might have the information you need

