Health · Africa ranking
Basic Sanitation by African country
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.
By region
Full ranking
| # | Country | Basic Sanitation | |
|---|---|---|---|
| 1 | Morocco | 79.4% | |
| 2 | Libya | 66.8% | |
| 3 | Egypt | 39.8% | |
| 4 | Senegal | 32.4% | |
| 5 | Somalia | 28.1% | |
| 6 | Mali | 27.7% | |
| 7 | Djibouti | 27.4% | |
| 8 | Algeria | 23.4% | |
| 9 | Gambia | 20.1% | |
| 10 | Tunisia | 18.8% | |
| 11 | Nigeria | 15.7% | |
| 12 | Sao Tome and Principe | 14% | |
| 13 | Cote d'Ivoire | 13.3% | |
| 14 | Ghana | 12.8% | |
| 15 | Togo | 12.1% | |
| 16 | Zimbabwe | 11.1% | |
| 17 | Tanzania | 8.8% | |
| 18 | Sierra Leone | 8.1% | |
| 19 | Comoros | 7.9% | |
| 20 | Niger | 7.2% | |
| 21 | Burkina Faso | 7.1% | |
| 22 | Guinea-Bissau | 6.3% | |
| 23 | Benin | 5.9% | |
| 24 | Kenya | 5.1% | |
| 25 | Mozambique | 4.6% | |
| 26 | Lesotho | 4.1% | |
| 27 | Eswatini | 3.6% | |
| 28 | South Africa | 3.6% | |
| 29 | Uganda | 3.5% | |
| 30 | Democratic Republic of the Congo | 3.2% | |
| 31 | Malawi | 3.1% | |
| 32 | Madagascar | 2.6% | |
| 33 | Ethiopia | 2.3% | |
| 34 | Chad | 2.1% | |
| 35 | Central African Republic | 0.5% |
Get this ranking via API
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 API — UNICEF 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
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).
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