0
Comparison · latest available · data as of 26 October 2026 · printed 27 Oct 2026
NationsTree / Compare / Costa Rica vs Ecuador

Costa Rica vs Ecuador

Side-by-side comparison of Costa Rica and Ecuador 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

NationsTree Index54.771st of 196
Tree height7.9 m 
vs
29:8
indicators where each ranks higher

Ecuador

Latin America & Caribbean · nation age 186 years

NationsTree Index45.2108th of 196
Tree height10 m 
Open in the comparison tool Data as of 26 October 2026

In short

Costa Rica scores 54.7 in the NationsTree Index (71st in the world) and Ecuador scores 45.2 (108th), a gap of 9.6 points. Their trees are 7.9 m and 10 m tall; tree height grows with real GDP and is adjusted by the index.

Ecuador has 3.5 times the population of Costa Rica. Ecuador is 5.0 times larger than Costa Rica by land area. The economy of Ecuador is 76% larger than that of Costa Rica (GDP at purchasing power parity). Population: Costa Rica 5.2 million and Ecuador 18.3 million (2025).

GDP per person at purchasing power parity is $33,815 in Costa Rica and $16,757 in Ecuador (2025, international dollars). People in Costa Rica live on average 3.4 years longer (81.0 vs 77.6 years).

Of 37 indicators reported by both countries, Costa Rica ranks higher in the world on 29 and Ecuador on 8. Costa Rica is clearly stronger in institutions & safety, society & health and environment & energy. Ecuador is clearly stronger in military, science & innovation and natural resources.

As a nation, Costa Rica is the older of the two (statehood since 1821, 205 years), compared with Ecuador (since 1840). Over the last five years Costa Rica improved faster (direction score 50 vs 41 out of 100).

Where they differ most

The indicators with the biggest gap in world position between Costa Rica and Ecuador.

Over time

How the two countries moved against each other, from the yearly data.

NationsTree IndexCosta RicaEcuador
3040506070 1995 2000 2005 2010 2015 2020 2025

Costa Rica has been ahead of Ecuador in the NationsTree Index in every year since 1995.

Costa Rica has been ahead of Ecuador in GDP per person (PPP) and life expectancy in every year since 1990.

Ecuador has been ahead of Costa Rica in GDP (PPP) and 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 Costa Rica Ecuador
Land & people
Surface area i km² 51,100128th/216 · 2024 256,37077th/216 · 2024
Land area i km² 50,560127th/216 · 2024 248,36077th/216 · 2024
Population i people 5.2 m126th/217 · 2025 18.3 m70th/217 · 2025
Population growth i % 0.45%143rd/217 · 2025 0.85%111th/217 · 2025
Population density i people/km² 101.5104th/216 · 2024 73.0133rd/216 · 2024
Urban population i % 79.7%59th/217 · 2025 63.4%113th/217 · 2025
Population aged 0–14 i % 18.3%136th/217 · 2025 23.9%104th/217 · 2025
Population aged 65+ i % 12.8%77th/217 · 2025 8.6%109th/217 · 2025
Economy
GDP i USD $102.90 bn74th/210 · 2025 $130.32 bn64th/210 · 2025
GDP (PPP) i intl. USD $174.25 bn84th/199 · 2025 $306.48 bn66th/199 · 2025
Real GDP (PPP, constant 2021 prices) i intl. USD 2021 $146.57 bn86th/199 · 2025 $261.90 bn66th/199 · 2025
GDP per person i USD $19,97075th/210 · 2025 $7,125118th/210 · 2025
GDP per person (PPP) i intl. USD $33,81576th/199 · 2025 $16,757116th/199 · 2025
GNI per person (Atlas) i USD $17,93072nd/201 · 2025 $6,890111th/201 · 2025
GDP growth i % 4.6%61st/210 · 2025 3.7%90th/210 · 2025
Inflation i % -0.1%13th/180 · 2025 0.7%29th/180 · 2025
Unemployment i % 6.8%124th/187 · 2025 3.3%52nd/187 · 2025
Central government debt i % of GDP 39.3%2001 —
General government gross debt i % of GDP 60.4%116th/189 · 2025 54.5%100th/189 · 2025
Government budget balance i % of GDP -3.4%116th/192 · 2025 -2.8%99th/192 · 2025
Main industries
Agriculture, forestry, fishing i % of GDP 3.4%124th/197 · 2025 9.7%71st/197 · 2025
Industry incl. construction i % of GDP 19.9%127th/200 · 2025 25.7%77th/200 · 2025
Manufacturing i % of GDP 13.6%56th/192 · 2025 13.2%59th/192 · 2025
Services i % of GDP 69.2%37th/200 · 2025 57.0%107th/200 · 2025
Trade
Exports of goods & services i USD $39.98 bn73rd/182 · 2025 $40.97 bn70th/182 · 2025
Imports of goods & services i USD $33.59 bn78th/182 · 2025 $36.38 bn74th/182 · 2025
Exports i % of GDP 38.8%87th/183 · 2025 31.4%108th/183 · 2025
Imports i % of GDP 32.6%124th/183 · 2025 27.9%143rd/183 · 2025
Trade openness i % of GDP 71.5%110th/183 · 2025 59.4%129th/183 · 2025
Fuel exports i % of merchandise exports 0.0%147th/170 · 2024 20.9%37th/170 · 2025
Manufactures exports i % of merchandise exports 64.9%48th/171 · 2024 4.6%155th/171 · 2025
Food exports i % of merchandise exports 32.3%45th/171 · 2024 58.7%20th/171 · 2025
Ores & metals exports i % of merchandise exports 1.4%123rd/171 · 2024 8.9%42nd/171 · 2025
High-tech exports i % of manufactured exports 22.9%27th/168 · 2024 10.0%65th/168 · 2024
Current account balance i % of GDP -0.6%84th/191 · 2025 5.9%30th/191 · 2025
Foreign direct investment, inflows i % of GDP 5.4%38th/196 · 2025 1.0%140th/196 · 2025
Natural resources
Natural resource rents i % of GDP 0.8%123rd/209 · 2021 6.7%61st/209 · 2021
Oil rents i % of GDP 0.01%108th/197 · 2021 6.40%22nd/197 · 2021
Natural gas rents i % of GDP 0.00%100th/197 · 2021 0.01%77th/197 · 2021
Coal rents i % of GDP 0.00%68th/195 · 2021 0.00%68th/195 · 2021
Mineral rents i % of GDP 0.00%91st/209 · 2021 0.00%91st/209 · 2021
Forest rents i % of GDP 0.75%62nd/209 · 2021 0.28%82nd/209 · 2021
Arable land i % of land area 3.3%153rd/206 · 2024 3.7%149th/206 · 2024
Renewable freshwater per person i m³ 22,23629th/183 · 2022 24,82127th/183 · 2022
Tourism
International tourist arrivals i arrivals 1.1 m90th/194 · 2020 2.1 m62nd/194 · 2019
Tourism receipts i USD $1.48 bn59th/175 · 2020 $705.0 m84th/175 · 2020
Tourism receipts i % of exports 7.4%71st/168 · 2020 3.1%105th/168 · 2020
Outbound trips i departures 324,00087th/107 · 2020 1.5 m57th/107 · 2019
Society & health
Life expectancy i years 81.047th/217 · 2024 77.679th/217 · 2024
Under-5 mortality i per 1,000 births 10.479th/196 · 2024 12.989th/196 · 2024
Physicians i per 1,000 people 2.6967th/174 · 2022 2.3177th/174 · 2020
Hospital beds i per 1,000 people 1.1110th/145 · 2022 1.3106th/145 · 2023
DPT immunization i % of children 12–23 months 99%1st/193 · 2024 70%169th/193 · 2024
Completed lower secondary, 25+ i % of adults 52.4%112th/153 · 2024 54.4%106th/153 · 2024
Secondary enrolment i % gross 121.8%14th/173 · 2024 92.8%88th/173 · 2023
Social protection coverage (incl. pensions) i % of population 70.9%17th/55 · 2022 41.1%34th/55 · 2022
Old-age dependency ratio i % of working-age population 18.5%81st/217 · 2025 12.7%110th/217 · 2025
Health spending i % of GDP 6.9%87th/193 · 2023 7.6%73rd/193 · 2023
Adult literacy i % 97.4%2011 93.5%46th/98 · 2024
Tertiary enrolment i % gross 55.0%2019 67.9%52nd/150 · 2023
Human Development Index i index 0–1 0.83362nd/193 · 2023 0.77788th/193 · 2023
Income inequality (Gini) i index 45.5100th/108 · 2025 45.9102nd/108 · 2025
Extreme poverty i % of population 0.8%43rd/108 · 2025 3.4%71st/108 · 2025
Infrastructure & digital
Access to electricity i % of population 99.8%126th/215 · 2024 98.5%139th/215 · 2024
Safely managed drinking water i % of population 80.5%76th/150 · 2024 69.9%87th/150 · 2024
Safely managed sanitation i % of population 26.3%115th/144 · 2024 49.3%86th/144 · 2024
Internet users i % of population 87.2%75th/186 · 2024 77.2%108th/186 · 2024
Mobile subscriptions i per 100 people 13647th/210 · 2024 102136th/210 · 2024
Fixed broadband i per 100 people 23.382nd/208 · 2024 17.295th/208 · 2024
Trade & transport infrastructure quality (LPI) i score 1–5 2.7071st/164 · 2022 2.7268th/164 · 2018
Rail lines i route-km 8482001 9562000
Air passengers carried i passengers 2.0 m82nd/161 · 2023 4.6 m61st/161 · 2023
Environment & energy
CO₂ emissions per person i t CO₂e 1.6382nd/203 · 2024 2.64105th/203 · 2024
Renewable energy i % of final energy use 34.2%72nd/212 · 2021 18.9%112th/212 · 2021
Air pollution (PM2.5) i µg/m³ 17.7101st/200 · 2023 18.6107th/200 · 2023
Forest area i % of land area 59.1%32nd/214 · 2024 49.7%60th/214 · 2024
Energy use per person i kg oil eq. 1,12187th/149 · 2024 92794th/149 · 2024
Institutions & safety
Government effectiveness i score 0–100 60.871st/205 · 2025 51.7110th/205 · 2025
Control of corruption i score 0–100 62.051st/207 · 2025 33.2150th/207 · 2025
Rule of law i score 0–100 68.658th/207 · 2025 41.6167th/207 · 2025
Political stability i score 0–100 87.024th/207 · 2025 54.4164th/207 · 2025
Regulatory quality i score 0–100 64.856th/205 · 2025 43.2152nd/205 · 2025
Voice & accountability i score 0–100 76.837th/205 · 2025 56.2106th/205 · 2025
Homicide rate i per 100,000 17.7127th/145 · 2023 45.7141st/145 · 2023
Military
Military expenditure i USD $0.00154th/156 · 2025 $2.74 bn59th/156 · 2025
Military expenditure i % of GDP 0.0%154th/156 · 2025 2.1%56th/156 · 2025
Military expenditure i % of government spending 0.0%152nd/154 · 2025 5.7%68th/154 · 2025
Armed forces personnel i people 10,000131st/170 · 2020 42,00077th/170 · 2020
Armed forces personnel i % of labour force 0.41%125th/168 · 2020 0.54%108th/168 · 2020
Arms imports (SIPRI TIV) i TIV 8.0 m2019 30.0 m78th/163 · 2025
Arms exports (SIPRI TIV) i TIV 3.0 m2009 2.0 m2018
Science & innovation
R&D spending i % of GDP 0.34%71st/110 · 2023 0.44%2014
Patent applications by residents i applications 1593rd/137 · 2024 5382nd/137 · 2024
Scientific articles i articles 66192nd/197 · 2023 3,53066th/197 · 2023

Questions and answers

Which has more people, Costa Rica or Ecuador?

Ecuador has the larger population: 18.3 m (2025) compared with 5.2 m for Costa Rica (2025). Source: World Bank, SP.POP.TOTL.

Which is bigger by area, Costa Rica or Ecuador?

Ecuador is larger: 256,370 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 Ecuador?

Ecuador has the larger economy at purchasing power parity: $306.48 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 Ecuador?

Costa Rica has the higher GDP per person (PPP): $33,815 intl. (2025) compared with $16,757 intl. for Ecuador (2025). Source: World Bank, NY.GDP.PCAP.PP.CD.

Where do people live longer, in Costa Rica or Ecuador?

Costa Rica has the higher life expectancy at birth: 81.0 years (2024) compared with 77.6 years for Ecuador (2024). Source: World Bank, SP.DYN.LE00.IN.

Which spends more on the military, Costa Rica or Ecuador?

Ecuador spends more on the military: $2.74 bn (2025) compared with $0.00 for Costa Rica (2025). Source: World Bank, MS.MIL.XPND.CD.

Which ranks higher in the NationsTree Index, Costa Rica or Ecuador?

Costa Rica: 54.7 points (71st in the world); Ecuador: 45.2 points (108th). The index combines foundations, economic strength, quality of life, problems and 5-year direction from public statistics.

More comparisons

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 Ecuador — country comparison. https://nationstree.org/compare/costa-rica-vs-ecuador. Data as of 26 October 2026.

Cite as: NationsTree (2026). Costa Rica vs Ecuador — country comparison. https://nationstree.org/compare/costa-rica-vs-ecuador. Data as of 26 October 2026.
Comparison0 / 5
Compare