Skip to content

Economy of Djibouti vs Morocco compared: GDP & Debt

Updated on by Georank team

Djibouti has a GDP of $4.15B compared to $161B for Morocco, ranking 165/197 and 58/197 by economy size, respectively.

Djibouti has $1.36B in government debt (32.9% of GDP), compared to $109B (67.7% of GDP) in Morocco.

Djibouti vs Morocco GDP by year

Djibouti
Morocco
1x
Year GDP, current $
Djibouti Morocco
2024 $4,152,145,940 $160,610,994,055
2023 $3,898,447,007 $146,036,093,667
2022 $3,562,814,909 $131,245,312,804
2021 $3,392,796,953 $142,022,058,447
2020 $3,144,136,197 $121,353,645,057
2019 $3,088,851,450 $128,920,266,409
2018 $2,913,464,658 $127,341,147,582
2017 $2,762,581,334 $118,540,573,368
2016 $2,604,955,229 $111,572,947,005
2015 $2,424,391,785 $110,413,823,842
2014 $2,220,637,966 $119,130,841,412
2013 $2,044,440,443 $115,739,287,305
2012 $1,353,632,942 $106,937,392,311
2011 $1,239,144,502 $110,080,631,332
2010 $1,128,611,700 $100,865,329,473
2009 $1,049,110,685 $101,154,952,241
2008 $999,105,339 $101,822,906,949
2007 $847,918,929 $86,947,913,287
2006 $768,873,684 $75,883,823,301
2005 $708,633,195 $68,852,658,069
2004 $666,072,102 $66,114,145,451
2003 $622,044,666 $58,029,363,354
2002 $591,122,040 $47,077,192,188
2001 $572,417,441 $43,831,480,208
2000 $551,230,862 $43,017,455,402
1999 $536,080,148 $46,266,428,648
1998 $514,267,869 $46,497,608,725
1997 $502,675,542 $39,147,844,526
1996 $494,004,648 $43,161,571,528
1995 $497,723,961 $39,030,285,468
1994 $491,689,221 $35,604,137,423
1993 $466,048,469 $31,655,473,664
1992 $478,058,305 $33,711,069,431
1991 $462,421,999 $32,285,573,574
1990 $452,328,087 $30,179,954,775
1989 $409,220,087 $26,314,313,191
1988 $395,794,539 $25,705,296,184
1987 $373,371,738 $21,765,195,948
1986 - $19,462,085,540
1985 $340,989,528 $14,991,283,216
1984 - $14,824,667,954
1983 - $16,251,408,128
1982 - $17,692,276,734
1981 - $17,788,185,479
1980 - $21,728,516,153
1979 - $15,911,994,817
1978 - $13,236,946,234
1977 - $11,049,783,872
1976 - $9,584,297,284
1975 - $8,984,853,005
1974 - $7,675,466,449
1973 - $6,242,145,880
1972 - $5,074,117,545
1971 - $4,356,669,034
1970 - $3,956,336,244
1969 - $3,651,622,669
1968 - $3,271,422,333
1967 - $3,046,345,314
1966 - $2,876,401,297
1965 - $2,948,331,090
1964 - $2,798,345,299
1963 - $2,657,252,578
1962 - $2,379,611,125
1961 - $2,025,693,540
1960 - $2,037,154,742

Data sources: World Bank | Economy & Growth (1960–2024, retrieved 2026-04-06).

GeoRank.org/economy/djibouti/morocco | CC BY

GDP per capita in Djibouti vs Morocco by year

Djibouti
GDP per capita

GDP per capita, PPP
Morocco
GDP per capita

GDP per capita, PPP
1x
Year Current $
Djibouti Morocco
GDP per capita GDP per capita, PPP GDP per capita GDP per capita, PPP
2024 $3,553 $7,810 $4,218 $10,415
2023 $3,381 $7,226 $3,872 $9,895
2022 $3,133 $6,621 $3,516 $9,310
2021 $3,026 $5,960 $3,843 $8,623
2020 $2,845 $5,527 $3,317 $7,705
2019 $2,837 $5,398 $3,560 $8,046
2018 $2,718 $5,083 $3,553 $7,801
2017 $2,619 $4,677 $3,344 $8,115
2016 $2,510 $4,432 $3,186 $7,853
2015 $2,376 $4,264 $3,190 $7,799
2014 $2,215 $3,978 $3,483 $7,237
2013 $2,076 $3,762 $3,425 $7,542
2012 $1,400 - $3,206 $7,308
2011 $1,306 - $3,345 $7,274
2010 $1,213 - $3,107 $6,849
2009 $1,151 - $3,158 $6,629
2008 $1,119 - $3,222 $6,437
2007 $970 - $2,788 $6,058
2006 $898 - $2,466 $5,781
2005 $844 - $2,268 $5,275
2004 $806 - $2,207 $5,025
2003 $765 - $1,962 $4,741
2002 $743 - $1,612 $4,436
2001 $742 - $1,521 $4,269
2000 $738 - $1,513 $3,930
1999 $740 - $1,651 $3,801
1998 $735 - $1,683 $3,740
1997 $748 - $1,439 $3,502
1996 $762 - $1,610 $3,551
1995 $786 - $1,478 $3,152
1994 $785 - $1,369 $3,315
1993 $759 - $1,236 $2,979
1992 $764 - $1,337 $2,979
1991 $733 - $1,302 $3,025
1990 $780 - $1,238 $2,777
1989 $782 - $1,099 -
1988 $817 - $1,094 -
1987 $822 - $944 -
1986 - - $861 -
1985 $847 - $678 -
1984 - - $687 -
1983 - - $772 -
1982 - - $862 -
1981 - - $890 -
1980 - - $1,117 -
1979 - - $839 -
1978 - - $716 -
1977 - - $613 -
1976 - - $545 -
1975 - - $524 -
1974 - - $459 -
1973 - - $382 -
1972 - - $319 -
1971 - - $280.6 -
1970 - - $261.5 -
1969 - - $247.8 -
1968 - - $228 -
1967 - - $218.1 -
1966 - - $211.5 -
1965 - - $222.7 -
1964 - - $216.9 -
1963 - - $211.3 -
1962 - - $194.2 -
1961 - - $169.8 -
1960 - - $175.2 -

Data sources: World Bank | Economy & Growth (1960–2024, retrieved 2026-04-06).

GeoRank.org/economy/djibouti/morocco | CC BY

Djibouti's GDP per capita is $3,553, ranking 133/197, compared to $4,218 in Morocco, ranking 127/197. Adjusted for purchasing power (GDP per capita PPP), Djibouti ranks 143rd at $7,810, while Morocco ranks 132nd at $10,415.

Economic indicators

Djibouti Morocco
Gross domestic product
$4.15B
2024
$161B
2024
GDP rank
165/197
2024
58/197
2024
GDP growth
6.98%
2023-2024
3.79%
2023-2024
GDP per capita
$3,553
2024
$4,218
2024
GDP per capita rank
133/197
2024
127/197
2024
GDP per capita, PPP
$7,810
2024
$10,415
2024
GDP per capita PPP rank
143/197
2024
132/197
2024
Government debt
$1.36B
2024
$109B
2024
Debt-to-GDP ratio
32.9%
2024
67.7%
2024
Government debt per person
$1,167
2024
$2,857
2024
Government debt per person rank
137/185
2024
104/185
2024
Average annual personal income after taxes
$2,690
2026
$5,678
2026
Market capitalization of domestic companies n/a
$74.5B
2024
Number of billionaires n/a
3
2025
Income share by richest 10%
32.3%
2017
31.9%
2013
Income share by poorest 10%
1.9%
2017
2.7%
2013
Government expenditure, % of GDP
20.6%
2024
33%
2024
Consumer prices inflation
2.1%
2023-2024
0.99%
2023-2024
Central bank interest rate n/a
2.25%
2025
Unemployment rate
40%
2017
11.8%
2022
Population
1203929
38871720

Spending and national debt comparison by year

Djibouti
Spending

Debt
Morocco
Spending

Debt
1x
Year % of GDP
Djibouti Morocco
Government spending Government debt Government spending Government debt
2024 20.6% 32.9% 33% 67.7%
2023 21.5% 35.4% 32% 68.7%
2022 21% 38.3% 33.7% 71.4%
2021 23.1% 40.3% 31% 69.4%
2020 25.8% 42.1% 34.1% 72.2%
2019 24.9% 41.1% 27.6% 60.3%
2018 25.9% 47.5% 27.8% 60.5%
2017 23.9% 48% 27.9% 60.3%
2016 25.9% 45.9% 28.6% 60.1%
2015 42% 40.3% 28.5% 58.4%
2014 29% 26.9% 30.7% 58.6%
2013 26.8% 24.6% 30.4% 57.1%
2012 26.5% 25% 32.5% 52.3%
2011 25.3% 25.7% 31.2% 48.6%
2010 26.6% 27.9% 28.7% 45.3%
2009 31% 29.5% 28.1% 42.6%
2008 28.8% 59.3% 28.3% 42%
2007 26.6% 56.6% 26.4% 47.1%
2006 23.8% 58.3% 26% 50.6%
2005 26.2% 60.3% 28.6% 54.8%
2004 26.7% 65.3% 24.5% 54.4%
2003 25.8% 66.3% 24.1% 56.9%
2002 23.4% 63.7% 25.8% 59.4%
2001 21% 58.1% 23.7% 60.4%
2000 23.2% 58.1% 22.8% 64.9%
1999 23.5% 58.5% 18.4% 63.4%
1998 24% 55.2% 18.7% 64.5%
1997 25% 56% 18.6% 68%
1996 23.7% 53.1% 17.6% 65.3%
1995 27% 50.9% 21.3% 72.2%
1994 30.9% - 21.7% 69.3%
1993 35.3% - 23.1% 74.7%
1992 34.9% - 22.3% 67%
1991 27.7% - 20.8% 59.1%
1990 30.2% - 22.6% 70.5%

Data sources: International Monetary Fund (IMF) | Fiscal Monitor (1990–2024, retrieved 2026-02-20); International Monetary Fund (IMF) | Public Finances in Modern History (1995–2008, retrieved 2026-02-20).

GeoRank.org/economy/djibouti/morocco | CC BY

In 2024, Djibouti's government spending was $856M, accounting for 20.6% of its GDP, while Morocco spent $53.1B, or 33% of GDP.

Debt-to-GDP ratio is 32.9% in Djibouti and 67.7% in Morocco, ranking 149/185 and 60/185, respectively.

Government deficit by year

Deficit/surplus
Djibouti

Morocco
1x
Year Deficit/surplus, % of GDP
Djibouti Morocco
2024 -2.6% -3.92%
2023 -3.46% -4.41%
2022 -1.48% -5.37%
2021 -3.05% -5.92%
2020 -2.58% -7.15%
2019 -0.98% -3.8%
2018 -1.98% -3.52%
2017 -0.21% -3.3%
2016 -0.76% -4.49%
2015 -15.5% -4.59%
2014 -6.92% -4.78%
2013 -0.34% -4.7%
2012 -2.04% -6.63%
2011 -1.18% -6.08%
2010 -1.04% -3.93%
2009 -3.88% -1.63%
2008 0.62% 0.63%
2007 -1.88% -0.12%
2006 0.26% -1.8%
2005 -1.18% -5.46%
2004 -3.67% -3.31%
2003 -4.13% -3.74%
2002 -4.56% -4.37%
2001 -3.61% -3.79%
2000 -3.97% -1.97%
1999 -5.2% 3.21%
1998 -3.59% 1.47%
1997 -2.86% 1.5%
1996 -1.77% 0.87%
1995 -5.13% -2.54%
1994 -4.97% -2.51%
1993 -7.1% -2%
1992 -6.13% -1.84%
1991 -0.86% -0.9%
1990 -3.25% -1.32%

Data sources: International Monetary Fund (IMF) | Fiscal Monitor (1990–2024, retrieved 2026-02-20).

GeoRank.org/economy/djibouti/morocco | CC BY

In 2024, Djibouti's government deficit, the difference between spending and revenue, was $108M, equivalent to 2.6% of GDP. This compares to Morocco's deficit of $6.3B, or 3.92% of GDP.

Over the past 35 years, Djibouti recorded a fiscal deficit in 33 of those years, while Morocco ran a deficit in 30 years. On average, Djibouti posted an annual deficit equal to 3.17% of GDP, compared to deficit of 2.92% of GDP for Morocco.

Inflation comparison by year

Inflation
Djibouti

Morocco
1x
Year Consumer prices inflation
Djibouti Morocco
2024 2.1% 0.99%
2023 1.4% 6.09%
2022 5.2% 6.66%
2021 1.2% 1.4%
2020 1.8% 0.71%
2019 3.3% 0.3%
2018 0.1% 1.8%
2017 0.6% 0.75%
2016 2.4% 1.64%
2015 -0.5% 1.56%
2014 1.3% 0.44%
2013 1.1% 1.88%
2012 4.2% 1.29%
2011 5.2% 0.91%
2010 2.5% 0.99%
2009 5.6% 0.97%
2008 8.7% 3.71%
2007 5.9% 2.04%
2006 3.5% 3.28%
2005 3.3% 0.98%
2004 2.4% 1.49%
2003 1.6% 1.17%
2002 1.4% 2.8%
2001 1.9% 0.62%
2000 1.2% 1.89%
1999 -0.4% 0.68%
1998 2.2% 2.75%
1997 2.5% 1.04%

Data sources: International Monetary Fund (IMF) | World Economic Outlook (1997–2024, retrieved 2026-02-20); World Bank | Economy & Growth (1997–2024, retrieved 2026-04-06).

GeoRank.org/economy/djibouti/morocco | CC BY

Over the past 28 years, Djibouti has recorded an average annual inflation rate of 2.56%, compared with 1.82% in Morocco. In 2024, inflation was 2.1% in Djibouti and 0.99% in Morocco.

Top exports between countries

Djibouti
Export category Export value
Machinery & equipment $200K
Raw agricultural goods $44K
Morocco
Export category Export value
Raw materials & minerals $538M
Machinery & equipment $1.01M
Chemicals & pharma $841K
Processed food, beverages & tobacco $298K
Textiles & consumer goods $123K
Metals $121K
Wood & paper products $24K
Raw agricultural goods $4K
Miscellaneous $1K

Balance of trade

Djibouti Morocco
Current account balance
$610M
2024
-$1.87B
2024
Current account balance ranking
59/190
2024
141/190
2024
Current account balance, % of GDP
+14.7%
2024
-1.16%
2024
Goods imports
$4.04B
2024
$66.5B
2024
Goods exports
$4.08B
2024
$39.3B
2024
Service imports
$730M
2024
$14.3B
2024
Service exports
$1.17B
2024
$28.2B
2024
Imports of goods and services, % of GDP
114.8%
2024
50.2%
2024
Exports of goods and services, % of GDP
126.4%
2024
42%
2024

Economic freedom indices

The indices of economic freedom below are issued by the Heritage Foundation. Higher scores indicate stronger economic health.

Djibouti Morocco
Economic freedom 56.3 61.8
Economic freedom ranking 122/197 91/197
Property rights 30.4 55.2
Government integrity 27.9 35.6
Judicial effectiveness 28.6 32.5
Tax burden 83.5 65.5
Government spending 86.7 67.5
Fiscal health 87.7 57.5
Business freedom 52.9 72.1
Labor freedom 57.5 46.2
Monetary freedom 70.6 79.6
Trade freedom 49.8 69.8
Investment freedom 50 80
Financial freedom 50 80

Economic freedom comparison by year

Djibouti
Morocco
1x
Year Economic freedom index
Djibouti Morocco
2026 56.3 61.8
2025 55.7 60.3
2024 55.8 56.8
2023 56.1 58.4
2022 55.3 59.2
2021 56.2 63.3
2020 52.9 63.3
2019 47.1 62.9
2018 45.1 61.9
2017 46.7 61.5
2016 56 61.3
2015 57.5 60.1
2014 55.9 58.3
2013 53.9 59.6
2012 53.9 60.2
2011 54.5 59.6
2010 51 59.2
2009 51.3 57.7
2008 51.2 55.6
2007 52.4 56.4
2006 53.2 51.5
2005 55.2 52.2
2004 55.6 56.7
2003 55.7 57.8
2002 57.8 59
2001 58.3 63.9
2000 55.1 63.2
1999 57.1 63.8
1998 55.9 61.1
1997 54.5 64.7
1996 - 64.3
1995 - 62.8

Data sources: The Heritage Foundation | Economic Freedom Index (1995–2026, retrieved 2026-03-09).

GeoRank.org/economy/djibouti/morocco | CC BY

The Economic Freedom Index for Djibouti is 56.3, ranking 122/197, compared to 61.8 for Morocco, ranking 91/197. The chart above displays a comparison of annual changes in economic freedom indexes.

Other economic metrics

Djibouti Morocco
Services, % of GDP
76.1%
2024
52.7%
2024
Industry, % of GDP
15.9%
2024
25.6%
2024
Agriculture, forestry, and fishing, % of GDP
2.51%
2024
10.6%
2024
GNI, Atlas method
$4.25B
2024
$149B
2024
GNI per capita, PPP
$8,030
2024
$10,260
2024
Total reserves including gold
$349M
2024
$37.1B
2024
Total reserves ranking
165/177
2024
52/177
2024
Net foreign direct investment
-$67.8M
2024
-$948M
2024
Net inflows of foreign direct investment
$67.8M
2024
$1.64B
2024
Net outflows of foreign direct investment
$0
2024
$691M
2024
Servicing debt to the IMF, % of GNI
3.27%
2024
5.63%
2024
Poverty at national poverty lines
23%
2020
3.9%
2022
Gross capital formation, % of GDP
0.25%
2024
30.1%
2024

GDP per capita map

1x

Data sources: World Bank | Economy & Growth (1985–2024, retrieved 2026-04-06); U.S. Census Bureau (1985–2024, retrieved 2026-02-08).

GeoRank.org/economy/djibouti/morocco | CC BY

Compare countries by 7 more topics

Help us show the world through your eyes

Share a photo of your city and help others discover what it looks like to live there. Your contribution makes our data come alive.

Data sources:

  1. World Bank | Economy & Growth (1960–2024, retrieved 2026-04-06)
  2. International Monetary Fund (IMF) | Fiscal Monitor (1990–2024, retrieved 2026-02-20)
  3. The Heritage Foundation | Economic Freedom Index (1995–2026, retrieved 2026-03-09)
  4. U.S. Census Bureau (1985–2024, retrieved 2026-02-08)
  5. International Monetary Fund (IMF) | Public Finances in Modern History (1995–2008, retrieved 2026-02-20)
  6. TradeMap (2021–2023, retrieved 2026-02-08)
  7. Central Intelligence Agency (CIA) (2017–2020, retrieved 2026-02-20)
  8. United Nations | World Population Prospects (2026, retrieved 2026-03-10)
  9. LivingCost (2026, retrieved 2025-10-14)

Creative Commons Attribution (CC BY) — you’re free to copy, share, remix, adapt, and use even commercially as long as you give appropriate credit and clearly indicate if you made changes. Other sources may be subject to different license terms.

The current account balance is the sum of net trade in goods and services, net earnings from cross-border investments, and net transfer payments. It reflects a country's economic transactions with the rest of the world and is a fundamental component of the balance of payments. A surplus indicates that a country exports more than it imports, while a deficit shows the opposite.

Gross National Income (GNI) measures a country's total income. It encompasses income earned by residents, businesses, and foreign sources, defined as employee compensation and investment profits. GNI adds product taxes not included elsewhere and subtracts subsidies. It accounts for income from residents working abroad but excludes earnings from foreigners within the country.

A negative value for Net Foreign Direct Investment indicates a country is a net receiver of investments, as foreign inflows exceed outflows after Balance of Payments adjustments. A positive value indicates a net provider, with outflows exceeding inflows. Inflows are credits (increasing foreign claims on domestic assets), while outflows are debits (increasing domestic assets abroad).

Foreign direct investment (FDI, net inflows) shows how much capital foreign investors bring into a country after accounting for any funds that flow back in the opposite direction. It represents the net value of overseas companies establishing, expanding, or financing businesses in the reporting country. A positive number means more capital entered the country than was withdrawn, while a negative number means foreign investors pulled out more than they invested.

Foreign direct investment (FDI, net outflows) shows how much capital residents of a country invest abroad after accounting for any funds that flow back in the opposite direction. It represents the net value of domestic companies establishing, expanding, or financing businesses in other countries. A positive number means more capital was invested abroad than withdrawn, while a negative number means residents pulled back more than they invested.

Principal and interest payments to the IMF in currency, goods, or services on long-term debt expressed as a share of GNI.

Formerly gross domestic investment, gross capital formation measures the share of a country’s economic output invested in fixed assets, including buildings, machinery, and infrastructure. It indicates how much of the economy is devoted to building productive capacity.