54 countries · 127 indicators · 45 sourcesLiveGet API key

Health · Africa ranking

Basic Sanitation by African country

79.4%Morocco leads · 2024

Morocco has the highest access to basic sanitation of any African country, at 79.4% — 1.2× Libya's 66.8%.

Share of the population using at least basic sanitation services (WHO/UNICEF JMP). 35 of 54 countries, ranked · UNICEF CHILD WELFARE, 2024.

#1 vs #35155×Morocco vs Central African Republic
Median8.1%Sierra Leone
Lowest0.5%Central African Republic

By region

regional average
North Africa45.6%
5 countries · led by Morocco
West Africa14.1%
12 countries · led by Senegal
East Africa9.3%
10 countries · led by Somalia
Southern Africa5.6%
4 countries · led by Zimbabwe
Central Africa4.9%
4 countries · led by Sao Tome and Principe

Full ranking

35 of 54 countries
#CountryBasic SanitationPeriod
1Morocco
79.4%2024
2Libya
66.8%2024
3Egypt
39.8%2024
4Senegal
32.4%2024
5Somalia
28.1%2024
6Mali
27.7%2024
7Djibouti
27.4%2023
8Algeria
23.4%2024
9Gambia
20.1%2024
10Tunisia
18.8%2024
11Nigeria
15.7%2024
12Sao Tome and Principe
14%2024
13Cote d'Ivoire
13.3%2024
14Ghana
12.8%2024
15Togo
12.1%2024
16Zimbabwe
11.1%2024
17Tanzania
8.8%2024
18Sierra Leone
8.1%2024
19Comoros
7.9%2024
20Niger
7.2%2024
21Burkina Faso
7.1%2024
22Guinea-Bissau
6.3%2024
23Benin
5.9%2024
24Kenya
5.1%2024
25Mozambique
4.6%2024
26Lesotho
4.1%2024
27Eswatini
3.6%2024
28South Africa
3.6%2024
29Uganda
3.5%2024
30Democratic Republic of the Congo
3.2%2024
31Malawi
3.1%2024
32Madagascar
2.6%2024
33Ethiopia
2.3%2024
34Chad
2.1%2024
35Central African Republic
0.5%2024

Get this ranking via API

GET /v1/data

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

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

Cite or republish this ranking

Data: Africa APIUNICEF CHILD WELFARE, 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/sanitation" width="100%" height="560" loading="lazy" style="border:1px solid #e3e3e3;border-radius:10px;max-width:640px" title="Basic 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/sanitation">Basic Sanitation by African country — Africa API</a></p>

Frequently asked questions

Which African country has the highest access to basic sanitation?

Morocco has the highest access to basic sanitation in Africa at 79.4% (2024), followed by Libya and Egypt.

Which African country has the lowest access to basic sanitation?

Central African Republic has the lowest access to basic sanitation of the 35 African countries with data, at 0.5% (2024).

How many African countries report Basic Sanitation data?

35 of 54 African countries have a recent Basic 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=basic_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