Madrid is the capital and largest city of Spain. The population of the city is roughly 3.3 million and the entire population of the Madrid metropolitan area is calculated to be 6.271 million. It is the third largest city in the European Union, after London and Berlin, and its metropolitan area is the third largest in the European Union after London and Paris. The city spans a total of 604.3 km (233.3 sq mi).