Getting to Madrid: train

getting to madrid train

How to get to Madrid? Train is the best option, especially of you are traveling from another Spanish city.

Catching a train is the easiest and most comfortable way to travel around Spain. The country has currently almost 16,000 km (10,000 mi) of railway infrastructure and more than 1,550 stations.

Renfe Operadora, a public company, is in charge of managing most the passenger train routes throughout Spain. It used to have the monopoly in the high-speed lines, but nowadays you can use other railway operators.

If you want to plan your train trips around Spain, have a look at a complete tutorial about train travel in Spain. There you can read all the information you need to organize your train journeys throughout the country.

Additionally, you can also read more information about getting around Madrid by train. This is particularly interesting if you are planning one or some day trips from Madrid.

Madrid train lines

There are different types of trains linking Madrid to other cities and towns in Spain.

  • Larga Distancia. High-speed trains, very comfortable and extremely reliable.
  • Media Distancia. Traditional trains with multiple stops along the way.
  • Cercanías. It’s the city’s commuter rail network and covers local trains in and around the city.

Long distance routes (Larga distancia)

Madrid is the city with the largest number of long distance routes, most of them using AVE (Alta Velocidad Española) trains. These are high-speed trains reaching more than 310 km/h (193 mi/h), and allowing you to get to your destination extremely fast.


Currently Renfe has 10 AVE routes departing from Madrid:

  • Madrid Atocha – Calatayud- Zaragoza – Lleida – Tarragona – Barcelona
  • Madrid Atocha – Guadalajara – Calatayud – Zaragoza – Tardienta – Huesca
  • Madrid Atocha – Ciudad Real – Puertollano – Córdoba – Sevilla
  • Madrid Atocha – Ciudad Real – Puertollano – Córdoba – Antequera – Loja – Granada
  • Madrid Atocha – Córdoba – Puente Genil – Antequera – Málaga
  • Madrid Atocha – Cuenca – Valencia – Castellón
  • Madrid Atocha – Cuenca – Albacete – Villena – Alicante
  • Madrid Chamartín – Cuenca – Albacete – Villena – Alicante
  • Madrid Chamartín – Segovia – Valladolid – Palencia – León
  • Madrid Chamartín – Zamora – Ourense

Apart from AVE trains, Avlo is Renfe’s low-cost high-speed long-distance train service operating 2 long distance routes:

  • Madrid – Guadalajara – Calatayud – Zaragoza – Lleida – Tarragona – Barcelona
  • Madrid – Cuenca – Requena – Valencia

In addition to this, Alvia trains connect Madrid with other Spanish cities such as Cádiz, Bilbao, San Sebastián and La Coruña.


French SNCF’s low-cost high-speed OUIGO trains now operate on 2 routes:

  • Madrid Atocha – Tarragona – Zaragoza – Barcelona
  • Madrid Chamartín – Valencia

OUIGO Spain services will gradually be extended to other high-speed lines in Spain.


Iryo is the new brand from railway operator ILSA. The company is made up of the partners of the Spanish airline Air Nostrum, and Trenitalia, the Italian state-owned railway operator.

It operates on a single route:

  • Madrid Atocha – Tarragona – Zaragoza – Barcelona

They are also expected to run between Madrid, Cuenca, Valencia/Alicante and between Madrid, Córdoba, Seville and Málaga in the near future.

Moderate speed trains (Media distancia)

Madrid has moderate speed train connections with 20+ cities along the country, as well as many other stops along these routes.

All these routes are operated by Renfe exclusively, and covered by comfortable and reliable trains. While Renfe offers very convenient fares, it’s true that these trains are considerably slower than AVE and Alvia ones.

Alternatively, you can catch a regional bus. Prices are also very cheap for what you get: the vehicles are generally very comfortable and modern (most companies offer free Wi-Fi on board), and they are rarely late (traffic permits).

Madrid Cercanías trains (commuter rail network)

The Cercanías or commuter service is operated by Renfe exclusively. It comprises 9 railway lines that run all over the Madrid region (comunidad autónoma).

How to get your Madrid train tickets

Fortunately, buying any Madrid train ticket is extremely easy. It only depends on the type of train you plan to catch.

Long distance and moderate speed trains

As I already mentioned, Long Distance train fares have a similar system to those of the airlines. They vary depending on

  • The railway operator you choose to travel with.
  • The date and time you plan to travel.

So the best way to find cheap train tickets for all train journeys is buying your tickets in advance, as soon as you know your travel dates.

In addition to this, Renfe charges you an extra fee if you purchase your tickets at any train station ticket office.

Save time and money getting your Long Distance or Moderate Speed train tickets online!

Madrid train network: Cercanías

Cercanías train tickets can be bought from machines at the train station and if available, ticket windows where Renfe staff can help you out. It’s easier to use the machines, but you can always go to a ticket window if you speak a bit of Spanish and need extra help.

You can’t use any bus or subway ticket on the train network, so you must purchase your Cercanías train tickets before boarding any commuter train.

The Renfe Spain Pass

If you want to explore the regions of Spain using the local train service, you might want to consider a Renfe Spain Pass. The Pass lets you hop on and hop off local trains at your convenience. These local trains arrive and depart frequently and are nicely comfortable.

A Renfe Spain Pass gives you unlimited travel throughout Spain. Choose from 4, 6, 8, 10 or 12 journeys of train travel from Madrid — that can be used consecutively or separately.

Madrid train stations

The city has two main stations:

  • Atocha. Located in the south, it’s the largest railway station. It’s the primary station of most of the AVE and Alvia routes, and serves mainly the south and east regions of Spain, as well as the international line to Paris and some Cercanías lines.
  • Chamartín. Located towards the north, it’s the second major station. It hosts the railway routes connecting Madrid and north-western Spain, a couple of AVE routes, and some Cercanías lines, plus the international line to Lisbon.
Scroll to Top