Skip to content

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).

Loading chart…

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

Government Expenditure (% of GDP) by Country (IMF), 2026
RankNameValue (Percent of GDP)
1Lesotho53.36
2Namibia36.89
3Eswatini35.67
4Seychelles35.57
5Botswana34.52
6South Africa33.13
7Mauritius31.33
8Zambia30.4
9Gabon29.87
10Mozambique29.26

Top 10 in 2004

Government Expenditure (% of GDP) by Country (IMF), 2004
RankNameValue (Percent of GDP)
1São Tomé and Príncipe60.64
2Eritrea57.05
3Seychelles39.9
4Botswana39.85
5Burundi39.23
6Lesotho36.25
7Eswatini30.97
8Namibia28.39
9Cabo Verde26.27
10Angola26

Top 5 over time

Government Expenditure (% of GDP) by Country (IMF): top 5 at each point
Period#1#2#3#4#5
2004São Tomé and Príncipe60.64%Eritrea57.05%Seychelles39.9%Botswana39.85%Burundi39.23%
2010Lesotho55.32%São Tomé and Príncipe51.69%Botswana42.58%Eritrea42.44%Burundi40.84%
2020Lesotho54.17%Seychelles46.71%Namibia41.48%Botswana36.53%Liberia35.29%
2026Lesotho53.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