Castelldefels to Madrid train with iryo

Tue, Jun 02
+ Add return
iryo
Ouigo Spain
SNCF OUIGO
Rodalies de Catalunya
Regionale
2,000+ travel companies
iryo
Ouigo Spain
SNCF OUIGO
Rodalies de Catalunya
Regionale
2,000+ travel companies
QR-Code
Scan to get our free app
Use our app to get live travel updates and book mobile tickets for trains, buses, flights, and ferries.
App Store
rate4.9
42K ratings
Google Play
rate4.6
136K reviews

The cheapest and fastest trains from Castelldefels to Madrid

Showing times and prices for Jun 02

Cheapest price

$41

Average price

$51

Fastest journey

3 h 2 m

Average duration

3 h 2 m

Trains per day

18

Distance

487 km

Cheap tickets

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 $51 if you buy it on the day, but the cheapest tickets can be found for only $41.

Fast trains

Of the 18 trains that leave Castelldefels for Madrid on Tue, Jun 02, 18 travel direct so it’s quite easy to avoid journeys where you’ll have to change along the way.

On Tue, Jun 02 the direct trains cover the 487 km distance in an average of 3 h 2 m but if you time it right, some trains will get you there in just 3 h 2 m .

On Tue, Jun 02 the slowest trains will take 3 h 2 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.

  • Ouigo Spain06610
    8:20 PM3h28
    Barcelona Sants
    11:48 PMMadrid-Puerta de Atocha-Almudena Grandes
    $411One-way
    0 transfers
  • iryo06200
    7:40 PM3h02
    Barcelona Sants
    10:42 PMMadrid-Puerta de Atocha-Almudena Grandes
    $421One-way
    0 transfers
  • Ouigo Spain06540
    1:50 PM3h02
    Barcelona Sants
    4:52 PMMadrid-Puerta de Atocha-Almudena Grandes
    $431One-way
    0 transfers
  • Ouigo Spain06570
    5:40 PM3h02
    Barcelona Sants
    8:42 PMMadrid-Puerta de Atocha-Almudena Grandes
    $431One-way
    0 transfers
  • iryo06020
    11:18 AM3h24
    Barcelona Sants
    2:42 PMMadrid-Puerta de Atocha-Almudena Grandes
    $461One-way
    0 transfers

Travel Information

Compare train, bus, 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 bus with prices starting from $27. For those with little time consider booking a flight which can get you there in 1h 30m. The ticket price range depends on the travel mode: a bus costs an average of $27, and a flight costs an average of $51.

Distance: 302 miles (487 km)

Compare train with

Most popular
Train
Bus
Flight
Driving

$48

Average price

$45

Average price

Cheapest

$111

Average price

$122

Average price

(fuel + tolls)

3h 26m

Average total duration

2h 56m

Onboard

+

30m

Additional time*

7h 30m

Average total duration

7h 0m

Onboard

+

30m

Additional time*

4h 30m

Average total duration

Fastest

1h 30m

Onboard

+

3h 0m

Additional time*

6h 17m

Average total duration

(door-to-door)

iryo

Most popular train company

BlaBlaCar

Most popular bus company

Air Europa

Most popular airline

Your own car or car rental

Direct Options

Direct Options

Direct Options

Direct Options

The cheapest way to travel from Castelldefels to Madrid is a bus with an average price of $45 (€37).

This is compared to other travel options from Castelldefels to Madrid:

A bus is $3 (€2) less than a train for this route with tickets for a train from Castelldefels to Madrid costing on average $48 (€39).

A bus is $66 (€53) less than a flight for this route with tickets for a flight from Castelldefels to Madrid costing on average $111 (€90).

The fastest way to travel from Castelldefels to Madrid is by flight with an average journey time of 1h 30m.

Other travel options to Madrid take longer:

Train takes on average 2h 56m.

Bus takes on average 7h 0m.

It's helpful to compare your options as there are 3 ways to travel between Castelldefels and Madrid including taking a train, bus, and flight.
We recommend using the train as it is the most popular way to get from Castelldefels to Madrid among Omio's users.
Take the train. On this route, it beats driving on both time and money.

The journey is about 3h 21m faster (2h 56m by train vs 6h 17m by car) and roughly $74 (€60) cheaper once you factor in fuel and tolls ($48 (€39) vs $122 (€99)). 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, Ouigo Spain, SNCF OUIGO.

Driving is still worth considering if you want to stop along the way or need a car once you arrive.

Live departures

Castelldefels to Madrid train times

The table below shows live departures for Castelldefels to Madrid trains for today, Monday, June 1. You can also manually refresh the results below to see updated train journeys.

Last updated at
ProviderDepartsDurationArrivesTransfers
Tickets
iryo2:55 PM Castelldefels
3h17
6:12 PM Madrid0 transfersDirect
Ouigo Spain7:20 PM Castelldefels
3h28
10:48 PM Madrid0 transfersDirect
Ouigo Spain7:40 PM Castelldefels
3h03
10:43 PM Madrid0 transfersDirect
Tuesday, June 2
iryo060605:45 AM Barcelona Sants
3h17
9:02 AM Madrid-Puerta de Atocha-Almudena Grandes0 transfersDirect
iryo060707:05 AM Barcelona Sants
3h02
10:07 AM Madrid-Puerta de Atocha-Almudena Grandes0 transfersDirect
Ouigo Spain064107:35 AM Barcelona Sants
3h30
11:05 AM Madrid-Puerta de Atocha-Almudena Grandes0 transfersDirect
iryo060807:50 AM Barcelona Sants
3h25
11:15 AM Madrid-Puerta de Atocha-Almudena Grandes0 transfersDirect
iryo060128:45 AM Barcelona Sants
3h31
12:16 PM Madrid-Puerta de Atocha-Almudena Grandes0 transfersDirect

This is the last train of the day.

Find all the dates and times for this journey

Compare prices and tickets Castelldefels to Madrid by train, bus, or flight

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.

Tue
Jun 02
Wed
Jun 03
Thu
Jun 04
Fri
Jun 05
Sat
Jun 06
Sun
Jun 07
Mon
Jun 08

Why should you book Castelldefels to Madrid trains with Omio?

iryo as well as Ouigo Spain, SNCF OUIGO, Rodalies de Catalunya and more 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 iryo?

  • Compare with other providers: On Omio, you can not only buy tickets for iryo, but also compare tickets for the likes of Ouigo Spain, SNCF OUIGO or 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 iryo with all available travel options, which are train, bus and flight to ensure you get the best deal for traveling from Castelldefels to Madrid.

Why book with Omio over Wanderu?

  • Multiple modes of transport: Omio allows you to compare travel options including train, bus and flight to find the ideal travel option from Castelldefels to Madrid.

Journey information

Overview: Train from Castelldefels to Madrid

SpainSpain
SpainSpain
Icon of train

Trains from Castelldefels to Madrid run on average 18 times per day, taking around 2h 56m. Cheap train tickets for this journey start at $33 (€26) but you can travel from only $27 (€22) 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 37m.

Fares are the lowest economy prices found on Omio. Early booking often means lower prices. Prices change daily and are subject to availability. Discount cards, coach trips, and booking fees are not included.
Price information
Cheapest alternative travel mode
Bus from $27 (€22)
Distance
302 miles (487 km)
Average train duration
2h 56m
Cheapest ticket price
$33 (€26)
Trains per day
18
Direct trains
18
Fastest train
2h 37m
First train
5:45 AM
Last train
9:13 PM
Cheapest Month
Nov
Cheapest Day
Tue
High Season
Jul - Sep
Low Season
Apr - Jun
Busiest Day
Fri
Least Busy Day
Sat
Best time to book
49 days
Fares are the lowest economy prices found on Omio. Early booking often means lower prices. Prices change daily and are subject to availability. Discount cards, coach trips, and booking fees are not included.
Price information
Cheapest alternative travel mode
Bus from $27 (€22)

Train companies: iryo, Ouigo Spain, SNCF OUIGO, Rodalies de Catalunya from Castelldefels to Madrid trainsiryo, Ouigo Spain, SNCF OUIGO, Rodalies de Catalunya trains will get you between Castelldefels and Madrid from $27 (€22). With over 1000 travel companies on Omio, you can find the best train times and tickets for your trip.

iryo

About
iryo is a new brand from railway operator ILSA operating in Spain since 2022. iryo uses Frecciarossa 1000 trains which are modern, can travel at up to 360km/h and have a minimal environmental impact. iryo’s Frecciarossa trains have different classes, all of which come with free unlimited WiFi, power sockets, toilets and an onboard entertainment portal where you can watch films and TV series. The main classes are: Infinita Class, Singular Café Class, Singular Class, Inicial Class. These new trains take 2 hours and 30 minutes to travel between Madrid and Barcelona. They depart from Madrid Atocha and Barcelona Sants stations, and stop in Zaragoza along the way. iryo services also cover Madrid, Cuenca, Valencia, Alicante, Córdoba, Seville and Málaga.
Luggage & cancellation policy
Average Duration
3h 2m
Cheapest Price
$38 (€31)
iryo frequency
13 a day
Luggage included
1 cabin bag (36x56x26cm) and 1 handbag (36x30x10cm)
Luggage storage
Overhead compartments and designated luggage areas
Cancellation Policy
According to fare conditions
Refund
Full refund provided
Amenities on board the train
Wifi
Food sold onboard
Restaurant car with Mediterranean cuisine, at-seat service in both classes
Seat reservation
Included in ticket price
Toilets
USB plugs
Accessibility
Wheelchair spaces and assistance available
Pets
Small pets in carriers allowed free. Large dogs need paid ticket
Quiet zone

Ouigo Spain

Luggage & cancellation policy
Average Duration
2h 37m
Cheapest Price
$33 (€26)
Ouigo Spain frequency
5 a day

SNCF OUIGO

Luggage & cancellation policy
Average Duration
2h 30m
Cheapest Price
$27 (€22)
SNCF OUIGO frequency
4 a day

Rodalies de Catalunya

Luggage & cancellation policy
Average Duration
3h 26m
Cheapest Price
$72 (€58)
Rodalies de Catalunya frequency
25 a day

Complete guide to Madrid

Things to do in Madrid

Discover the best of Madrid — top attractions, local food, transport tips, budget advice, and currency essentials. Plan your perfect Madrid trip today.

  • Must visit

Museo Nacional del Prado

Madrid’s premier art museum, famed for masterpieces by Velázquez, Goya, El Greco, Rubens, and Bosch. A cornerstone of the city’s Golden Triangle of Art.

  • Must visit

Museo Nacional Centro de Arte Reina Sofía

Spain’s national museum of 20th-century and contemporary art, best known for Picasso’s Guernica and strong collections by Dalí and Miró.

  • Must visit

Museo Nacional Thyssen-Bornemisza

A major art museum spanning Old Masters to modern works, complementing the Prado and Reina Sofía with an exceptionally broad private collection.

Euro

Moderate for Western Europe. Museums and transport are reasonable, while central hotels and fine dining cost more.

Average meal costs

Budget
EUR 10-15 for tapas, menu del día, or fast food.
Mid-range
EUR 20-35 per person at a casual restaurant.
Fine dining
EUR 70+ per person at upscale restaurants.
Coffee
EUR 1.80-3.50 for espresso or cappuccino.

Tipping culture

Service is usually included. Round up or leave EUR 1-2 in cafés; 5-10% in restaurants for very good service. Taxis are often rounded up, but tipping is not obligatory.

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.

FAQs
Train ticket prices from Castelldefels to Madrid can vary. The cheapest ticket starts at $33 (€26), while the average price is around $48 (€39).
The train from Castelldefels to Madrid takes 2h 37m and runs 18 per day.
The distance by train from Castelldefels to Madrid is 302 miles (487 km).
The first train from Castelldefels to Madrid leaves at 5:45 AM.
The last train from Castelldefels to Madrid leaves at 9:13 PM.
Yes, there is a high-speed train from Castelldefels to Madrid.
Yes, there is a direct train from Castelldefels to Madrid. This service operates 18 times per day, provided by iryo, Ouigo Spain, SNCF OUIGO.
Unfortunately, there is no night train available from Castelldefels to Madrid.
The train station in Castelldefels that goes to Madrid is Barcelona Sants, which connects to Madrid-Puerta de Atocha-Almudena Grandes.
The cheapest way to get from Castelldefels to Madrid is by bus, with a cost of around $27 (€22).
The train journey from Castelldefels to Madrid offers a mix of urban and natural landscapes, with views of the Mediterranean coastline near Castelldefels and transitioning to the vast plains of central Spain as you approach Madrid.
A day trip from Castelldefels to Madrid is not feasible as the journey takes 2h 37m, and there are 16 trains available per day over a distance of 302 miles (487 km).
In Madrid, you can explore Puerta del Sol, a bustling public square known for its iconic clock and vibrant atmosphere, and savor gourmet foods at Mercado de San Miguel. Discover the vibrant nightlife in the Malasaña district, enjoy a traditional flamenco show, or visit the Santiago Bernabéu Stadium, home to Real Madrid. For cultural sights, visit the Prado Museum, the Royal Palace of Madrid, and Retiro Park. Don't miss Plaza Mayor and the lively Gran Vía for shopping and theaters.
For a well-rounded experience in Madrid, plan to spend at least 3 to 4 days. This allows time to explore major attractions like the Prado Museum, Royal Palace, Retiro Park, and enjoy the local cuisine and vibrant neighborhoods.
Yes, you can take the train from Castelldefels to Madrid.
Since both Castelldefels and Madrid are in the Schengen Area, a passport is not required for European Union (EU) or Schengen-associated country citizens. A national ID card is sufficient.
Popular day trips by train from Madrid include Toledo, Segovia, Valladolid, Ávila, Cuenca.
We recommend using the train as it is the most popular way to get from Castelldefels to Madrid among Omio's users.
Items not allowed on trains typically include hazardous materials such as explosives, flammable liquids, corrosive substances, and illegal drugs. Additionally, large or bulky items that may obstruct aisles or emergency exits, as well as pets without proper carriers, may be restricted. Specific prohibited items can vary by train operator and region, so please check the rules for your particular journey.
Yes, rail passes such as the Eurail Spain Pass and Interrail Spain Pass are valid on most trains within Spain, including RENFE regional, AVE high-speed, and other long-distance services. Some restrictions may apply for certain premium trains, so it is advisable to check specific train eligibility and reservation requirements in advance.
Spain uses the euro (€) as its currency. Travelers can use both cash and cards, but cards are widely accepted in cities and tourist areas, while cash may be preferred for small purchases, markets, and rural locations.
In Madrid, the main safety concerns for travelers include pickpocketing, especially in crowded areas like Puerta del Sol, Gran Vía, and on public transportation. Common scams involve distraction techniques, such as someone asking for signatures on petitions or offering friendship bracelets, to steal valuables. Travelers should also be cautious of unlicensed taxi drivers and always use official transport services. Staying vigilant in busy tourist spots and keeping belongings secure helps minimize risks.
Pack lightweight, versatile clothing suitable for the destination's climate, and use secure, lockable luggage to protect belongings. Keep essential items like travel documents, medication, and valuables in a carry-on bag for easy access. Use packing organizers or cubes to maximize space and maintain order. Lastly, include a small first aid kit and personal hygiene items for added comfort during travel.

popular train stations

Popular train stations from Castelldefels to Madrid

Castelldefels
Madrid
Amenities at train station
WifiWifi
LockersLockers
ParkingParking
DiningDining
ATMATM
TaxisTaxis
AccessibilityAccessibility
WCWC
HotelHotel
Lost and Found OfficeLost and Found Office
Ticket OfficeTicket Office
Bike ParkingBike Parking
Bike RentalBike Rental
Car RentalCar Rental
Information DeskInformation Desk
information
phone
Phone Number
ticketOfficeHours
Ticket Office Hours
  • Mon - Sun: 10:00 - 20:00
ticketOfficeHours
Distance to city center
1 km
Wifi
Wifi
  • Free WiFi in the station and on all Renfe trains.
Lockers
Lockers
  • Open daily from 05:30 to 22:00.
Dining
Dining
  • Passion Food
  • La Barrila
  • Enrique Tomás
  • Pic Nic
  • Foodissimo!
  • PureGusto
  • Burger King
Accessibility
Accessibility
  • Wheelchair parking, adapted elevators, adapted platforms, lobby shopping area.
Hotel
Hotel
  • 60 Balconies Urban Stay
  • Only YOU Hotel Atocha
  • SLEEP’N Atocha
Ticket Office
Ticket Office
  • Mon - Sun: 10:00 - 20:00
Information Desk
Information Desk
  • On the ground floor of the main concourse.
Public transit options for Madrid-Puerta de Atocha-Almudena Grandes
  • 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

The Omio App Makes Travel Planning Easy

We’ll get you where you want to go. From live train updates to mobile tickets, our innovative app is the ideal way to plan and keep track of your travel.

ios-badge
android-badge
Hand With Phone