54 countries · 127 indicators · 45 sourcesLiveGet API key

Economy · Africa ranking

Budget Balance by African country

4.2%Lesotho leads · 2026

Lesotho has the highest general government fiscal balance as a share of GDP of any African country, at 4.2% — 1.6× Eritrea's 2.7%.

General government net lending (surplus) or borrowing (deficit) as a percentage of GDP. 54 of 54 countries, ranked · IMF MACRO FINANCIAL, 2026.

Latest available year varies by country (20192026); each row shows its year, and values more than 5 years behind the most recent are marked .

#1 vs #54Lesotho vs Libya
Median-3.5%Burkina Faso
Lowest-20.9%Libya

By region

regional average
Central Africa-2.7%
9 countries · led by Sao Tome and Principe
East Africa-3.1%
16 countries · led by Eritrea
West Africa-3.1%
16 countries · led by Mauritania
Southern Africa-4.3%
7 countries · led by Lesotho
North Africa-9.8%
6 countries · led by Morocco

Full ranking

54 of 54 countries
#CountryBudget BalancePeriod
1Lesotho
4.2%2026
2Eritrea
2.7% ⚠ ’192019
3South Sudan
1.4%2026
4Sao Tome and Principe
1%2026
5Mauritania
0.5%2026
6Republic of the Congo
0.4%2026
7Djibouti
-0.5%2026
8Somalia
-0.6%2026
9Zimbabwe
-0.8%2026
10Cabo Verde
-0.9%2026
11Gambia
-1%2026
12Comoros
-1.1%2026
13Chad
-1.4%2026
14Liberia
-1.6%2026
15Cameroon
-1.7%2026
16Equatorial Guinea
-1.7%2026
17Ethiopia
-1.8%2026
18Seychelles
-2.1%2026
19Sierra Leone
-2.2%2026
20Ghana
-2.3%2026
21Angola
-2.4%2026
22Mali
-2.4%2026
23Burundi
-2.5%2026
24Benin
-2.9%2026
25Cote d'Ivoire
-3%2026
26Mauritius
-3.1%2026
27Tanzania
-3.2%2026
28Burkina Faso
-3.5%2026
29Democratic Republic of the Congo
-3.5%2026
30Morocco
-3.5%2026
31Niger
-3.7%2026
32Guinea-Bissau
-4%2026
33Rwanda
-4.3%2026
34Nigeria
-4.4%2026
35Sudan
-4.4%2026
36Madagascar
-4.6%2026
37South Africa
-4.9%2026
38Zambia
-4.9%2026
39Central African Republic
-5%2026
40Guinea
-5%2026
41Uganda
-5.9%2026
42Namibia
-6.1%2026
43Kenya
-6.4%2026
44Mozambique
-6.5%2026
45Senegal
-6.7%2026
46Togo
-6.7%2026
47Eswatini
-6.9%2026
48Tunisia
-7.4%2026
49Gabon
-10%2026
50Algeria
-10.2%2026
51Malawi
-10.5%2026
52Botswana
-10.7%2026
53Egypt
-12.1%2026
54Libya
-20.9%2026

Get this ranking via API

GET /v1/data

One call to /v1/data returns the latest Budget Balance figure for every country you pass — JSON, with source metadata on each observation.

curl "https://api.africa-api.com/v1/data?metric_key=fiscal_balance_pct_gdp&latest=true&country_codes=NG,KE,ZA,EG" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Cite or republish this ranking

Data: Africa APIIMF MACRO FINANCIAL, 2026. Free to republish with a link to this page. Pull the live figures via the API above so your version never goes stale.

Embed this ranking

free · auto-updating

Drop this chart into your article or site — it stays live as the data updates. Paste the snippet anywhere HTML is allowed (a citation link is included).

<iframe src="https://africa-api.com/embed/fiscal-balance" width="100%" height="560" loading="lazy" style="border:1px solid #e3e3e3;border-radius:10px;max-width:640px" title="Budget Balance by African country — Africa API"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:.5rem 0"><a href="https://africa-api.com/data/fiscal-balance">Budget Balance by African country — Africa API</a></p>

Frequently asked questions

Which African country has the highest general government fiscal balance as a share of GDP?

Lesotho has the highest general government fiscal balance as a share of GDP in Africa at 4.2% (2026), followed by Eritrea and South Sudan.

Which African country has the lowest general government fiscal balance as a share of GDP?

Libya has the lowest general government fiscal balance as a share of GDP of the 54 African countries with data, at -20.9% (2026).

How many African countries report Budget Balance data?

54 of 54 African countries have a Budget Balance figure in the Africa API, each from the latest year available for that country (which can differ between countries, here 2019–2026). Every value links to its full series with source and history.

How do I get this ranking via API?

Call GET /v1/data?metric_key=fiscal_balance_pct_gdp&latest=true with the country codes you need and a free Africa API key — the response returns the latest value per country as JSON.

More economy rankings