Home Compare Spain vs Afghanistan

Spain vs Afghanistan

Spain and Afghanistan side by side: live population, demographics, economy, environment and digital indicators from the UN and the World Bank, plus charts that overlay the full history of both countries. Change either country to compare any pair.

At a glance

Live population · UN WPP
Flag of Spain

Spain

Europe · #32 of 238 by population
Live population
47,837,254
-0.1% a year · full profile · atlas
vs
Flag of Afghanistan

Afghanistan

Asia · #36 of 238 by population
Live population
45,400,503
+2.7% a year · full profile · atlas
Spain has 1.1× the population of Afghanistan (51.3% vs 48.7% of the two combined).

Spain vs Afghanistan: 28 indicators side by side

Latest available figures · October 2026
IndicatorSpainAfghanistanDifference
👥 Population
Population
people
47,837,25445,400,503Spain 1.1×
Population growth rate
% per year
-0.1+2.7-2.8 pts
Population density
people per km²
94.5202669.52026+25
Surface area
km²
505,9762023652,8702023Afghanistan 1.3×
Birth rate
births per 1,000 people
6.52024352024-28.5
Death rate
deaths per 1,000 people
8.920245.72024+3.2
Net migration rate
per 1,000 people per year
+1.8-1.2+3
Urban population
% of population
80.5202525.92025+54.6 pts
Sex ratio
males per 100 females
96.4102.1-5.7
❤️ Demographics & Health
Life expectancy
years
83.9202466.32024+17.6
Fertility rate
births per woman
1.120244.762024-3.66
Median age
years
46.317.4+28.9
Infant mortality
deaths per 1,000 live births
2.140-37.9
Population under 15
% of population
12.6202542.62025-29.9 pts
Population aged 65+
% of population
21.620252.42025+19.2 pts
💰 Economy
GDP
current US$
$1.91T2025$17.78B2024Spain 107×
GDP per capita
current US$
$38,6272025$4172024Spain 93×
Unemployment rate
% of labor force
10.4202513.42025-3 pts
Inflation rate
% annual, consumer prices
2.72025-6.62024+9.3 pts
🌱 Environment & Energy
CO₂ emissions
Mt CO₂ per year
220.1202412.072024Spain 18×
CO₂ emissions per capita
tonnes per person
4.5120240.282024+4.22
Energy use per capita
kg of oil equivalent per person
2,3042024––
Renewable energy share
% of final energy
192021202022-1 pts
Forest area
% of land area
37.220231.92023+35.3 pts
Freshwater resources per capita
m³ per person per year
2,32720221,1622022Spain 2×
Water stress
% of resources withdrawn
26.12022432022-16.9 pts
📶 Digital
Internet users
% of population
95.8202416.12024+79.7 pts
Mobile subscriptions
per 100 people
130.3202460.12024+70.2

▲ marks the higher value (for death rate, infant mortality, unemployment, inflation, CO₂ and water stress: the lower value). "Difference" is the ratio for absolute measures and Spain minus Afghanistan for rates and shares. Years in grey are the latest available for that country.

Spain compared with Afghanistan

Updated October 2026

Spain has a live population of about 47,837,254 (#32 in the world) and Afghanistan about 45,400,503 (#36), so Spain has 1.1 times as many people as Afghanistan. Spain is growing at -0.1% a year and Afghanistan at 2.7%.

By area Afghanistan is larger: 652,870 km² against 505,976 km², which gives population densities of 94.5 people per km² in Spain and 69.5 in Afghanistan.

Spain's economy is worth $1.91T (2025) and Afghanistan's $17.78B (2024); per person that is $38,627 in Spain versus $417 in Afghanistan, so the average Spain resident produces 92.7 times as much.

Life expectancy is 83.9 years in Spain and 66.3 in Afghanistan; women have 1.1 children on average in Spain compared with 4.8 in Afghanistan; the median age is 46.3 versus 17.4 years.

80.5% of Spain's people live in cities against 25.9% in Afghanistan; 95.8% use the internet in Spain and 16.1% in Afghanistan; CO₂ emissions per person are 4.5 t in Spain and 0.3 t in Afghanistan.

Population over time

Spain vs Afghanistan
SpainAfghanistan

Life expectancy & fertility

Spain vs Afghanistan
SpainAfghanistan

Birth & death rates

Spain vs Afghanistan
SpainAfghanistan

Age structure

Spain vs Afghanistan
SpainAfghanistan

CO₂ emissions

Spain vs Afghanistan
SpainAfghanistan

Energy use & renewables

Spain vs Afghanistan
SpainAfghanistan

Forest area

Spain vs Afghanistan
SpainAfghanistan

Urban population

Spain vs Afghanistan
SpainAfghanistan

Water resources & stress

Spain vs Afghanistan
SpainAfghanistan

Economy

Spain vs Afghanistan
SpainAfghanistan

Unemployment & inflation

Spain vs Afghanistan
SpainAfghanistan

Internet & mobile

Spain vs Afghanistan
SpainAfghanistan

Frequently asked questions

Which is bigger, Spain or Afghanistan?

By population Spain is bigger: 47,837,254 people versus 45,400,503 (live estimates, October 2026). By area Afghanistan is larger (652,870 km² vs 505,976 km²).

Which has the larger economy, Spain or Afghanistan?

Spain: GDP of $1,906,453,309,986 versus $17,778,508,876 in current US dollars (World Bank, 2025/2024).

Where do people live longer, Spain or Afghanistan?

Life expectancy at birth is 83.9 years in Spain and 66.3 years in Afghanistan, a difference of 17.6 years in favour of Spain.

How are these comparisons calculated?

Live populations extrapolate the UN World Population Prospects baseline with each country's growth rate; every other figure is the latest value published by World Bank Open Data (or the UN for median age, infant mortality and migration). Each row shows the year of the figure, and the charts below overlay the full historical series of both countries.

Explore more

Every page leads somewhere new
More comparisons with Spain
More comparisons with Afghanistan

Sources & method: live populations are linear extrapolations of the UN World Population Prospects estimates; all other indicators are the latest values from World Bank Open Data (UN WPP for median age, infant mortality, sex ratio and net migration). Figures are statistical estimates, not census counts. Page generated 2026-10-19. More about our data.