In 2024, Costa Rica raised 39.7% of GDP in general government revenue and spent 38.1% of GDP, a surplus of +1.5% of GDP.
Across the 25 years from 2000 to 2024, Costa Rica ran a deficit in 22 years and a surplus in 3 years.
See Costa Rica highlighted on the charts
| Year | Revenue, % GDP | Spending, % GDP | Balance, % GDP | Population |
|---|---|---|---|---|
| 2024 | 39.7 | 38.1 | +1.5 | 5,129,910 |
| 2023 | 39.7 | 40.3 | -0.6 | 5,105,525 |
| 2022 | 29.0 | 29.1 | -0.2 | 5,081,765 |
| 2021 | 29.5 | 31.4 | -1.8 | 5,059,988 |
| 2020 | 28.9 | 34.2 | -5.3 | 5,034,320 |
| 2019 | 28.5 | 31.6 | -3.1 | 4,999,553 |
| 2018 | 28.0 | 30.9 | -2.9 | 4,957,818 |
| 2017 | 27.4 | 30.8 | -3.5 | 4,913,177 |
| 2016 | 28.2 | 30.5 | -2.3 | 4,866,998 |
| 2015 | 27.7 | 30.2 | -2.4 | 4,818,038 |
| 2014 | 28.5 | 29.9 | -1.4 | 4,767,119 |
| 2013 | 27.5 | 30.1 | -2.6 | 4,716,147 |
| 2012 | 27.3 | 29.0 | -1.7 | 4,663,934 |
| 2011 | 33.8 | 38.9 | -5.1 | 4,609,833 |
| 2010 | 32.8 | 39.2 | -6.4 | 4,555,962 |
| 2009 | 32.1 | 35.4 | -3.3 | 4,499,791 |
| 2008 | 33.4 | 35.5 | -2.1 | 4,440,056 |
| 2007 | 31.9 | 31.0 | +0.9 | 4,380,248 |
| 2006 | 31.0 | 30.9 | +0.1 | 4,321,340 |
| 2005 | 30.6 | 32.8 | -2.2 | 4,261,240 |
| 2004 | 31.8 | 33.1 | -1.3 | 4,200,078 |
| 2003 | 33.0 | 34.1 | -1.1 | 4,138,784 |
| 2002 | 33.4 | 35.4 | -1.9 | 4,075,705 |
| 2001 | 33.5 | 34.9 | -1.4 | 4,008,947 |
| 2000 | 33.1 | 34.5 | -1.4 | 3,937,739 |