Costa Rica vs Panama
Side-by-side comparison of Costa Rica and Panama from official statistics: size, economy, people, trade, natural resources, health, infrastructure and military, with world ranks, years and sources.
Costa Rica
Latin America & Caribbean · nation age 205 years
Panama
Latin America & Caribbean · nation age 123 years
In short
Costa Rica scores 54.7 in the NationsTree Index (71st in the world) and Panama scores 45.5 (106th), a gap of 9.3 points. Their trees are 7.9 m and 8.2 m tall; tree height grows with real GDP and is adjusted by the index.
Costa Rica has 13% more people than Panama. Panama has 47% more land area than Costa Rica. The economy of Panama is 15% larger than that of Costa Rica (GDP at purchasing power parity). Population: Costa Rica 5.2 million and Panama 4.6 million (2025).
GDP per person at purchasing power parity is $43,902 in Panama and $33,815 in Costa Rica (2025, international dollars). People in Costa Rica live on average 1.2 years longer (81.0 vs 79.8 years).
Of 35 indicators reported by both countries, Costa Rica ranks higher in the world on 23 and Panama on 12. Costa Rica is clearly stronger in institutions & safety, science & innovation and main industries. Panama is clearly stronger in military and infrastructure & digital.
As a nation, Costa Rica is the older of the two (statehood since 1821, 205 years), compared with Panama (since 1903). Over the last five years Costa Rica improved faster (direction score 50 vs 43 out of 100).
Where they differ most
The indicators with the biggest gap in world position between Costa Rica and Panama.
Over time
How the two countries moved against each other, from the yearly data.
Costa Rica overtook Panama in life expectancy in 2023 and has stayed ahead since.
Panama overtook Costa Rica in GDP (PPP) in 2011 and has stayed ahead since.
Costa Rica overtook Panama in the NationsTree Index in 2010 and has stayed ahead since.
Panama overtook Costa Rica in GDP per person (PPP) in 2004 and has stayed ahead since.
Costa Rica has been ahead of Panama in population in every year since 1990.
Strength by category
Average world percentile of the indicators in each category (0–100, direction taken into account). i
All indicators
Latest available value for each country with its year and world rank. Green: the better world position of the two, red: the weaker one.
| Indicator | ||
|---|---|---|
| Land & people | ||
| Surface area km² | 51,100128th/216 · 2024 | 75,320119th/216 · 2024 |
| Land area km² | 50,560127th/216 · 2024 | 74,180116th/216 · 2024 |
| Population people | 5.2 m126th/217 · 2025 | 4.6 m128th/217 · 2025 |
| Population growth % | 0.45%143rd/217 · 2025 | 1.22%84th/217 · 2025 |
| Population density people/km² | 101.5104th/216 · 2024 | 60.9144th/216 · 2024 |
| Urban population % | 79.7%59th/217 · 2025 | 66.2%102nd/217 · 2025 |
| Population aged 0–14 % | 18.3%136th/217 · 2025 | 24.5%97th/217 · 2025 |
| Population aged 65+ % | 12.8%77th/217 · 2025 | 9.7%102nd/217 · 2025 |
| Economy | ||
| GDP USD | $102.90 bn74th/210 · 2025 | $90.46 bn82nd/210 · 2025 |
| GDP (PPP) intl. USD | $174.25 bn84th/199 · 2025 | $200.69 bn79th/199 · 2025 |
| Real GDP (PPP, constant 2021 prices) intl. USD 2021 | $146.57 bn86th/199 · 2025 | $171.49 bn79th/199 · 2025 |
| GDP per person USD | $19,97075th/210 · 2025 | $19,79077th/210 · 2025 |
| GDP per person (PPP) intl. USD | $33,81576th/199 · 2025 | $43,90262nd/199 · 2025 |
| GNI per person (Atlas) USD | $17,93072nd/201 · 2025 | $19,14070th/201 · 2025 |
| GDP growth % | 4.6%61st/210 · 2025 | 4.4%70th/210 · 2025 |
| Inflation % | -0.1%13th/180 · 2025 | -0.2%10th/180 · 2025 |
| Unemployment % | 6.8%124th/187 · 2025 | 8.4%137th/187 · 2025 |
| Central government debt % of GDP | 39.3%2001 | — |
| General government gross debt % of GDP | 60.4%116th/189 · 2025 | 56.6%105th/189 · 2025 |
| Government budget balance % of GDP | -3.4%116th/192 · 2025 | -3.7%123rd/192 · 2025 |
| Main industries | ||
| Agriculture, forestry, fishing % of GDP | 3.4%124th/197 · 2025 | 2.6%135th/197 · 2025 |
| Industry incl. construction % of GDP | 19.9%127th/200 · 2025 | 24.9%88th/200 · 2025 |
| Manufacturing % of GDP | 13.6%56th/192 · 2025 | 4.8%155th/192 · 2025 |
| Services % of GDP | 69.2%37th/200 · 2025 | 70.0%35th/200 · 2025 |
| Trade | ||
| Exports of goods & services USD | $39.98 bn73rd/182 · 2025 | $38.38 bn75th/182 · 2024 |
| Imports of goods & services USD | $33.59 bn78th/182 · 2025 | $34.02 bn77th/182 · 2024 |
| Exports % of GDP | 38.8%87th/183 · 2025 | 44.4%65th/183 · 2024 |
| Imports % of GDP | 32.6%124th/183 · 2025 | 39.3%104th/183 · 2024 |
| Trade openness % of GDP | 71.5%110th/183 · 2025 | 83.7%88th/183 · 2024 |
| Fuel exports % of merchandise exports | 0.0%147th/170 · 2024 | 0.9%123rd/170 · 2025 |
| Manufactures exports % of merchandise exports | 64.9%48th/171 · 2024 | 12.6%126th/171 · 2025 |
| Food exports % of merchandise exports | 32.3%45th/171 · 2024 | 49.6%30th/171 · 2025 |
| Ores & metals exports % of merchandise exports | 1.4%123rd/171 · 2024 | 32.6%16th/171 · 2025 |
| High-tech exports % of manufactured exports | 22.9%27th/168 · 2024 | 1.8%135th/168 · 2024 |
| Current account balance % of GDP | -0.6%84th/191 · 2025 | -0.2%78th/191 · 2025 |
| Foreign direct investment, inflows % of GDP | 5.4%38th/196 · 2025 | 1.0%139th/196 · 2025 |
| Natural resources | ||
| Natural resource rents % of GDP | 0.8%123rd/209 · 2021 | 3.7%83rd/209 · 2021 |
| Oil rents % of GDP | 0.01%108th/197 · 2021 | 0.00%120th/197 · 2021 |
| Natural gas rents % of GDP | 0.00%100th/197 · 2021 | 0.00%100th/197 · 2021 |
| Coal rents % of GDP | 0.00%68th/195 · 2021 | 0.00%68th/195 · 2021 |
| Mineral rents % of GDP | 0.00%91st/209 · 2021 | 3.58%29th/209 · 2021 |
| Forest rents % of GDP | 0.75%62nd/209 · 2021 | 0.09%116th/209 · 2021 |
| Arable land % of land area | 3.3%153rd/206 · 2024 | 6.7%122nd/206 · 2024 |
| Renewable freshwater per person m³ | 22,23629th/183 · 2022 | 31,04019th/183 · 2022 |
| Tourism | ||
| International tourist arrivals arrivals | 1.1 m90th/194 · 2020 | 647,000113th/194 · 2020 |
| Tourism receipts USD | $1.48 bn59th/175 · 2020 | $1.84 bn52nd/175 · 2020 |
| Tourism receipts % of exports | 7.4%71st/168 · 2020 | 9.3%61st/168 · 2020 |
| Outbound trips departures | 324,00087th/107 · 2020 | 401,00083rd/107 · 2020 |
| Society & health | ||
| Life expectancy years | 81.047th/217 · 2024 | 79.855th/217 · 2024 |
| Under-5 mortality per 1,000 births | 10.479th/196 · 2024 | 15.3100th/196 · 2024 |
| Physicians per 1,000 people | 2.6967th/174 · 2022 | 1.6390th/174 · 2022 |
| Hospital beds per 1,000 people | 1.1110th/145 · 2022 | 2.088th/145 · 2023 |
| DPT immunization % of children 12–23 months | 99%1st/193 · 2024 | 72%165th/193 · 2024 |
| Completed lower secondary, 25+ % of adults | 52.4%112th/153 · 2024 | 64.7%92nd/153 · 2024 |
| Secondary enrolment % gross | 121.8%14th/173 · 2024 | 76.6%2017 |
| Social protection coverage (incl. pensions) % of population | 70.9%17th/55 · 2022 | 76.8%13th/55 · 2023 |
| Old-age dependency ratio % of working-age population | 18.5%81st/217 · 2025 | 14.7%99th/217 · 2025 |
| Health spending % of GDP | 6.9%87th/193 · 2023 | 8.3%56th/193 · 2023 |
| Adult literacy % | 97.4%2011 | 96.2%31st/98 · 2024 |
| Tertiary enrolment % gross | 55.0%2019 | 53.7%74th/150 · 2023 |
| Human Development Index index 0–1 | 0.83362nd/193 · 2023 | 0.83959th/193 · 2023 |
| Income inequality (Gini) index | 45.5100th/108 · 2025 | 49.7104th/108 · 2024 |
| Extreme poverty % of population | 0.8%43rd/108 · 2025 | 3.1%70th/108 · 2024 |
| Infrastructure & digital | ||
| Access to electricity % of population | 99.8%126th/215 · 2024 | 96.0%149th/215 · 2024 |
| Safely managed drinking water % of population | 80.5%76th/150 · 2024 | — |
| Safely managed sanitation % of population | 26.3%115th/144 · 2024 | — |
| Internet users % of population | 87.2%75th/186 · 2024 | 72.8%118th/186 · 2024 |
| Mobile subscriptions per 100 people | 13647th/210 · 2024 | 15726th/210 · 2023 |
| Fixed broadband per 100 people | 23.382nd/208 · 2024 | 18.192nd/208 · 2023 |
| Trade & transport infrastructure quality (LPI) score 1–5 | 2.7071st/164 · 2022 | 3.3043rd/164 · 2022 |
| Rail lines route-km | 8482001 | 4852000 |
| Air passengers carried passengers | 2.0 m82nd/161 · 2023 | 15.8 m41st/161 · 2023 |
| Environment & energy | ||
| CO₂ emissions per person t CO₂e | 1.6382nd/203 · 2024 | 2.74107th/203 · 2024 |
| Renewable energy % of final energy use | 34.2%72nd/212 · 2021 | 28.0%84th/212 · 2021 |
| Air pollution (PM2.5) µg/m³ | 17.7101st/200 · 2023 | 15.184th/200 · 2023 |
| Forest area % of land area | 59.1%32nd/214 · 2024 | 62.2%26th/214 · 2024 |
| Energy use per person kg oil eq. | 1,12187th/149 · 2024 | 1,00290th/149 · 2024 |
| Institutions & safety | ||
| Government effectiveness score 0–100 | 60.871st/205 · 2025 | 56.886th/205 · 2025 |
| Control of corruption score 0–100 | 62.051st/207 · 2025 | 36.8138th/207 · 2025 |
| Rule of law score 0–100 | 68.658th/207 · 2025 | 53.6116th/207 · 2025 |
| Political stability score 0–100 | 87.024th/207 · 2025 | 69.995th/207 · 2025 |
| Regulatory quality score 0–100 | 64.856th/205 · 2025 | 53.4105th/205 · 2025 |
| Voice & accountability score 0–100 | 76.837th/205 · 2025 | 66.572nd/205 · 2025 |
| Homicide rate per 100,000 | 17.7127th/145 · 2023 | 11.7121st/145 · 2023 |
| Military | ||
| Military expenditure USD | $0.00154th/156 · 2025 | $0.00154th/156 · 2025 |
| Military expenditure % of GDP | 0.0%154th/156 · 2025 | 0.0%154th/156 · 2025 |
| Military expenditure % of government spending | 0.0%152nd/154 · 2025 | 0.0%152nd/154 · 2025 |
| Armed forces personnel people | 10,000131st/170 · 2020 | 28,00089th/170 · 2020 |
| Armed forces personnel % of labour force | 0.41%125th/168 · 2020 | 1.33%48th/168 · 2020 |
| Arms imports (SIPRI TIV) TIV | 8.0 m2019 | — |
| Arms exports (SIPRI TIV) TIV | 3.0 m2009 | 1.0 m2019 |
| Science & innovation | ||
| R&D spending % of GDP | 0.34%71st/110 · 2023 | 0.20%86th/110 · 2024 |
| Patent applications by residents applications | 1593rd/137 · 2024 | 11101st/137 · 2024 |
| Scientific articles articles | 66192nd/197 · 2023 | 282116th/197 · 2023 |
Questions and answers
Which has more people, Costa Rica or Panama?
Costa Rica has the larger population: 5.2 m (2025) compared with 4.6 m for Panama (2025). Source: World Bank, SP.POP.TOTL.
Which is bigger by area, Costa Rica or Panama?
Panama is larger: 75,320 km² (2024) compared with 51,100 km² for Costa Rica (2024). Source: World Bank, AG.SRF.TOTL.K2.
Which economy is larger, Costa Rica or Panama?
Panama has the larger economy at purchasing power parity: $200.69 bn intl. (2025) compared with $174.25 bn intl. for Costa Rica (2025). Source: World Bank, NY.GDP.MKTP.PP.CD.
Which is richer per person, Costa Rica or Panama?
Panama has the higher GDP per person (PPP): $43,902 intl. (2025) compared with $33,815 intl. for Costa Rica (2025). Source: World Bank, NY.GDP.PCAP.PP.CD.
Where do people live longer, in Costa Rica or Panama?
Costa Rica has the higher life expectancy at birth: 81.0 years (2024) compared with 79.8 years for Panama (2024). Source: World Bank, SP.DYN.LE00.IN.
Which spends more on the military, Costa Rica or Panama?
Costa Rica spends more on the military: $0.00 (2025) compared with $0.00 for Panama (2025). Source: World Bank, MS.MIL.XPND.CD.
Which ranks higher in the NationsTree Index, Costa Rica or Panama?
Costa Rica: 54.7 points (71st in the world); Panama: 45.5 points (106th). The index combines foundations, economic strength, quality of life, problems and 5-year direction from public statistics.
Sources
World Bank World Development Indicators and Worldwide Governance Indicators, compiling UN agencies, the IMF, WHO, SIPRI and national statistical offices; every row links to its world ranking with the source series. See Sources & licences and Methodology.
Cite as: NationsTree (2026). Costa Rica vs Panama — country comparison. https://nationstree.org/compare/costa-rica-vs-panama. Data as of 26 October 2026.