Bridge over river with castle backdrop in Cordoba, Spain
Routes

Madrid to Cordoba

To Andalusia's Moorish jewel in under two hours.

By the Viamo editorial team · Editor Terje Moy · Last updated July 2026 · 5 min read

Fastest ~1h45 by train

At a glance Typical options on this route – details, caveats and booking advice below.
🚆 Train~1h45AVE high-speed, compulsory reservation, station near old town
🚌 Bus~4–5hALSA, cheapest option
🚗 Car~3.5–4.5h400km via A-4 Autovía del Sur, some tolls

Planning this trip? Currency converter · Jet-lag calculator · Trip budget · Compare routes

Córdoba is one of Andalusia's crown jewels, and it sits remarkably close to Madrid on the map — especially now that the AVE high-speed train covers the roughly 390 km in under two hours. That speed makes Córdoba a genuine day-trip option from the capital, and yet it remains well worth an overnight stay. Here is how to get there by every realistic means.

The quickest way: the AVE high-speed train

Renfe's AVE trains link Madrid Puerta de Atocha (Almudena Grandes) with Córdoba Central in about 1 hour 45 minutes on the fastest services. Several trains depart each day, and the route runs arrow-straight across the Castilian plain before sweeping down into Andalusia — faster than flying once airport transfers are counted.

Córdoba's high-speed station is immediately north of the historic centre, a short walk or taxi ride from the Mezquita and the old Jewish quarter. This is one of the great advantages of the AVE: you step off in the heart of the city rather than at a peripheral airport. Reservations are compulsory on all AVE services; book in advance through Renfe for the lowest fares, which can be excellent value on this corridor.

The Avant service — Renfe's regional high-speed train — also runs this route and may be worth considering if the AVE is sold out or overpriced; Avant trains are somewhat slower but still very quick by European standards. See our wider guide to Spain's AVE network for more on how to use Spain's high-speed rail system.

Red and white striped arches inside the Mezquita Cathedral in Cordoba

The cheapest way: the long-distance bus

ALSA connects Madrid Estación Sur with Córdoba bus station in roughly 4–5 hours depending on the route. Bus fares are consistently lower than train fares, particularly for last-minute bookings when train prices spike. The bus station in Córdoba is close to the high-speed rail station, making onward connections straightforward.

The bus is the best option if you are very cost-sensitive and the train's modest extra speed is not worth the price difference. For a relaxed visit that does not hinge on getting there fast, it is a perfectly adequate choice.

The fastest door-to-door option: the train (again)

Unlike many city pairs where the plane can claw back time, Córdoba has no commercial airport. The nearest alternatives are Málaga, Sevilla or Madrid itself — none of which make flying to Córdoba a viable option for a direct journey. The AVE is, in effect, both the fastest and the most comfortable option here.

The scenic way: driving

The road distance from Madrid to Córdoba via the A-4 motorway is around 400 km, taking 3.5–4.5 hours depending on traffic and stops. The A-4, known as the Autovía del Sur, is one of Spain's busiest inter-city routes and generally well-maintained. There are some toll sections, particularly south of the Madrid ring roads.

Córdoba's historic centre is compact and best explored on foot; driving into the old city is tricky due to restricted access zones. If you hire a car, park outside the historic area and walk in. The car earns its keep if you plan to explore the wider Andalusian countryside — the Subética natural park and the towns of Priego de Córdoba and Lucena are rewarding detours.

Which should you choose?

For the overwhelming majority of travellers, the AVE train is the obvious answer: under two hours, central station, no airport faff, and genuinely cheap if booked ahead. The bus suits tight budgets and flexible schedules. The car is worth considering only if you plan to use it extensively in Andalusia — the AVE is simply too convenient to bother driving to Córdoba for its own sake.

Practical tips for Córdoba

Day trip or overnight stay?

The AVE makes Córdoba a viable day trip from Madrid — the journey is so short that you can arrive by mid-morning and be back in time for dinner. However, Córdoba genuinely rewards an overnight stay: the Mezquita is quietest at opening time or after the day-trippers leave, and the city's atmosphere in the evening, when the streets cool and the restaurants fill, is worth experiencing. If your schedule allows it, spend at least one night.

Madrid's Puerta de Atocha is a large station with a distinctive indoor tropical garden in the old departures hall, now a waiting area rather than a functioning platform concourse. AVE and other long-distance departures use the modern section beyond it, reached through security-style bag scanning similar to an airport — arrive at least 30–40 minutes before departure to allow for this, especially at peak times. Atocha is well connected to the Madrid Metro (Atocha Renfe station) and to Cercanías suburban trains if you are arriving from elsewhere in the city.

Luggage and on-board comfort

AVE trains have good overhead and end-of-carriage luggage space, comfortable seating and typically a cafeteria car for drinks and snacks over the roughly two-hour journey. Standard (Turista) class is perfectly adequate for most travellers; Preferente class offers wider seats, more legroom and at-seat catering if you want extra comfort. Because reservations are compulsory, your ticket is tied to a specific seat and train, so arrive in good time rather than assuming you can catch a later departure on the same ticket.

Common mistakes to avoid

A frequent error is underestimating how long airport-style security checks take at Atocha, particularly during busy holiday periods or the Feria de Abril season when demand across Andalusian routes spikes — leaving Córdoba's Mezquita ticket booking until the last minute during the Patios Festival or peak summer is another common misstep, since both trains and popular attractions sell out well ahead. It is also worth double-checking whether your service is a full AVE or the slightly slower Avant, as journey times and reservation rules can differ subtly between the two.

Frequently asked questions

How long does the AVE take from Madrid to Córdoba?

The fastest AVE services take about 1 hour 45 minutes. Avant trains are a little slower but still very quick. A compulsory seat reservation is required for all high-speed services.

Is there a direct bus from Madrid to Córdoba?

Yes. ALSA runs direct coaches from Madrid Estación Sur to Córdoba's bus station in around 4–5 hours, with multiple departures daily.

Can I fly from Madrid to Córdoba?

No. Córdoba has no commercial airport. The AVE train is faster than any fly-to-Málaga-and-transfer alternative and is effectively the quickest mode available.

Is Córdoba worth visiting as a day trip from Madrid?

Yes, but try to stay overnight if you can — the city is much quieter once tour groups leave, and the evening atmosphere in the old city is genuinely special.

Sources and further reading: