Commercial users: see the World Economic Database from our partners at Anansi Data Analytics

Costa Rica

74 series · 1800–2025 · High income · Latin America & Caribbean

National accounts

VariableCodeCoverageLatest
Nominal GDPMillions of local currencynGDP1936–202550,838,584 (2025)
Nominal GDP (USD)Millions of US dollarsnGDP_USD1936–2025100,971 (2025)
Real GDPMillions of local currencyrGDP1920–202542,484,280 (2025)
Real GDP per capitaConstant local currency per personrGDP_pc1920–20257,986,137 (2025)
Real GDP (USD)Millions of US dollarsrGDP_USD1920–202579,474 (2025)
DeflatorIndex, 2015 = 100deflator1936–2025119.7 (2025)
Real GDP per capita (USD)US dollars per personrGDP_pc_USD1920–202514,939 (2025)

Consumption and investment

VariableCodeCoverageLatest
Total consumptionMillions of local currencycons1950–202539,716,084 (2025)
Total consumption (% of GDP)Percent of GDPcons_GDP1950–202578.1 (2025)
Total consumption (USD)Millions of US dollarscons_USD1950–202578,881 (2025)
Household consumptionMillions of local currencyhcons1950–202532,277,480 (2025)
Household consumption (% of GDP)Percent of GDPhcons_GDP1950–202563.5 (2025)
Household consumption (USD)Millions of US dollarshcons_USD1950–202564,107 (2025)
Government consumptionMillions of local currencygcons1950–20257,439,423 (2025)
Government consumption (% of GDP)Percent of GDPgcons_GDP1950–202514.6 (2025)
Government consumption (USD)Millions of US dollarsgcons_USD1950–202514,776 (2025)
Gross capital formationMillions of local currencyinv1950–20257,869,889 (2025)
Gross capital formation (% of GDP)Percent of GDPinv_GDP1950–202515.5 (2025)
Gross capital formation (USD)Millions of US dollarsinv_USD1950–202515,630 (2025)
Gross fixed capital formationMillions of local currencyfinv1950–20258,132,628 (2025)
Gross fixed capital formation (% of GDP)Percent of GDPfinv_GDP1950–202516.0 (2025)
Gross fixed capital formation (USD)Millions of US dollarsfinv_USD1950–202516,152 (2025)

External sector

VariableCodeCoverageLatest
ExportsMillions of local currencyexports1820–202520,069,350 (2025)
Exports (% of GDP)Percent of GDPexports_GDP1936–202539.5 (2025)
Exports (USD)Millions of US dollarsexports_USD1820–202539,860 (2025)
ImportsMillions of local currencyimports1825–202516,800,996 (2025)
Imports (% of GDP)Percent of GDPimports_GDP1936–202533.0 (2025)
Imports (USD)Millions of US dollarsimports_USD1825–202533,369 (2025)
Current accountMillions of local currencyCA1950–2025-339,280 (2025)
Current account (% of GDP)Percent of GDPCA_GDP1950–2025-0.667 (2025)
USD exchange rateLocal currency per US dollarUSDfx1800–2025503.5 (2025)
Real effective exchange rateIndex, 2015 = 100REER1960–2025103.3 (2025)
Current account (USD)Millions of US dollarsCA_USD1950–2025-673.8 (2025)

Government finances

VariableCodeCoverageLatest
Government expenditureMillions of local currencygovexp1936–20249,093,854 (2024)
General government expenditureMillions of local currencygen_govexp1956–20249,093,854 (2024)
General government expenditure (% of GDP)Percent of GDPgen_govexp_GDP1956–202418.6 (2024)
Central government expenditureMillions of local currencycgovexp1936–20259,113,045 (2025)
Central government expenditure (% of GDP)Percent of GDPcgovexp_GDP1936–202517.9 (2025)
Government revenueMillions of local currencygovrev1936–20247,270,803 (2024)
General government revenueMillions of local currencygen_govrev1956–20247,270,803 (2024)
Central government revenueMillions of local currencycgovrev1936–20258,023,439 (2025)
General government revenue (% of GDP)Percent of GDPgen_govrev_GDP1956–202414.9 (2024)
Central government revenue (% of GDP)Percent of GDPcgovrev_GDP1936–202515.8 (2025)
Government tax revenueMillions of local currencygovtax1966–20247,017,511 (2024)
General government tax revenueMillions of local currencygen_govtax2002–20247,017,511 (2024)
Central government tax revenueMillions of local currencycgovtax1966–20246,673,727 (2024)
General government tax revenue (% of GDP)Percent of GDPgen_govtax_GDP2002–202414.4 (2024)
Central government tax revenue (% of GDP)Percent of GDPcgovtax_GDP1966–202413.7 (2024)
Government deficit (% of GDP)Percent of GDPgovdef_GDP1950–2024-3.73 (2024)
General government deficit (% of GDP)Percent of GDPgen_govdef_GDP1956–2024-3.73 (2024)
General government deficitMillions of local currencygen_govdef1956–2024-1,823,051 (2024)
Central government deficit (% of GDP)Percent of GDPcgovdef_GDP1950–2025-3.41 (2025)
Central government deficitMillions of local currencycgovdef1950–2025-1,733,722 (2025)
Government debt (% of GDP)Percent of GDPgovdebt_GDP1892–202458.9 (2024)
General government debt (% of GDP)Percent of GDPgen_govdebt_GDP1950–202458.9 (2024)
General government debtMillions of local currencygen_govdebt1950–202428,796,888 (2024)
Central government debt (% of GDP)Percent of GDPcgovdebt_GDP1892–202459.8 (2024)
Central government debtMillions of local currencycgovdebt1936–202429,219,982 (2024)
Government debtMillions of local currencygovdebt1936–202428,796,888 (2024)
Government deficitMillions of local currencygovdef1950–2024-1,823,051 (2024)
Government expenditure (% of GDP)Percent of GDPgovexp_GDP1936–202418.6 (2024)
Government revenue (% of GDP)Percent of GDPgovrev_GDP1936–202414.9 (2024)
Government tax revenue (% of GDP)Percent of GDPgovtax_GDP1966–202414.4 (2024)

Money and interest rates

VariableCodeCoverageLatest
Short-term interest ratePercentstrate1982–20253.45 (2025)
Long-term interest ratePercentltrate2014–20256.55 (2025)
Central bank policy ratePercentcbrate1952–20253.25 (2025)
M0 (monetary base)Millions of local currencyM01914–20254,250,867 (2025)
M1Millions of local currencyM11948–202519,646,750 (2025)
M2Millions of local currencyM21948–202517,983,976 (2025)
M3Millions of local currencyM31960–202526,233,890 (2025)

Prices and labor markets

VariableCodeCoverageLatest
Consumer price indexIndex, 2015 = 100CPI1936–2025117.8 (2025)
InflationPercentinfl1937–2025-0.0737 (2025)
PopulationMillions of peoplepop1800–20255.32 (2025)
Unemployment ratePercentunemp1976–20256.33 (2025)

Please cite: Müller, K., Xu, C., Lehbib, M., & Chen, Z. (2025). The Global Macro Database: A New International Macroeconomic Dataset. NBER Working Paper 33714. BibTeX →