Skip to content

San Marino vs Spain statistics compared

Updated on by Georank team

San Marino has a population of 34K (ranked 193/197), compared with 48.8M in Spain (ranked 32/197). San Marino's land area is 23.2 sq mi versus 192,934 sq mi for Spain (ranked 193rd vs. 51st).

By GDP, San Marino ranks 180/197 ($2.03B) and Spain ranks 15/197 ($1.73T). By GDP per capita, San Marino ranks 15/197 ($59,880), while Spain ranks 32/197 ($35,327).

Main facts and rankings

San Marino Spain
Population
33967
48806901
Population rank 193/197 32/197
GDP
$2.03B
2023
$1.73T
2024
GDP rank 180/197 15/197
GDP per capita
$59,880
2023
$35,327
2024
GDP per capita rank 15/197 32/197
GDP per capita, PPP
$78,745
2023
$57,965
2024
Government debt
$1.39B
2023
$1.75T
2024
Debt-to-GDP ratio
63.9%
2024
101.6%
2024
Government debt per person
$40,919
2023
$35,909
2024
Government debt per person rank 13/185 20/185
Average annual personal income after taxes
$45,474
2026
$25,470
2026
Land area 23.2 sq mi 192,934 sq mi
Population density
1,466 ppl/mi²
2026
253 ppl/mi²
2026
Fertility rate
1.15
2023
1.12
2023
Median age
49 years
2024
46.4 years
2024
Life expectancy
86 years
2026
84.1 years
2026

San Marino and Spain: Comparison Charts

San Marino and Spain economies compared

GDP
San Marino

Spain
1x
Year GDP
San Marino Spain
2024 - $1,725,671,652,742
2023 $2,027,527,228 $1,619,481,980,720
2022 $1,829,211,864 $1,448,850,658,407
2021 $1,855,652,786 $1,461,244,901,853
2020 $1,541,248,249 $1,289,783,836,971
2019 $1,616,340,692 $1,403,496,387,686
2018 $1,655,353,653 $1,431,642,809,327
2017 $1,528,620,346 $1,321,754,088,819
2016 $1,468,343,140 $1,243,015,667,917
2015 $1,419,401,071 $1,206,164,777,553
2014 $1,673,911,426 $1,380,244,561,362
2013 $1,678,741,475 $1,362,186,923,158
2012 $1,604,701,299 $1,330,994,811,670
2011 $1,813,717,439 $1,487,568,659,241
2010 $1,881,191,925 $1,427,989,078,917
2009 $2,064,277,126 $1,496,587,590,848
2008 $2,403,213,305 $1,636,115,447,613
2007 $2,188,654,628 $1,476,746,276,855
2006 $1,909,765,165 $1,261,846,683,275
2005 $1,786,514,058 $1,154,667,551,776
2004 $1,715,340,543 $1,069,829,382,515
2003 $1,462,590,267 $907,963,217,058
2002 $1,148,872,072 $708,938,227,244
2001 $1,059,529,812 $627,798,682,379
2000 $1,007,661,367 $598,102,854,756
1999 $1,109,473,368 $634,394,904,387
1998 $1,048,316,226 $618,731,484,575
1997 $976,606,911 $589,739,772,727
1996 - $642,251,412,058
1995 - $614,170,002,669
1994 - $530,183,651,720
1993 - $524,700,572,624
1992 - $630,465,353,486
1991 - $576,753,902,322
1990 - $536,175,326,477
1989 - $414,460,794,097
1988 - $375,891,716,898
1987 - $318,520,253,335
1986 - $251,141,555,186
1985 - $180,664,322,896
1984 - $171,979,977,230
1983 - $170,829,074,246
1982 - $195,856,752,991
1981 - $202,663,023,968
1980 - $232,600,556,974
1979 - $214,448,666,336
1978 - $160,484,969,618
1977 - $132,354,665,936
1976 - $118,422,534,195
1975 - $114,695,060,870
1974 - $97,204,522,642
1973 - $78,583,355,226
1972 - $59,090,176,029
1971 - $46,586,119,760
1970 - $40,963,715,237
1969 - $37,090,689,288
1968 - $32,394,326,464
1967 - $32,570,905,397
1966 - $29,559,436,183
1965 - $25,479,619,607
1964 - $21,966,876,027
1963 - $19,631,714,760
1962 - $16,609,632,791
1961 - $14,238,126,760
1960 - $12,424,514,014

Data sources: World Bank | Economy & Growth (1960–2024, retrieved 2026-04-06).

GeoRank.org/facts/san-marino/spain | CC BY

San Marino and Spain economies compared

GDP per capita
San Marino

Spain
1x
Year GDP per capita
San Marino Spain
2024 - $35,327
2023 $59,880 $33,493
2022 $54,191 $30,319
2021 $54,176 $30,799
2020 $44,327 $27,234
2019 $46,630 $29,787
2018 $47,951 $30,602
2017 $45,192 $28,381
2016 $44,359 $26,756
2015 $43,147 $25,982
2014 $51,260 $29,708
2013 $50,808 $29,229
2012 $47,946 $28,456
2011 $55,601 $31,825
2010 $56,543 $30,659
2009 $62,429 $32,280
2008 $75,902 $35,603
2007 $70,124 $32,652
2006 $63,271 $28,422
2005 $59,878 $26,451
2004 $58,232 $24,925
2003 $52,530 $21,522
2002 $41,791 $17,111
2001 $39,035 $15,368
2000 $37,601 $14,743
1999 $41,932 $15,708
1998 $40,127 $15,382
1997 $37,853 $14,722
1996 - $16,101
1995 - $15,461
1994 - $13,406
1993 - $13,330
1992 - $16,101
1991 - $14,801
1990 - $13,795
1989 - $10,674
1988 - $9,696
1987 - $8,234
1986 - $6,509
1985 - $4,696
1984 - $4,487
1983 - $4,475
1982 - $5,156
1981 - $5,367
1980 - $6,204
1979 - $5,766
1978 - $4,353
1977 - $3,625
1976 - $3,277
1975 - $3,208
1974 - $2,748
1973 - $2,246
1972 - $1,708
1971 - $1,361
1970 - $1,211
1969 - $1,109
1968 - $978
1967 - $997
1966 - $916
1965 - $797
1964 - $695
1963 - $627
1962 - $535
1961 - $463
1960 - $408

Data sources: World Bank | Economy & Growth (1960–2024, retrieved 2026-04-06).

GeoRank.org/facts/san-marino/spain | CC BY

San Marino vs. Spain life expectancy calculator

Life expectancy
San Marino

Spain
1x
Year Life expectancy, years
San Marino Spain
2026 86 84.1
2025 85.9 84
2024 85.8 83.8
2023 85.7 83.7
2022 85.7 82.4
2021 83.5 83
2020 82.6 82.2
2019 85.3 83.5
2018 85.1 83.1
2017 84.9 83
2016 84.8 83
2015 84.6 82.6
2014 84.4 82.8
2013 84.2 82.7
2012 83.9 82.2
2011 83.7 82.2
2010 83.5 82
2009 83.2 81.6
2008 82.9 81.3
2007 82.6 81
2006 82.3 81
2005 81.9 80.3
2004 81.6 80.3
2003 81.3 79.7
2002 81.1 79.8
2001 80.8 79.7
2000 80.5 79.4
1999 80.2 78.9
1998 79.9 78.9
1997 79.7 78.9
1996 79.3 78.3
1995 79 78.2
1994 78.7 78.1
1993 78.4 77.7
1992 78.1 77.6
1991 77.9 77.1
1990 77.8 77
1989 77.6 77
1988 77.5 76.9
1987 77.5 77
1986 77.4 76.7
1985 77.3 76.4
1984 77.2 76.5
1983 77 76.1
1982 76.8 76.3
1981 76.6 75.7
1980 76.4 75.5
1979 76.1 75
1978 75.9 74.5
1977 75.6 74.3
1976 75.4 73.8
1975 75.3 73.5
1974 75.1 73.1
1973 74.8 72.7
1972 74.6 73
1971 74.4 71.7
1970 74.3 72.1
1969 74.2 71.1
1968 74.1 71.7
1967 73.9 71.3
1966 73.8 71.2
1965 73.7 70.9
1964 73.7 70.5
1963 73.6 69.8
1962 73.5 69.6
1961 73.4 69.6
1960 73.2 69.2
1959 73 68.7
1958 72.8 68.8
1957 72.7 66.6
1956 72.5 66.8
1955 72.4 66.7
1954 72.2 66.9
1953 72 65.7
1952 71.9 64.8
1951 71.7 61.5
1950 71.6 61.8

Data sources: United Nations | World Population Prospects (1950–2026, retrieved 2026-03-10).

GeoRank.org/facts/san-marino/spain | CC BY

San Marino and Spain population clocks and comparison

Population
San Marino

Spain
1x
Year Population
San Marino Spain
2024 33,977 48,848,840
2023 33,860 48,352,528
2022 33,755 47,786,102
2021 34,252 47,443,821
2020 34,770 47,359,424
2019 34,663 47,118,501
2018 34,522 46,782,011
2017 33,825 46,571,232
2016 33,101 46,458,139
2015 32,897 46,422,303
2014 32,655 46,460,733
2013 33,041 46,604,197
2012 33,469 46,773,055
2011 32,620 46,742,697
2010 33,270 46,576,897
2009 33,066 46,362,946
2008 31,662 45,954,106
2007 31,211 45,226,803
2006 30,184 44,397,319
2005 29,836 43,653,155
2004 29,457 42,921,895
2003 27,843 42,187,645
2002 27,491 41,431,558
2001 27,143 40,850,412
2000 26,799 40,567,864
1999 26,459 40,386,875
1998 26,125 40,223,509
1997 25,800 40,057,389
1996 25,482 39,889,852
1995 25,158 39,724,050
1994 24,823 39,549,108
1993 24,472 39,361,262
1992 24,125 39,157,685
1991 23,797 38,966,376
1990 23,475 38,867,322
1989 23,154 38,827,764
1988 22,843 38,766,939
1987 22,686 38,684,815
1986 22,636 38,584,624
1985 22,485 38,469,512
1984 22,346 38,330,364
1983 22,229 38,171,525
1982 22,055 37,986,012
1981 21,840 37,758,631
1980 21,585 37,491,165
1979 21,320 37,191,330
1978 21,026 36,864,898
1977 20,017 36,511,638
1976 19,110 36,137,812
1975 19,046 35,757,900
1974 19,030 35,373,335
1973 18,992 34,988,947
1972 18,787 34,604,469
1971 18,419 34,224,490
1970 18,168 33,814,531
1969 18,026 33,441,054
1968 17,861 33,113,134
1967 17,688 32,682,947
1966 17,523 32,283,194
1965 17,305 31,954,292
1964 16,977 31,609,195
1963 16,580 31,296,651
1962 16,183 31,023,366
1961 15,799 30,739,250
1960 15,428 30,455,000

Data sources: World Bank | Health (1960–2024, retrieved 2026-04-06).

GeoRank.org/facts/san-marino/spain | CC BY

Fertility rates in San Marino and Spain

Fertility rate
San Marino

Spain
1x
Year Fertility rate
San Marino Spain
2023 1.15 1.12
2022 1.14 1.16
2021 1.13 1.18
2020 1.11 1.18
2019 1.1 1.23
2018 1.08 1.26
2017 1.05 1.31
2016 1.13 1.33
2015 1.2 1.33
2014 1.26 1.32
2013 1.48 1.27
2012 1.29 1.32
2011 1.46 1.34
2010 1.46 1.37
2009 1.36 1.38
2008 1.52 1.45
2007 1.26 1.38
2006 1.24 1.36
2005 1.2 1.33
2004 1.3 1.31
2003 1.3 1.3
2002 1.43 1.25
2001 1.52 1.23
2000 1.4 1.22
1999 1.29 1.17
1998 1.26 1.13
1997 1.24 1.15
1996 1.21 1.14
1995 1.17 1.16
1994 1.14 1.19
1993 1.12 1.26
1992 1.15 1.31
1991 1.17 1.33
1990 1.16 1.36
1989 1.15 1.4
1988 1.14 1.45
1987 1.14 1.49
1986 1.15 1.56
1985 1.17 1.64
1984 1.2 1.73
1983 1.25 1.8
1982 1.3 1.94
1981 1.41 2.04
1980 1.53 2.22
1979 1.63 2.37
1978 1.77 2.54
1977 1.87 2.65
1976 1.95 2.77
1975 2.05 2.77
1974 2.13 2.88
1973 2.23 2.84
1972 2.29 2.87
1971 2.33 2.9
1970 2.32 2.84
1969 2.31 2.86
1968 2.3 2.87
1967 2.31 2.94
1966 2.33 2.91
1965 2.33 2.94
1964 2.37 3.01
1963 2.4 2.88
1962 2.43 2.8
1961 2.68 2.77
1960 2.43 2.86

Data sources: World Bank | Health (1960–2023, retrieved 2026-04-06).

GeoRank.org/facts/san-marino/spain | CC BY

San Marino and Spain demographics compared

Median age
San Marino

Spain
1x
Year Median age, years
San Marino Spain
2024 49 46.4
2023 48.3 45.9
2022 47.7 45.4
2021 47.2 44.9
2020 46.8 44.5
2019 46.3 44.1
2018 45.8 43.8
2017 45.3 43.5
2016 44.9 43.1
2015 44.5 42.7
2014 44 42.2
2013 43.7 41.7
2012 43.3 41.1
2011 42.8 40.6
2010 42.4 40.2
2009 42 39.8
2008 41.6 39.4
2007 41.2 39.2
2006 40.8 39
2005 40.4 38.8
2004 40.1 38.5
2003 39.7 38.3
2002 39.3 38.1
2001 39 37.8
2000 38.7 37.4
1999 38.4 37
1998 38.1 36.6
1997 37.9 36.2
1996 37.7 35.7
1995 37.4 35.3
1994 37.2 34.9
1993 36.8 34.6
1992 36.5 34.2
1991 36.1 33.9
1990 35.8 33.6
1989 35.5 33.2
1988 35.1 32.9
1987 34.8 32.5
1986 34.5 32.2
1985 34.2 31.9
1984 33.9 31.6
1983 33.6 31.4
1982 33.3 31.1
1981 33 30.9
1980 32.7 30.7
1979 32.5 30.6
1978 32.3 30.4
1977 32 30.2
1976 31.7 30.1
1975 31.5 30
1974 31.3 30
1973 31.2 30
1972 31 30
1971 30.8 30.1
1970 30.8 30.1
1969 30.9 30.2
1968 30.9 30.4
1967 30.9 30.4
1966 30.9 30.3
1965 30.9 30.2
1964 30.9 30.1
1963 30.8 29.9
1962 30.8 29.7
1961 30.9 29.6
1960 31 29.4

Data sources: World Bank | Health (1960–2024, retrieved 2026-04-06).

GeoRank.org/facts/san-marino/spain | CC BY

Interactive Maps

Use the buttons below to switch between world maps comparing statistics for San Marino and Spain.

1x
1x
1x
1x
1x
1x
1x

National statistics comparison

Finance

San Marino Spain
GNI, Atlas method
$1.82B
2023
$1.64T
2024
Government expenditure, % of GDP
21%
2024
45.3%
2024
Education expenditure, % of GDP
2.9%
2022
4.59%
2022
Military expenditure, % of GDP n/a
1.43%
2024
Armed forces personnel n/a
199,000
2020
Deficit/surplus, % of GDP
-0.53%
2024
-3.15%
2024
Unemployment rate
4.91%
2022
11.3%
2024
Services, % of GDP
56.9%
2023
68.9%
2024
Industry, % of GDP
35.8%
2023
19.5%
2024
Economic freedom index
76
2025
66.8
2026
Income share by richest 10% n/a
24.5%
2023
Income share by poorest 10% n/a
2.2%
2023
Number of millionaires n/a
1,202,000
2025
Percentage of millionaires n/a
3.01%
2025
Number of billionaires n/a
34
2025
Percentage of billionaires n/a
0.00009%
2025
Listed domestic companies n/a
277
2024
Market capitalization of domestic companies n/a
$754B
2024
Total reserves including gold
$759M
2024
$108B
2024
Personal remittances received
$21M
2024
$6.33B
2024
International tourist arrivals
1,904,000
2019
36,410,000
2020
International tourism as share of exports n/a
19.8%
1998
Banked people share n/a
98.4%
2024

Energy

San Marino Spain
Energy use, kg of oil equivalent per capita n/a
2,294 kg
2023
GDP PPP per kg equivalent of energy use n/a
$24.3
2023
Carbon dioxide (CO2) emissions n/a
220.1 megatons
2024
CO2 emissions per capita n/a
4.51 tons
2024
Fossil fuel energy use share n/a
68.5%
2023
Renewable energy use share n/a
19%
2021
Alternative and nuclear energy use share n/a
25.2%
2023
Net energy imports use share n/a
77%
2023
Electric power consumption per capita n/a
5,118 kWh
2023
Renewable electricity output share n/a
47%
2021
Hydroelectric share n/a
10.9%
2023
Nuclear share n/a
19.9%
2023
Electricity access
100%
2023
100%
2023

Society

San Marino Spain
% of world population
0.0004%
2024
0.6%
2024
Annual migration change
+122
2025
+96,630
2025
Urban population
97.2%
2024
80.3%
2024
Male:Female ratio
49.2:50.8
2024
49.1:50.9
2024
Average male height n/a
5.78 ft
2025
Average female height n/a
5.31 ft
2025
Quality of life index
89.3
2026
82.5
2026
Corruption Perceptions Index
80
2025
55
2025
Higher education index
9
2026
90
2026
Homicides per 100K people
0
2011
0.69
2023
Road traffic mortality per 100K people
0
2016
3.9
2019
Visa free countries
159
2025
173
2025
Adult literacy rate
99.9%
2022
99.7%
2021
English speaking
7%
2025
22%
2023
People using the Internet
87%
2023
95.8%
2024

Health

San Marino Spain
Government health expenditure per capita
$3,924
2023
$3,107
2023
Out-of-pocket health expenditure per capita
$514
2023
$648
2023
Life expectancy
86 years
2026
84.1 years
2026
Physicians per 1,000 people
4.63
2023
4.29
2022
Age at first childbirth
31.5 years
2022
31.5 years
2023
Maternal mortality per 100K births
8
2023
3
2023
Mortality rate before reaching 5 years of age
1.4
2023
3.1
2023
Obesity rate n/a
16.2%
2022
Diabetes prevalence
8.6%
2024
9.7%
2024
Air quality index
61
2026
77
2026
Tobacco use prevalence n/a
28.4%
2022
Pure alcohol consumption per capita n/a
9.16 liters
2020

Territory

San Marino Spain
% of world land
0.00004%
2026
0.34%
2026
Land area per capita
682 sq mi
2024
3,950 sq mi
2024
Agricultural land area
8.88 sq mi
2026
95,648 sq mi
2026
Forest area
3.86 sq mi
2026
71,757 sq mi
2026
Roads length
181.4 mi
2006
424,505 mi
2020

In-depth comparisons

Help us show the world through your eyes

Share a photo of your city and help others discover what it looks like to live there. Your contribution makes our data come alive.

Data sources:

  1. World Bank | Health (1960–2025, retrieved 2026-04-06)
  2. United Nations | World Population Prospects (1950–2026, retrieved 2026-03-10)
  3. U.S. Census Bureau (1960–2025, retrieved 2026-02-08)
  4. Central Intelligence Agency (CIA) (2000–2019, retrieved 2026-02-20)
  5. International Monetary Fund (IMF) | Fiscal Monitor (2023–2024, retrieved 2026-02-20)
  6. LivingCost (2026, retrieved 2025-10-14)
  7. United Nations Economic Commission for Europe (UNECE) (2022–2023, retrieved 2026-03-10)
  8. Passport Index (2025, retrieved 2026-02-08)
  9. EduRank (2026, retrieved 2025-10-13)
  10. World Obesity Federation (2022, retrieved 2026-02-08)
  11. Transparency International (2025, retrieved 2026-02-10)
  12. The Heritage Foundation | Economic Freedom Index (2026, retrieved 2026-03-09)

Creative Commons Attribution (CC BY) — you’re free to copy, share, remix, adapt, and use even commercially as long as you give appropriate credit and clearly indicate if you made changes. Other sources may be subject to different license terms.