South Africa generated the most electricity in Africa in 2024, at 242.8 TWh, followed by Egypt at 218.5 TWh and Algeria at 96.4 TWh. Those top two produced about half of the continent's electricity, and the top 10 produced about 81%.
But the ranking depends on your source. Other data shows Egypt in first place, and output tells only part of the story, because some of Africa's largest producers still leave people short of power.
At a glance: top 10 electricity producers in Africa
| Rank | Country | Generation, 2024 | Share of Africa | Capacity | Fossil fuel share | Main sources |
|---|---|---|---|---|---|---|
| 1 | South Africa | 242.8 TWh | 26.1% | 63.4 GW | 83.7% | Coal |
| 2 | Egypt | 218.5 TWh | 23.5% | 63.5 GW | 87.7% | Gas |
| 3 | Algeria | 96.4 TWh | 10.4% | 22.6 GW | 98.9% | Gas |
| 4 | Morocco | 42.3 TWh | 4.5% | 15.7 GW | 75.6% | Fossil fuels and renewables |
| 5 | Nigeria | 37.6 TWh | 4.0% | 14.2 GW | 75.0% | Gas and hydro |
| 6 | Libya | 34.6 TWh | 3.7% | 11.4 GW | 100% | Oil and gas |
| 7 | Ghana | 24.3 TWh | 2.6% | 6.0 GW | 63.8% | Gas and hydro |
| 8 | Tunisia | 21.4 TWh | 2.3% | 7.0 GW | 95.6% | Gas |
| 9 | Mozambique | 19.8 TWh | 2.1% | 2.9 GW | 16.6% | Hydro |
| 10 | Zambia | 19.7 TWh | 2.1% | 4.1 GW | 12.5% | Hydro |
EIA data for 2024 via Worldometer. Africa's total across 54 countries comes to about 930 TWh. One TWh is a billion units of electricity.
The next five are Ethiopia (16.6 TWh), DR Congo (15.9 TWh), Angola (15.6 TWh), Sudan (14.8 TWh) and Kenya (13.3 TWh).
South Africa or Egypt: who is really first?
It depends on the data. The table above uses net generation from the US Energy Information Administration for 2024. The Energy Institute's 2026 review puts Egypt ahead: 242.4 TWh in 2025 against 231.1 TWh for South Africa. It says Egypt overtook South Africa in 2024.
The direction is clear either way. South Africa's output peaked at 263.5 TWh in 2007 and has fallen since, while Egypt's has climbed from 30.3 TWh in 1985.
Who has the most electricity per person?
Total output favours big countries. Use per person tells a very different story:
| Rank | Highest use per person | kWh a year | Lowest use per person | kWh a year |
|---|---|---|---|---|
| 1 | Seychelles | 4,460 | Chad | 14 |
| 2 | Libya | 3,763 | Sierra Leone | 15 |
| 3 | South Africa | 3,388 | Somalia | 21 |
| 4 | Mauritius | 2,525 | Central African Republic | 25 |
| 5 | Algeria | 1,816 | Guinea-Bissau | 36 |
| 6 | Tunisia | 1,620 | Burundi | 38 |
| 7 | Botswana | 1,568 | South Sudan | 45 |
| 8 | Egypt | 1,492 | Niger | 63 |
| 9 | Eswatini | 1,198 | Rwanda | 70 |
| 10 | Namibia | 1,187 | Madagascar | 71 |
Electricity consumption per person in 2024, EIA data via Worldometer.
Nigeria is the striking case. It ranks fifth for total output, but it uses only about 129 kWh per person a year. That is about 0.35 units a day, enough to run a 100 W bulb for three and a half hours. South Africans use about 26 times as much.
For more on who has power at all, see electricity access in Africa by country.
Capacity isn't the same as output
Installed capacity shows what a country could generate. Generation shows what it does.
Mozambique has 2.9 GW of capacity and generated about as much as Zambia with 4.1 GW, because its large hydropower plant runs for much of the year. Nigeria has 14.2 GW installed, close to Morocco's 15.7 GW, but in January 2025 only about 5.3 GW was available. Keeping plants running is the hard part, and that is why reliability varies so widely.
How African countries make their electricity
Across Africa in 2025, gas supplied 42% of electricity, renewables 26% and coal 24%. But the mix varies widely by country:
- Coal: South Africa holds about 85% of Africa's coal power capacity.
- Gas: Algeria, Egypt and Tunisia rely heavily on gas. Fossil fuels supply nearly 99% of Algeria's power.
- Hydro: Zambia, Mozambique and Ethiopia get most of their electricity from dams, which leaves them exposed to drought.
- Geothermal and wind: Kenya generates about 91.5% of its electricity from renewables.
▶ About 85% of Africa's coal capacity is in one country. Watch what that means for the continent's power.
Who produces less than it uses?
Some countries depend on their neighbours. In 2024, Namibia generated 1.7 TWh and used 3.6 TWh. Togo generated 0.7 TWh and used 2.0 TWh. Mozambique went the other way, generating 19.8 TWh and using 13.2 TWh.
This is why regional trade matters, and why Africa's power pools could become more important.
Who is climbing the ranking?
Ethiopia is the one to watch. Its installed capacity rose from 4,462 MW to 9,752 MW over seven years, and the Grand Ethiopian Renaissance Dam was inaugurated in September 2025. That dam came too late for the 2024 figures above.
Rooftop solar may also be undercounted. Much of it never reaches official statistics, so real generation in some countries is likely to be higher than these tables show.
What this means for your bill
High output doesn't mean cheap power. South Africa is Africa's biggest or second-biggest producer, but its household prices are among the higher ones on the continent. We publish electricity tariffs line by line, so you can see what a unit really costs. We are starting in South Africa, with more countries coming soon.
Sources
- Worldometer, World electricity by country (EIA International Energy Statistics, 2024)
- Worldometer country pages for South Africa, Egypt, Algeria, Morocco, Nigeria, Libya, Ghana, Tunisia, Mozambique, Zambia and Kenya
- Intelpoint, Egypt overtook South Africa's electricity generation in 2024 (Energy Institute data)
- Ecofin Agency, Clean power meets half of Africa's growing electricity demand (April 2026, Ember data)
- The Star, Ethiopia's power generation capacity more than doubled in 7 years (May 2026)
- tariffs.africa, What if Africa never built another coal plant? (coal capacity)
- tariffs.africa, What if Africa's electricity crisis is due to governance? (Nigeria's available capacity)
Figures as of November 2026. Data is for 2024 unless stated, and generation figures vary by source.

