Madrid is a big city and to explore it all you may need 4 to 5 days but if you just want to see the highlights then 2 days in Madrid is a good amount of time to explore the bustling city especially if you come for a weekend break. For those who are history buffs and museum lovers then a longer time may be warranted.