Skip to content

Economy of Costa Rica vs Indonesia compared: GDP & Debt

Updated on by Georank team

Costa Rica has a GDP of $95.4B compared to $1.4T for Indonesia, ranking 73/197 and 16/197 by economy size, respectively.

Costa Rica has $57B in government debt (59.8% of GDP), compared to $561B (40.2% of GDP) in Indonesia.

Costa Rica vs Indonesia GDP by year

Costa Rica
Indonesia
1x
Year GDP, current $
Costa Rica Indonesia
2024 $95,350,423,177 $1,396,300,098,191
2023 $86,497,941,439 $1,371,169,301,564
2022 $69,243,626,029 $1,319,101,183,380
2021 $64,960,725,734 $1,186,509,691,087
2020 $62,395,610,760 $1,059,054,842,698
2019 $64,417,670,521 $1,119,099,871,350
2018 $62,420,164,992 $1,042,271,532,989
2017 $60,516,044,657 $1,015,618,744,160
2016 $58,847,019,610 $931,877,364,038
2015 $56,441,920,821 $860,854,232,686
2014 $52,016,408,854 $890,814,755,534
2013 $50,949,668,842 $912,524,136,718
2012 $47,231,655,432 $917,869,913,333
2011 $42,762,613,699 $892,969,104,563
2010 $37,658,616,952 $755,094,157,622
2009 $30,745,714,313 $539,580,085,612
2008 $30,801,745,700 $510,228,634,992
2007 $26,884,700,709 $432,216,737,775
2006 $22,715,540,324 $364,570,515,618
2005 $20,040,642,477 $285,868,619,196
2004 $18,610,594,846 $256,836,875,295
2003 $17,271,760,507 $234,772,463,824
2002 $16,578,820,687 $195,660,611,165
2001 $15,976,174,337 $160,446,947,785
2000 $15,013,629,662 $165,021,012,078
1999 $14,254,866,285 $140,001,351,215
1998 $13,684,255,947 $95,445,547,873
1997 $12,614,602,382 $215,748,998,610
1996 $11,678,424,507 $227,369,679,375
1995 $11,578,594,260 $202,132,028,723
1994 $10,489,903,725 $176,892,143,932
1993 $9,564,815,975 $158,006,700,302
1992 $8,579,754,758 $128,026,966,580
1991 $7,215,725,487 $116,621,996,217
1990 $5,711,687,787 $106,140,727,334
1989 $5,251,025,767 $94,451,427,877
1988 $4,614,629,898 $84,300,174,486
1987 $4,532,952,047 $75,929,617,558
1986 $4,418,983,871 $79,954,072,545
1985 $3,919,203,960 $85,289,488,375
1984 $3,660,477,856 $84,853,700,028
1983 $3,146,772,631 $81,052,283,384
1982 $2,606,623,555 $90,158,449,295
1981 $2,623,803,096 $85,518,233,419
1980 $4,831,447,001 $72,482,337,397
1979 $4,035,519,323 $51,400,186,343
1978 $3,523,208,810 $51,455,719,076
1977 $3,072,427,013 $45,808,915,663
1976 $2,412,555,426 $37,269,156,627
1975 $1,960,863,466 $30,463,855,422
1974 $1,666,544,754 $25,802,409,639
1973 $1,528,925,846 $16,273,253,012
1972 $1,238,251,696 $10,997,590,361
1971 $1,077,147,538 $9,333,536,370
1970 $984,830,158 $9,150,684,932
1969 $853,630,204 $8,337,423,313
1968 $773,841,494 $7,076,465,300
1967 $699,456,619 $5,667,756,628
1966 $647,305,630 -
1965 $592,981,162 -
1964 $542,578,367 -
1963 $511,902,137 -
1962 $479,180,824 -
1961 $490,325,182 -
1960 $507,513,830 -

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

GeoRank.org/economy/costa-rica/indonesia | CC BY

GDP per capita in Costa Rica vs Indonesia by year

Costa Rica
GDP per capita

GDP per capita, PPP
Indonesia
GDP per capita

GDP per capita, PPP
1x
Year Current $
Costa Rica Indonesia
GDP per capita GDP per capita, PPP GDP per capita GDP per capita, PPP
2024 $18,587 $31,107 $4,925 $16,448
2023 $16,942 $28,909 $4,876 $15,416
2022 $13,626 $26,226 $4,731 $14,285
2021 $12,838 $23,853 $4,287 $12,757
2020 $12,394 $22,100 $3,854 $11,729
2019 $12,885 $23,340 $4,107 $11,986
2018 $12,590 $21,498 $3,861 $11,372
2017 $12,317 $20,499 $3,799 $10,688
2016 $12,091 $19,202 $3,521 $10,263
2015 $11,715 $17,525 $3,288 $10,028
2014 $10,911 $16,394 $3,441 $10,065
2013 $10,803 $15,232 $3,567 $9,866
2012 $10,127 $14,464 $3,632 $9,530
2011 $9,276 $13,614 $3,579 $8,937
2010 $8,266 $12,928 $3,066 $8,353
2009 $6,833 $12,274 $2,218 $7,868
2008 $6,937 $12,472 $2,125 $7,569
2007 $6,138 $11,842 $1,823 $7,096
2006 $5,257 $10,800 $1,558 $6,583
2005 $4,703 $9,899 $1,238 $6,134
2004 $4,431 $9,365 $1,127 $5,700
2003 $4,173 $8,863 $1,043 $5,353
2002 $4,068 $8,461 $881 $5,076
2001 $3,985 $8,190 $732 $4,849
2000 $3,813 $7,879 $764 $4,639
1999 $3,691 $7,563 $657 $4,386
1998 $3,617 $7,306 $455 $4,356
1997 $3,408 $6,890 $1,045 $5,037
1996 $3,227 $6,568 $1,119 $4,807
1995 $3,275 $6,515 $1,011 $4,451
1994 $3,040 $6,276 $900 $4,096
1993 $2,840 $6,025 $817 $3,793
1992 $2,612 $5,635 $674 $3,538
1991 $2,253 $5,175 $624 $3,305
1990 $1,830 $5,021 $578 $3,044
1989 $1,725 - $524 -
1988 $1,555 - $477 -
1987 $1,567 - $438 -
1986 $1,569 - $470 -
1985 $1,429 - $511 -
1984 $1,372 - $520 -
1983 $1,213 - $508 -
1982 $1,032 - $578 -
1981 $1,068 - $561 -
1980 $2,021 - $487 -
1979 $1,735 - $353 -
1978 $1,556 - $362 -
1977 $1,393 - $331 -
1976 $1,123 - $275.7 -
1975 $937 - $231.1 -
1974 $817 - $200.7 -
1973 $769 - $129.9 -
1972 $639 - $90.1 -
1971 $570 - $78.5 -
1970 $536 - $79.1 -
1969 $477 - $74.1 -
1968 $445 - $64.7 -
1967 $414 - $53.2 -
1966 $395 - - -
1965 $374 - - -
1964 $354 - - -
1963 $346 - - -
1962 $335 - - -
1961 $356 - - -
1960 $382 - - -

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

GeoRank.org/economy/costa-rica/indonesia | CC BY

Costa Rica's GDP per capita is $18,587, ranking 62/197, compared to $4,925 in Indonesia, ranking 121/197. Adjusted for purchasing power (GDP per capita PPP), Costa Rica ranks 72nd at $31,107, while Indonesia ranks 107th at $16,448.

Economic indicators

Costa Rica Indonesia
Gross domestic product
$95.4B
2024
$1.4T
2024
GDP rank
73/197
2024
16/197
2024
GDP growth
4.32%
2023-2024
5.03%
2023-2024
GDP per capita
$18,587
2024
$4,925
2024
GDP per capita rank
62/197
2024
121/197
2024
GDP per capita, PPP
$31,107
2024
$16,448
2024
GDP per capita PPP rank
72/197
2024
107/197
2024
Government debt
$57B
2024
$561B
2024
Debt-to-GDP ratio
59.8%
2024
40.2%
2024
Government debt per person
$11,106
2024
$1,978
2024
Government debt per person rank
50/185
2024
120/185
2024
Average annual personal income after taxes
$12,150
2026
$3,371
2026
Market capitalization of domestic companies
$2.23B
2022
$758B
2023
Number of millionaires n/a
178,605
2025
Number of billionaires n/a
33
2025
Income share by richest 10%
34.2%
2024
28.8%
2024
Income share by poorest 10%
1.7%
2024
3.5%
2024
Government expenditure, % of GDP
18.9%
2024
16.8%
2024
Consumer prices inflation
-0.41%
2023-2024
2.18%
2023-2024
Central bank interest rate
3.5%
2025
4.75%
2025
Unemployment rate
6.94%
2024
3.31%
2023
Population
5181862
288551776

Spending and national debt comparison by year

Costa Rica
Spending

Debt
Indonesia
Spending

Debt
1x
Year % of GDP
Costa Rica Indonesia
Government spending Government debt Government spending Government debt
2024 18.9% 59.8% 16.8% 40.2%
2023 18.5% 61.1% 16.6% 39.6%
2022 19.2% 63% 17.3% 40.1%
2021 20.8% 67.6% 18.1% 41.1%
2020 22.3% 66.9% 18.4% 39.7%
2019 21.7% 56.4% 16.4% 30.6%
2018 18.9% 51.8% 16.6% 30.4%
2017 19.2% 47.1% 16.4% 29.4%
2016 18.8% 44.1% 16.9% 28%
2015 18.8% 39.8% 17.6% 27%
2014 18.4% 37.4% 18.4% 24.6%
2013 18.5% 35.1% 18.8% 24.9%
2012 17.3% 33.7% 18.8% 23%
2011 17.2% 29.5% 17.7% 23.1%
2010 18% 28.1% 16.9% 26.4%
2009 16.7% 26% 17% 26.5%
2008 15.2% 24% 19.4% 30.3%
2007 14.6% 27% 18.7% 38.1%
2006 15.2% 33% 18.4% 35.8%
2005 15.9% 37.3% 17.4% 42.6%
2004 17% 41% 17.8% 51.3%
2003 17.6% 40.6% 18.2% 55.6%
2002 18.6% 41.4% 16.9% 62.3%
2001 17.3% 39.6% 19.5% 73.7%
2000 16.9% 38.9% 15.3% 87.4%
1999 16.7% 39% 15.1% 95.9%
1998 16% 40.7% 15.1% 72.5%
1997 16.3% 30.6% 15.2% 26.4%
1996 17.3% 33.7% 11.5% 27.5%
1995 16.4% 29.1% 11.9% 32%
1994 17.4% 27% 13.5% 37%
1993 13.8% 24.4% 14.1% 40.4%
1992 13.7% 23.3% 16.8% 42.6%
1991 14% 28.4% 15% 39.2%
1990 18.9% 18.5% 15.8% 40.8%
1989 26.1% 19.3% 16.5% 42.5%
1988 24.5% 18.2% 17.3% 45.6%
1987 27.2% 21.2% 18% 49.7%
1986 26.4% 26.1% 20.9% 38.3%
1985 21.8% 22.8% 18.5% 28%
1984 22.8% 25.2% 16.1% 23.5%
1983 23.6% 29.8% 18.2% 23.1%
1982 18.4% 31.8% 18.8% 18.6%
1981 21% 32.3% 24.4% 16.4%
1980 25% 37.7% 22.1% 17.3%
1979 24.9% 39.5% 20.9% 22%
1978 23.2% 41.7% 20.1% 30.3%
1977 19.3% 27.8% 19.5% 27.7%
1976 20.1% 29.5% 21.8% 38.1%
1975 19.1% 26.1% 20.5% 36.7%
1974 18.3% 30.3% 17.3% 34.4%
1973 18.4% 32.8% 16.3% 43.1%
1972 17.2% 31.8% 15.7% 51.2%
1971 17.5% 30.4% 14.5% 50.5%
1970 14.9% 28.6% 13.8% 46.7%
1969 14.5% 26.1% 12.8% -
1968 13.8% 27.7% 8.82% -
1967 14.7% 26.7% 10.4% -
1966 14.3% 24.8% 9.18% -
1965 13.8% 24.1% 10.7% -
1964 13.5% 22.7% 9.55% -
1963 13.3% 21.8% 10.3% -
1962 14% 19.7% 7.89% -
1961 13.2% 20.3% 15.1% -
1960 12.5% 16.1% 14.4% -

Data sources: International Monetary Fund (IMF) | Public Finances in Modern History (1960–1999, retrieved 2026-02-20); International Monetary Fund (IMF) | Fiscal Monitor (1990–2024, retrieved 2026-02-20).

GeoRank.org/economy/costa-rica/indonesia | CC BY

In 2024, Costa Rica's government spending was $18B, accounting for 18.9% of its GDP, while Indonesia spent $235B, or 16.8% of GDP.

Debt-to-GDP ratio is 59.8% in Costa Rica and 40.2% in Indonesia, ranking 79/185 and 132/185, respectively.

Government deficit by year

Deficit/surplus
Costa Rica

Indonesia
1x
Year Deficit/surplus, % of GDP
Costa Rica Indonesia
2024 -3.78% -2.3%
2023 -3.25% -1.64%
2022 -2.81% -2.31%
2021 -5.09% -4.4%
2020 -8.38% -6.07%
2019 -6.68% -2.09%
2018 -5.66% -1.69%
2017 -5.88% -2.26%
2016 -5.09% -2.56%
2015 -5.52% -2.72%
2014 -5.45% -1.8%
2013 -5.25% -1.96%
2012 -4.22% -1.59%
2011 -3.91% -0.7%
2010 -4.96% -1.24%
2009 -3.25% -1.64%
2008 0.18% 0.05%
2007 0.56% -0.95%
2006 -1.04% 0.45%
2005 -2.09% 0.46%
2004 -3.42% -0.26%
2003 -3.43% -1.08%
2002 -4.99% -0.58%
2001 -3.47% -1.76%
2000 -3.68% -1.87%
1999 -2.88% -0.96%
1998 -2.96% -1.89%
1997 -3.39% -1.03%
1996 -4.32% 0.96%
1995 -3.68% 0.64%
1994 -5.46% 0.005%
1993 -1.52% -0.59%
1992 -1.51% -2.95%
1991 -2.41% -0.87%
1990 -4.4% -0.55%
1989 -1.55% -1.72%
1988 0.57% -2.68%
1987 -2.57% -0.9%
1986 -4.26% -2.94%
1985 -1.06% -0.45%
1984 -0.5% 1.83%
1983 -1.84% -1%
1982 -0.94% -1.11%
1981 -3.14% -0.69%
1980 -7.24% -0.82%
1979 -6.6% -0.67%
1978 -4.12% -2.03%
1977 -2.63% -0.38%
1976 -2.42% -2.63%
1975 -1.13% -2.33%
1974 0.26% -0.35%
1973 -2.41% -1.33%
1972 -4.54% -1.82%
1971 -4.72% -2.51%
1970 -1.41% -3.02%
1969 -1.61% -2.8%
1968 -1.72% 0%
1967 -3.03% -0.35%
1966 -2.12% -5.06%
1965 -1.71% -6.62%
1964 -1.51% -5.58%
1963 -2.01% -5.24%
1962 -1.99% -3.1%
1961 -0.71% -4.57%
1960 -0.19% -1.65%
1959 0.49% -4.06%
1958 0% -6.67%
1957 0.3% -2.92%
1956 0.05% -1.38%
1955 - -1.6%
1954 - -3.16%
1953 - -2.33%
1952 - -3.66%
1951 - 1.52%

Data sources: International Monetary Fund (IMF) | Public Finances in Modern History (1951–1992, retrieved 2026-02-20); International Monetary Fund (IMF) | Fiscal Monitor (1990–2024, retrieved 2026-02-20).

GeoRank.org/economy/costa-rica/indonesia | CC BY

In 2024, Costa Rica's government deficit, the difference between spending and revenue, was $3.61B, equivalent to 3.78% of GDP. This compares to Indonesia's deficit of $32.1B, or 2.3% of GDP.

Over the past 58 years, Costa Rica recorded a fiscal deficit in 54 of those years, while Indonesia ran a deficit in 50 years. On average, Costa Rica posted an annual deficit equal to 3.31% of GDP, compared to deficit of 1.39% of GDP for Indonesia.

Inflation comparison by year

Inflation
Costa Rica

Indonesia
1x
Year Consumer prices inflation
Costa Rica Indonesia
2024 -0.41% 2.18%
2023 0.53% 3.67%
2022 8.27% 4.21%
2021 1.73% 1.56%
2020 0.72% 1.92%
2019 2.1% 3.03%
2018 2.22% 3.2%
2017 1.63% 3.81%
2016 -0.02% 3.53%
2015 0.8% 6.36%
2014 4.52% 6.39%
2013 5.23% 6.41%
2012 4.5% 4.28%
2011 4.88% 5.36%
2010 5.66% 5.13%
2009 7.84% 4.39%
2008 13.4% 10.2%
2007 9.36% 6.41%
2006 11.5% 13.1%
2005 13.8% 10.5%
2004 12.3% 6.06%
2003 9.45% 6.76%
2002 9.17% 11.9%
2001 11.3% 11.5%
2000 11% 3.69%
1999 10% 20.5%
1998 11.7% 58.5%
1997 13.2% 6.23%

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

GeoRank.org/economy/costa-rica/indonesia | CC BY

Over the past 28 years, Costa Rica has recorded an average annual inflation rate of 6.66%, compared with 8.24% in Indonesia. In 2024, inflation was -0.41% in Costa Rica and 2.18% in Indonesia.

Top exports between countries

Costa Rica
Export category Export value
Machinery & equipment $3.65M
Processed food, beverages & tobacco $879K
Animal & marine products $839K
Chemicals & pharma $362K
Raw agricultural goods $90K
Textiles & consumer goods $8K
Metals $1K
Indonesia
Export category Export value
Machinery & equipment $83.7M
Metals $28.5M
Raw materials & minerals $7.85M
Textiles & consumer goods $5.8M
Animal & marine products $5M
Wood & paper products $4.87M
Chemicals & pharma $1.4M
Processed food, beverages & tobacco $620K
Raw agricultural goods $379K
Precious metals & jewellery $127K

Balance of trade

Costa Rica Indonesia
Current account balance
-$1.25B
2024
-$8.72B
2024
Current account balance ranking
129/190
2024
174/190
2024
Current account balance, % of GDP
-1.31%
2024
-0.62%
2024
Goods imports
$23.1B
2024
$223B
2024
Goods exports
$20.6B
2024
$263B
2024
Service imports
$7.58B
2024
$57.6B
2024
Service exports
$16.3B
2024
$39B
2024
Imports of goods and services, % of GDP
32.8%
2024
20.4%
2024
Exports of goods and services, % of GDP
38.5%
2024
22.2%
2024

Economic freedom indices

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

Costa Rica Indonesia
Economic freedom 69.1 65.1
Economic freedom ranking 43/197 67/197
Property rights 66 39.7
Government integrity 64.1 42
Judicial effectiveness 76.9 43.1
Tax burden 78.6 81.5
Government spending 89.3 91.4
Fiscal health 75.6 89.8
Business freedom 79.9 69.2
Labor freedom 55.9 56.8
Monetary freedom 78.2 79.4
Trade freedom 75 78.6
Investment freedom 50 50
Financial freedom 40 60

Economic freedom comparison by year

Costa Rica
Indonesia
1x
Year Economic freedom index
Costa Rica Indonesia
2026 69.1 65.1
2025 68.6 65.2
2024 67.7 63.5
2023 66.5 63.5
2022 65.4 64.4
2021 64.2 66.9
2020 65.8 67.2
2019 65.3 65.8
2018 65.6 64.2
2017 65 61.9
2016 67.4 59.4
2015 67.2 58.1
2014 66.9 58.5
2013 67 56.9
2012 68 56.4
2011 67.3 56
2010 65.9 55.5
2009 66.4 53.4
2008 64.2 53.2
2007 64 53.2
2006 65.9 51.9
2005 66.1 52.9
2004 66.4 52.1
2003 67 55.8
2002 67.5 54.8
2001 67.6 52.5
2000 68.4 55.2
1999 67.4 61.5
1998 65.6 63.4
1997 65.6 62
1996 66.4 61
1995 68 54.9

Data sources: The Heritage Foundation | Economic Freedom Index (1995–2026, retrieved 2026-03-09).

GeoRank.org/economy/costa-rica/indonesia | CC BY

The Economic Freedom Index for Costa Rica is 69.1, ranking 43/197, compared to 65.1 for Indonesia, ranking 67/197. The chart above displays a comparison of annual changes in economic freedom indexes.

Other economic metrics

Costa Rica Indonesia
Services, % of GDP
68.8%
2024
43.8%
2024
Industry, % of GDP
19.7%
2024
39.3%
2024
Agriculture, forestry, and fishing, % of GDP
3.56%
2024
12.6%
2024
GNI, Atlas method
$80.2B
2024
$1.39T
2024
GNI per capita, PPP
$28,840
2024
$16,010
2024
Total reserves including gold
$14.2B
2024
$156B
2024
Total reserves ranking
70/177
2024
20/177
2024
Net foreign direct investment
-$4.96B
2024
-$15.9B
2024
Net inflows of foreign direct investment
$5.3B
2024
$24.2B
2024
Net outflows of foreign direct investment
$337M
2024
$8.39B
2024
Servicing debt to the IMF, % of GNI
6.31%
2023
5.65%
2024
Poverty at national poverty lines
20.3%
2024
9%
2024
Gross capital formation, % of GDP
15.7%
2024
31.4%
2024

GDP per capita map

1x

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

GeoRank.org/economy/costa-rica/indonesia | 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 (1960–2024, retrieved 2026-04-06)
  2. International Monetary Fund (IMF) | Public Finances in Modern History (1951–1999, retrieved 2026-02-20)
  3. International Monetary Fund (IMF) | Fiscal Monitor (1990–2024, retrieved 2026-02-20)
  4. The Heritage Foundation | Economic Freedom Index (1995–2026, retrieved 2026-03-09)
  5. U.S. Census Bureau (1985–2024, retrieved 2026-02-08)
  6. TradeMap (2024, retrieved 2026-02-08)
  7. United Nations | World Population Prospects (2026, retrieved 2026-03-10)
  8. LivingCost (2026, retrieved 2025-10-14)

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.

Principal and interest payments to the IMF in currency, goods, or services on long-term debt expressed as a share of GNI.

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.