Skip to content

Economy of China vs Morocco compared: GDP & Debt

Updated on by Georank team

China has a GDP of $18.7T compared to $161B for Morocco, ranking 2/197 and 58/197 by economy size, respectively.

China has $16.6T in government debt (88.3% of GDP), compared to $109B (67.7% of GDP) in Morocco.

China vs Morocco GDP by year

China
Morocco
1x
Year GDP, current $
China Morocco
2024 $18,743,803,170,827 $160,610,994,055
2023 $18,270,356,654,533 $146,036,093,667
2022 $18,316,765,021,690 $131,245,312,804
2021 $18,201,698,719,564 $142,022,058,447
2020 $14,996,414,166,715 $121,353,645,057
2019 $14,560,167,101,283 $128,920,266,409
2018 $14,147,765,772,964 $127,341,147,582
2017 $12,537,559,062,283 $118,540,573,368
2016 $11,456,024,084,962 $111,572,947,005
2015 $11,280,814,787,469 $110,413,823,842
2014 $10,674,533,168,257 $119,130,841,412
2013 $9,743,124,247,267 $115,739,287,305
2012 $8,673,664,713,189 $106,937,392,311
2011 $7,671,757,207,851 $110,080,631,332
2010 $6,192,564,874,453 $100,865,329,473
2009 $5,189,577,094,998 $101,154,952,241
2008 $4,667,346,414,522 $101,822,906,949
2007 $3,604,055,822,572 $86,947,913,287
2006 $2,791,498,472,804 $75,883,823,301
2005 $2,317,551,298,052 $68,852,658,069
2004 $1,984,196,551,300 $66,114,145,451
2003 $1,683,903,309,844 $58,029,363,354
2002 $1,489,821,682,051 $47,077,192,188
2001 $1,355,036,590,252 $43,831,480,208
2000 $1,223,754,919,971 $43,017,455,402
1999 $1,103,843,203,576 $46,266,428,648
1998 $1,037,134,141,760 $46,497,608,725
1997 $967,753,570,435 $39,147,844,526
1996 $868,523,936,530 $43,161,571,528
1995 $738,190,896,228 $39,030,285,468
1994 $566,929,539,493 $35,604,137,423
1993 $446,557,291,212 $31,655,473,664
1992 $428,502,354,788 $33,711,069,431
1991 $384,510,452,962 $32,285,573,574
1990 $361,560,229,446 $30,179,954,775
1989 $348,380,566,802 $26,314,313,191
1988 $312,888,888,889 $25,705,296,184
1987 $273,455,156,951 $21,765,195,948
1986 $301,310,144,928 $19,462,085,540
1985 $310,064,625,850 $14,991,283,216
1984 $260,442,857,143 $14,824,667,954
1983 $231,130,268,199 $16,251,408,128
1982 $205,480,916,031 $17,692,276,734
1981 $196,218,253,968 $17,788,185,479
1980 $191,487,500,000 $21,728,516,153
1979 $178,573,913,043 $15,911,994,817
1978 $149,788,617,886 $13,236,946,234
1977 $175,226,595,860 $11,049,783,872
1976 $154,196,810,059 $9,584,297,284
1975 $163,687,619,736 $8,984,853,005
1974 $144,418,433,058 $7,675,466,449
1973 $138,764,340,892 $6,242,145,880
1972 $113,871,930,714 $5,074,117,545
1971 $99,959,013,880 $4,356,669,034
1970 $92,752,930,873 $3,956,336,244
1969 $79,847,786,729 $3,651,622,669
1968 $70,980,323,819 $3,271,422,333
1967 $73,011,350,596 $3,046,345,314
1966 $76,854,053,259 $2,876,401,297
1965 $70,565,994,356 $2,948,331,090
1964 $59,821,862,703 $2,798,345,299
1963 $50,812,227,919 $2,657,252,578
1962 $47,310,737,754 $2,379,611,125
1961 $50,162,299,350 $2,025,693,540
1960 $59,846,235,025 $2,037,154,742

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

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

GDP per capita in China vs Morocco by year

China
GDP per capita

GDP per capita, PPP
Morocco
GDP per capita

GDP per capita, PPP
1x
Year Current $
China Morocco
GDP per capita GDP per capita, PPP GDP per capita GDP per capita, PPP
2024 $13,303 $27,105 $4,218 $10,415
2023 $12,951 $25,179 $3,872 $9,895
2022 $12,971 $23,032 $3,516 $9,310
2021 $12,887 $20,843 $3,843 $8,623
2020 $10,627 $18,267 $3,317 $7,705
2019 $10,343 $17,601 $3,560 $8,046
2018 $10,086 $16,298 $3,553 $7,801
2017 $8,980 $15,022 $3,344 $8,115
2016 $8,255 $14,157 $3,186 $7,853
2015 $8,175 $13,463 $3,190 $7,799
2014 $7,781 $12,942 $3,483 $7,237
2013 $7,147 $12,228 $3,425 $7,542
2012 $6,405 $11,420 $3,206 $7,308
2011 $5,704 $10,457 $3,345 $7,274
2010 $4,629 $9,411 $3,107 $6,849
2009 $3,898 $8,448 $3,158 $6,629
2008 $3,523 $7,713 $3,222 $6,437
2007 $2,735 $6,935 $2,788 $6,058
2006 $2,129 $5,946 $2,466 $5,781
2005 $1,778 $5,148 $2,268 $5,275
2004 $1,531 $4,505 $2,207 $5,025
2003 $1,307 $4,007 $1,962 $4,741
2002 $1,164 $3,591 $1,612 $4,436
2001 $1,065 $3,258 $1,521 $4,269
2000 $969 $2,964 $1,513 $3,930
1999 $881 $2,690 $1,651 $3,801
1998 $835 $2,483 $1,683 $3,740
1997 $787 $2,297 $1,439 $3,502
1996 $713 $2,088 $1,610 $3,551
1995 $613 $1,884 $1,478 $3,152
1994 $476 $1,680 $1,369 $3,315
1993 $379 $1,471 $1,236 $2,979
1992 $368 $1,276 $1,337 $2,979
1991 $334 $1,105 $1,302 $3,025
1990 $319 $991 $1,238 $2,777
1989 $311 - $1,099 -
1988 $284 - $1,094 -
1987 $252.3 - $944 -
1986 $282.4 - $861 -
1985 $295 - $678 -
1984 $251.2 - $687 -
1983 $225.9 - $772 -
1982 $203.7 - $862 -
1981 $197.4 - $890 -
1980 $195.1 - $1,117 -
1979 $184.3 - $839 -
1978 $156.7 - $716 -
1977 $185.7 - $613 -
1976 $165.7 - $545 -
1975 $178.6 - $524 -
1974 $160.4 - $459 -
1973 $157.3 - $382 -
1972 $132.1 - $319 -
1971 $118.8 - $280.6 -
1970 $113.3 - $261.5 -
1969 $100.3 - $247.8 -
1968 $91.6 - $228 -
1967 $96.8 - $218.1 -
1966 $104.5 - $211.5 -
1965 $98.7 - $222.7 -
1964 $85.7 - $216.9 -
1963 $74.5 - $211.3 -
1962 $71.1 - $194.2 -
1961 $76 - $169.8 -
1960 $89.7 - $175.2 -

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

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

China's GDP per capita is $13,303, ranking 76/197, compared to $4,218 in Morocco, ranking 127/197. Adjusted for purchasing power (GDP per capita PPP), China ranks 77th at $27,105, while Morocco ranks 132nd at $10,415.

Economic indicators

China Morocco
Gross domestic product
$18.7T
2024
$161B
2024
GDP rank
2/197
2024
58/197
2024
GDP growth
4.98%
2023-2024
3.79%
2023-2024
GDP per capita
$13,303
2024
$4,218
2024
GDP per capita rank
76/197
2024
127/197
2024
GDP per capita, PPP
$27,105
2024
$10,415
2024
GDP per capita PPP rank
77/197
2024
132/197
2024
Government debt
$16.6T
2024
$109B
2024
Debt-to-GDP ratio
88.3%
2024
67.7%
2024
Government debt per person
$11,749
2024
$2,857
2024
Government debt per person rank
47/185
2024
104/185
2024
Average annual personal income after taxes
$9,826
2026
$5,678
2026
Market capitalization of domestic companies
$11.8T
2024
$74.5B
2024
Number of millionaires
6,327,000
2025
n/a
Number of billionaires
450
2025
3
2025
Income share by richest 10%
28.4%
2022
31.9%
2013
Income share by poorest 10%
3.1%
2022
2.7%
2013
Government expenditure, % of GDP
32.9%
2024
33%
2024
Consumer prices inflation
0.2%
2023-2024
0.99%
2023-2024
Central bank interest rate
3.1%
2024
2.25%
2025
Unemployment rate
5.11%
2021
11.8%
2022
Population
1402578808
38871720

Spending and national debt comparison by year

China
Spending

Debt
Morocco
Spending

Debt
1x
Year % of GDP
China Morocco
Government spending Government debt Government spending Government debt
2024 32.9% 88.3% 33% 67.7%
2023 32.7% 82% 32% 68.7%
2022 32.6% 75.5% 33.7% 71.4%
2021 31.9% 70.1% 31% 69.4%
2020 34.8% 69% 34.1% 72.2%
2019 33.6% 59.4% 27.6% 60.3%
2018 32.6% 55.6% 27.8% 60.5%
2017 32% 53.9% 27.9% 60.3%
2016 31.7% 49.7% 28.6% 60.1%
2015 31% 40.8% 28.5% 58.4%
2014 28.4% 39.3% 30.7% 58.6%
2013 28.1% 36.4% 30.4% 57.1%
2012 27.7% 33.8% 32.5% 52.3%
2011 26.6% 33.2% 31.2% 48.6%
2010 24.7% 33.3% 28.7% 45.3%
2009 25.2% 34% 28.1% 42.6%
2008 22.2% 26.7% 28.3% 42%
2007 17.9% 28.7% 26.4% 47.1%
2006 18.1% 25.2% 26% 50.6%
2005 18% 25.9% 28.6% 54.8%
2004 17.6% 26% 24.5% 54.4%
2003 18% 26.4% 24.1% 56.9%
2002 18.2% 25.6% 25.8% 59.4%
2001 17.2% 24.3% 23.7% 60.4%
2000 16.1% 22.7% 22.8% 64.9%
1999 14.9% 21.6% 18.4% 63.4%
1998 12.6% 20.4% 18.7% 64.5%
1997 11.5% 20.4% 18.6% 68%
1996 11% 21.2% 17.6% 65.3%
1995 11.1% 21.4% 21.3% 72.2%
1994 12.4% - 21.7% 69.3%
1993 13.4% - 23.1% 74.7%
1992 14.6% - 22.3% 67%
1991 16.5% - 20.8% 59.1%
1990 18.2% - 22.6% 70.5%
1989 18.6% - - -
1988 20.9% 4.46% - -
1987 23.4% 3.6% - -
1986 25.6% 3.24% - -
1985 25.8% 3.31% - -
1984 26.9% 0.97% - -
1983 28.3% - - -
1982 27.9% - - -

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

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

In 2024, China's government spending was $6.18T, accounting for 32.9% of its GDP, while Morocco spent $53.1B, or 33% of GDP.

Debt-to-GDP ratio is 88.3% in China and 67.7% in Morocco, ranking 34/185 and 60/185, respectively.

Government deficit by year

Deficit/surplus
China

Morocco
1x
Year Deficit/surplus, % of GDP
China Morocco
2024 -7.34% -3.92%
2023 -6.71% -4.41%
2022 -7.32% -5.37%
2021 -5.9% -5.92%
2020 -9.56% -7.15%
2019 -6% -3.8%
2018 -4.2% -3.52%
2017 -3.34% -3.3%
2016 -3.33% -4.49%
2015 -2.5% -4.59%
2014 -0.67% -4.78%
2013 -0.82% -4.7%
2012 -0.3% -6.63%
2011 -0.1% -6.08%
2010 -0.36% -3.93%
2009 -1.72% -1.63%
2008 -0.02% 0.63%
2007 0.06% -0.12%
2006 -1.13% -1.8%
2005 -1.38% -5.46%
2004 -1.49% -3.31%
2003 -2.36% -3.74%
2002 -2.84% -4.37%
2001 -2.56% -3.79%
2000 -2.81% -1.97%
1999 -2.3% 3.21%
1998 -1.08% 1.47%
1997 -0.73% 1.5%
1996 -0.73% 0.87%
1995 -0.94% -2.54%
1994 -1.68% -2.51%
1993 -0.89% -2%
1992 -1.22% -1.84%
1991 -1.04% -0.9%
1990 -0.72% -1.32%
1989 -0.91% -
1988 -2.22% -
1987 -2.08% -
1986 -1.82% -
1985 -0.45% -
1984 -1.44% -
1983 -1.61% -
1982 -1.33% -

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

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

In 2024, China's government deficit, the difference between spending and revenue, was $1.38T, equivalent to 7.34% of GDP. This compares to Morocco's deficit of $6.3B, or 3.92% of GDP.

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

Inflation comparison by year

Inflation
China

Morocco
1x
Year Consumer prices inflation
China Morocco
2024 0.2% 0.99%
2023 0.2% 6.09%
2022 2% 6.66%
2021 0.9% 1.4%
2020 2.5% 0.71%
2019 2.9% 0.3%
2018 2.1% 1.8%
2017 1.6% 0.75%
2016 2% 1.64%
2015 1.5% 1.56%
2014 2% 0.44%
2013 2.7% 1.88%
2012 2.6% 1.29%
2011 5.4% 0.91%
2010 3.3% 0.99%
2009 -0.7% 0.97%
2008 5.9% 3.71%
2007 4.7% 2.04%
2006 1.5% 3.28%
2005 1.8% 0.98%
2004 3.9% 1.49%
2003 1.1% 1.17%
2002 -0.8% 2.8%
2001 0.7% 0.62%
2000 0.4% 1.89%
1999 -1.4% 0.68%
1998 -0.8% 2.75%
1997 2.8% 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/china/morocco | CC BY

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

Top exports between countries

China
Export category Export value
Machinery & equipment $3.45B
Textiles & consumer goods $2.05B
Metals $754M
Chemicals & pharma $691M
Raw agricultural goods $334M
Raw materials & minerals $157M
Miscellaneous $99.7M
Wood & paper products $96.3M
Processed food, beverages & tobacco $49.3M
Animal & marine products $31.6M
Morocco
Export category Export value
Raw materials & minerals $152M
Metals $116M
Processed food, beverages & tobacco $34.5M
Machinery & equipment $23.5M
Animal & marine products $11.5M
Chemicals & pharma $5.2M
Raw agricultural goods $4.24M
Textiles & consumer goods $3.11M
Precious metals & jewellery $669K
Miscellaneous $197K

Balance of trade

China Morocco
Current account balance
$424B
2024
-$1.87B
2024
Current account balance ranking
1/190
2024
141/190
2024
Current account balance, % of GDP
+2.26%
2024
-1.16%
2024
Goods imports
$2.64T
2024
$66.5B
2024
Goods exports
$3.41T
2024
$39.3B
2024
Service imports
$613B
2024
$14.3B
2024
Service exports
$384B
2024
$28.2B
2024
Imports of goods and services, % of GDP
17.2%
2024
50.2%
2024
Exports of goods and services, % of GDP
20%
2024
42%
2024

Economic freedom indices

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

China Morocco
Economic freedom 48.3 61.8
Economic freedom ranking 170/197 91/197
Property rights 40.9 55.2
Government integrity 42.3 35.6
Judicial effectiveness 38.6 32.5
Tax burden 69.3 65.5
Government spending 67.8 67.5
Fiscal health 4.4 57.5
Business freedom 68.7 72.1
Labor freedom 57.9 46.2
Monetary freedom 76.1 79.6
Trade freedom 73.4 69.8
Investment freedom 20 80
Financial freedom 20 80

Economic freedom comparison by year

China
Morocco
1x
Year Economic freedom index
China Morocco
2026 48.3 61.8
2025 49 60.3
2024 48.5 56.8
2023 48.3 58.4
2022 48 59.2
2021 58.4 63.3
2020 59.5 63.3
2019 58.4 62.9
2018 57.8 61.9
2017 57.4 61.5
2016 52 61.3
2015 52.7 60.1
2014 52.5 58.3
2013 51.9 59.6
2012 51.2 60.2
2011 52 59.6
2010 51 59.2
2009 53.2 57.7
2008 53.1 55.6
2007 52 56.4
2006 53.6 51.5
2005 53.7 52.2
2004 52.5 56.7
2003 52.6 57.8
2002 52.8 59
2001 52.6 63.9
2000 56.4 63.2
1999 54.8 63.8
1998 53.1 61.1
1997 51.7 64.7
1996 51.3 64.3
1995 52 62.8

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

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

The Economic Freedom Index for China is 48.3, ranking 170/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

China Morocco
Services, % of GDP
56.7%
2024
52.7%
2024
Industry, % of GDP
36.5%
2024
25.6%
2024
Agriculture, forestry, and fishing, % of GDP
6.78%
2024
10.6%
2024
GNI, Atlas method
$19.3T
2024
$149B
2024
GNI per capita, PPP
$26,920
2024
$10,260
2024
Total reserves including gold
$3.46T
2024
$37.1B
2024
Total reserves ranking
1/177
2024
52/177
2024
Net foreign direct investment
$154B
2024
-$948M
2024
Net inflows of foreign direct investment
$18.6B
2024
$1.64B
2024
Net outflows of foreign direct investment
$172B
2024
$691M
2024
Servicing debt to the IMF, % of GNI
1.89%
2024
5.63%
2024
Poverty at national poverty lines
0%
2020
3.9%
2022
Gross capital formation, % of GDP
40.6%
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/china/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 (1982–1989, retrieved 2026-02-20)
  6. TradeMap (2023–2024, retrieved 2026-02-08)
  7. United Nations | World Population Prospects (2026, retrieved 2026-03-10)
  8. 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.