The best way to get from Madrid to Cordoba is without a doubt the train. It's incredibly fast, though it comes at a cost.
Cordoba makes a good base for exploring the rest of Andalusia. Read more about Andalusia tours from Cordoba.
The train from Cordoba to Madrid takes about 1h45. This is the quickest way to get from Madrid to Cordoba, but also the most expensive. Cordoba is on the high-speed AVE train line from Madrid to Seville, making Cordoba an ideal stop on the way south into Andalusia.
Get a hotel near the train station and your trip couldn't be more convenient!
You can also take a two-day guided tour of Cordoba and Seville, traveling by AVE from Madrid:
Trains from Madrid to Cordoba depart from Atocha train station. Read more about bus and train stations in Madrid
By Guided Tour
If you're pressed for time, you may be interested in a whistle-stop guided tour of Andalusia (starting in Madrid).
There are regular buses throughout the day between Madrid and Cordoba. The journey takes five hours and costs about 15 euros. This is the cheapest option but the journey is long.
Buses from Madrid to Cordoba depart from Mendez Alvaro bus station.
The 400km journey from Madrid to Cordoba takes about 4h30, mainly traveling along the A-4. Consider a slight detour via Toledo.
There are no flights from Madrid to Cordoba.