Costa Rica vs Panama
Costa Rica vs Panama: Government debt
Government debt in 2025: 60.4% of GDP in Costa Rica and 56.6% of GDP in Panama, by IMF estimates. In 2025 the value was higher in Costa Rica, by 3.8 percentage points, or 1.07 times that in Panama.
% of GDP · IMF
What the numbers say
- Costa Rica has been higher since 2012, when it overtook Panama.
- In 2025, Costa Rica ranked 55 and Panama ranked 65 of 149 countries, counting from the highest.
- The IMF projection (World Economic Outlook, October 2026) puts Costa Rica at 62.4% of GDP and Panama at 49.6% of GDP in 2031.
Every year
% of GDP · IMF
| Year | Costa Rica | Panama |
|---|---|---|
| 2025 | 60.4 | 56.6 |
| 2024 | 58.9 | 57.8 |
| 2023 | 60.4 | 54.4 |
| 2022 | 61.4 | 56.2 |
| 2021 | 67 | 58 |
| 2020 | 66.5 | 62.4 |
| 2019 | 56.1 | 42.5 |
| 2018 | 51.7 | 36.3 |
| 2017 | 47.1 | 34.3 |
| 2016 | 44.1 | 34 |
| 2015 | 39.8 | 34.1 |
| 2014 | 37.4 | 33 |
| 2013 | 35.1 | 30.8 |
| 2012 | 33.7 | 31.3 |
| 2011 | 29.5 | 35.9 |
| 2010 | 28.1 | 38.5 |
| 2009 | 26 | 39.5 |
| 2008 | 24 | 40.6 |
| 2007 | 27 | 48.2 |
| 2006 | 33 | 56.1 |
| 2005 | 37.3 | 61.6 |
| 2004 | 41 | 61.6 |
| 2003 | 40.6 | 59.9 |
| 2002 | 41.4 | 60.9 |
| 2001 | 39.6 | 62.1 |
| 2000 | 38.9 | 58 |
| 1999 | 39 | 60.4 |
| 1998 | 40.7 | 64.3 |
| 1997 | 30.6 | 67.3 |
| 1996 | 33.7 | 73.6 |
| 1995 | – | 86.8 |
| 1994 | – | 88.7 |
IMF projection (World Economic Outlook, October 2026) · 2026–2031
| Year | Costa Rica | Panama |
|---|---|---|
| 2026 | 61.8 | 56.4 |
| 2027 | 62.8 | 55.9 |
| 2028 | 63.3 | 54.9 |
| 2029 | 63.3 | 53.5 |
| 2030 | 63 | 51.6 |
| 2031 | 62.4 | 49.6 |
Each country on its own
Good to know
- What the government owes, as a share of the economy’s yearly output.
- Source: IMF, World Economic Outlook, October 2026.
- The dashed line is the IMF projection (World Economic Outlook, October 2026), a scenario rather than a forecast.
- Ranks count the 149 countries with a value in 2025, highest first.
How the layers work, where their data comes from and what they can’t tell you: Countries through time
Costa Rica vs Panama
Health
- Life expectancyCosta Rica: 80.8 years in 2023Panama: 79.6 years in 2023
- Child mortalityCosta Rica: 1 per 100 live births in 2024Panama: 1.5 per 100 live births in 2024
- Infant mortalityCosta Rica: 6.5 per 1,000 live births in 2023Panama: 12.6 per 1,000 live births in 2023
- DepressionCosta Rica: 2.91% in 2017Panama: 2.68% in 2017
- Suicide rateCosta Rica: 7.8 per 100,000 people in 2017Panama: 5 per 100,000 people in 2017
People
- PopulationCosta Rica: 5.11 million people in 2023Panama: 4.46 million people in 2023
- Population growthCosta Rica: 0.49% a year in 2023Panama: 1.29% a year in 2023
- Fertility rateCosta Rica: 1.33 births per woman in 2023Panama: 2.12 births per woman in 2023
- Urban populationCosta Rica: 79.7% in 2025Panama: 66.2% in 2025
- Median ageCosta Rica: 34.1 years in 2023Panama: 29.6 years in 2023
- People aged 65 and overCosta Rica: 11.7% in 2023Panama: 9.1% in 2023
- Net migration rateCosta Rica: 0.2 per 1,000 people in 2023Panama: 1.6 per 1,000 people in 2023
Economy
Education
Politics
Conflict
Military
- Military spendingCosta Rica: 0% of GDP in 2025Panama: 0% of GDP in 2025
- Military spending in US dollarsCosta Rica: $0 in 2025Panama: $0 in 2025
- Military spending per personCosta Rica: $0 in 2025Panama: $0 in 2025
- Military share of state spendingCosta Rica: 0% of government spending in 2025Panama: 0% of government spending in 2025
- Armed forces personnelCosta Rica: 10,000 people in 2020Panama: 28,000 people in 2020
- National powerCosta Rica: 0.03% of world capability in 2022Panama: 0.03% of world capability in 2022
- Armed forces, share of workersCosta Rica: 0.41% of the labour force in 2020Panama: 1.33% of the labour force in 2020
- Arms importsCosta Rica: 8 million TIV in 2019Panama: 2 million TIV in 1989
- Arms exportsCosta Rica: 3 million TIV in 2009Panama: 1 million TIV in 2019