
Spain by Train: Madrid, Toledo, Segovia and Beyond
Spain has one of the largest high-speed rail networks in the world, and Madrid sits at its centre. From the capital, trains reach Toledo and Segovia in about half an hour, Córdoba in under two hours and Seville or Barcelona in about two and a half. For a visitor this makes Madrid an excellent base. You can sleep in the same hotel every night and still see half a dozen UNESCO-listed cities.
This guide explains how Spanish trains work: the different operators and train types, the two big Madrid stations, how to buy tickets and what to expect at the station. It then covers the best day trips from Madrid by rail, from Toledo and Segovia to El Escorial, Alcalá de Henares, Aranjuez, Ávila and Cuenca, and the longer trips to Andalusia, Valencia and Barcelona.
How Spanish trains work
Spain's national operator is Renfe, but since the high-speed market opened to competition in 2021, two other companies also run fast trains: Iryo, owned partly by the Italian operator Trenitalia, and Ouigo, the low-cost brand of France's SNCF. On routes like Madrid–Barcelona, Madrid–Valencia and Madrid–Seville you can choose between operators, and competition has brought fares down noticeably.
Renfe trains come in several types:
- AVE: Renfe's flagship high-speed service, up to 300 km/h, with assigned seats.
- Avlo: Renfe's low-cost high-speed brand, with fewer extras and paid luggage options.
- Avant: medium-distance high-speed trains, such as Madrid–Toledo and Madrid–Segovia, with simpler, cheaper fares.
- Alvia: trains that switch between high-speed and conventional lines, serving cities such as Salamanca and Santander.
- Cercanías: commuter trains around big cities, with no reservation needed. Madrid's network reaches El Escorial, Alcalá de Henares and Aranjuez.
- Media Distancia: regional trains on conventional lines, slower but useful for towns such as Ávila.
Spain's main high-speed lines use the standard European gauge, but much of the older network uses the wider Iberian gauge. You rarely notice as a passenger, because trains and stations deal with it for you.
Madrid's two main stations
Madrid-Puerta de Atocha – Almudena Grandes, usually just called Atocha, is near the Prado and Retiro Park. It handles trains to Toledo, Andalusia (Córdoba, Seville, Málaga, Granada), Valencia and, for most operators, Barcelona. The station is being enlarged, so expect building work and allow a few extra minutes to find your platform.
Madrid-Chamartín – Clara Campoamor, in the north of the city, handles trains to Segovia, Valladolid, Salamanca, Galicia and Asturias, and some trains to the east. Both stations are on the Cercanías tunnel through the city centre, which links them in about a quarter of an hour via Sol and Nuevos Ministerios, and both have Metro stations.
Buying tickets
Buy on the operators' own websites or apps, or through comparison sites. Fares on high-speed routes work like airline fares: the earliest bookings are the cheapest, and the last seats on a Friday afternoon train can cost several times as much. Tickets usually go on sale a few months ahead. Avant trains such as Madrid–Toledo have simpler and lower fares, and regular commuters can buy multi-trip passes.
A few practical points:
- Reservations are compulsory on AVE, Avlo, Avant, Alvia, Iryo and Ouigo trains, even with a rail pass.
- Cercanías tickets are bought from machines at the station. Some long-distance Renfe tickets include a free Cercanías journey to or from the station; look for the code on your ticket.
- Rail passes such as the Interrail or Eurail Spain Pass can be worth it for several long journeys, but reservation fees still apply, and cheap advance tickets often cost less.
- Luggage: Renfe and Iryo allow normal suitcases, while low-cost services such as Avlo and Ouigo charge for larger bags. Check the rules for your fare.
For a football fan's view of the network, including how away supporters travel to other Spanish cities, see this guide to Spain by train for football away days. The Man in Seat 61, linked below, has detailed advice on booking each operator.
At the station
High-speed trains in Spain have security checks. Bags go through an X-ray scanner before you reach the platform, and boarding usually closes a couple of minutes before departure, so allow 20–30 minutes at the big Madrid stations. Commuter and regional trains have no scanners. Spanish trains are generally punctual, comfortable and quiet, with power sockets at most seats on high-speed services.
The best day trips from Madrid by train
Toledo
Toledo is the classic day trip: a walled city on a hill above a bend in the Tagus river, once a capital of the Visigoths and later of Castile. It is known as the "city of three cultures" for its Christian, Jewish and Muslim heritage. See the Gothic cathedral, the synagogues of Santa María la Blanca and El Tránsito, and El Greco's Burial of the Count of Orgaz in the church of Santo Tomé. Avant trains from Atocha take about 33 minutes. The neo-Mudéjar station is about 20 minutes' walk below the old town, or a short bus ride, and a set of outdoor escalators helps with the climb. Buy marzipan, a local speciality, before you leave.
Segovia
Segovia's Roman aqueduct, still standing after nearly 2,000 years, is one of the most impressive Roman structures in Spain. At the other end of the old town, the Alcázar sits on a rock above two rivers. The local dish is roast suckling pig, cochinillo. High-speed trains from Chamartín take about 30 minutes to Segovia-Guiomar station, which is outside town. City buses take you to the aqueduct in about 15 minutes. Wrap up in winter: Segovia is about 1,000 m above sea level and much colder than Madrid.
Both cities fit into a single day each, and many visitors combine them over two days. This guide to day trips from Madrid to Toledo, Segovia and El Escorial shows how to fit them around a match weekend.
El Escorial
The vast monastery and palace of San Lorenzo de El Escorial, built for Philip II in the 16th century, holds royal tombs, a library and an art collection. Cercanías line C-8 takes about an hour from Atocha or Chamartín, and the town below the monastery has good restaurants for lunch. Check the Patrimonio Nacional website for opening days, as the monastery closes on Mondays.
Alcalá de Henares
The birthplace of Cervantes and home to one of Europe's oldest universities, Alcalá is about 35–40 minutes from Madrid by Cercanías. It is an easy half-day trip, and its tapas bars are known for free tapas with a drink.
Aranjuez
A royal palace with large gardens beside the Tagus, about 45 minutes by Cercanías from Atocha. The town is known for its strawberries and asparagus, and the riverside gardens are at their best in spring.
Ávila and Cuenca
Ávila's medieval walls are among the best preserved in Europe. Regional trains take about 1.5 to 2 hours. Cuenca, with its "hanging houses" above a gorge, is under an hour by high-speed train, but its station is outside town, so allow time for the bus.
Longer trips: Andalusia, Valencia and Barcelona
High-speed trains bring Spain's other great cities within reach of a long day trip, though most are better as an overnight stay:
| Destination | Time | Station | Worth it for |
|---|---|---|---|
| Córdoba | 1 h 45 | Atocha | The Mezquita-Catedral |
| Seville | 2 h 30 | Atocha | The Alcázar, flamenco |
| Málaga | 2 h 30 | Atocha | Picasso Museum, beaches |
| Granada | 3 h 15 | Atocha | The Alhambra (book ahead) |
| Valencia | 1 h 40 | Atocha or Chamartín | City of Arts and Sciences, paella |
| Barcelona | 2 h 30 | Atocha or Chamartín | Gaudí, the Gothic Quarter |
See our city guides for Córdoba, Seville, Málaga, Granada, Valencia and Barcelona. For trains across the rest of the continent, read our guide on how to travel Europe by train.
Budget and planning tips
- Book high-speed trains early and compare operators on shared routes.
- Use Avant and Cercanías for day trips; they are cheaper and need no advance planning.
- Stay central in Madrid near Sol or Atocha, so early trains are easy to reach.
- Avoid the hottest months for Toledo, Córdoba and Seville. July and August afternoons regularly pass 35–40°C in Andalusia.
Many of the money-saving ideas for Madrid itself, from the tourist travel pass to the weekday set lunch, are in this guide to Madrid on a budget. If you have a spare afternoon in the capital, this walking tour of Atlético Madrid landmarks passes several of the city's lesser-known corners. Our own Madrid football weekend guide covers the rest of the city, and the budget estimator helps you plan the costs.
Frequently asked questions
How do I get from Madrid to Toledo by train?
Avant high-speed trains leave from Madrid-Puerta de Atocha and take about 33 minutes. Book ahead at busy times. Toledo station is about 20 minutes' walk below the old town, and buses run up the hill.
How long is the train from Madrid to Segovia?
High-speed trains from Chamartín take about 30 minutes to Segovia-Guiomar station. From there, a city bus to the aqueduct takes about 15 minutes.
Do I need to book Spanish trains in advance?
Yes, for high-speed and long-distance trains, which need a reserved seat and get more expensive as they fill up. Cercanías commuter trains need no reservation; buy a ticket at the station machine.
Is a rail pass worth it in Spain?
Only if you plan several long journeys. Reservations are compulsory on fast trains even with a pass, and cheap advance tickets often cost less than the pass plus reservation fees.
Which Madrid station do trains to Barcelona leave from?
Most leave from Atocha, but some services, depending on the operator, use Chamartín. Your ticket shows the station.
Links & Resources
Train operators and planning
- Renfe: AVE, Avlo, Avant, Cercanías and regional trains.
- Iryo: high-speed trains on Spain's main routes.
- Ouigo Spain: low-cost high-speed trains.
- The Man in Seat 61: Spain: detailed advice on booking every operator.
- Interrail Spain Pass: when a rail pass makes sense.
Day-trip cities
- UNESCO: Historic City of Toledo
- UNESCO: Old Town of Segovia and its Aqueduct
- UNESCO: Monastery and Site of the Escurial
- Toledo tourism office: opening times and monument passes.
- Segovia tourism: official visitor information.
- Spain.info: Spain's official tourism site.
On GuesTheCity
- Madrid city guide: your base for these trips.
- Toledo city guide: photos and facts.
- Best European cities for a football trip: more city breaks with a match.
- Spain laws for tourists: rules worth knowing before you travel.


