2017 Rank Country Nominal GDP ($ billions) Nominal GDP per capita (US $) Notes Nigeria 376.284 1,994.235 South Africa 349.299 6,179.870 Egypt 237.037 2,500.772 Algeria 178.287 4,292.272 Angola 124.209 4,407.657 6 Sudan 119.00 1,428.000 7 Morocco 109.824 3,151.145 8 Ethiopia 80.874 872.840 9 Kenya 79.511 1,701.550 10 Tanzania 51.725 1,033.567 11 Ghana 47.032 1,663.190 12 Democratic Republic of the Congo 41.441 478.237 13 Ivory Coast 40.360 1,616.981 14 Tunisia 40.275 3,496.286 15 Cameroon 34.006 1,400.743 16 Libya 31.331 4,858.672 17 Uganda 26.349 699.410 18 Zambia 25.504 1,479.542 19 Zimbabwe 17.491 1,175.723 20 Botswana 17.168 7,876.997 21 Senegal 16.463 1,038.094 22 Mali 15.318 810.771 23 Gabon 15.206 7,971.589 24 Namibia 12.687 5,413.508 25 Mozambique 12.681 429.296 26 Burkina Faso 12.569 663.806 27 Mauritius 12.428 9,794.102 28 Madagascar 11.463 447.558 29 Equatorial Guinea 10.725 12,726.956 30 Chad 9.872 810.163 31 Guinea 9.721 749.463 32 Benin 9.238 830.404 33 Rwanda 9.137 771.702 34 Congo 8.513 1,958.174 35 Niger 8.253 439.997 36 Somalia 7.382 547.32 37 Malawi 6.206 323.740 38 Eritrea 5.813 979.692 39 Mauritania 5.116 1,317.938 40 Togo 4.767 611.133 41 Swaziland 4.491 3,914.821 42 Sierra Leone 3.641 491.448 43 Burundi 3.396 312.463 44 Liberia 3.285 729.292 45 South Sudan 2.870 228.034 46 Lesotho 2.768 1,425.310 47 Djibouti 2.029 1,988.765 48 Central African Republic 1.928 386.806 49 Cape Verde 1.741 3,237.597 50 Seychelles 1.482 15,685.955 51 Guinea - Bissau 1.350 794.107 52 The Gambia 1.009 480.040 53 Comoros 0.652 787.831 54 São Tomé and Príncipe 0.379 1,785.280 -- Total 2,191.104
what country has the largest economy in africa
Nigeria