The Madrid airport is quite convenient to the city. If you have limited luggage and aren't travelling at an ungodly hour, the Metro to the airport is quite efficient (under 20 minutes from central Madrid), and I don't think you really need to stay near the airport.