54 countries · 127 indicators · 45 sourcesLiveGet API key

Health · Africa ranking

Safely Managed Sanitation by African country

79.8%Tunisia leads · 2024

Tunisia has the highest access to safely managed sanitation of any African country, at 79.8%, ahead of South Africa and Algeria.

Share of the population using safely managed sanitation services. 35 of 54 countries, ranked · World Bank — World Development Indicators, 2024.

#1 vs #359.9×Tunisia vs Ethiopia
Median24.7%Burkina Faso
Lowest8.1%Ethiopia

By region

regional average
Southern Africa50.5%
4 countries · led by South Africa
North Africa46%
5 countries · led by Tunisia
East Africa29.1%
10 countries · led by Comoros
West Africa21.6%
12 countries · led by Nigeria
Central Africa18.1%
4 countries · led by Sao Tome and Principe

Full ranking

35 of 54 countries
#CountrySafely Managed SanitationPeriod
1Tunisia
79.8%2024
2South Africa
73.8%2024
3Algeria
62.5%2024
4Eswatini
60.8%2024
5Egypt
57.3%2024
6Comoros
49.4%2024
7Malawi
46.2%2024
8Lesotho
43.8%2024
9Djibouti
39.7%2023
10Kenya
35.8%2024
11Sao Tome and Principe
34.7%2024
12Mozambique
33.9%2024
13Nigeria
32.2%2024
14Senegal
30.1%2024
15Tanzania
28.5%2024
16Gambia
28.1%2024
17Cote d'Ivoire
27.1%2024
18Burkina Faso
24.7%2024
19Zimbabwe
23.6%2024
20Guinea-Bissau
22.6%2024
21Libya
21.7%2024
22Uganda
20.4%2024
23Mali
20%2024
24Ghana
18.8%2024
25Sierra Leone
16.8%2024
26Somalia
16.4%2024
27Benin
16.4%2024
28Central African Republic
13.5%2024
29Democratic Republic of the Congo
13.1%2024
30Togo
13%2024
31Madagascar
12.8%2024
32Chad
11.1%2024
33Niger
9.1%2024
34Morocco
8.4%2024
35Ethiopia
8.1%2024

Get this ranking via API

GET /v1/data

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

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

Cite or republish this ranking

Data: Africa APIWorld Bank — World Development Indicators, 2024. 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/safe-sanitation" width="100%" height="560" loading="lazy" style="border:1px solid #e3e3e3;border-radius:10px;max-width:640px" title="Safely Managed Sanitation 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/safe-sanitation">Safely Managed Sanitation by African country — Africa API</a></p>

Frequently asked questions

Which African country has the highest access to safely managed sanitation?

Tunisia has the highest access to safely managed sanitation in Africa at 79.8% (2024), followed by South Africa and Algeria.

Which African country has the lowest access to safely managed sanitation?

Ethiopia has the lowest access to safely managed sanitation of the 35 African countries with data, at 8.1% (2024).

How many African countries report Safely Managed Sanitation data?

35 of 54 African countries have a recent Safely Managed Sanitation figure in the Africa API. Each value links to the country's full series with source and history.

How do I get this ranking via API?

Call GET /v1/data?metric_key=safely_managed_sanitation_pct&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 health rankings