ledger: countries-gdp-nominal extraction 2026-10-24 (222 rows, re-fetch verified)

This commit is contained in:
ledger committed 2026-10-24 05:28:54 +00:00
1 parent dc566d3b7d
commit 75224941d5
7 files changed
+2795

No files matched your search

@@ -0,0 +1,223 @@
country,imf_2026_million_usd,world_bank_2025_million_usd,un_2024_million_usd
World,128003776,118350166,111565144
United States,32642373,30769700,29298000
China,21546403,19498039,18743802
Germany,5471299,5050923,4659929
Japan,4341986,4435163,4026211
United Kingdom,4268446,4002588,3685881
India,4060207,3956067,3952244
France,3554155,3366316,3160443
Russia,2861156,2561310,2173386
Italy,2701737,2551557,2380825
Brazil,2654761,2279920,2185822
Canada,2490256,2319900,2270076
South Korea,2245847,1872375,1875388
Mexico,2176236,1832641,1852723
Australia,2110657,1798519,1830610
Spain,2085276,1906453,1722746
Turkey,1817987,1597293,1323255
Indonesia,1479954,1445643,1396300
Netherlands,1423856,1332768,1214928
Saudi Arabia,1343346,1276943,1254141
Switzerland,1135739,1043530,936564
Poland,1133088,1035492,914696
Taiwan,1019696,,
Belgium,772699,725466,664564
Argentina,768206,683098,638365
Israel,746982,610778,542286
Sweden,745081,668999,604899
Ireland,709972,721701,577389
Singapore,667889,603870,547387
United Arab Emirates,661018,552325,552325
Norway,651712,530756,483593
Austria,616896,579470,534791
Thailand,599115,577010,526518
Colombia,572735,457410,418542
Malaysia,547100,472193,421972
Vietnam,542130,514697,476388
Bangladesh,506357,456319,432742
Philippines,501692,487086,461618
Denmark,499354,462527,424525
South Africa,489083,427184,401145
Romania,470091,428678,382770
Hong Kong,455156,427310,406863
Pakistan,450134,407307,379120
Egypt,442886,365255,306907
Czech Republic,427953,391027,345037
Chile,402243,357371,330267
Peru,399593,334855,289329
Kazakhstan,397921,306239,291480
Nigeria,386671,290794,252084
Portugal,375197,346640,313271
Finland,338564,317039,298697
Algeria,331894,287031,266972
Iran,311950,362682,448092
Greece,304627,280636,257145
New Zealand,273395,264057,260172
Hungary,265911,246490,222905
Cuba,,107352,252063
Iraq,245234,254367,279641
Ukraine,229406,214233,190741
Qatar,203044,215560,219163
Morocco,195632,182374,160606
Uzbekistan,178167,147038,114965
Slovakia,167062,154530,141776
Angola,157297,122175,117159
Kenya,151151,135941,120340
Kuwait,146911,157209,160227
Bulgaria,146507,130777,113343
Dominican Republic,146362,127407,124282
Ecuador,138199,130321,124676
Puerto Rico,133222,129368,125842
Guatemala,132270,123306,113200
Ghana,128638,114210,82938
Ethiopia,127145,126359,142275
DR Congo,122281,91031,75322
Oman,121397,109605,107137
Croatia,115915,105060,92662
Ivory Coast,112115,99774,85894
Serbia,112025,99953,89074
Venezuela,111303,99661,150494
Luxembourg,110417,101158,93280
Costa Rica,109931,102905,95350
Sri Lanka,98964,108825,98714
Lithuania,105907,95210,84869
Belarus,102042,93397,75962
Uruguay,96092,85348,80962
Panama,95024,90463,86260
Tanzania,94889,90143,79236
Slovenia,86732,79648,72485
Myanmar,83832,81666,64796
Turkmenistan,83065,49829,68655
Bolivia,80743,64769,46627
Azerbaijan,78372,75938,74316
Uganda,73370,61986,56369
Cameroon,65135,58933,53297
Jordan,64909,61610,53352
Tunisia,60745,57503,53493
Paraguay,60542,49278,44739
Zimbabwe,56713,51216,45719
Macau,54228,52061,49467
Latvia,53686,48619,43684
Libya,52453,48099,48484
Cambodia,52379,51267,45913
Estonia,51634,47031,42765
Bahrain,48849,48966,47110
Nepal,45844,45490,42692
Cyprus,45171,41226,37635
Sudan,44688,60163,25574
Iceland,43800,38583,33222
Georgia,42716,38144,34192
Honduras,41505,39601,37094
Zambia,41243,28880,25303
Senegal,40469,37007,36715
El Salvador,39838,36708,35365
Haiti,39180,32077,25312
Bosnia and Herzegovina,36771,32600,30478
Lebanon,34497,25972,37990
Papua New Guinea,34403,32499,32262
Guyana,33961,27097,24659
Mali,33847,30069,26588
Albania,33333,30540,27037
Burkina Faso,32513,27627,23250
Armenia,31873,29243,25955
Malta,30712,27772,25030
Guinea,29930,28346,36465
Mongolia,28450,25369,23586
Benin,27786,24566,21483
Trinidad and Tobago,26836,25943,25634
Chad,25628,21473,19906
Niger,24813,21646,17491
Nicaragua,24227,22237,19694
Kyrgyzstan,23606,22624,17478
Gabon,23363,21427,20867
Mozambique,23275,22338,22745
Jamaica,23028,22705,22014
Botswana,21937,19928,19401
Moldova,21889,20352,18200
North Macedonia,21605,19101,16952
Madagascar,21185,19620,17421
Tajikistan,20418,17661,13949
Afghanistan,19662,17779,18283
Laos,18959,18303,16129
Rwanda,18673,16372,15111
Malawi,18309,14918,11734
Namibia,17314,15080,13372
Syria,60043,23738,17254
North Korea,,,17199
Palestine,16017,17167,16017
Mauritius,17119,16158,14953
Bahamas,17042,15833,15833
Congo,17028,16307,16412
Brunei,16863,15032,15463
Mauritania,14352,11680,10912
Somalia,14174,12995,11966
Kosovo,14053,12456,11154
Equatorial Guinea,13722,12823,12288
Togo,13437,11890,10163
Channel Islands,,12507,
Monaco,,11126,11126
Montenegro,10227,9233,8274
Liechtenstein,9442,8906,8628
Bermuda,,9194,8840
New Caledonia,,8549,8549
Barbados,8483,8017,7598
Sierra Leone,8270,7464,6792
Burundi,8137,3365,4431
Maldives,8130,7741,7062
Cayman Islands,,7765,7657
Isle of Man,,7576,
Yemen,7435,21606,14304
Guam,,6910,
Fiji,6352,6198,5968
French Polynesia,,6324,6323
South Sudan,6069,11998,3522
Suriname,5908,4524,4435
Eswatini,5792,5161,4947
Liberia,5642,5246,5251
Andorra,4879,4501,4040
Djibouti,4725,4625,4152
Virgin Islands (U.S.),,4672,
Aruba,4671,4168,4192
Faroe Islands,,4053,
Bhutan,3856,3579,3347
Curaçao,,3561,3561
Central African Republic,3492,3066,2752
Greenland,,3327,3466
Belize,3450,3327,3204
Cape Verde,3448,3057,2768
Guinea-Bissau,2985,2528,2008
Lesotho,2972,2574,2391
Gambia,2792,2594,2372
Saint Lucia,2765,2656,2574
Zanzibar,,,2530
San Marino,2417,2027,2082
Antigua and Barbuda,2385,2338,2162
Seychelles,2251,2387,2162
East Timor,2170,1902,1866
Eritrea,1982,2065,1917
Sint Maarten,,1888,1670
Solomon Islands,1836,1750,1584
British Virgin Islands,,,1830
Comoros,1814,1815,1567
Turks and Caicos Islands,,1745,1757
Grenada,1483,1420,1372
Vanuatu,1396,1354,1092
Samoa,1376,1288,1253
Saint Vincent and the Grenadines,1236,1255,1136
São Tomé and Príncipe,1161,981,828
Saint Kitts and Nevis,1143,1184,1122
Northern Mariana Islands,,1096,
American Samoa,,871,
Dominica,791,724,689
Tonga,716,679,648
Collectivity of Saint Martin,,649,
Micronesia,521,502,471
Anguilla,,,456
Cook Islands,,,414
Kiribati,401,349,343
Palau,377,345,310
Marshall Islands,342,308,281
Nauru,196,176,187
Montserrat,,,81
Tuvalu,65,57,56
1 country imf_2026_million_usd world_bank_2025_million_usd un_2024_million_usd
2 World 128003776 118350166 111565144
3 United States 32642373 30769700 29298000
4 China 21546403 19498039 18743802
5 Germany 5471299 5050923 4659929
6 Japan 4341986 4435163 4026211
7 United Kingdom 4268446 4002588 3685881
8 India 4060207 3956067 3952244
9 France 3554155 3366316 3160443
10 Russia 2861156 2561310 2173386
11 Italy 2701737 2551557 2380825
12 Brazil 2654761 2279920 2185822
13 Canada 2490256 2319900 2270076
14 South Korea 2245847 1872375 1875388
15 Mexico 2176236 1832641 1852723
16 Australia 2110657 1798519 1830610
17 Spain 2085276 1906453 1722746
18 Turkey 1817987 1597293 1323255
19 Indonesia 1479954 1445643 1396300
20 Netherlands 1423856 1332768 1214928
21 Saudi Arabia 1343346 1276943 1254141
22 Switzerland 1135739 1043530 936564
23 Poland 1133088 1035492 914696
24 Taiwan 1019696
25 Belgium 772699 725466 664564
26 Argentina 768206 683098 638365
27 Israel 746982 610778 542286
28 Sweden 745081 668999 604899
29 Ireland 709972 721701 577389
30 Singapore 667889 603870 547387
31 United Arab Emirates 661018 552325 552325
32 Norway 651712 530756 483593
33 Austria 616896 579470 534791
34 Thailand 599115 577010 526518
35 Colombia 572735 457410 418542
36 Malaysia 547100 472193 421972
37 Vietnam 542130 514697 476388
38 Bangladesh 506357 456319 432742
39 Philippines 501692 487086 461618
40 Denmark 499354 462527 424525
41 South Africa 489083 427184 401145
42 Romania 470091 428678 382770
43 Hong Kong 455156 427310 406863
44 Pakistan 450134 407307 379120
45 Egypt 442886 365255 306907
46 Czech Republic 427953 391027 345037
47 Chile 402243 357371 330267
48 Peru 399593 334855 289329
49 Kazakhstan 397921 306239 291480
50 Nigeria 386671 290794 252084
51 Portugal 375197 346640 313271
52 Finland 338564 317039 298697
53 Algeria 331894 287031 266972
54 Iran 311950 362682 448092
55 Greece 304627 280636 257145
56 New Zealand 273395 264057 260172
57 Hungary 265911 246490 222905
58 Cuba 107352 252063
59 Iraq 245234 254367 279641
60 Ukraine 229406 214233 190741
61 Qatar 203044 215560 219163
62 Morocco 195632 182374 160606
63 Uzbekistan 178167 147038 114965
64 Slovakia 167062 154530 141776
65 Angola 157297 122175 117159
66 Kenya 151151 135941 120340
67 Kuwait 146911 157209 160227
68 Bulgaria 146507 130777 113343
69 Dominican Republic 146362 127407 124282
70 Ecuador 138199 130321 124676
71 Puerto Rico 133222 129368 125842
72 Guatemala 132270 123306 113200
73 Ghana 128638 114210 82938
74 Ethiopia 127145 126359 142275
75 DR Congo 122281 91031 75322
76 Oman 121397 109605 107137
77 Croatia 115915 105060 92662
78 Ivory Coast 112115 99774 85894
79 Serbia 112025 99953 89074
80 Venezuela 111303 99661 150494
81 Luxembourg 110417 101158 93280
82 Costa Rica 109931 102905 95350
83 Sri Lanka 98964 108825 98714
84 Lithuania 105907 95210 84869
85 Belarus 102042 93397 75962
86 Uruguay 96092 85348 80962
87 Panama 95024 90463 86260
88 Tanzania 94889 90143 79236
89 Slovenia 86732 79648 72485
90 Myanmar 83832 81666 64796
91 Turkmenistan 83065 49829 68655
92 Bolivia 80743 64769 46627
93 Azerbaijan 78372 75938 74316
94 Uganda 73370 61986 56369
95 Cameroon 65135 58933 53297
96 Jordan 64909 61610 53352
97 Tunisia 60745 57503 53493
98 Paraguay 60542 49278 44739
99 Zimbabwe 56713 51216 45719
100 Macau 54228 52061 49467
101 Latvia 53686 48619 43684
102 Libya 52453 48099 48484
103 Cambodia 52379 51267 45913
104 Estonia 51634 47031 42765
105 Bahrain 48849 48966 47110
106 Nepal 45844 45490 42692
107 Cyprus 45171 41226 37635
108 Sudan 44688 60163 25574
109 Iceland 43800 38583 33222
110 Georgia 42716 38144 34192
111 Honduras 41505 39601 37094
112 Zambia 41243 28880 25303
113 Senegal 40469 37007 36715
114 El Salvador 39838 36708 35365
115 Haiti 39180 32077 25312
116 Bosnia and Herzegovina 36771 32600 30478
117 Lebanon 34497 25972 37990
118 Papua New Guinea 34403 32499 32262
119 Guyana 33961 27097 24659
120 Mali 33847 30069 26588
121 Albania 33333 30540 27037
122 Burkina Faso 32513 27627 23250
123 Armenia 31873 29243 25955
124 Malta 30712 27772 25030
125 Guinea 29930 28346 36465
126 Mongolia 28450 25369 23586
127 Benin 27786 24566 21483
128 Trinidad and Tobago 26836 25943 25634
129 Chad 25628 21473 19906
130 Niger 24813 21646 17491
131 Nicaragua 24227 22237 19694
132 Kyrgyzstan 23606 22624 17478
133 Gabon 23363 21427 20867
134 Mozambique 23275 22338 22745
135 Jamaica 23028 22705 22014
136 Botswana 21937 19928 19401
137 Moldova 21889 20352 18200
138 North Macedonia 21605 19101 16952
139 Madagascar 21185 19620 17421
140 Tajikistan 20418 17661 13949
141 Afghanistan 19662 17779 18283
142 Laos 18959 18303 16129
143 Rwanda 18673 16372 15111
144 Malawi 18309 14918 11734
145 Namibia 17314 15080 13372
146 Syria 60043 23738 17254
147 North Korea 17199
148 Palestine 16017 17167 16017
149 Mauritius 17119 16158 14953
150 Bahamas 17042 15833 15833
151 Congo 17028 16307 16412
152 Brunei 16863 15032 15463
153 Mauritania 14352 11680 10912
154 Somalia 14174 12995 11966
155 Kosovo 14053 12456 11154
156 Equatorial Guinea 13722 12823 12288
157 Togo 13437 11890 10163
158 Channel Islands 12507
159 Monaco 11126 11126
160 Montenegro 10227 9233 8274
161 Liechtenstein 9442 8906 8628
162 Bermuda 9194 8840
163 New Caledonia 8549 8549
164 Barbados 8483 8017 7598
165 Sierra Leone 8270 7464 6792
166 Burundi 8137 3365 4431
167 Maldives 8130 7741 7062
168 Cayman Islands 7765 7657
169 Isle of Man 7576
170 Yemen 7435 21606 14304
171 Guam 6910
172 Fiji 6352 6198 5968
173 French Polynesia 6324 6323
174 South Sudan 6069 11998 3522
175 Suriname 5908 4524 4435
176 Eswatini 5792 5161 4947
177 Liberia 5642 5246 5251
178 Andorra 4879 4501 4040
179 Djibouti 4725 4625 4152
180 Virgin Islands (U.S.) 4672
181 Aruba 4671 4168 4192
182 Faroe Islands 4053
183 Bhutan 3856 3579 3347
184 Curaçao 3561 3561
185 Central African Republic 3492 3066 2752
186 Greenland 3327 3466
187 Belize 3450 3327 3204
188 Cape Verde 3448 3057 2768
189 Guinea-Bissau 2985 2528 2008
190 Lesotho 2972 2574 2391
191 Gambia 2792 2594 2372
192 Saint Lucia 2765 2656 2574
193 Zanzibar 2530
194 San Marino 2417 2027 2082
195 Antigua and Barbuda 2385 2338 2162
196 Seychelles 2251 2387 2162
197 East Timor 2170 1902 1866
198 Eritrea 1982 2065 1917
199 Sint Maarten 1888 1670
200 Solomon Islands 1836 1750 1584
201 British Virgin Islands 1830
202 Comoros 1814 1815 1567
203 Turks and Caicos Islands 1745 1757
204 Grenada 1483 1420 1372
205 Vanuatu 1396 1354 1092
206 Samoa 1376 1288 1253
207 Saint Vincent and the Grenadines 1236 1255 1136
208 São Tomé and Príncipe 1161 981 828
209 Saint Kitts and Nevis 1143 1184 1122
210 Northern Mariana Islands 1096
211 American Samoa 871
212 Dominica 791 724 689
213 Tonga 716 679 648
214 Collectivity of Saint Martin 649
215 Micronesia 521 502 471
216 Anguilla 456
217 Cook Islands 414
218 Kiribati 401 349 343
219 Palau 377 345 310
220 Marshall Islands 342 308 281
221 Nauru 196 176 187
222 Montserrat 81
223 Tuvalu 65 57 56
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,231 @@
# Countries by GDP (nominal)
Source: https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal)
Table: "GDP forecast or estimate (million US$) by country" (IMF 2026,
World Bank 2025, UN 2024).
Extracted: 2026-10-24
| country | IMF 2026 (m USD) | World Bank 2025 (m USD) | UN 2024 (m USD) |
|---|---|---|---|
| World | 128,003,776 | 118,350,166 | 111,565,144 |
| United States | 32,642,373 | 30,769,700 | 29,298,000 |
| China | 21,546,403 | 19,498,039 | 18,743,802 |
| Germany | 5,471,299 | 5,050,923 | 4,659,929 |
| Japan | 4,341,986 | 4,435,163 | 4,026,211 |
| United Kingdom | 4,268,446 | 4,002,588 | 3,685,881 |
| India | 4,060,207 | 3,956,067 | 3,952,244 |
| France | 3,554,155 | 3,366,316 | 3,160,443 |
| Russia | 2,861,156 | 2,561,310 | 2,173,386 |
| Italy | 2,701,737 | 2,551,557 | 2,380,825 |
| Brazil | 2,654,761 | 2,279,920 | 2,185,822 |
| Canada | 2,490,256 | 2,319,900 | 2,270,076 |
| South Korea | 2,245,847 | 1,872,375 | 1,875,388 |
| Mexico | 2,176,236 | 1,832,641 | 1,852,723 |
| Australia | 2,110,657 | 1,798,519 | 1,830,610 |
| Spain | 2,085,276 | 1,906,453 | 1,722,746 |
| Turkey | 1,817,987 | 1,597,293 | 1,323,255 |
| Indonesia | 1,479,954 | 1,445,643 | 1,396,300 |
| Netherlands | 1,423,856 | 1,332,768 | 1,214,928 |
| Saudi Arabia | 1,343,346 | 1,276,943 | 1,254,141 |
| Switzerland | 1,135,739 | 1,043,530 | 936,564 |
| Poland | 1,133,088 | 1,035,492 | 914,696 |
| Taiwan | 1,019,696 | | |
| Belgium | 772,699 | 725,466 | 664,564 |
| Argentina | 768,206 | 683,098 | 638,365 |
| Israel | 746,982 | 610,778 | 542,286 |
| Sweden | 745,081 | 668,999 | 604,899 |
| Ireland | 709,972 | 721,701 | 577,389 |
| Singapore | 667,889 | 603,870 | 547,387 |
| United Arab Emirates | 661,018 | 552,325 | 552,325 |
| Norway | 651,712 | 530,756 | 483,593 |
| Austria | 616,896 | 579,470 | 534,791 |
| Thailand | 599,115 | 577,010 | 526,518 |
| Colombia | 572,735 | 457,410 | 418,542 |
| Malaysia | 547,100 | 472,193 | 421,972 |
| Vietnam | 542,130 | 514,697 | 476,388 |
| Bangladesh | 506,357 | 456,319 | 432,742 |
| Philippines | 501,692 | 487,086 | 461,618 |
| Denmark | 499,354 | 462,527 | 424,525 |
| South Africa | 489,083 | 427,184 | 401,145 |
| Romania | 470,091 | 428,678 | 382,770 |
| Hong Kong | 455,156 | 427,310 | 406,863 |
| Pakistan | 450,134 | 407,307 | 379,120 |
| Egypt | 442,886 | 365,255 | 306,907 |
| Czech Republic | 427,953 | 391,027 | 345,037 |
| Chile | 402,243 | 357,371 | 330,267 |
| Peru | 399,593 | 334,855 | 289,329 |
| Kazakhstan | 397,921 | 306,239 | 291,480 |
| Nigeria | 386,671 | 290,794 | 252,084 |
| Portugal | 375,197 | 346,640 | 313,271 |
| Finland | 338,564 | 317,039 | 298,697 |
| Algeria | 331,894 | 287,031 | 266,972 |
| Iran | 311,950 | 362,682 | 448,092 |
| Greece | 304,627 | 280,636 | 257,145 |
| New Zealand | 273,395 | 264,057 | 260,172 |
| Hungary | 265,911 | 246,490 | 222,905 |
| Cuba | | 107,352 | 252,063 |
| Iraq | 245,234 | 254,367 | 279,641 |
| Ukraine | 229,406 | 214,233 | 190,741 |
| Qatar | 203,044 | 215,560 | 219,163 |
| Morocco | 195,632 | 182,374 | 160,606 |
| Uzbekistan | 178,167 | 147,038 | 114,965 |
| Slovakia | 167,062 | 154,530 | 141,776 |
| Angola | 157,297 | 122,175 | 117,159 |
| Kenya | 151,151 | 135,941 | 120,340 |
| Kuwait | 146,911 | 157,209 | 160,227 |
| Bulgaria | 146,507 | 130,777 | 113,343 |
| Dominican Republic | 146,362 | 127,407 | 124,282 |
| Ecuador | 138,199 | 130,321 | 124,676 |
| Puerto Rico | 133,222 | 129,368 | 125,842 |
| Guatemala | 132,270 | 123,306 | 113,200 |
| Ghana | 128,638 | 114,210 | 82,938 |
| Ethiopia | 127,145 | 126,359 | 142,275 |
| DR Congo | 122,281 | 91,031 | 75,322 |
| Oman | 121,397 | 109,605 | 107,137 |
| Croatia | 115,915 | 105,060 | 92,662 |
| Ivory Coast | 112,115 | 99,774 | 85,894 |
| Serbia | 112,025 | 99,953 | 89,074 |
| Venezuela | 111,303 | 99,661 | 150,494 |
| Luxembourg | 110,417 | 101,158 | 93,280 |
| Costa Rica | 109,931 | 102,905 | 95,350 |
| Sri Lanka | 98,964 | 108,825 | 98,714 |
| Lithuania | 105,907 | 95,210 | 84,869 |
| Belarus | 102,042 | 93,397 | 75,962 |
| Uruguay | 96,092 | 85,348 | 80,962 |
| Panama | 95,024 | 90,463 | 86,260 |
| Tanzania | 94,889 | 90,143 | 79,236 |
| Slovenia | 86,732 | 79,648 | 72,485 |
| Myanmar | 83,832 | 81,666 | 64,796 |
| Turkmenistan | 83,065 | 49,829 | 68,655 |
| Bolivia | 80,743 | 64,769 | 46,627 |
| Azerbaijan | 78,372 | 75,938 | 74,316 |
| Uganda | 73,370 | 61,986 | 56,369 |
| Cameroon | 65,135 | 58,933 | 53,297 |
| Jordan | 64,909 | 61,610 | 53,352 |
| Tunisia | 60,745 | 57,503 | 53,493 |
| Paraguay | 60,542 | 49,278 | 44,739 |
| Zimbabwe | 56,713 | 51,216 | 45,719 |
| Macau | 54,228 | 52,061 | 49,467 |
| Latvia | 53,686 | 48,619 | 43,684 |
| Libya | 52,453 | 48,099 | 48,484 |
| Cambodia | 52,379 | 51,267 | 45,913 |
| Estonia | 51,634 | 47,031 | 42,765 |
| Bahrain | 48,849 | 48,966 | 47,110 |
| Nepal | 45,844 | 45,490 | 42,692 |
| Cyprus | 45,171 | 41,226 | 37,635 |
| Sudan | 44,688 | 60,163 | 25,574 |
| Iceland | 43,800 | 38,583 | 33,222 |
| Georgia | 42,716 | 38,144 | 34,192 |
| Honduras | 41,505 | 39,601 | 37,094 |
| Zambia | 41,243 | 28,880 | 25,303 |
| Senegal | 40,469 | 37,007 | 36,715 |
| El Salvador | 39,838 | 36,708 | 35,365 |
| Haiti | 39,180 | 32,077 | 25,312 |
| Bosnia and Herzegovina | 36,771 | 32,600 | 30,478 |
| Lebanon | 34,497 | 25,972 | 37,990 |
| Papua New Guinea | 34,403 | 32,499 | 32,262 |
| Guyana | 33,961 | 27,097 | 24,659 |
| Mali | 33,847 | 30,069 | 26,588 |
| Albania | 33,333 | 30,540 | 27,037 |
| Burkina Faso | 32,513 | 27,627 | 23,250 |
| Armenia | 31,873 | 29,243 | 25,955 |
| Malta | 30,712 | 27,772 | 25,030 |
| Guinea | 29,930 | 28,346 | 36,465 |
| Mongolia | 28,450 | 25,369 | 23,586 |
| Benin | 27,786 | 24,566 | 21,483 |
| Trinidad and Tobago | 26,836 | 25,943 | 25,634 |
| Chad | 25,628 | 21,473 | 19,906 |
| Niger | 24,813 | 21,646 | 17,491 |
| Nicaragua | 24,227 | 22,237 | 19,694 |
| Kyrgyzstan | 23,606 | 22,624 | 17,478 |
| Gabon | 23,363 | 21,427 | 20,867 |
| Mozambique | 23,275 | 22,338 | 22,745 |
| Jamaica | 23,028 | 22,705 | 22,014 |
| Botswana | 21,937 | 19,928 | 19,401 |
| Moldova | 21,889 | 20,352 | 18,200 |
| North Macedonia | 21,605 | 19,101 | 16,952 |
| Madagascar | 21,185 | 19,620 | 17,421 |
| Tajikistan | 20,418 | 17,661 | 13,949 |
| Afghanistan | 19,662 | 17,779 | 18,283 |
| Laos | 18,959 | 18,303 | 16,129 |
| Rwanda | 18,673 | 16,372 | 15,111 |
| Malawi | 18,309 | 14,918 | 11,734 |
| Namibia | 17,314 | 15,080 | 13,372 |
| Syria | 60,043 | 23,738 | 17,254 |
| North Korea | | | 17,199 |
| Palestine | 16,017 | 17,167 | 16,017 |
| Mauritius | 17,119 | 16,158 | 14,953 |
| Bahamas | 17,042 | 15,833 | 15,833 |
| Congo | 17,028 | 16,307 | 16,412 |
| Brunei | 16,863 | 15,032 | 15,463 |
| Mauritania | 14,352 | 11,680 | 10,912 |
| Somalia | 14,174 | 12,995 | 11,966 |
| Kosovo | 14,053 | 12,456 | 11,154 |
| Equatorial Guinea | 13,722 | 12,823 | 12,288 |
| Togo | 13,437 | 11,890 | 10,163 |
| Channel Islands | | 12,507 | |
| Monaco | | 11,126 | 11,126 |
| Montenegro | 10,227 | 9,233 | 8,274 |
| Liechtenstein | 9,442 | 8,906 | 8,628 |
| Bermuda | | 9,194 | 8,840 |
| New Caledonia | | 8,549 | 8,549 |
| Barbados | 8,483 | 8,017 | 7,598 |
| Sierra Leone | 8,270 | 7,464 | 6,792 |
| Burundi | 8,137 | 3,365 | 4,431 |
| Maldives | 8,130 | 7,741 | 7,062 |
| Cayman Islands | | 7,765 | 7,657 |
| Isle of Man | | 7,576 | |
| Yemen | 7,435 | 21,606 | 14,304 |
| Guam | | 6,910 | |
| Fiji | 6,352 | 6,198 | 5,968 |
| French Polynesia | | 6,324 | 6,323 |
| South Sudan | 6,069 | 11,998 | 3,522 |
| Suriname | 5,908 | 4,524 | 4,435 |
| Eswatini | 5,792 | 5,161 | 4,947 |
| Liberia | 5,642 | 5,246 | 5,251 |
| Andorra | 4,879 | 4,501 | 4,040 |
| Djibouti | 4,725 | 4,625 | 4,152 |
| Virgin Islands (U.S.) | | 4,672 | |
| Aruba | 4,671 | 4,168 | 4,192 |
| Faroe Islands | | 4,053 | |
| Bhutan | 3,856 | 3,579 | 3,347 |
| Curaçao | | 3,561 | 3,561 |
| Central African Republic | 3,492 | 3,066 | 2,752 |
| Greenland | | 3,327 | 3,466 |
| Belize | 3,450 | 3,327 | 3,204 |
| Cape Verde | 3,448 | 3,057 | 2,768 |
| Guinea-Bissau | 2,985 | 2,528 | 2,008 |
| Lesotho | 2,972 | 2,574 | 2,391 |
| Gambia | 2,792 | 2,594 | 2,372 |
| Saint Lucia | 2,765 | 2,656 | 2,574 |
| Zanzibar | | | 2,530 |
| San Marino | 2,417 | 2,027 | 2,082 |
| Antigua and Barbuda | 2,385 | 2,338 | 2,162 |
| Seychelles | 2,251 | 2,387 | 2,162 |
| East Timor | 2,170 | 1,902 | 1,866 |
| Eritrea | 1,982 | 2,065 | 1,917 |
| Sint Maarten | | 1,888 | 1,670 |
| Solomon Islands | 1,836 | 1,750 | 1,584 |
| British Virgin Islands | | | 1,830 |
| Comoros | 1,814 | 1,815 | 1,567 |
| Turks and Caicos Islands | | 1,745 | 1,757 |
| Grenada | 1,483 | 1,420 | 1,372 |
| Vanuatu | 1,396 | 1,354 | 1,092 |
| Samoa | 1,376 | 1,288 | 1,253 |
| Saint Vincent and the Grenadines | 1,236 | 1,255 | 1,136 |
| São Tomé and Príncipe | 1,161 | 981 | 828 |
| Saint Kitts and Nevis | 1,143 | 1,184 | 1,122 |
| Northern Mariana Islands | | 1,096 | |
| American Samoa | | 871 | |
| Dominica | 791 | 724 | 689 |
| Tonga | 716 | 679 | 648 |
| Collectivity of Saint Martin | | 649 | |
| Micronesia | 521 | 502 | 471 |
| Anguilla | | | 456 |
| Cook Islands | | | 414 |
| Kiribati | 401 | 349 | 343 |
| Palau | 377 | 345 | 310 |
| Marshall Islands | 342 | 308 | 281 |
| Nauru | 196 | 176 | 187 |
| Montserrat | | | 81 |
| Tuvalu | 65 | 57 | 56 |
@@ -0,0 +1,243 @@
#!/usr/bin/env python3
"""Extract the country-level GDP table from Wikipedia into a finished artifact.
Source: https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal)
Table: "GDP forecast or estimate (million US$) by country"
IMF (2026) / World Bank (2025) / UN (2024), values in millions of USD.
Files produced (in this directory):
- fetch_raw_wikitext.txt source wikitext snapshot (provenance)
- countries_gdp_nominal.csv machine table
- countries_gdp_nominal.json machine table (+ metadata)
- countries_gdp_nominal.md human table
- extraction_manifest.json file hashes + metadata
- verify.py CHECK: re-fetches the live source, re-parses,
compares row-by-row against the snapshot and
asserts anchor cells. Exit 0 = correct.
"""
import csv
import hashlib
import json
import os
import re
import sys
import urllib.request
from datetime import date, datetime, timezone
HERE = os.path.dirname(os.path.abspath(__file__))
WIKI_URL = (
"https://en.wikipedia.org/w/index.php?title=List_of_countries_by_GDP_(nominal)"
"&action=raw"
)
USER_AGENT = "ledger-wizard/1.0 (extract-check)"
OUT_WIKI = "fetch_raw_wikitext.txt"
OUT_CSV = "countries_gdp_nominal.csv"
OUT_JSON = "countries_gdp_nominal.json"
OUT_MD = "countries_gdp_nominal.md"
MANIFEST = "extraction_manifest.json"
COLUMNS = [
"country",
"imf_2026_million_usd",
"world_bank_2025_million_usd",
"un_2024_million_usd",
]
def now_iso():
return datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
def fetch_wikitext():
req = urllib.request.Request(WIKI_URL, headers={"User-Agent": USER_AGENT})
with urllib.request.urlopen(req, timeout=60) as r:
return r.read().decode("utf-8", errors="replace")
def strip_refs(cell):
cell = re.sub(r"<ref[^>]*>.*?</ref>", " ", cell, flags=re.S)
cell = re.sub(r"<ref[^>]*/>", " ", cell)
cell = re.sub(r"<[^>]+>", " ", cell)
return cell
def clean_number(s):
s = strip_refs(s)
s = re.sub(r"{{n/a}}", " ", s)
s = re.sub(r"{{[^}]*}}", " ", s)
# drop parenthetical year notes such as (2024) / (2023) attached to values
s = re.sub(r"[\(\[].*?[\)\]]", " ", s)
s = re.sub(r"\s+", "", s)
s = re.sub(r"\s+", "", s)
s = re.sub(r"[^0-9,]", "", s)
return s.replace(",", "")
def clean_country(s):
s = strip_refs(s)
s = re.sub(r"<[^>]+>", " ", s)
m = re.search(r"\{\{(?:flagg|noflag)\|(.*?)\}\}", s)
if m:
name = m.group(1)
# flagg templates: {{flagg|<key>|<display_name>|...}} -> name is param #2
parts = name.split("|")
return re.sub(r"\s+", " ", parts[1] if len(parts) > 1 else parts[-1]).strip()
m = re.match(r"^\|\s*(.*)$", s)
if m:
s = m.group(1)
s = re.sub(r"{{[^}]*}}", " ", s)
s = re.sub(r"<[^>]+>", " ", s)
return re.sub(r"\s+", " ", s).strip()
def parse_country_table(text):
"""Return list of dicts: country + 3 numeric fields (millions USD)."""
lines = text.splitlines()
start = None
for i, ln in enumerate(lines):
if ln.strip().startswith("|+GDP forecast or estimate (million US$) by country"):
start = i
break
if start is None:
sys.exit("FATAL: country table caption not found")
rows = []
for ln in lines[start + 1:]:
s = ln.strip()
if s.startswith("|+"):
break # next table caption
if not s.startswith("|") or "||" not in s:
continue
parts = [p.strip() for p in s.split("||")]
# World row carries a leading style prefix -> 5 parts; data rows 4.
if len(parts) == 4:
country_cell, nums = parts[0], parts[1:4]
elif len(parts) == 5 and 'style="' in parts[0]:
country_cell, nums = parts[1], parts[2:5]
else:
continue # header marker or stray line
if any(re.match(r"^!+", p) for p in parts[:1]):
continue # table header cell
country = clean_country(country_cell)
if not country:
continue
clean = [clean_number(n) for n in nums]
if len(clean) != 3:
continue # not a data row
# {{n/a}} cells are recorded as null (missing), never as zeroes.
imf = int(clean[0]) if clean[0] else None
wbm = int(clean[1]) if clean[1] else None
uns = int(clean[2]) if clean[2] else None
if imf is None and wbm is None and uns is None:
continue
rows.append(
{
"country": country,
"imf_2026_million_usd": imf,
"world_bank_2025_million_usd": wbm,
"un_2024_million_usd": uns,
}
)
return rows
def sha256(path):
h = hashlib.sha256()
with open(path, "rb") as f:
for chunk in iter(lambda: f.read(1 << 20), b""):
h.update(chunk)
return h.hexdigest()
def write_csv(rows):
with open(os.path.join(HERE, OUT_CSV), "w", newline="", encoding="utf-8") as f:
w = csv.DictWriter(f, fieldnames=COLUMNS)
w.writeheader()
w.writerows(rows)
def write_json(rows):
doc = {
"source": WIKI_URL,
"table": "GDP forecast or estimate (million US$) by country",
"columns": COLUMNS[1:],
"unit": "millions of US$",
"generated": now_iso(),
"rows": rows,
"total_rows": len(rows),
}
with open(os.path.join(HERE, OUT_JSON), "w", encoding="utf-8") as f:
json.dump(doc, f, indent=2, ensure_ascii=False)
def write_md(rows):
lines = [
"# Countries by GDP (nominal)",
"",
"Source: https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal)",
'Table: "GDP forecast or estimate (million US$) by country" (IMF 2026,',
"World Bank 2025, UN 2024).",
"Extracted: " + date.today().isoformat(),
"",
"| country | IMF 2026 (m USD) | World Bank 2025 (m USD) | UN 2024 (m USD) |",
"|---|---|---|---|",
]
for r in rows:
def fmt(v):
return "" if v is None else format(v, ",")
lines.append(
"| {} | {} | {} | {} |".format(
r["country"], fmt(r["imf_2026_million_usd"]),
fmt(r["world_bank_2025_million_usd"]),
fmt(r["un_2024_million_usd"]),
)
)
with open(os.path.join(HERE, OUT_MD), "w", encoding="utf-8") as f:
f.write("\n".join(lines) + "\n")
def write_manifest(rows):
files = {
"fetch_raw_wikitext.txt": OUT_WIKI,
"countries_gdp_nominal.csv": OUT_CSV,
"countries_gdp_nominal.json": OUT_JSON,
"countries_gdp_nominal.md": OUT_MD,
}
payload = {
"source": WIKI_URL,
"generated": now_iso(),
"table": "GDP forecast or estimate (million US$) by country",
"total_rows": len(rows),
"columns": COLUMNS[1:],
"files": {name: sha256(os.path.join(HERE, path)) for name, path in files.items()},
}
with open(os.path.join(HERE, MANIFEST), "w", encoding="utf-8") as f:
json.dump(payload, f, indent=2, ensure_ascii=False)
def main():
wikitext = fetch_wikitext()
open(os.path.join(HERE, OUT_WIKI), "w", encoding="utf-8").write(wikitext)
rows = parse_country_table(wikitext)
if not rows:
sys.exit("FATAL: no data rows parsed")
write_csv(rows)
write_json(rows)
write_md(rows)
write_manifest(rows)
print("rows=%d" % len(rows))
print("first: {} {} {} {}".format(rows[0]["country"], rows[0]["imf_2026_million_usd"],
rows[0]["world_bank_2025_million_usd"],
rows[0]["un_2024_million_usd"]))
print("last: {} {} {} {}".format(rows[-1]["country"], rows[-1]["imf_2026_million_usd"],
rows[-1]["world_bank_2025_million_usd"],
rows[-1]["un_2024_million_usd"]))
print("sources: csv={}, json={}, md={}, wiki={}, manifest={}".format(
OUT_CSV, OUT_JSON, OUT_MD, OUT_WIKI, MANIFEST))
if __name__ == "__main__":
main()
@@ -0,0 +1,17 @@
{
"source": "https://en.wikipedia.org/w/index.php?title=List_of_countries_by_GDP_(nominal)&action=raw",
"generated": "2026-10-24T05:23:58Z",
"table": "GDP forecast or estimate (million US$) by country",
"total_rows": 222,
"columns": [
"imf_2026_million_usd",
"world_bank_2025_million_usd",
"un_2024_million_usd"
],
"files": {
"fetch_raw_wikitext.txt": "e8faae2a669d9de19abb08c20de9e6db3fb3500b",
"countries_gdp_nominal.csv": "3f7c32cbb5cb2069963fc535848a4e7718fb8d1c",
"countries_gdp_nominal.json": "cd1aa1057b70f4f33e5e2f353ad2aed9840bb896",
"countries_gdp_nominal.md": "9a29d14d22f4cc057e78fa90f45e87dba0e9d9b1"
}
}
@@ -0,0 +1,652 @@
{{Short description|none}}
{{About||countries by GDP based on purchasing power parity|List of countries by GDP (PPP)|countries by GDP per capita|List of countries by GDP (nominal) per capita}}
{{protection padlock|small=yes}}
{{Use dmy dates|date=July 2026}}
{| style="float:right; padding:3px; border:solid gray 1px; margin-left:5px;"
|-
|<timeline>
ImageSize = width:auto height:250 barincrement:40
PlotArea = left:50 bottom:15 top:10 right:20
AlignBars = justify
TimeAxis = orientation:vertical
DateFormat = x.y
Period = from:0.0 till:35
ScaleMajor = unit:day start:0.0 increment:2
PlotData =
color:blue width:30
bar:US from:start till:32.64
bar:China from:start till:21.55
bar:Germany from:start till:5.47
bar:Japan from:start till:4.34
bar:UK from:start till:4.28
bar:India from:start till:4.07
bar:France from:start till:3.55
bar:Russia from:start till:2.86
bar:Italy from:start till:2.70
bar:Brazil from:start till:2.65
PlotData =
bar:US at:32.64 fontsize:S text: 32.64 shift:(-9,0)
bar:China at:21.55 fontsize:S text: 21.55 shift:(-12,0)
bar:Germany at:5.47 fontsize:S text: 5.47 shift:(-9,0)
bar:Japan at:4.34 fontsize:S text: 4.34 shift:(-9,0)
bar:UK at:4.27 fontsize:S text: 4.27 shift:(-9,0)
bar:India at:4.06 fontsize:S text: 4.06 shift:(-9,0)
bar:France at:3.55 fontsize:S text: 3.55 shift:(-9,0)
bar:Russia at:2.86 fontsize:S text: 2.87 shift:(-9,0)
bar:Italy at:2.70 fontsize:S text: 2.70 shift:(-9,0)
bar:Brazil at:2.65 fontsize:S text: 2.65 shift:(-9,0)
TextData =
pos:(0,0) text:US$ Tn
</timeline>
|-
| style="text-align:center; font-size:80%;"|Largest economies in the world by nominal GDP in 2026<br>according to [[International Monetary Fund]] projections<ref group="n" name="China-THM"/><ref name="IMFOCT2025"/>
|}
[[File:Countries by GDP (nominal).svg|thumb|435x435px|Countries by nominal GDP projected for 2026:<ref group="n">Based on the first available nominal-GDP figure for each country or territory, using sources in this order: [[International Monetary Fund]], [[World Bank]], then [[United Nations Statistics Division]]. Within each source, the most recent observation containing a value is selected; IMF projections are included through its reported projection year. Source years may therefore differ. Entities with no figure from any of the three sources receive no GDP color.</ref>
{| width=100%
|-
| style="vertical-align:top;" |
{{legend|#000203|> $20 trillion}}
{{legend|#00223a|$10–20 trillion}}
{{legend|#003b63|$5–10 trillion}}
{{legend|#004e83|$1–5 trillion}}
{{legend|#005e9c|$750 billion – $1 trillion}}
{{legend|#0071bd|$500–750 billion}}
| style="vertical-align:top;" |
{{legend|#0088e5|$250–500 billion}}
{{legend|#109eff|$100–250 billion}}
{{legend|#47b4ff|$50–100 billion}}
{{legend|#74c6ff|$25–50 billion}}
{{legend|#9dd7ff|$5–25 billion}}
{{legend|#ceebff|< $5 billion}}
|}
]]
[[Gross domestic product]] (GDP) is the [[market value]] of all final goods and services from a nation in a given year.<ref>{{cite web | url=http://www.investopedia.com/ask/answers/199.asp | title=What is GDP and why is it so important? | publisher=[[IAC/InterActiveCorp]] | work=[[Investopedia]] | date=26 February 2009 | access-date=23 May 2016 | archive-date=23 May 2016 | archive-url=https://web.archive.org/web/20160523230418/http://www.investopedia.com/ask/answers/199.asp | url-status=live }}</ref> Countries are sorted by nominal GDP estimates from financial and statistical institutions, which are calculated at market or government official [[exchange rate]]s. Nominal GDP does not take into account differences in the [[cost of living]] in different countries, and the results can vary greatly from one year to another based on fluctuations in the exchange rates of the country's [[currency]].<ref>{{cite web | url=http://economics.about.com/cs/money/a/purchasingpower.htm | title=A Beginner's Guide to Purchasing Power Parity Theory | publisher=[[IAC (company)|IAC/InterActiveCorp]] | work=[[About.com]] | access-date=31 May 2014 | author=Moffatt, Mike | archive-date=1 March 2017 | archive-url=https://web.archive.org/web/20170301091007/http://economics.about.com/cs/money/a/purchasingpower.htm | url-status=dead }}</ref> Such fluctuations may change a country's ranking from one year to the next, even though they often make little or no difference in the standard of living of its population.<ref>{{cite web | url=https://www.nber.org/chapters/c8616.pdf | title=Economic Growth and Real Exchange Rate: An Overview of the Balassa-Samuelson Hypothesis in Asia | publisher=[[National Bureau of Economic Research]] | work=Changes in Exchange Rates in Rapidly Development Countries: Theory, Practice, and Policy Issues | date=January 1999 | access-date=23 May 2016 | author1=[[Takatoshi Ito|Ito, Takatoshi]] | author2=Isard, Peter | author3=Symansky, Steven | archive-date=28 March 2016 | archive-url=https://web.archive.org/web/20160328101132/http://www.nber.org/chapters/c8616.pdf | url-status=live }}</ref>
Comparisons of national wealth are also frequently made based on [[purchasing power parity]] (PPP), to adjust for differences in the cost of living in different countries. Other metrics, [[List of countries by GDP (nominal) per capita|nominal GDP per capita]] and a corresponding [[List of countries by GDP (PPP) per capita|GDP (PPP) per capita]], are used for comparing national [[standard of living]]. On the whole, PPP per capita figures are less spread than nominal GDP per capita figures.<ref>{{cite web | url=http://www.imf.org/external/pubs/ft/fandd/basics/gdp.htm | title=Gross Domestic Product: An Economy's All | publisher=[[International Monetary Fund]] | work=[[Finance & Development]] | date=28 March 2012 | access-date=31 May 2014 | author=Callen, Tim | archive-date=11 December 2021 | archive-url=https://web.archive.org/web/20211211141652/https://www.imf.org/external/pubs/ft/fandd/basics/gdp.htm | url-status=live }}</ref>
The rankings of national economies have changed significantly over time. For instance, the United States overtook the British Empire around 1916; Japan rose rapidly in the post-World War II period to become the world’s second-largest economy by the 1970s; China moved from ninth place in 1978 to second in 2010 following market reforms. These shifts reflect long-term changes in global economic output.
The first list includes estimates compiled by the [[International Monetary Fund]]'s World Economic Outlook, the second list shows the [[World Bank]]'s data, and the third list includes data compiled by the [[United Nations Statistics Division]]. The IMF's definitive data for the past year and estimates for the current year are published twice a year in April and October. Non-sovereign entities (the world, continents, and some [[dependent territory|dependent territories]]) and states with limited international recognition (such as [[Kosovo]] and [[Taiwan]]) are included in the list where they appear in the sources.<!-- These are marked in ''italics''.-->
==Table==
''The table initially ranks each IMF member including {{color box|#ECECEC|[[List of sovereign states|sovereign states]] not part of the IMF, [[Lists of non-sovereign nations|non-sovereign nations]] and territories, and [[List of states with limited recognition|countries with limited recognition]]}}''
<!-- The links in the "Country/Territory" row of the following table link to the article on the GDP or the economy of the respective country or territory. -->
<!--
PLEASE, NO RANDOM FIGURES
THERE ARE NO FIGURES BASED ON NATIONAL STATISTICS IN THIS ARTICLE.
THE FIRST LIST IS THE INTERNATIONAL MONETARY FUND FIGURES.
THE SECOND LIST IS THE WORLD BANK ESTIMATES.
THE THIRD LIST IS THE UNITED NATIONS FIGURES.
THE GEOGRAPHICAL SORTING OF CONTINENTS AND SUBREGIONS FOR EACH COUNTRY IS BASED ON THE CLASSIFICATIONS OF THE UNITED NATIONS GEOSCHEME.
Please update [[List of countries by past and projected GDP (nominal)]] with the historical data.
-->
{{Static row numbers}}<!-- Read [[Talk:List_of_countries_by_GDP_(nominal)/Archive_8#Remove_European_union_please]] before removing -->
{{sticky header}}{{table alignment}}
{| class="wikitable sortable sticky-header-multi static-row-numbers" {{right}}
|+GDP forecast or estimate (million US$) by country
|- class="static-row-header" style="text-align:center;"
! Country/Territory
! style="width:7.5em;" | [[International Monetary Fund|IMF]]<br>(<section begin="IMF year" />2026<section end="IMF year" />)<ref name="IMFOCT2025">{{cite web |title=Data Explorer |url=https://data.imf.org/en/Data-Explorer?datasetUrn=IMF.RES:WEO(9.0.0) |website=data.imf.org |access-date=17 August 2026}}</ref>
! style="width:7.5em;" | [[World Bank]]<br>(2025)<ref name="WorldBankGDP">{{Cite web|title=GDP (current US$)|url=https://data.worldbank.org/indicator/NY.GDP.MKTP.CD?most_recent_value_desc=true&year_high_desc=true|access-date=17 August 2026|website=data.worldbank.org|archive-date=|archive-url=}}</ref>
! style="width:7.5em;" | [[United Nations]]<br>(2024)<ref name="UN">{{cite web|url=https://unstats.un.org/unsd/amaapi/api/file/2|title=United Nations Statistics Division - National Accounts|website=unstats.un.org|access-date=17 August 2026|archive-date= |archive-url= |url-status= }}</ref>
|- class="static-row-header " style="font-weight:bold;"
| style="text-align:left" |{{noflag|World}} || <section begin="IMF value" />128,003,776<section end="IMF value" />|| 118,350,166 || 111,565,144
|-
| {{flagg|uspeft|United States|pref=GDP of|pref2=Economy of}} || 32,642,373 || 30,769,700 || 29,298,000
|-
| {{flagg|uspeft|China|pref=GDP of|pref2=Economy of}}<ref group="n" name="China-THM" /> || 21,546,403 || 19,498,039 || 18,743,802
|-
| {{flagg|uspeft|Germany|pref=GDP of|pref2=Economy of}} || 5,471,299 || 5,050,923 || 4,659,929
|-
| {{flagg|uspeft|Japan|pref=GDP of|pref2=Economy of}} || 4,341,986 || 4,435,163 || 4,026,211
|-
| {{flagg|uspeft|United Kingdom|pref=GDP of|pref2=Economy of}} || 4,268,446 || 4,002,588 || 3,685,881
|-
| {{flagg|uspeft|India|pref=GDP of|pref2=Economy of}} || 4,060,207 || 3,956,067 || 3,952,244
|-
| {{flagg|uspeft|France|pref=GDP of|pref2=Economy of}} || 3,554,155 || 3,366,316 || 3,160,443
|-
| {{flagg|uspeft|Russia|pref=GDP of|pref2=Economy of}} || 2,861,156 || 2,561,310 || 2,173,386
|-
| {{flagg|uspeft|Italy|pref=GDP of|pref2=Economy of}} || 2,701,737 || 2,551,557 || 2,380,825
|-
| {{flagg|uspeft|Brazil|pref=GDP of|pref2=Economy of}} || 2,654,761 || 2,279,920 || 2,185,822
|-
| {{flagg|uspeft|Canada|pref=GDP of|pref2=Economy of}} || 2,490,256 || 2,319,900 || 2,270,076
|-
| {{flagg|uspeft|South Korea|pref=GDP of|pref2=Economy of}} || 2,245,847 || 1,872,375 || 1,875,388
|-
| {{flagg|uspeft|Mexico|pref=GDP of|pref2=Economy of}} || 2,176,236 || 1,832,641 || 1,852,723
|-
| {{flagg|uspeft|Australia|pref=GDP of|pref2=Economy of}} || 2,110,657 || 1,798,519 || 1,830,610
|-
| {{flagg|uspeft|Spain|pref=GDP of|pref2=Economy of}} || 2,085,276 || 1,906,453 || 1,722,746
|-
| {{flagg|uspeft|Turkey|pref=GDP of|pref2=Economy of}} || 1,817,987 || 1,597,293 || 1,323,255
|-
| {{flagg|uspeft|Indonesia|pref=GDP of|pref2=Economy of}} || 1,479,954 || 1,445,643 || 1,396,300
|-
| {{flagg|uspeft|Netherlands|pref=GDP of|pref2=Economy of|the=y}} || 1,423,856 || 1,332,768 || 1,214,928
|-
| {{flagg|uspeft|Saudi Arabia|pref=GDP of|pref2=Economy of}} || 1,343,346 || 1,276,943 || 1,254,141
|-
| {{flagg|uspeft|Switzerland|pref=GDP of|pref2=Economy of}} || 1,135,739 || 1,043,530 || 936,564
|-
| {{flagg|uspeft|Poland|pref=GDP of|pref2=Economy of}} || 1,133,088 || 1,035,492 || 914,696
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Taiwan|pref=GDP of|pref2=Economy of}}<ref group="n" name="Taiwan_China" /> || 1,019,696 || {{n/a}} || {{n/a}}
|-
| {{flagg|uspeft|Belgium|pref=GDP of|pref2=Economy of}} || 772,699 || 725,466 || 664,564
|-
| {{flagg|uspeft|Argentina|pref=GDP of|pref2=Economy of}} || 768,206 || 683,098 || 638,365
|-
| {{flagg|uspeft|Israel|pref=GDP of|pref2=Economy of}} || 746,982 || 610,778 || 542,286
|-
| {{flagg|uspeft|Sweden|pref=GDP of|pref2=Economy of}} || 745,081 || 668,999 || 604,899
|-
| {{flagg|uspeft|Ireland|pref=GDP of|pref2=Economy of|the=y}} || 709,972 || 721,701 || 577,389
|-
| {{flagg|uspeft|Singapore|pref=GDP of|pref2=Economy of}} || 667,889 || 603,870 || 547,387
|-
| {{flagg|uspeft|United Arab Emirates|pref=GDP of|pref2=Economy of|the=y}} || 661,018 || 552,325 (2024) || 552,325
|-
| {{flagg|uspeft|Norway|pref=GDP of|pref2=Economy of}} || 651,712 || 530,756 || 483,593
|-
| {{flagg|uspeft|Austria|pref=GDP of|pref2=Economy of}} || 616,896 || 579,470 || 534,791
|-
| {{flagg|uspeft|Thailand|pref=GDP of|pref2=Economy of}} || 599,115 || 577,010 || 526,518
|-
| {{flagg|uspeft|Colombia|pref=GDP of|pref2=Economy of}} || 572,735 || 457,410 || 418,542
|-
| {{flagg|uspeft|Malaysia|pref=GDP of|pref2=Economy of}} || 547,100 || 472,193 || 421,972
|-
| {{flagg|uspeft|Vietnam|pref=GDP of|pref2=Economy of}} || 542,130 || 514,697 || 476,388
|-
| {{flagg|uspeft|Bangladesh|pref=GDP of|pref2=Economy of}} || 506,357 || 456,319 || 432,742
|-
| {{flagg|uspeft|Philippines|pref=GDP of|pref2=Economy of|the=y}} || 501,692 || 487,086 || 461,618
|-
| {{flagg|uspeft|Denmark|pref=GDP of|pref2=Economy of}} || 499,354 || 462,527 || 424,525
|-
| {{flagg|uspeft|South Africa|pref=GDP of|pref2=Economy of}} || 489,083 || 427,184 || 401,145
|-
| {{flagg|uspeft|Romania|pref=GDP of|pref2=Economy of}} || 470,091 || 428,678 || 382,770
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Hong Kong|pref=GDP of|pref2=Economy of}}<ref group="n" name="HongKong_China" /> || 455,156 || 427,310 || 406,863
|-
| {{flagg|uspeft|Pakistan|pref=GDP of|pref2=Economy of}} || 450,134 || 407,307 || 379,120
|-
| {{flagg|uspeft|Egypt|pref=GDP of|pref2=Economy of}} || 442,886 || 365,255 || 306,907
|-
| {{flagg|uspeft|Czech Republic|pref=GDP of|pref2=Economy of|the=y}} || 427,953 || 391,027 || 345,037
|-
| {{flagg|uspeft|Chile|pref=GDP of|pref2=Economy of}} || 402,243 || 357,371 || 330,267
|-
| {{flagg|uspeft|Peru|pref=GDP of|pref2=Economy of}} || 399,593 || 334,855 || 289,329
|-
| {{flagg|uspeft|Kazakhstan|pref=GDP of|pref2=Economy of}} || 397,921 || 306,239 || 291,480
|-
| {{flagg|uspeft|Nigeria|pref=GDP of|pref2=Economy of}} || 386,671 || 290,794 || 252,084
|-
| {{flagg|uspeft|Portugal|pref=GDP of|pref2=Economy of}} || 375,197 || 346,640 || 313,271
|-
| {{flagg|uspeft|Finland|pref=GDP of|pref2=Economy of}} || 338,564 || 317,039 || 298,697
|-
| {{flagg|uspeft|Algeria|pref=GDP of|pref2=Economy of}} || 331,894 || 287,031 || 266,972
|-
| {{flagg|uspeft|Iran|pref=GDP of|pref2=Economy of}} || 311,950 || 362,682 || 448,092
|-
| {{flagg|uspeft|Greece|pref=GDP of|pref2=Economy of}} || 304,627 || 280,636 || 257,145
|-
| {{flagg|uspeft|New Zealand|pref=GDP of|pref2=Economy of}} || 273,395 || 264,057 || 260,172
|-
| {{flagg|uspeft|Hungary|pref=GDP of|pref2=Economy of}} || 265,911 || 246,490 || 222,905
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Cuba|pref=GDP of|pref2=Economy of}} || {{n/a}} || 107,352 (2020) || 252,063
|-
| {{flagg|uspeft|Iraq|pref=GDP of|pref2=Economy of}} || 245,234 || 254,367 || 279,641
|-
| {{flagg|uspeft|Ukraine|pref=GDP of|pref2=Economy of}}<ref group="n" name="Ukraine" /> || 229,406 || 214,233 || 190,741
|-
| {{flagg|uspeft|Qatar|pref=GDP of|pref2=Economy of}} || 203,044 || 215,560 || 219,163
|-
| {{flagg|uspeft|Morocco|pref=GDP of|pref2=Economy of}} || 195,632 || 182,374 || 160,606
|-
| {{flagg|uspeft|Uzbekistan|pref=GDP of|pref2=Economy of}} || 178,167 || 147,038 || 114,965
|-
| {{flagg|uspeft|Slovakia|pref=GDP of|pref2=Economy of}} || 167,062 || 154,530 || 141,776
|-
| {{flagg|uspeft|Angola|pref=GDP of|pref2=Economy of}} || 157,297 || 122,175 || 117,159
|-
| {{flagg|uspeft|Kenya|pref=GDP of|pref2=Economy of}} || 151,151 || 135,941 || 120,340
|-
| {{flagg|uspeft|Kuwait|pref=GDP of|pref2=Economy of}} || 146,911 || 157,209 || 160,227
|-
| {{flagg|uspeft|Bulgaria|pref=GDP of|pref2=Economy of}} || 146,507 || 130,777 || 113,343
|-
| {{flagg|uspeft|Dominican Republic|pref=GDP of|pref2=Economy of|the=y}} || 146,362 || 127,407 || 124,282
|-
| {{flagg|uspeft|Ecuador|pref=GDP of|pref2=Economy of}} || 138,199 || 130,321 || 124,676
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Puerto Rico|pref=GDP of|pref2=Economy of}} || 133,222 || 129,368 || 125,842
|-
| {{flagg|uspeft|Guatemala|pref=GDP of|pref2=Economy of}} || 132,270 || 123,306 || 113,200
|-
| {{flagg|uspeft|Ghana|pref=GDP of|pref2=Economy of}} || 128,638 || 114,210 || 82,938
|-
| {{flagg|uspeft|Ethiopia|pref=GDP of|pref2=Economy of}} || 127,145 || 126,359 || 142,275
|-
| {{flagg|uspeft|DR Congo|pref=GDP of|pref2=Economy of|the=y}} || 122,281 || 91,031 || 75,322
|-
| {{flagg|uspeft|Oman|pref=GDP of|pref2=Economy of}} || 121,397 || 109,605 || 107,137
|-
| {{flagg|uspeft|Croatia|pref=GDP of|pref2=Economy of}} || 115,915 || 105,060 || 92,662
|-
| {{flagg|uspeft|Ivory Coast|pref=GDP of|pref2=Economy of}} || 112,115 || 99,774 || 85,894
|-
| {{flagg|uspeft|Serbia|pref=GDP of|pref2=Economy of}} || 112,025 || 99,953 || 89,074
|-
| {{flagg|uspeft|Venezuela|pref=GDP of|pref2=Economy of}} || 111,303 || 99,661 || 150,494
|-
| {{flagg|uspeft|Luxembourg|pref=GDP of|pref2=Economy of}} || 110,417 || 101,158 || 93,280
|-
| {{flagg|uspeft|Costa Rica|pref=GDP of|pref2=Economy of}} || 109,931 || 102,905 || 95,350
|-
| {{flagg|uspeft|Sri Lanka|pref=GDP of|pref2=Economy of}} || 98,964 (2024) || 108,825 || 98,714
|-
| {{flagg|uspeft|Lithuania|pref=GDP of|pref2=Economy of}} || 105,907 || 95,210 || 84,869
|-
| {{flagg|uspeft|Belarus|pref=GDP of|pref2=Economy of}} || 102,042 || 93,397 || 75,962
|-
| {{flagg|uspeft|Uruguay|pref=GDP of|pref2=Economy of}} || 96,092 || 85,348 || 80,962
|-
| {{flagg|uspeft|Panama|pref=GDP of|pref2=Economy of}} || 95,024 || 90,463 || 86,260
|-
| {{flagg|uspeft|Tanzania|pref=GDP of|pref2=Economy of}}<ref group="n" name="Tanzania" /> || 94,889 || 90,143 || 79,236
|-
| {{flagg|uspeft|Slovenia|pref=GDP of|pref2=Economy of}} || 86,732 || 79,648 || 72,485
|-
| {{flagg|uspeft|Myanmar|pref=GDP of|pref2=Economy of}} || 83,832 || 81,666 || 64,796
|-
| {{flagg|uspeft|Turkmenistan|pref=GDP of|pref2=Economy of}} || 83,065 || 49,829 || 68,655
|-
| {{flagg|uspeft|Bolivia|pref=GDP of|pref2=Economy of}} || 80,743 || 64,769 || 46,627
|-
| {{flagg|uspeft|Azerbaijan|pref=GDP of|pref2=Economy of}} || 78,372 || 75,938 || 74,316
|-
| {{flagg|uspeft|Uganda|pref=GDP of|pref2=Economy of}} || 73,370 || 61,986 || 56,369
|-
| {{flagg|uspeft|Cameroon|pref=GDP of|pref2=Economy of}} || 65,135 || 58,933 || 53,297
|-
| {{flagg|uspeft|Jordan|pref=GDP of|pref2=Economy of}} || 64,909 || 61,610 || 53,352
|-
| {{flagg|uspeft|Tunisia|pref=GDP of|pref2=Economy of}} || 60,745 || 57,503 || 53,493
|-
| {{flagg|uspeft|Paraguay|pref=GDP of|pref2=Economy of}} || 60,542 || 49,278 || 44,739
|-
| {{flagg|uspeft|Zimbabwe|pref=GDP of|pref2=Economy of}} || 56,713 || 51,216 || 45,719
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Macau|pref=GDP of|pref2=Economy of}}<ref group="n" name="Macau_China" /> || 54,228 || 52,061 || 49,467
|-
| {{flagg|uspeft|Latvia|pref=GDP of|pref2=Economy of}} || 53,686 || 48,619 || 43,684
|-
| {{flagg|uspeft|Libya|pref=GDP of|pref2=Economy of}} || 52,453 || 48,099 || 48,484
|-
| {{flagg|uspeft|Cambodia|pref=GDP of|pref2=Economy of}} || 52,379 || 51,267 || 45,913
|-
| {{flagg|uspeft|Estonia|pref=GDP of|pref2=Economy of}} || 51,634 || 47,031 || 42,765
|-
| {{flagg|uspeft|Bahrain|pref=GDP of|pref2=Economy of}} || 48,849 || 48,966 || 47,110
|-
| {{flagg|uspeft|Nepal|pref=GDP of|pref2=Economy of}} || 45,844 || 45,490 || 42,692
|-
| {{flagg|uspeft|Cyprus|pref=GDP of|pref2=Economy of}}<ref group="n" name="Cyprus" /> || 45,171 || 41,226 || 37,635
|-
| {{flagg|uspeft|Sudan|pref=GDP of|pref2=Economy of}} || 44,688 || 60,163 || 25,574
|-
| {{flagg|uspeft|Iceland|pref=GDP of|pref2=Economy of}} || 43,800 || 38,583 || 33,222
|-
| {{flagg|uspeft|Georgia|pref=GDP of|pref2=Economy of}}<ref group="n" name="Georgia" /> || 42,716 || 38,144 || 34,192
|-
| {{flagg|uspeft|Honduras|pref=GDP of|pref2=Economy of}} || 41,505 || 39,601 || 37,094
|-
| {{flagg|uspeft|Zambia|pref=GDP of|pref2=Economy of}} || 41,243 || 28,880 || 25,303
|-
| {{flagg|uspeft|Senegal|pref=GDP of|pref2=Economy of}} || 40,469 || 37,007 || 36,715
|-
| {{flagg|uspeft|El Salvador|pref=GDP of|pref2=Economy of}} || 39,838 || 36,708 || 35,365
|-
| {{flagg|uspeft|Haiti|pref=GDP of|pref2=Economy of}} || 39,180 || 32,077 || 25,312
|-
| {{flagg|uspeft|Bosnia and Herzegovina|pref=GDP of|pref2=Economy of}} || 36,771 || 32,600 || 30,478
|-
| {{flagg|uspeft|Lebanon|pref=GDP of|pref2=Economy of}} || 34,497 (2025) || 25,972 (2024) || 37,990
|-
| {{flagg|uspeft|Papua New Guinea|pref=GDP of|pref2=Economy of}} || 34,403 || 32,499 || 32,262
|-
| {{flagg|uspeft|Guyana|pref=GDP of|pref2=Economy of}} || 33,961 || 27,097 || 24,659
|-
| {{flagg|uspeft|Mali|pref=GDP of|pref2=Economy of}} || 33,847 || 30,069 || 26,588
|-
| {{flagg|uspeft|Albania|pref=GDP of|pref2=Economy of}} || 33,333 || 30,540 || 27,037
|-
| {{flagg|uspeft|Burkina Faso|pref=GDP of|pref2=Economy of}} || 32,513 || 27,627 || 23,250
|-
| {{flagg|uspeft|Armenia|pref=GDP of|pref2=Economy of}} || 31,873 || 29,243 || 25,955
|-
| {{flagg|uspeft|Malta|pref=GDP of|pref2=Economy of}} || 30,712 || 27,772 || 25,030
|-
| {{flagg|uspeft|Guinea|pref=GDP of|pref2=Economy of}} || 29,930 || 28,346 || 36,465
|-
| {{flagg|uspeft|Mongolia|pref=GDP of|pref2=Economy of}} || 28,450 || 25,369 || 23,586
|-
| {{flagg|uspeft|Benin|pref=GDP of|pref2=Economy of}} || 27,786 || 24,566 || 21,483
|-
| {{flagg|uspeft|Trinidad and Tobago|pref=GDP of|pref2=Economy of}} || 26,836 || 25,943 || 25,634
|-
| {{flagg|uspeft|Chad|pref=GDP of|pref2=Economy of}} || 25,628 || 21,473 || 19,906
|-
| {{flagg|uspeft|Niger|pref=GDP of|pref2=Economy of}} || 24,813 || 21,646 || 17,491
|-
| {{flagg|uspeft|Nicaragua|pref=GDP of|pref2=Economy of}} || 24,227 || 22,237 || 19,694
|-
| {{flagg|uspeft|Kyrgyzstan|pref=GDP of|pref2=Economy of}} || 23,606 || 22,624 || 17,478
|-
| {{flagg|uspeft|Gabon|pref=GDP of|pref2=Economy of}} || 23,363 || 21,427 || 20,867
|-
| {{flagg|uspeft|Mozambique|pref=GDP of|pref2=Economy of}} || 23,275 || 22,338 || 22,745
|-
| {{flagg|uspeft|Jamaica|pref=GDP of|pref2=Economy of}} || 23,028 || 22,705 || 22,014
|-
| {{flagg|uspeft|Botswana|pref=GDP of|pref2=Economy of}} || 21,937 || 19,928 || 19,401
|-
| {{flagg|uspeft|Moldova|pref=GDP of|pref2=Economy of}}<ref group="n" name="Moldova" /> || 21,889 || 20,352 || 18,200
|-
| {{flagg|uspeft|North Macedonia|pref=GDP of|pref2=Economy of}} || 21,605 || 19,101 || 16,952
|-
| {{flagg|uspeft|Madagascar|pref=GDP of|pref2=Economy of}} || 21,185 || 19,620 || 17,421
|-
| {{flagg|uspeft|Tajikistan|pref=GDP of|pref2=Economy of}} || 20,418 || 17,661 || 13,949
|-
| {{flagg|uspeft|Afghanistan|pref=GDP of|pref2=Economy of}} || 19,662 (2025) || 17,779 (2024) || 18,283
|-
| {{flagg|uspeft|Laos|pref=GDP of|pref2=Economy of}} || 18,959 || 18,303 || 16,129
|-
| {{flagg|uspeft|Rwanda|pref=GDP of|pref2=Economy of}} || 18,673 || 16,372 || 15,111
|-
| {{flagg|uspeft|Malawi|pref=GDP of|pref2=Economy of}} || 18,309 || 14,918 || 11,734
|-
| {{flagg|uspeft|Namibia|pref=GDP of|pref2=Economy of}} || 17,314 || 15,080 || 13,372
|-
| {{flagg|uspeft|Syria|pref=GDP of|pref2=Economy of}} || 60,043 (2010) || 23,738 (2022) || 17,254
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|North Korea|pref=GDP of|pref2=Economy of}} || {{n/a}} || {{n/a}} || 17,199
|- class="static-row-header " style="background:#ECECEC"
| {{flagg|uspeft|Palestine|pref=GDP of|pref2=Economy of|the=y}}<ref group="n" name="WBG" /><ref group="n" name="Palestine" /> || 16,017 (2024) || 17,167 || 16,017
|-
| {{flagg|uspeft|Mauritius|pref=GDP of|pref2=Economy of}} || 17,119 || 16,158 || 14,953
|-
| {{flagg|uspeft|Bahamas|pref=GDP of|pref2=Economy of}} || 17,042 || 15,833 (2024) || 15,833
|-
| {{flagg|uspeft|Congo|pref=GDP of|pref2=Economy of|the=y}} || 17,028 || 16,307 || 16,412
|-
| {{flagg|uspeft|Brunei|pref=GDP of|pref2=Economy of}} || 16,863 || 15,032 || 15,463
|-
| {{flagg|uspeft|Mauritania|pref=GDP of|pref2=Economy of}} || 14,352 || 11,680 || 10,912
|-
| {{flagg|uspeft|Somalia|pref=GDP of|pref2=Economy of}} || 14,174 || 12,995 || 11,966
|- class="static-row-header " style="background:#ECECEC"
| {{flagg|uspeft|Kosovo|pref=GDP of|pref2=Economy of}} || 14,053 || 12,456 || 11,154
|-
| {{flagg|uspeft|Equatorial Guinea|pref=GDP of|pref2=Economy of}} || 13,722 || 12,823 || 12,288
|-
| {{flagg|uspeft|Togo|pref=GDP of|pref2=Economy of}} || 13,437 || 11,890 || 10,163
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Channel Islands|pref=GDP of|pref2=Economy of|the=y}} || {{n/a}} || 12,507 (2023) || {{n/a}}
|-
| {{flagg|uspeft|Monaco|pref=GDP of|pref2=Economy of}} || {{n/a}} || 11,126 (2024) || 11,126
|-
| {{flagg|uspeft|Montenegro|pref=GDP of|pref2=Economy of}} || 10,227 || 9,233 || 8,274
|-
| {{flagg|uspeft|Liechtenstein|pref=GDP of|pref2=Economy of}} || 9,442 || 8,906 (2024) || 8,628
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Bermuda|pref=GDP of|pref2=Economy of}} || {{n/a}} || 9,194 (2024) || 8,840
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|New Caledonia|pref=GDP of|pref2=Economy of|variant=local}} || {{n/a}} || 8,549 (2024) || 8,549
|-
| {{flagg|uspeft|Barbados|pref=GDP of|pref2=Economy of}} || 8,483 || 8,017 || 7,598
|-
| {{flagg|uspeft|Sierra Leone|pref=GDP of|pref2=Economy of}} || 8,270 || 7,464 || 6,792
|-
| {{flagg|uspeft|Burundi|pref=GDP of|pref2=Economy of}} || 8,137 || 3,365 || 4,431
|-
| {{flagg|uspeft|Maldives|pref=GDP of|pref2=Economy of}} || 8,130 || 7,741 || 7,062
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Cayman Islands|pref=GDP of|pref2=Economy of|the=y}} || {{n/a}} || 7,765 (2024) || 7,657
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Isle of Man|pref=GDP of|pref2=Economy of|the=y}} || {{n/a}} || 7,576 (2023) || {{n/a}}
|-
| {{flagg|uspeft|Yemen|pref=GDP of|pref2=Economy of}} || 7,435 || 21,606 (2018) || 14,304
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Guam|pref=GDP of|pref2=Economy of}} || {{n/a}} || 6,910 (2022) || {{n/a}}
|-
| {{flagg|uspeft|Fiji|pref=GDP of|pref2=Economy of}} || 6,352 || 6,198 || 5,968
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|French Polynesia|pref=GDP of|pref2=Economy of}} || {{n/a}} || 6,324 (2024) || 6,323
|-
| {{flagg|uspeft|South Sudan|pref=GDP of|pref2=Economy of}} || 6,069 || 11,998 (2015) || 3,522
|-
| {{flagg|uspeft|Suriname|pref=GDP of|pref2=Economy of}} || 5,908 || 4,524 || 4,435
|-
| {{flagg|uspeft|Eswatini|pref=GDP of|pref2=Economy of}} || 5,792 || 5,161 || 4,947
|-
| {{flagg|uspeft|Liberia|pref=GDP of|pref2=Economy of}} || 5,642 || 5,246 || 5,251
|-
| {{flagg|uspeft|Andorra|pref=GDP of|pref2=Economy of}} || 4,879 || 4,501 || 4,040
|-
| {{flagg|uspeft|Djibouti|pref=GDP of|pref2=Economy of}} || 4,725 || 4,625 || 4,152
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Virgin Islands (U.S.)|pref=GDP of|pref2=Economy of the}} || {{n/a}} || 4,672 (2022) || {{n/a}}
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Aruba|pref=GDP of|pref2=Economy of}} || 4,671 || 4,168 (2024) || 4,192
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Faroe Islands|pref=GDP of|pref2=Economy of the}} || {{n/a}} || 4,053 (2024) || {{n/a}}
|-
| {{flagg|uspeft|Bhutan|pref=GDP of|pref2=Economy of}} || 3,856 || 3,579 || 3,347
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Curaçao|pref=GDP of|pref2=Economy of}} || {{n/a}} || 3,561 (2024) || 3,561
|-
| {{flagg|uspeft|Central African Republic|pref=GDP of|pref2=Economy of|the=y}} || 3,492 || 3,066 || 2,752
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Greenland|pref=GDP of|pref2=Economy of}} || {{n/a}} || 3,327 (2023) || 3,466
|-
| {{flagg|uspeft|Belize|pref=GDP of|pref2=Economy of}} || 3,450 || 3,327 || 3,204
|-
| {{flagg|uspeft|Cape Verde|pref=GDP of|pref2=Economy of}} || 3,448 || 3,057 || 2,768
|-
| {{flagg|uspeft|Guinea-Bissau|pref=GDP of|pref2=Economy of}} || 2,985 || 2,528 || 2,008
|-
| {{flagg|uspeft|Lesotho|pref=GDP of|pref2=Economy of}} || 2,972 || 2,574 || 2,391
|-
| {{flagg|uspeft|Gambia|pref=GDP of|pref2=Economy of}} || 2,792 || 2,594 || 2,372
|-
| {{flagg|uspeft|Saint Lucia|pref=GDP of|pref2=Economy of}} || 2,765 || 2,656 || 2,574
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Zanzibar|pref=GDP of|pref2=Economy of}} || {{n/a}} || {{n/a}} || 2,530
|-
| {{flagg|uspeft|San Marino|pref=GDP of|pref2=Economy of}} || 2,417 || 2,027 (2023) || 2,082
|-
| {{flagg|uspeft|Antigua and Barbuda|pref=GDP of|pref2=Economy of}} || 2,385 || 2,338 || 2,162
|-
| {{flagg|uspeft|Seychelles|pref=GDP of|pref2=Economy of}} || 2,251 || 2,387 || 2,162
|-
| {{flagg|uspeft|East Timor|pref=GDP of|pref2=Economy of}} || 2,170 || 1,902 || 1,866
|-
| {{flagg|uspeft|Eritrea|pref=GDP of|pref2=Economy of}} || 1,982 (2019) || 2,065 (2011) || 1,917
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Sint Maarten|pref=GDP of|pref2=Economy of}} || {{n/a}} || 1,888 || 1,670
|-
| {{flagg|uspeft|Solomon Islands|pref=GDP of|pref2=Economy of|the=y}} || 1,836 || 1,750 || 1,584
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|British Virgin Islands|pref=GDP of the|pref2=Economy of|the=y}} || {{n/a}} || {{n/a}} || 1,830
|-
| {{flagg|uspeft|Comoros|pref=GDP of|pref2=Economy of|the=y}} || 1,814 || 1,815 || 1,567
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Turks and Caicos Islands|pref=GDP of|pref2=Economy of|the=y}} || {{n/a}} || 1,745 (2024) || 1,757
|-
| {{flagg|uspeft|Grenada|pref=GDP of|pref2=Economy of}} || 1,483 || 1,420 || 1,372
|-
| {{flagg|uspeft|Vanuatu|pref=GDP of|pref2=Economy of}} || 1,396 || 1,354 || 1,092
|-
| {{flagg|uspeft|Samoa|pref=GDP of|pref2=Economy of}} || 1,376 || 1,288 || 1,253
|-
| {{flagg|uspeft|Saint Vincent and the Grenadines|pref=GDP of|pref2=Economy of}} || 1,236 || 1,255 || 1,136
|-
| {{flagg|uspeft|São Tomé and Príncipe|pref=GDP of|pref2=Economy of}} || 1,161 || 981 || 828
|-
| {{flagg|uspeft|Saint Kitts and Nevis|pref=GDP of|pref2=Economy of}} || 1,143 || 1,184 || 1,122
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Northern Mariana Islands|pref=GDP of the|pref2=Economy of|the=y}} || {{n/a}} || 1,096 (2022) || {{n/a}}
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|American Samoa|pref=GDP of the|pref2=Economy of}} || {{n/a}} || 871 (2022) || {{n/a}}
|-
| {{flagg|uspeft|Dominica|pref=GDP of|pref2=Economy of}} || 791 || 724 || 689
|-
| {{flagg|uspeft|Tonga|pref=GDP of|pref2=Economy of}} || 716 || 679 || 648
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Collectivity of Saint Martin|pref=GDP of the|pref2=Economy of|the=y}} || {{n/a}} || 649 (2021) || {{n/a}}
|-
| {{flagg|uspeft|Micronesia|pref=GDP of|pref2=Economy of|the=y}} || 521 || 502 || 471
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Anguilla|pref=GDP of|pref2=Economy of}} || {{n/a}} || {{n/a}} || 456
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Cook Islands|pref=GDP of the|pref2=Economy of|the=y}} || {{n/a}} || {{n/a}} || 414
|-
| {{flagg|uspeft|Kiribati|pref=GDP of|pref2=Economy of}} || 401 || 349 || 343
|-
| {{flagg|uspeft|Palau|pref=GDP of|pref2=Economy of}} || 377 || 345 || 310
|-
| {{flagg|uspeft|Marshall Islands|pref=GDP of|pref2=Economy of|the=y}} || 342 || 308 || 281
|-
| {{flagg|uspeft|Nauru|pref=GDP of|pref2=Economy of}} || 196 || 176 || 187
|- class="static-row-header " style="background:#ECECEC" |-
| {{flagg|uspeft|Montserrat|pref=GDP of|pref2=Economy of}} || {{n/a}} || {{n/a}} || 81
|-
| {{flagg|uspeft|Tuvalu|pref=GDP of|pref2=Economy of}} || 65 || 57 || 56
|}
== Nominal GDP of regional groupings ==
In addition to the national GDP values stated in the previous section, the IMF and World Bank statistics include GDP estimates for various regional grouping and trade blocks. The table below provides a list of these groupings, including the 13 IMF regions and, where available, the equivalent value from World Bank sources. {{sticky header}}{{table alignment}}
{| class="wikitable sortable sticky-header-multi static-row-numbers" {{right}}
|+GDP forecast or estimate (million US$) by region or grouping
|- class="static-row-header" style="text-align:center;"
! Regional groupings
! style="width:7.5em;" | [[International Monetary Fund|IMF]]<br>(<section begin="IMF year" />2026<section end="IMF year" />)<ref name="IMFOCT2025"/>
! style="width:7.5em;" | [[World Bank]]<br>(2024)<ref name="WorldBankGDP"/>
|- class="static-row-header " style="font-weight:bold;"
| style="text-align:left" |{{noflag|World}} || 128,003,776|| 110,983,000
|-
| style="text-align:left" |{{noflag|Advanced Economies/High Income}}<ref group="r" name="aehi" /> || 74,234,689|| 71,321,000 <ref group="r" name="wbhi"/>
|-
| style="text-align:left" |{{noflag|[[G7]]}}<ref group="r" name="g7"/> || 55,470,253|| -
|-
| style="text-align:left" |{{noflag|Emerging Market and Developing Economies}}<ref group="r" name="emde"/> || 53,769,087|| -
|-
| style="text-align:left" |{{noflag|Emerging and Developing Asia}}<ref group="r" name="eda"/> || 30,209,314|| 22,261,000 <ref group="r" name="eap"/>
|-
| {{flagg|uspeft|European Union|pref=GDP of|pref2=Economy of|the=y}} ||22,806,152|| 19,497,000
|-
| {{flagg|uspeft|Euro Area|pref=GDP of|pref2=Economy of|nodata=1}} || 19,256,912|| 16,485,000
|-
| style="text-align:left" |{{noflag|Other Advanced Economies}}<ref group="r" name="oae" /> || 11,226,953|| -
|-
| {{flagg|uspeft|Latin America|pref=GDP of|pref2=Economy of|nodata=1}} & [[Economy of the Caribbean|Caribbean]] || 8,225,264|| 7,110,000
|-
| style="text-align:left" |{{noflag|Emerging and Developing Europe}}<ref group="r" name="ede" /> || 7,134,720|| -
|-
| style="text-align:left" |{{noflag|Middle East and Central Asia}}<ref group="r" name="meca" /> || 5,685,529|| -
|-
| {{flagg|uspeft|ASEAN|pref=Economy of}}-5<ref group="r" name="asean" /> || 3,795,751|| -
|-
| {{flagg|uspeft|Sub-Saharan Africa|pref=GDP of|pref2=Economy of|nodata=1}} || 2,514,260|| 1,979,000
|-
|}
==See also==
{{Portal|Business and economics|Contents/Lists}}'''By country:'''
* [[List of countries by GDP (PPP)]]
* [[List of countries by GDP (nominal) per capita]]
* [[List of countries by GDP (PPP) per capita]]
* [[List of countries by real GDP growth rate]]
* [[List of countries by real GDP per capita growth]]
* [[List of countries by past and projected GDP (nominal)]]
* [[List of countries by past and projected GDP (PPP)]]
'''By region:'''
* [[List of African countries by GDP (nominal)]]
* [[List of Arab League countries by GDP (nominal)]]
* [[List of countries in Asia-Pacific by GDP (nominal)]]
* [[List of Commonwealth of Nations countries by GDP (nominal)]]
* [[List of Latin American and Caribbean countries by GDP (nominal)]]
* [[List of North American countries by GDP (nominal)]]
* [[List of Oceanian countries by GDP]]
* [[List of sovereign states in Europe by GDP (nominal)]]
'''Other entities:'''
* [[List of cities by GDP]]
* [[List of continents by GDP]]
* [[List of first-level administrative divisions by GRDP]]
* [[List of regions by past GDP (PPP)]]
* {{section link|Trade bloc|Statistics}}
* [[Trillion dollar club (macroeconomics)]]
==Notes==
{{reflist|group=n|refs=
<ref group="n" name="China-THM">Figures for China exclude [[Taiwan]], and the [[Special administrative regions of China|special administrative regions]] of [[Hong Kong]] and [[Macau]].</ref>
<!--
<ref group="n" name="China-HM">Figures exclude the [[special administrative regions of China|special administrative regions]] of [[Hong Kong]] and [[Macau]].</ref>
-->
<ref group="n" name="Taiwan_China">The name used in the IMF report is "Taiwan Province of China".</ref>
<ref group="n" name="HongKong_China">The name used in the IMF report is "Hong Kong SAR".</ref>
<ref group="n" name="Ukraine">Figures exclude the [[Autonomous Republic of Crimea]] and [[Sevastopol]].</ref>
<ref group="n" name="Tanzania">The UN figure excludes the autonomous region of [[Zanzibar]].</ref>
<ref group="n" name="Cyprus">Data are for the area controlled by the Government of the Republic of Cyprus.</ref>
<ref group="n" name="Georgia">Excludes [[Abkhazia]] and [[South Ossetia]]</ref>
<ref group="n" name="Macau_China">The name used in the IMF report is "Macao SAR".</ref>
<ref group="n" name="WBG">The name used in the IMF and World Bank reports is "West Bank and Gaza".</ref>
<ref group="n" name="Palestine">The name used by the UN is "State of Palestine".</ref>
<ref group="n" name="Moldova">Excludes data for [[Transnistria]]</ref>
}}
{{reflist|group=r|refs=
<ref group="r" name="aehi">The IMF category for Advanced Economies includes the following states: [[Economy of Andorra|Andorra]], [[Economy of Australia|Australia]], [[Economy of Austria|Austria]], [[Economy of Belgium|Belgium]], [[Economy of Canada|Canada]], [[Economy of Croatia|Croatia]], [[Economy of Cyprus|Cyprus]], [[Economy of the Czech Republic|Czech Republic]], [[Economy of Denmark|Denmark]], [[Economy of Estonia|Estonia]], [[Economy of Finland|Finland]], [[Economy of France|France]], [[Economy of Germany|Germany]], [[Economy of Greece|Greece]], [[Economy of Hong Kong|Hong Kong SAR]], [[Economy of Iceland|Iceland]], [[Economy of the Republic of Ireland|Ireland]], [[Economy of Israel|Israel]], [[Economy of Italy|Italy]], [[Economy of Japan|Japan]], [[Economy of South Korea|Korea]], [[Economy of Latvia|Latvia]], [[Economy of Lithuania|Lithuania]], [[Economy of Luxembourg|Luxembourg]], [[Economy of Macau|Macao SAR]], [[Economy of Malta|Malta]], [[Economy of the Netherlands|The Netherlands]], [[Economy of New Zealand|New Zealand]], [[Economy of Norway|Norway]], [[Economy of Portugal|Portugal]], [[Economy of Puerto Rico|Puerto Rico]], [[Economy of San Marino|San Marino]], [[Economy of Singapore|Singapore]], [[Economy of Slovakia|Slovak Republic]], [[Economy of Slovenia|Slovenia]], [[Economy of Spain|Spain]], [[Economy of Sweden|Sweden]], [[Economy of Switzerland|Switzerland]], [[Economy of Taiwan|Taiwan Province of China]], [[Economy of the United Kingdom|United Kingdom]], [[Economy of the United States|United States]]</ref>
<ref group="r" name="g7">The G7 group of countries includes: [[Economy of Canada|Canada]], [[Economy of France|France]], [[Economy of Germany|Germany]], [[Economy of Italy|Italy]], [[Economy of Japan|Japan]], [[Economy of the United Kingdom|United Kingdom]], [[Economy of the United States|United States]]</ref>
<ref group="r" name="emde">The IMF category for Emerging Markets and Developing Economies include the following states: [[Economy of Afghanistan|Afghanistan]], [[Economy of Albania|Albania]], [[Economy of Algeria|Algeria]], [[Economy of Angola|Angola]], [[Economy of Antigua and Barbuda|Antigua and Barbuda]], [[Economy of Argentina|Argentina]], [[Economy of Armenia|Armenia]], [[Economy of Aruba|Aruba]], [[Economy of Azerbaijan|Azerbaijan]], [[Economy of the Bahamas|The Bahamas]], [[Economy of Bahrain|Bahrain]], [[Economy of Bangladesh|Bangladesh]], [[Economy of Barbados|Barbados]], [[Economy of Belarus|Belarus]], [[Economy of Belize|Belize]], [[Economy of Benin|Benin]], [[Economy of Bhutan|Bhutan]], [[Economy of Bolivia|Bolivia]], [[Economy of Bosnia and Herzegovina|Bosnia and Herzegovina]], [[Economy of Botswana|Botswana]], [[Economy of Brazil|Brazil]], [[Economy of Brunei|Brunei Darussalam]], [[Economy of Bulgaria|Bulgaria]], [[Economy of Burkina Faso|Burkina Faso]], [[Economy of Burundi|Burundi]], [[Economy of Cape Verde|Cape Verde]], [[Economy of Cambodia|Cambodia]], [[Economy of Cameroon|Cameroon]], [[Economy of the Central African Republic|Central African Republic]], [[Economy of Chad|Chad]], [[Economy of Chile|Chile]], [[Economy of China|China]], [[Economy of Colombia|Colombia]], [[Economy of the Comoros|Comoros]], [[Economy of the Democratic Republic of the Congo|Democratic Republic of the Congo]], [[Economy of the Republic of the Congo|Republic of Congo]], [[Economy of Costa Rica|Costa Rica]], [[Economy of Côte d'Ivoire|Côte d'Ivoire]], [[Economy of Djibouti|Djibouti]], [[Economy of Dominica|Dominica]], [[Economy of the Dominican Republic|Dominican Republic]], [[Economy of Ecuador|Ecuador]], [[Economy of Egypt|Egypt]], [[Economy of El Salvador|El Salvador]], [[Economy of Equatorial Guinea|Equatorial Guinea]], [[Economy of Eritrea|Eritrea]], [[Economy of Eswatini|Eswatini]], [[Economy of Ethiopia|Ethiopia]], [[Economy of Fiji|Fiji]], [[Economy of Gabon|Gabon]], [[Economy of the Gambia|The Gambia]], [[Economy of Georgia (country)|Georgia]], [[Economy of Ghana|Ghana]], [[Economy of Grenada|Grenada]], [[Economy of Guatemala|Guatemala]], [[Economy of Guinea|Guinea]], [[Economy of Guinea-Bissau|Guinea-Bissau]], [[Economy of Guyana|Guyana]], [[Economy of Haiti|Haiti]], [[Economy of Honduras|Honduras]], [[Economy of Hungary|Hungary]], [[Economy of India|India]], [[Economy of Indonesia|Indonesia]], [[Economy of Iran|Iran]], [[Economy of Iraq|Iraq]], [[Economy of Jamaica|Jamaica]], [[Economy of Jordan|Jordan]], [[Economy of Kazakhstan|Kazakhstan]], [[Economy of Kenya|Kenya]], [[Economy of Kiribati|Kiribati]], [[Economy of Kosovo|Kosovo]], [[Economy of Kuwait|Kuwait]], [[Economy of Kyrgyzstan|Kyrgyzstan]], [[Economy of Laos|Lao P.D.R.]], [[Economy of Lebanon|Lebanon]], [[Economy of Lesotho|Lesotho]], [[Economy of Liberia|Liberia]], [[Economy of Libya|Libya]], [[Economy of Madagascar|Madagascar]], [[Economy of Malawi|Malawi]], [[Economy of Malaysia|Malaysia]], [[Economy of the Maldives|Maldives]], [[Economy of Mali|Mali]], [[Economy of the Marshall Islands|Marshall Islands]], [[Economy of Mauritania|Mauritania]], [[Economy of Mauritius|Mauritius]], [[Economy of Mexico|Mexico]], [[Economy of the Federated States of Micronesia|Micronesia]], [[Economy of Moldova|Moldova]], [[Economy of Mongolia|Mongolia]], [[Economy of Montenegro|Montenegro]], [[Economy of Morocco|Morocco]], [[Economy of Mozambique|Mozambique]], [[Economy of Myanmar|Myanmar]], [[Economy of Namibia|Namibia]], [[Economy of Nauru|Nauru]], [[Economy of Nepal|Nepal]], [[Economy of Nicaragua|Nicaragua]], [[Economy of Niger|Niger]], [[Economy of Nigeria|Nigeria]], [[Economy of North Macedonia|North Macedonia]], [[Economy of Oman|Oman]], [[Economy of Pakistan|Pakistan]], [[Economy of Palau|Palau]], [[Economy of Panama|Panama]], [[Economy of Papua New Guinea|Papua New Guinea]], [[Economy of Paraguay|Paraguay]], [[Economy of Peru|Peru]], [[Economy of the Philippines|Philippines]], [[Economy of Poland|Poland]], [[Economy of Qatar|Qatar]], [[Economy of Romania|Romania]], [[Economy of Russia|Russia]], [[Economy of Rwanda|Rwanda]], [[Economy of Samoa|Samoa]], [[Economy of São Tomé and Príncipe|São Tomé and Príncipe]], [[Economy of Saudi Arabia|Saudi Arabia]], [[Economy of Senegal|Senegal]], [[Economy of Serbia|Serbia]], [[Economy of Seychelles|Seychelles]], [[Economy of Sierra Leone|Sierra Leone]], [[Economy of the Solomon Islands|Solomon Islands]], [[Economy of Somalia|Somalia]], [[Economy of South Africa|South Africa]], [[Economy of South Sudan|South Sudan]], [[Economy of Sri Lanka|Sri Lanka]], [[Economy of Saint Kitts and Nevis|St. Kitts and Nevis]], [[Economy of Saint Lucia|St. Lucia]], [[Economy of Saint Vincent and the Grenadines|St. Vincent and the Grenadines]], [[Economy of Sudan|Sudan]], [[Economy of Suriname|Suriname]], [[Economy of Syria|Syria]], [[Economy of Tajikistan|Tajikistan]], [[Economy of Tanzania|Tanzania]], [[Economy of Thailand|ThLine truncated
<ref group="r" name="eda">The IMF definition for Emerging and Developing Asia includes these states: [[Economy of Bangladesh|Bangladesh]], [[Economy of Bhutan|Bhutan]], [[Economy of Brunei|Brunei Darussalam]], [[Economy of Cambodia|Cambodia]], [[Economy of China|China]], [[Economy of Fiji|Fiji]], [[Economy of India|India]], [[Economy of Indonesia|Indonesia]], [[Economy of Kiribati|Kiribati]], [[Economy of Laos|Lao P.D.R.]], [[Economy of Malaysia|Malaysia]], [[Economy of the Maldives|Maldives]], [[Economy of the Marshall Islands|Marshall Islands]], [[Economy of the Federated States of Micronesia|Micronesia]], [[Economy of Mongolia|Mongolia]], [[Economy of Myanmar|Myanmar]], [[Economy of Nauru|Nauru]], [[Economy of Nepal|Nepal]], [[Economy of Palau|Palau]], [[Economy of Papua New Guinea|Papua New Guinea]], [[Economy of the Philippines|Philippines]], [[Economy of Samoa|Samoa]], [[Economy of the Solomon Islands|Solomon Islands]], [[Economy of Sri Lanka|Sri Lanka]], [[Economy of Thailand|Thailand]], [[Economy of Timor-Leste|Timor-Leste]], [[Economy of Tonga|Tonga]], [[Economy of Tuvalu|Tuvalu]], [[Economy of Vanuatu|Vanuatu]], [[Economy of Vietnam|Vietnam]]</ref>
<ref group="r" name="oae">The IMF category for Other Advanced Economies includes these states: [[Economy of Andorra|Andorra]], [[Economy of Australia|Australia]], [[Economy of the Czech Republic|Czech Republic]], [[Economy of Denmark|Denmark]], [[Economy of Hong Kong|Hong Kong SAR]], [[Economy of Iceland|Iceland]], [[Economy of Israel|Israel]], [[Economy of South Korea|Korea]], [[Economy of Macau|Macao SAR]], [[Economy of New Zealand|New Zealand]], [[Economy of Norway|Norway]], [[Economy of Puerto Rico|Puerto Rico]], [[Economy of San Marino|San Marino]], [[Economy of Singapore|Singapore]], [[Economy of Sweden|Sweden]], [[Economy of Switzerland|Switzerland]], [[Economy of Taiwan|Taiwan Province of China]]</ref>
<ref group="r" name="ede">The IMF category for Emerging and Developing Europe includes these states: [[Economy of Albania|Albania]], [[Economy of Belarus|Belarus]], [[Economy of Bosnia and Herzegovina|Bosnia and Herzegovina]], [[Economy of Bulgaria|Bulgaria]], [[Economy of Hungary|Hungary]], [[Economy of Kosovo|Kosovo]], [[Economy of Moldova|Moldova]], [[Economy of Montenegro|Montenegro]], [[Economy of North Macedonia|North Macedonia]], [[Economy of Poland|Poland]], [[Economy of Romania|Romania]], [[Economy of Russia|Russia]], [[Economy of Serbia|Serbia]], [[Economy of Turkey|Türkiye]], [[Economy of Ukraine|Ukraine]]</ref>
<ref group="r" name="meca">The IMF category for Middle East and Central Asia includes these states: [[Economy of Afghanistan|Afghanistan]], [[Economy of Algeria|Algeria]], [[Economy of Armenia|Armenia]], [[Economy of Azerbaijan|Azerbaijan]], [[Economy of Bahrain|Bahrain]], [[Economy of Djibouti|Djibouti]], [[Economy of Egypt|Egypt]], [[Economy of Georgia (country)|Georgia]], [[Economy of Iran|Iran]], [[Economy of Iraq|Iraq]], [[Economy of Jordan|Jordan]], [[Economy of Kazakhstan|Kazakhstan]], [[Economy of Kuwait|Kuwait]], [[Economy of Kyrgyzstan|Kyrgyzstan]], [[Economy of Lebanon|Lebanon]], [[Economy of Libya|Libya]], [[Economy of Mauritania|Mauritania]], [[Economy of Morocco|Morocco]], [[Economy of Oman|Oman]], [[Economy of Pakistan|Pakistan]], [[Economy of Qatar|Qatar]], [[Economy of Saudi Arabia|Saudi Arabia]], [[Economy of Somalia|Somalia]], [[Economy of Sudan|Sudan]], [[Economy of Syria|Syria]], [[Economy of Tajikistan|Tajikistan]], [[Economy of Tunisia|Tunisia]], [[Economy of Turkmenistan|Turkmenistan]], [[Economy of the United Arab Emirates|United Arab Emirates]], [[Economy of Uzbekistan|Uzbekistan]], [[Economy of Palestine|Palestine]], [[Economy of Yemen|Yemen]]</ref>
<ref group="r" name="asean">The IMF category for ASEAN-5 includes these states: [[Economy of Indonesia|Indonesia]], [[Economy of Malaysia|Malaysia]], [[Economy of the Philippines|Philippines]], [[Economy of Singapore|Singapore]], [[Economy of Thailand|Thailand]]</ref>
<ref group="r" name="wbhi">The World Bank High Income category includes: [[Economy of American Samoa|American Samoa]], [[Economy of Andorra|Andorra]], [[Economy of Antigua and Barbuda|Antigua and Barbuda]], [[Economy of Aruba|Aruba]], [[Economy of Australia|Australia]], [[Economy of Austria|Austria]], [[Economy of the Bahamas|Bahamas, The]], [[Economy of Bahrain|Bahrain]], [[Economy of Barbados|Barbados]], [[Economy of Belgium|Belgium]], [[Economy of Bermuda|Bermuda]], [[Economy of the British Virgin Islands|British Virgin Islands]], [[Economy of Brunei|Brunei Darussalam]], [[Economy of Bulgaria|Bulgaria]], [[Economy of Canada|Canada]], [[Economy of the Cayman Islands|Cayman Islands]], [[Economy of the Channel Islands|Channel Islands]], [[Economy of Chile|Chile]], [[Economy of Costa Rica|Costa Rica]], [[Economy of Croatia|Croatia]], [[Economy of Curaçao|Curacao]], [[Economy of Cyprus|Cyprus]], [[Economy of the Czech Republic|Czechia]], [[Economy of Denmark|Denmark]], [[Economy of Estonia|Estonia]], [[Economy of the Faroe Islands|Faroe Islands]], [[Economy of Finland|Finland]], [[Economy of France|France]], [[Economy of French Polynesia|French Polynesia]], [[Economy of Germany|Germany]], [[Economy of Gibraltar|Gibraltar]], [[Economy of Greece|Greece]], [[Economy of Greenland|Greenland]], [[Economy of Guam|Guam]], [[Economy of Guyana|Guyana]], [[Economy of Hong Kong|Hong Kong SAR, China]], [[Economy of Hungary|Hungary]], [[Economy of Iceland|Iceland]], [[Economy of the Republic of Ireland|Ireland]], [[Economy of the Isle of Man|Isle of Man]], [[Economy of Israel|Israel]], [[Economy of Italy|Italy]], [[Economy of Japan|Japan]], [[Economy of South Korea|Korea, Rep.]], [[Economy of Kuwait|Kuwait]], [[Economy of Latvia|Latvia]], [[Economy of Liechtenstein|Liechtenstein]], [[Economy of Lithuania|Lithuania]], [[Economy of Luxembourg|Luxembourg]], [[Economy of Macau|Macao SAR, China]], [[Economy of Malta|Malta]], [[Economy of Monaco|Monaco]], [[Economy of Nauru|Nauru]], [[Economy of the Netherlands|Netherlands]], [[Economy of New Caledonia|New Caledonia]], [[Economy of New Zealand|New Zealand]], [[Economy of the Northern Mariana Islands|Northern Mariana Islands]], [[Economy of Norway|Norway]], [[Economy of Oman|Oman]], [[Economy of Palau|Palau]], [[Economy of Panama|Panama]], [[Economy of Poland|Poland]], [[Economy of Portugal|Portugal]], [[Economy of Puerto Rico|Puerto Rico (US)]], [[Economy of Qatar|Qatar]], [[Economy of Romania|Romania]], [[Economy of Russia|Russian Federation]], [[Economy of San Marino|San Marino]], [[Economy of Saudi Arabia|Saudi Arabia]], [[Economy of Seychelles|Seychelles]], [[Economy of Singapore|Singapore]], [[Economy of Sint Maarten|Sint Maarten (Dutch part)]], [[Economy of Slovakia|Slovak Republic]], [[Economy of Slovenia|Slovenia]], [[Economy of Spain|Spain]], [[Economy of Saint Kitts and Nevis|St. Kitts and Nevis]], [[Economy of Saint Martin (island)|St. Martin (French part)]], [[Economy of Sweden|Sweden]], [[Economy of Switzerland|Switzerland]], [[Economy of Trinidad and Tobago|Trinidad and Tobago]], [[Economy of the Turks and Caicos Islands|Turks and Caicos Islands]], [[Economy of the United Arab Emirates|United Arab Emirates]], [[Economy of the United Kingdom|United Kingdom]], [[Economy of the United States|United States]], [[Economy of Uruguay|Uruguay]], [[Economy of the United States Virgin Islands|Virgin Islands (U.S.)]]</ref>
<ref group="r" name="eap">The World Bank category of 'East Asia and Pacific (excluding high income)' includes: [[Economy of Cambodia|Cambodia]], [[Economy of China|China]], [[Economy of Fiji|Fiji]], [[Economy of Indonesia|Indonesia]], [[Economy of Kiribati|Kiribati]], [[Economy of North Korea|Korea, Dem. People's Rep.]], [[Economy of Laos|Lao PDR]], [[Economy of Malaysia|Malaysia]], [[Economy of the Marshall Islands|Marshall Islands]], [[Economy of the Federated States of Micronesia|Micronesia, Fed. Sts.]], [[Economy of Mongolia|Mongolia]], [[Economy of Myanmar|Myanmar]], [[Economy of Papua New Guinea|Papua New Guinea]], [[Economy of the Philippines|Philippines]], [[Economy of Samoa|Samoa]], [[Economy of the Solomon Islands|Solomon Islands]], [[Economy of Thailand|Thailand]], [[Economy of Timor-Leste|Timor-Leste]], [[Economy of Tonga|Tonga]], [[Economy of Tuvalu|Tuvalu]], [[Economy of Vanuatu|Vanuatu]], [[Economy of Vietnam|Viet Nam]]</ref>
}}
==References==
{{reflist|30em}}
{{Finance country lists}}
{{GDP country lists|state=uncollapsed}}
{{Global economic classifications}}
{{DEFAULTSORT:Countries By Gdp (Nominal), List Of}}
[[Category:Lists of countries by GDP|Gdp (Nominal)]]
[[Category:Lists of countries by economic indicator|Gdp (Nominal)]]
@@ -0,0 +1,83 @@
#!/usr/bin/env python3
"""CHECK for the ledger GDP extraction.
Re-fetches the live Wikipedia source, re-parses the country table, and compares
row-by-row against the snapshot (countries_gdp_nominal.json) produced by
extract.py. Exits 0 only if every snapshot row matches the fresh parse and the
named anchor cells (World, United States, China, India) are byte-identical.
Exit codes: 0 = correct, 1 = wrong or failed. No fallback arms.
"""
import json
import os
import sys
import urllib.request
HERE = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, HERE)
from extract import fetch_wikitext, parse_country_table # noqa: E402
SNAPSHOT = os.path.join(HERE, "countries_gdp_nominal.json")
ANCHORS = {
"World": (128003776, 118350166, 111565144),
"United States": (32642373, 30769700, 29298000),
"China": (21546403, 19498039, 18743802),
"India": (4060207, 3956067, 3952244),
}
def fresh_rows():
return parse_country_table(fetch_wikitext())
def main():
try:
fresh = fresh_rows()
except Exception as e: # noqa: BLE001
print("FAIL: re-fetch/parse: %s" % e)
return 1
try:
with open(SNAPSHOT, encoding="utf-8") as f:
snap = json.load(f)
except Exception as e: # noqa: BLE001
print("FAIL: read snapshot: %s" % e)
return 1
rows = snap["rows"]
if len(fresh) != len(rows):
print("FAIL: row count fresh=%d snapshot=%d" % (len(fresh), len(rows)))
return 1
by_name = {r["country"]: r for r in fresh}
for s in rows:
f = by_name.get(s["country"])
if f is None:
print("FAIL: snapshot country missing from fresh parse: %r" % s["country"])
return 1
for col in ("imf_2026_million_usd", "world_bank_2025_million_usd",
"un_2024_million_usd"):
if f[col] != s[col]:
print("FAIL: %s.%s snapshot=%r fresh=%r"
% (s["country"], col, s[col], f[col]))
return 1
for name, vals in ANCHORS.items():
f = by_name.get(name)
if f is None or (
f["imf_2026_million_usd"], f["world_bank_2025_million_usd"],
f["un_2024_million_usd"]) != vals:
print("FAIL: anchor %r expected %r got %r" % (name, vals, f))
return 1
print("OK: rows=%d snapshot=%d anchors=%s" % (
len(fresh), len(rows),
", ".join("%s=%s" % kv for kv in ANCHORS.items())))
return 0
if __name__ == "__main__":
sys.exit(main())