Skip to content

Economy of Hungary vs San Marino compared: GDP & Debt

Updated on by Georank

Hungary has a GDP of $246B compared to $2.03B for San Marino, ranking 55/197 and 180/197 by economy size, respectively.

Hungary has $185B in government debt (75.2% of GDP), compared to $1.39B (60.6% of GDP) in San Marino.

Hungary vs San Marino GDP by year

Hungary
San Marino
1x
Year GDP, current $
Hungary San Marino
2025 $246,490,213,513 -
2024 $222,848,211,034 -
2023 $213,029,511,029 $2,027,243,194
2022 $177,002,580,544 $1,831,701,023
2021 $183,282,685,440 $1,855,395,712
2020 $158,468,487,754 $1,544,713,785
2019 $164,936,682,034 $1,616,231,696
2018 $161,184,691,014 $1,655,354,329
2017 $143,335,098,992 $1,528,621,193
2016 $128,983,560,865 $1,468,342,400
2015 $125,244,126,623 $1,419,400,396
2014 $141,128,696,412 $1,673,910,988
2013 $135,646,053,779 $1,678,741,202
2012 $128,470,269,690 $1,604,701,051
2011 $141,712,804,954 $1,813,717,695
2010 $131,898,737,241 $1,881,191,950
2009 $130,807,441,076 $2,064,277,984
2008 $158,228,265,916 $2,403,214,436
2007 $140,123,326,896 $2,188,653,429
2006 $115,604,111,412 $1,909,765,811
2005 $113,098,237,571 $1,786,513,631
2004 $104,015,363,080 $1,715,341,295
2003 $85,190,469,121 $1,462,590,387
2002 $67,636,468,625 $1,148,872,076
2001 $53,800,068,066 $1,059,529,731
2000 $47,275,954,429 $1,007,661,291
1999 $49,160,204,397 $1,109,473,282
1998 $48,784,412,624 $1,048,316,226
1997 $47,398,564,799 $976,606,911
1996 $46,833,767,124 -
1995 $46,577,614,589 -
1994 $43,307,949,890 -
1993 $40,256,233,360 -
1992 $38,857,339,125 -
1991 $34,867,307,353 -
1990 $34,478,360,679 -
1989 $30,422,508,938 -
1988 $29,799,838,597 -
1987 $27,232,016,527 -
1986 $24,778,163,812 -
1985 $21,510,643,750 -
1984 $21,242,726,264 -
1983 $21,910,365,258 -
1982 $24,141,667,188 -
1981 $23,705,883,892 -
1980 $23,116,977,148 -
1979 $19,959,731,325 -
1978 $17,286,744,154 -
1977 $14,783,674,055 -
1976 $13,235,612,079 -
1975 $11,420,392,515 -
1974 $10,016,338,179 -
1973 $9,138,292,402 -
1972 $7,379,313,742 -
1971 $6,291,568,221 -
1970 $5,780,929,203 -
1969 $5,429,812,387 -
1968 $4,886,222,555 -

Data sources: World Bank | Economy & Growth (1968–2025, retrieved 2026-07-08).

GeoRank.org/economy/hungary/san-marino | CC BY

GDP per capita in Hungary vs San Marino by year

Hungary
GDP per capita

GDP per capita, PPP
San Marino
GDP per capita

GDP per capita, PPP
1x
Year Current $
Hungary San Marino
GDP per capita GDP per capita, PPP GDP per capita GDP per capita, PPP
2025 $25,907 - - -
2024 $23,305 $48,552 - -
2023 $22,209 $46,592 $59,871 $78,745
2022 $18,428 $44,366 $54,265 $75,941
2021 $19,031 $38,887 $54,169 $64,745
2020 $16,387 $35,584 $44,427 $55,207
2019 $17,013 $35,627 $46,627 $57,444
2018 $16,605 $32,258 $47,951 $54,461
2017 $14,736 $29,728 $45,192 $52,463
2016 $13,216 $28,179 $44,359 $53,033
2015 $12,783 $26,938 $43,147 $52,247
2014 $14,353 $25,796 $51,260 $52,909
2013 $13,739 $24,592 $50,808 $50,770
2012 $12,950 $23,205 $47,946 $51,274
2011 $14,211 $22,992 $55,601 $56,240
2010 $13,190 $21,691 $56,543 $58,926
2009 $13,051 $20,691 $62,429 $61,970
2008 $15,763 $20,709 $75,902 $71,724
2007 $13,935 $19,089 $70,124 $71,744
2006 $11,478 $18,362 $63,271 $67,434
2005 $11,212 $17,091 $59,878 $63,739
2004 $10,291 $16,251 $58,232 $61,114
2003 $8,410 $15,460 $52,530 $60,224
2002 $6,658 $14,532 $41,791 $57,584
2001 $5,281 $13,223 $39,035 $57,252
2000 $4,630 $11,872 $37,601 $53,713
1999 $4,802 $10,892 $41,932 $52,064
1998 $4,752 $10,415 $40,127 $47,679
1997 $4,606 $9,846 $37,853 $44,426
1996 $4,542 $9,388 - -
1995 $4,509 $9,222 - -
1994 $4,187 $8,888 - -
1993 $3,887 $8,441 - -
1992 $3,747 $8,284 - -
1991 $3,361 $8,352 - -
1990 $3,324 $9,169 - -
1989 $2,902 - - -
1988 $2,812 - - -
1987 $2,566 - - -
1986 $2,331 - - -
1985 $2,020 - - -
1984 $1,991 - - -
1983 $2,050 - - -
1982 $2,255 - - -
1981 $2,213 - - -
1980 $2,158 - - -
1979 $1,865 - - -
1978 $1,618 - - -
1977 $1,388 - - -
1976 $1,249 - - -
1975 $1,083 - - -
1974 $956 - - -
1973 $876 - - -
1972 $710 - - -
1971 $607 - - -
1970 $559 - - -
1969 $527 - - -
1968 $476 - - -

Data sources: World Bank | Economy & Growth (1968–2025, retrieved 2026-07-08).

GeoRank.org/economy/hungary/san-marino | CC BY

Hungary's GDP per capita is $25,907, ranking 52/197, compared to $59,871 in San Marino, ranking 20/197. Adjusted for purchasing power (GDP per capita PPP), Hungary ranks 48th at $48,552, while San Marino ranks 17th at $78,745.

Economic indicators

Hungary San Marino
Gross domestic product
$246B
2025
$2.03B
2023
GDP rank
55/197
2025
180/197
2023
GDP growth
0.51%
2024-2025
0.4%
2022-2023
GDP per capita
$25,907
2025
$59,871
2023
GDP per capita rank
52/197
2025
20/197
2023
GDP per capita, PPP
$48,552
2024
$78,745
2023
GDP per capita PPP rank
48/197
2024
17/197
2023
Government debt
$185B
2025
$1.39B
2023
Debt-to-GDP ratio
75.2%
2025
60.6%
2025
Government debt per person
$19,473
2025
$40,914
2023
Government debt per person rank
33/185
2025
17/185
2023
Average annual personal income after taxes
$18,331
2026
$46,440
2026
Market capitalization of domestic companies
$62.6B
2025
n/a
Number of millionaires
27,000
2026
n/a
Number of billionaires
4
2026
n/a
Income share by richest 10%
24.4%
2022
n/a
Income share by poorest 10%
2.8%
2022
n/a
Government expenditure, % of GDP
47.5%
2025
22%
2025
Consumer prices inflation
4.41%
2024-2025
2.3%
2024-2025
Central bank interest rate
6.25%
2026
n/a
Unemployment rate
4.4%
2025
4.92%
2022
Population
9454659
34159

Spending and national debt comparison by year

Hungary
Spending

Debt
San Marino
Spending

Debt
1x
Year % of GDP
Hungary San Marino
Government spending Government debt Government spending Government debt
2025 47.5% 75.2% 22% 60.6%
2024 46.9% 73.5% 20.9% 62.9%
2023 49.3% 73.2% 21.7% 68.3%
2022 48.9% 74.1% 21.7% 70.6%
2021 48.1% 76.2% 37.1% 77.2%
2020 51% 78.7% 59.2% 69.8%
2019 45.8% 65% 22.4% 56.2%
2018 45.9% 68.8% 24.5% 56.7%
2017 46.6% 72% 25.6% 56.6%
2016 46.7% 74.6% 23.4% 21.4%
2015 50.4% 75.7% 26.3% 19.3%
2014 50% 76.5% 23.7% 21%
2013 50.1% 77.2% 30.2% 23.2%
2012 49.2% 78.4% 30.6% 17.2%
2011 49.1% 80.5% 25.4% 16.6%
2010 48.9% 80.2% 24.4% 20%
2009 50.7% 78.2% 24.8% 20.1%
2008 48.8% 71.8% 22% 15.5%
2007 49.9% 65.6% 20.7% 12.6%
2006 51.4% 64.5% 19.7% 14.2%
2005 49.4% 60.6% 19.3% 14.5%
2004 48.8% 58.9% 19% 16.9%
2003 49.2% 58.2% - 16.1%
2002 51% 55.6% - 17.2%
2001 47.2% 52.2% - 11.6%
2000 47.3% 55.6% - -
1999 48.9% 60.3% - -
1998 50.7% 60.4% - -
1997 49.5% 62.2% - -
1996 50.9% 71.2% - -
1995 55% 83.9% - -
1994 - 86.2% - -
1993 - 87.2% - -
1992 - 76.5% - -
1991 - 74.2% - -
1990 - 63.7% - -
1989 - 70.7% - -

Data sources: International Monetary Fund (IMF) | Fiscal Monitor (1995–2025, retrieved 2026-07-08); International Monetary Fund (IMF) | Public Finances in Modern History (1989–1994, retrieved 2026-07-08).

GeoRank.org/economy/hungary/san-marino | CC BY

In 2025, Hungary's government spending was $117B, accounting for 47.5% of its GDP, while San Marino spent $439M, or 22% of GDP.

Debt-to-GDP ratio is 75.2% in Hungary and 60.6% in San Marino, ranking 50/185 and 75/185, respectively.

Government deficit by year

Deficit/surplus
Hungary

San Marino
1x
Year Deficit/surplus, % of GDP
Hungary San Marino
2025 -4.68% -1%
2024 -4.9% 0.39%
2023 -6.77% -0.72%
2022 -6.19% 0.42%
2021 -7.11% -16.4%
2020 -7.49% -37.6%
2019 -2.02% -0.11%
2018 -2.05% -1.56%
2017 -2.45% -3.49%
2016 -1.79% -0.19%
2015 -2% -3.32%
2014 -2.77% 1.06%
2013 -2.6% -7.74%
2012 -2.33% -7.08%
2011 -5.22% -4.05%
2010 -4.44% -2.24%
2009 -4.76% -2.46%
2008 -3.78% 0.18%
2007 -5.09% 1.83%
2006 -9.27% 1.51%
2005 -7.79% 3.58%
2004 -6.6% 2.44%
2003 -7.19% -
2002 -8.79% -
2001 -4% -
2000 -3.04% -
1999 -5.27% -
1998 -7.41% -
1997 -5.54% -
1996 -4.36% -
1995 -8.57% -
1994 - -
1993 - -
1992 - -
1991 - -
1990 - -
1989 - -
1988 - -
1987 - -
1986 - -
1985 - -
1984 - -
1983 - -
1982 - -
1981 - -
1980 - -
1979 - -
1978 - -
1977 - -
1976 - -
1975 - -
1974 - -
1973 - -
1972 - -
1971 - -
1970 - -
1969 - -
1968 - -
1967 - -
1966 - -
1965 - -
1964 - -
1963 - -
1962 - -
1961 - -
1960 - -
1959 - -
1958 - -
1957 - -
1956 - -
1955 - -
1954 - -
1953 - -
1952 - -
1951 - -
1950 - -
1949 - -
1948 - -
1947 - -
1946 - -
1945 - -
1944 - -
1943 -0.17% -
1942 0.31% -
1941 0.2% -
1940 -0.07% -
1939 0.19% -
1938 -0.11% -
1937 -0.01% -
1936 0.08% -
1935 0.03% -
1934 0.04% -
1933 -0.03% -
1932 -0.22% -
1931 -0.32% -
1930 -0.26% -
1929 0.02% -
1928 0.12% -
1927 0.15% -

Data sources: International Monetary Fund (IMF) | Fiscal Monitor (1995–2025, retrieved 2026-07-08); International Monetary Fund (IMF) | Public Finances in Modern History (1927–1943, retrieved 2026-07-08).

GeoRank.org/economy/hungary/san-marino | CC BY

In 2023, Hungary's government deficit, the difference between spending and revenue, was $14.4B, equivalent to 6.77% of GDP. This compares to San Marino's deficit of $14.7M, or 0.72% of GDP.

Over the past 20 years, Hungary recorded a fiscal deficit in 20 of those years, while San Marino ran a deficit in 13 years. On average, Hungary posted an annual deficit equal to 4.63% of GDP, compared to deficit of 3.8% of GDP for San Marino.

Inflation comparison by year

Inflation
Hungary

San Marino
1x
Year Consumer prices inflation
Hungary San Marino
2025 4.41% 2.3%
2024 3.7% 1.2%
2023 17.1% 5.9%
2022 14.6% 5.3%
2021 5.11% 1.6%
2020 3.33% -0.1%
2019 3.34% 0.5%
2018 2.85% 1.2%
2017 2.35% 1%
2016 0.39% 0.6%
2015 -0.06% 0.1%
2014 -0.23% 1.1%
2013 1.73% 1.6%
2012 5.65% 2.8%
2011 3.93% 2.2%
2010 4.86% 2.4%
2009 4.21% 2.4%
2008 6.04% 4.1%
2007 7.96% 2.5%
2006 3.93% 2.1%
2005 3.56% 1.7%
2004 6.74% 1.4%
2003 4.66% 1.3%
2002 5.27% -
2001 9.12% -
2000 9.8% -
1999 10% -
1998 14.2% -
1997 18.3% -

Data sources: World Bank | Economy & Growth (1997–2025, retrieved 2026-07-08); International Monetary Fund (IMF) | World Economic Outlook (2003–2025, retrieved 2026-07-08).

GeoRank.org/economy/hungary/san-marino | CC BY

Over the past 23 years, Hungary has recorded an average annual inflation rate of 4.79%, compared with 1.97% in San Marino. In 2025, inflation was 4.41% in Hungary and 2.3% in San Marino.

Balance of trade

Hungary San Marino
Current account balance
$4.08B
2025
$446M
2023
Current account balance ranking
34/190
2025
60/190
2023
Current account balance, % of GDP
+1.65%
2025
+22%
2023
Goods imports
$139B
2025
$2.25B
2023
Goods exports
$136B
2025
$2.53B
2023
Service imports
$29.8B
2025
$894M
2023
Service exports
$43.1B
2025
$1.25B
2023
Imports of goods and services, % of GDP
68.1%
2025
155%
2023
Exports of goods and services, % of GDP
72.6%
2025
186%
2023

Economic freedom indices

The indices of economic freedom below are issued by the Heritage Foundation. Higher scores indicate stronger economic health.

Hungary San Marino
Economic freedom 62.5 76
Economic freedom ranking 86/197 16/197
Property rights 67.3 n/a
Government integrity 44 n/a
Judicial effectiveness 61.9 n/a
Tax burden 85.1 n/a
Government spending 30.2 n/a
Fiscal health 32.7 n/a
Business freedom 70.8 n/a
Labor freedom 56.5 n/a
Monetary freedom 72.1 n/a
Trade freedom 79.4 n/a
Investment freedom 80 n/a
Financial freedom 70 n/a

Other economic metrics

Hungary San Marino
Services, % of GDP
60.1%
2025
56.9%
2023
Industry, % of GDP
23%
2025
35.8%
2023
Agriculture, forestry, and fishing, % of GDP
2.65%
2025
0.02%
2023
GNI, Atlas method
$227B
2025
$1.83B
2023
GNI per capita, PPP
$48,630
2025
$71,920
2023
Total reserves including gold
$59.1B
2025
$861M
2025
Total reserves ranking
42/177
2025
144/177
2025
Net foreign direct investment
$9.1B
2025
$52.7M
2023
Net inflows of foreign direct investment
-$61.3B
2024
-$18.1M
2023
Net outflows of foreign direct investment
-$76.3B
2024
$0
2024
Poverty at national poverty lines
12.1%
2021
n/a
Gross capital formation, % of GDP
22.2%
2025
16.6%
2023

GDP per capita map

1x

Data sources: World Bank | Economy & Growth (1985–2025, retrieved 2026-07-08); U.S. Census Bureau (1985–2025, retrieved 2026-07-08).

GeoRank.org/economy/hungary/san-marino | CC BY

Compare countries by 7 more topics

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 | Economy & Growth (1968–2025, retrieved 2026-07-08)
  2. International Monetary Fund (IMF) | Fiscal Monitor (1995–2025, retrieved 2026-07-08)
  3. U.S. Census Bureau (1985–2025, retrieved 2026-07-08)
  4. International Monetary Fund (IMF) | Public Finances in Modern History (1927–1994, retrieved 2026-07-08)
  5. The Heritage Foundation | Economic Freedom Index (2026, retrieved 2026-07-08)
  6. United Nations | World Population Prospects (2026, retrieved 2026-07-08)
  7. LivingCost (2026, retrieved 2026-07-08)

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.

The current account balance is the sum of net trade in goods and services, net earnings from cross-border investments, and net transfer payments. It reflects a country's economic transactions with the rest of the world and is a fundamental component of the balance of payments. A surplus indicates that a country exports more than it imports, while a deficit shows the opposite.

Gross National Income (GNI) measures a country's total income. It encompasses income earned by residents, businesses, and foreign sources, defined as employee compensation and investment profits. GNI adds product taxes not included elsewhere and subtracts subsidies. It accounts for income from residents working abroad but excludes earnings from foreigners within the country.

A negative value for Net Foreign Direct Investment indicates a country is a net receiver of investments, as foreign inflows exceed outflows after Balance of Payments adjustments. A positive value indicates a net provider, with outflows exceeding inflows. Inflows are credits (increasing foreign claims on domestic assets), while outflows are debits (increasing domestic assets abroad).

Foreign direct investment (FDI, net inflows) shows how much capital foreign investors bring into a country after accounting for any funds that flow back in the opposite direction. It represents the net value of overseas companies establishing, expanding, or financing businesses in the reporting country. A positive number means more capital entered the country than was withdrawn, while a negative number means foreign investors pulled out more than they invested.

Foreign direct investment (FDI, net outflows) shows how much capital residents of a country invest abroad after accounting for any funds that flow back in the opposite direction. It represents the net value of domestic companies establishing, expanding, or financing businesses in other countries. A positive number means more capital was invested abroad than withdrawn, while a negative number means residents pulled back more than they invested.

Formerly gross domestic investment, gross capital formation measures the share of a country’s economic output invested in fixed assets, including buildings, machinery, and infrastructure. It indicates how much of the economy is devoted to building productive capacity.