Government Expenditure (% of GDP) by Country (IMF), 2004–2026 — Bar Chart Race
This bar chart race ranks 45 countries by government Expenditure (% of GDP) (Percent of GDP), year by year from 2004 to 2026. The data comes from IMF AFR Regional Economic Outlook (October 2026) (via IMF — World Economic Outlook and IMF Data).
Customise this chart & export videoDownload the data (CSV)
Key facts
- Lesotho leads in 2026 with 53.36 Percent of GDP, followed by Namibia (36.89).
- In 2004 the leader was São Tomé and Príncipe with 60.64 Percent of GDP.
- Among today’s top ten, Mozambique grew the most: 1.6× since 2004.
- The animation covers 23 time steps from 2004 to 2026 across 45 countries.
How the ranking changed
First place changed hands 4 times between 2004 and 2026: Eritrea overtook São Tomé and Príncipe in 2005, Lesotho overtook Eritrea in 2009, South Sudan overtook Lesotho in 2018 and Lesotho overtook South Sudan in 2019. Lesotho had the longest run at the top (2009–2017).
The biggest climbers into the 2026 top ten were Mozambique (23rd in 2004, now 10th), South Africa (15th in 2004, now 6th) and Mauritius (16th in 2004, now 7th).
South Africa, Mauritius, Zambia, Gabon and Mozambique were not in the top ten in 2004 but are in it by 2026.
Top 10 in 2026
| Rank | Name | Value (Percent of GDP) |
|---|---|---|
| 1 | Lesotho | 53.36 |
| 2 | Namibia | 36.89 |
| 3 | Eswatini | 35.67 |
| 4 | Seychelles | 35.57 |
| 5 | Botswana | 34.52 |
| 6 | South Africa | 33.13 |
| 7 | Mauritius | 31.33 |
| 8 | Zambia | 30.4 |
| 9 | Gabon | 29.87 |
| 10 | Mozambique | 29.26 |
Top 10 in 2004
| Rank | Name | Value (Percent of GDP) |
|---|---|---|
| 1 | São Tomé and Príncipe | 60.64 |
| 2 | Eritrea | 57.05 |
| 3 | Seychelles | 39.9 |
| 4 | Botswana | 39.85 |
| 5 | Burundi | 39.23 |
| 6 | Lesotho | 36.25 |
| 7 | Eswatini | 30.97 |
| 8 | Namibia | 28.39 |
| 9 | Cabo Verde | 26.27 |
| 10 | Angola | 26 |
Top 5 over time
| Period | #1 | #2 | #3 | #4 | #5 |
|---|---|---|---|---|---|
| 2004 | São Tomé and Príncipe60.64% | Eritrea57.05% | Seychelles39.9% | Botswana39.85% | Burundi39.23% |
| 2010 | Lesotho55.32% | São Tomé and Príncipe51.69% | Botswana42.58% | Eritrea42.44% | Burundi40.84% |
| 2020 | Lesotho54.17% | Seychelles46.71% | Namibia41.48% | Botswana36.53% | Liberia35.29% |
| 2026 | Lesotho53.36% | Namibia36.89% | Eswatini35.67% | Seychelles35.57% | Botswana34.52% |
About the data
Government Expenditure (Percent of GDP)
Source: IMF AFR Regional Economic Outlook (October 2026) (via IMF — World Economic Outlook and IMF Data), licensed IMF copyright; reuse with attribution. Snapshot last refreshed on . Gaps in a series are interpolated between the nearest reported values.
Questions
Which country ranks first for government Expenditure (% of GDP) in 2026?
Lesotho, with 53.36%. Namibia is second with 36.89% and Eswatini third.
Which country was first in 2004?
São Tomé and Príncipe, with 60.64%. By 2026 it ranks 11th or lower.
When did Lesotho become the top country?
Lesotho took first place in 2019, overtaking South Sudan.
What were the top 5 countries in 2020?
1. Lesotho (54.17%), 2. Seychelles (46.71%), 3. Namibia (41.48%), 4. Botswana (36.53%) and 5. Liberia (35.29%).
Where does the data come from?
IMF AFR Regional Economic Outlook (October 2026) (via IMF — World Economic Outlook and IMF Data), published under IMF copyright; reuse with attribution. The chart covers 23 time steps from 2004 to 2026 for 45 countries.
Can I export the bar chart race as a video?
Yes. The chart is rendered frame by frame in your browser and saved as an MP4 (H.264) file at up to 4K and 60 frames per second. Nothing is uploaded, so your data stays on your device.
More bar chart races
- Real GDP Growth by Country
- GDP per Capita, Current Prices (US$) by Country
- GDP per Capita, Current Prices (PPP) by Country
- Inflation Rate, Average Consumer Prices by Country
- Inflation Rate, End of Period Consumer Prices by Country
- Current Account Balance, Percent of GDP by Country
- General Government Gross Debt by Country
- Government Revenue, Percent of GDP by Country
- All economy charts