54 countries · 127 indicators · 45 sourcesLiveGet API key

Energy · Africa ranking

Solar Share of Electricity by African country

35.4%Namibia leads · 2024

Namibia has the highest solar's share of electricity generation of any African country, at 35.4% — 1.9× Somalia's 18.6%.

Share of electricity generation that comes from solar (Ember via Our World in Data). 54 of 54 countries, ranked · OWID ENERGY, 2024.

#1 vs #54Namibia vs Sao Tome and Principe
Median1.1%Sudan
Lowest0%Sao Tome and Principe

By region

regional average
Southern Africa7.1%
7 countries · led by Namibia
West Africa5%
16 countries · led by Togo
East Africa4.2%
16 countries · led by Somalia
North Africa2.3%
6 countries · led by Morocco
Central Africa2.1%
9 countries · led by Democratic Republic of the Congo

Full ranking

54 of 54 countries
#CountrySolar Share of ElectricityPeriod
1Namibia
35.4%2024
2Somalia
18.6%2024
3Togo
18.3%2024
4Democratic Republic of the Congo
15.8%2024
5Cabo Verde
15.4%2024
6Seychelles
14.3%2024
7Eritrea
11.1%2024
8Sierra Leone
9.5%2024
9Senegal
8.9%2024
10South Africa
8%2025
11Mauritania
7.7%2024
12Burkina Faso
6.5%2024
13Morocco
5.8%2025
14Mauritius
5%2024
15Eswatini
4.9%2024
16Kenya
4.6%2025
17Madagascar
4.1%2024
18Benin
4%2024
19Rwanda
3.5%2024
20Niger
3.2%2024
21Egypt
3.1%2025
22Uganda
2.9%2024
23Mali
2.9%2024
24Angola
2.8%2024
25Tunisia
2.5%2025
26South Sudan
1.8%2024
27Liberia
1.8%2024
28Sudan
1.1%2024
29Algeria
1%2024
30Zambia
0.9%2024
31Guinea
0.7%2024
32Ghana
0.7%2024
33Cameroon
0.6%2024
34Malawi
0.5%2024
35Tanzania
0.5%2024
36Mozambique
0.4%2024
37Zimbabwe
0.4%2024
38Nigeria
0.3%2025
39Botswana
0.3%2024
40Cote d'Ivoire
0.2%2024
41Republic of the Congo
0.2%2024
42Ethiopia
0.1%2025
43Libya
0%2024
44Burundi
0%2024
45Central African Republic
0%2023
46Chad
0%2024
47Comoros
0%2023
48Djibouti
0%2024
49Equatorial Guinea
0%2024
50Gabon
0%2024
51Gambia
0%2024
52Guinea-Bissau
0%2024
53Lesotho
0%2022
54Sao Tome and Principe
0%2023

Get this ranking via API

GET /v1/data

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

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

Cite or republish this ranking

Data: Africa APIOWID ENERGY, 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/solar-electricity-share" width="100%" height="560" loading="lazy" style="border:1px solid #e3e3e3;border-radius:10px;max-width:640px" title="Solar Share of Electricity 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/solar-electricity-share">Solar Share of Electricity by African country — Africa API</a></p>

Frequently asked questions

Which African country has the highest solar's share of electricity generation?

Namibia has the highest solar's share of electricity generation in Africa at 35.4% (2024), followed by Somalia and Togo.

Which African country has the lowest solar's share of electricity generation?

Sao Tome and Principe has the lowest solar's share of electricity generation of the 54 African countries with data, at 0% (2023).

How many African countries report Solar Share of Electricity data?

54 of 54 African countries have a recent Solar Share of Electricity 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=solar_electricity_share_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 energy rankings