Spain

Europe · Southern Europe · capital Madrid

About Spain

What is the capital of Spain?

The capital of Spain is Madrid. Madrid is the seat of national government for Spain, a country in Southern Europe.

What is the population of Spain?

Spain has a population of about 48.4 million people, the 32nd largest population in the world. Population figures come from World Bank estimates.

How big is Spain?

Spain covers 505,992 square kilometers (195,365 square miles), making Spain the 52nd largest country in the world by area.

Which countries border Spain?

Spain borders 5 countries: Andorra, France, Gibraltar, Morocco and Portugal.

What is the life expectancy in Spain?

Life expectancy at birth in Spain is 83.9 years, the 9th highest of any country in the world.

What continent is Spain in?

Spain is in Europe, in the Southern Europe region. Spain is one of 53 countries and territories in Europe.

All statistics and world rankings

Data updated April 1, 2026
Statistics and world rankings for Spain
Populationtotal people48.4Mpeople32nd
Land Areatotal km²506.0Kkm²52nd
GDP per PersonUSD per person$33.5K49th
Total GDPUSD · whole economy$1.6T15th
Life Expectancyyears, at birth83.9years9th
Urban Population% living in cities80.1%56th
Internet Users% of people online95.4%23rd
Fertility Ratechildren per woman1.12births/woman206th
Tourist Arrivalsvisitors per year85.0Marrivals/year2nd
Forest Cover% of land forested37.2%82nd
Unemployment Rate% of labor force12.2%26th
Military Spending% of GDP1.5%of GDP85th
Renewable Energy% of energy use19.0%110th
Inflation Rateannual CPI change3.5%143rd
Beer Consumptionliters per year88.8L/year7th
Coffee Consumptionkg per year4.5kg/year20th
Wine Consumptionliters per year21L/year13th
Education Spending% of GDP4.6%of GDP74th
Health Spending% of GDP9.2%of GDP42nd
Arable Land% of land arable23.0%46th
Foreign Direct InvestmentUSD inflow/year$47.0B7th

Borders Spain5 countries

Andorracapital Andorra la VellaFrancecapital ParisGibraltarcapital GibraltarMoroccocapital RabatPortugalcapital Lisbon

Close to Spainby population · by area

Sudan population50.0M people · 30th in the worldUganda population48.7M people · 31st in the worldAlgeria population46.2M people · 33rd in the worldArgentina population45.5M people · 34th in the worldYemen land area528.0K km² · 50th in the worldThailand land area513.1K km² · 51st in the worldTurkmenistan land area488.1K km² · 53rd in the worldCameroon land area475.4K km² · 54th in the world

Regional hubs

All countries in Europe53 countries and territoriesEvery country profile on Countrivo243 countries and territories

ISO 3166-1 alpha-2 ES · alpha-3 ESP · Southern Europe