The more time you have, the better. Generally, you should spend at least 3 days in Madrid to see all the major attractions Madrid has to offer. We recommend you spend 5 days in the Spanish capital and plan 1-2 day trips from Madrid.