Data study

The best African countries to live in

Where in Africa do people live the longest, get the most schooling and earn the most once local prices are taken into account? We plotted all 54 countries using the United Nations’ latest human development data.

Scatter chart of 54 African countries: health and education score against income per person adjusted for local prices
Health and education against income in 54 African countries. Source: UNDP, Human Development Report 2025 (2023 data). Download the full-size image.
Use this chart on your site

Free to share with a link back. Copy this code:

The short answer

Seychelles and Mauritius are the best African countries to live in on the UN’s Human Development Index, with scores of 0.848 and 0.806 out of 1. Both island nations lead on health and schooling too, and both have incomes above $25,000 per person once prices are adjusted. On the mainland, Algeria, Egypt, Tunisia and South Africa follow.

North Africa does well across the board: all five North African countries outside Sudan sit in the top group. Several countries punch above their income: Comoros, Zimbabwe, Uganda and Zambia have above-median health and schooling with below-median incomes. At the other end, Mali has the lowest health and education score in the data.

The four groups

Best of both (20)

Higher incomes, longer lives, more schooling

Good living on less (7)

Strong health and schooling, lower incomes

Money, but gaps (7)

Higher incomes, weaker health and schooling

Hardest going (20)

Lower incomes, weaker health and schooling

All 54 countries

Sorted by the Human Development Index. Click a column to sort.

CountryRegionHDIWorld rankHealth and educationLife expectancyYears of schoolingIncome per personGroup
SeychellesEast & islands0.8485484.372.911.2$29,195Best of both
MauritiusEast & islands0.8067378.674.910.1$27,280Best of both
AlgeriaNorth0.7639676.676.37.4$15,114Best of both
EgyptNorth0.75410074.771.610.1$16,218Best of both
TunisiaNorth0.74610575.876.57.6$12,011Best of both
South AfricaSouthern0.74110673.966.111.6$13,694Best of both
GabonCentral0.73310870.668.39.7$18,854Best of both
BotswanaSouthern0.73111171.069.210.5$16,984Best of both
LibyaNorth0.72111568.569.37.8$19,831Best of both
MoroccoNorth0.71012072.975.36.2$8,653Best of both
EswatiniSouthern0.69512669.664.18.7$9,919Best of both
Equatorial GuineaCentral0.67413364.763.78.3$12,762Best of both
Cape Verde (Cabo Verde)West0.66813566.976.16.1$8,165Best of both
NamibiaSouthern0.66513664.567.47.3$10,917Best of both
Republic of the CongoCentral0.64913866.665.88.3$5,903Best of both
São Tomé and PríncipeCentral0.63714165.369.76$5,583Best of both
GhanaWest0.62814362.365.57.1$6,846Best of both
KenyaEast & islands0.62814363.863.68.6$5,608Best of both
AngolaSouthern0.61614860.764.66$6,631Best of both
ComorosEast & islands0.60315264.066.86$3,481Good living on less
ZimbabweSouthern0.59815363.162.88.9$3,511Good living on less
ZambiaSouthern0.59515462.866.37.4$3,447Good living on less
CameroonCentral0.58815559.163.76.6$4,746Best of both
Côte d’IvoireWest0.58215755.661.94.9$6,735Money, but gaps
UgandaEast & islands0.58215762.868.36.3$2,736Good living on less
RwandaEast & islands0.57815961.467.84.9$2,971Good living on less
TogoWest0.57116160.662.75.9$2,856Good living on less
MauritaniaWest0.56316353.468.54.9$6,267Money, but gaps
NigeriaWest0.56016453.854.57.6$5,569Money, but gaps
TanzaniaEast & islands0.55516556.4676.1$3,515Money, but gaps
LesothoSouthern0.55016756.957.47.7$3,029Hardest going
SenegalWest0.53016951.368.72.9$4,202Money, but gaps
The GambiaWest0.52417053.565.94.7$2,812Hardest going
Democratic Republic of the CongoCentral0.52217159.561.97.4$1,431Good living on less
MalawiSouthern0.51717257.267.45.2$1,634Hardest going
BeninWest0.51517349.960.83.2$3,806Money, but gaps
Guinea-BissauWest0.51417453.264.13.7$2,403Hardest going
DjiboutiEast & islands0.51317546.4664$6,368Money, but gaps
SudanNorth0.51117651.566.34$2,810Hardest going
LiberiaWest0.51017756.762.26.2$1,538Hardest going
EritreaEast & islands0.50317852.968.65.1$2,029Hardest going
GuineaWest0.50017948.360.72.5$3,494Hardest going
EthiopiaEast & islands0.49718049.567.32.4$2,796Hardest going
MozambiqueSouthern0.49318255.263.64.6$1,356Hardest going
MadagascarEast & islands0.48718352.163.64.6$1,656Hardest going
Sierra LeoneWest0.46718548.761.83.5$1,714Hardest going
Burkina FasoWest0.45918644.861.12.3$2,391Hardest going
BurundiEast & islands0.43918751.163.73.5$859Hardest going
MaliWest0.41918839.460.41.6$2,342Hardest going
NigerWest0.41918842.061.21.4$1,590Hardest going
ChadCentral0.41619040.955.12.3$1,748Hardest going
Central African RepublicCentral0.41419144.257.44$1,100Hardest going
SomaliaEast & islands0.40419240.258.81.9$1,475Hardest going
South SudanEast & islands0.38819344.857.65.7$688Hardest going

How we built this

Everything comes from one official source: the UNDP Human Development Report 2025, Statistical Annex Table 1, which covers 2023.

  • Income per person: gross national income per person in 2021 PPP dollars. PPP adjusts for what money buys in each country, so incomes can be compared fairly across borders. The chart uses a log scale.
  • Health and education score: our calculation using the UN’s own Human Development Index formula with the income part removed. It combines life expectancy at birth with expected and average years of schooling, scaled 0 to 100. We checked that adding the income part back reproduces the published HDI for every country.
  • HDI and world rank: as published by UNDP (rank out of 193 countries and territories).
  • The dashed lines mark the median country. Regions follow the groups we use across this site, with the Indian Ocean islands counted in East Africa.

These are national averages. They say nothing about safety advice, visas or what life is like in one city, so read each country guide and check current travel advice before you plan a move.

Source: UNDP, Human Development Report 2025, Statistical Annex Table 1: Human Development Index and its components. Last checked Oct 14, 2026.

Frequently asked questions

What is the best country to live in Africa?

On the UN’s Human Development Index, Seychelles ranks first in Africa (0.848), followed by Mauritius (0.806) and Algeria (0.763).

Which mainland African country has the highest quality of life?

Algeria has the highest Human Development Index on the African mainland (0.763), just ahead of Egypt and Tunisia.

Where do people live longest in Africa?

Tunisia (76.5 years), Algeria (76.3) and Cape Verde (Cabo Verde) (76.1) have the highest life expectancy at birth.

Next: all 54 country guides and the interactive map.