Military Spending (% of GDP) by Country: 2025 World Rankings
Military expenditure as a percentage of GDP.
Data years: 2021 to 2025 · Source: World BankUkraine has the highest military spending as a share of GDP: 39.6% in 2025. Next are Algeria (8.8%), Israel (7.8%), Russia (7.5%) and Myanmar (6.6%, 2024). 3 countries share the lowest military spending as a share of GDP, 0.0% (Panama, Iceland and Costa Rica). The median across the 156 countries is 1.7%, counting each country once, so it is not a world average.
Most figures are for 2025. Years range from 2021 to 2025; each row in the table shows its own year. The ten highest are: 1. Ukraine, 2. Algeria, 3. Israel, 4. Russia, 5. Myanmar, 6. Qatar, 7. Saudi Arabia, 8. Azerbaijan, 9. Armenia, 10. Oman. Data: World Bank World Development Indicators. All data on this page is free to use with attribution, and an API endpoint is available at /api/v2/indicator/MS.MIL.XPND.GD.ZS for programmatic access.
| # | Country | Military Spending (% of GDP) | Year |
|---|---|---|---|
| 1 | 39.6% | 2025 | |
| 2 | 8.8% | 2025 | |
| 3 | 7.8% | 2025 | |
| 4 | 7.5% | 2025 | |
| 5 | 6.6% | 2024 | |
| 6 | 6.5% | 2022 | |
| 7 | 6.5% | 2025 | |
| 8 | 6.5% | 2025 | |
| 9 | 6.1% | 2025 | |
| 10 | 5.7% | 2025 | |
| 11 | 4.7% | 2025 | |
| 12 | 4.6% | 2025 | |
| 13 | 4.5% | 2025 | |
| 14 | 3.9% | 2025 | |
| 15 | 3.7% | 2024 | |
| 16 | 3.6% | 2025 | |
| 17 | 3.6% | 2023 | |
| 18 | 3.5% | 2025 | |
| 19 | 3.4% | 2025 | |
| 20 | 3.4% | 2025 | |
| 21 | 3.3% | 2025 | |
| 22 | 3.3% | 2025 | |
| 23 | 3.3% | 2025 | |
| 24 | 3.2% | 2025 | |
| 25 | 3.2% | 2025 | |
| 26 | 3.2% | 2025 | |
| 27 | 3.1% | 2025 | |
| 28 | 3.1% | 2025 | |
| 29 | 3.1% | 2025 | |
| 30 | 3.1% | 2025 | |
| 31 | 3.0% | 2025 | |
| 32 | 3.0% | 2025 | |
| 33 | 2.9% | 2025 | |
| 34 | 2.9% | 2025 | |
| 35 | 2.8% | 2025 | |
| 36 | 2.8% | 2025 | |
| 37 | 2.7% | 2025 | |
| 38 | 2.6% | 2025 | |
| 39 | 2.6% | 2025 | |
| 40 | 2.5% | 2025 | |
| 41 | 2.5% | 2025 | |
| 42 | 2.5% | 2025 | |
| 43 | 2.4% | 2025 | |
| 44 | 2.4% | 2025 | |
| 45 | 2.4% | 2025 | |
| 46 | 2.3% | 2025 | |
| 47 | 2.3% | 2025 | |
| 48 | 2.3% | 2025 | |
| 49 | 2.3% | 2025 | |
| 50 | 2.3% | 2025 | |
| 51 | 2.3% | 2025 | |
| 52 | 2.2% | 2025 | |
| 53 | 2.2% | 2025 | |
| 54 | 2.1% | 2025 | |
| 55 | 2.1% | 2025 | |
| 56 | 2.1% | 2025 | |
| 57 | 2.1% | 2025 | |
| 58 | 2.0% | 2025 | |
| 59 | 2.0% | 2025 | |
| 60 | 2.0% | 2025 | |
| 61 | 2.0% | 2025 | |
| 62 | 2.0% | 2025 | |
| 63 | 2.0% | 2025 | |
| 64 | 2.0% | 2025 | |
| 65 | 2.0% | 2025 | |
| 66 | 2.0% | 2025 | |
| 67 | 2.0% | 2025 | |
| 68 | 1.9% | 2025 | |
| 69 | 1.9% | 2025 | |
| 70 | 1.9% | 2025 | |
| 71 | 1.9% | 2025 | |
| 72 | 1.9% | 2025 | |
| 73 | 1.9% | 2025 | |
| 74 | 1.9% | 2025 | |
| 75 | 1.8% | 2025 | |
| 76 | 1.8% | 2021 | |
| 77 | 1.7% | 2025 | |
| 78 | 1.7% | 2025 | |
| 79 | 1.7% | 2025 | |
| 80 | 1.7% | 2025 | |
| 81 | 1.6% | 2025 | |
| 82 | 1.6% | 2025 | |
| 83 | 1.6% | 2025 | |
| 84 | 1.6% | 2025 | |
| 85 | 1.6% | 2025 | |
| 86 | 1.5% | 2025 | |
| 87 | 1.5% | 2025 | |
| 88 | 1.5% | 2025 | |
| 89 | 1.5% | 2025 | |
| 90 | 1.5% | 2025 | |
| 91 | 1.5% | 2025 | |
| 92 | 1.4% | 2025 | |
| 93 | 1.4% | 2025 | |
| 94 | 1.4% | 2025 | |
| 95 | 1.4% | 2025 | |
| 96 | 1.3% | 2025 | |
| 97 | 1.3% | 2025 | |
| 98 | 1.3% | 2025 | |
| 99 | 1.3% | 2025 | |
| 100 | 1.3% | 2025 | |
| 101 | 1.3% | 2025 | |
| 102 | 1.3% | 2025 | |
| 103 | 1.2% | 2025 | |
| 104 | 1.2% | 2025 | |
| 105 | 1.2% | 2025 | |
| 106 | 1.1% | 2025 | |
| 107 | 1.1% | 2025 | |
| 108 | 1.1% | 2025 | |
| 109 | 1.1% | 2025 | |
| 110 | 1.1% | 2025 | |
| 111 | 1.1% | 2025 | |
| 112 | 1.0% | 2025 | |
| 113 | 1.0% | 2025 | |
| 114 | 1.0% | 2025 | |
| 115 | 1.0% | 2025 | |
| 116 | 1.0% | 2025 | |
| 117 | 1.0% | 2025 | |
| 118 | 0.9% | 2025 | |
| 119 | 0.9% | 2021 | |
| 120 | 0.9% | 2025 | |
| 121 | 0.9% | 2025 | |
| 122 | 0.9% | 2025 | |
| 123 | 0.9% | 2025 | |
| 124 | 0.9% | 2025 | |
| 125 | 0.9% | 2025 | |
| 126 | 0.9% | 2025 | |
| 127 | 0.9% | 2025 | |
| 128 | 0.8% | 2025 | |
| 129 | 0.8% | 2025 | |
| 130 | 0.8% | 2025 | |
| 131 | 0.8% | 2025 | |
| 132 | 0.8% | 2025 | |
| 133 | 0.7% | 2025 | |
| 134 | 0.7% | 2025 | |
| 135 | 0.7% | 2025 | |
| 136 | 0.7% | 2025 | |
| 137 | 0.6% | 2025 | |
| 138 | 0.6% | 2025 | |
| 139 | 0.6% | 2025 | |
| 140 | 0.6% | 2025 | |
| 141 | 0.6% | 2025 | |
| 142 | 0.6% | 2025 | |
| 143 | 0.6% | 2025 | |
| 144 | 0.5% | 2025 | |
| 145 | 0.5% | 2025 | |
| 146 | 0.5% | 2025 | |
| 147 | 0.4% | 2025 | |
| 148 | 0.4% | 2025 | |
| 149 | 0.4% | 2025 | |
| 150 | 0.4% | 2025 | |
| 151 | 0.2% | 2025 | |
| 152 | 0.1% | 2025 | |
| 153 | 0.1% | 2025 | |
| 154 | 0.0% | 2025 | |
| 155 | 0.0% | 2025 | |
| 156 | 0.0% | 2025 |
Each figure is the latest available for that country, so rows can refer to different years; compare years before comparing values.
Where major economies rank
- United States: 3.1% in 2025, rank 27 of 156.
- China: 1.7% in 2025, rank 78 of 156.
- India: 2.3% in 2025, rank 47 of 156.
- Japan: 1.4% in 2025, rank 92 of 156.
- Germany: 2.3% in 2025, rank 50 of 156.
- United Kingdom: 2.4% in 2025, rank 45 of 156.
- France: 2.0% in 2025, rank 62 of 156.
- Brazil: 1.1% in 2025, rank 111 of 156.
- Canada: 1.6% in 2025, rank 82 of 156.
- Nigeria: 0.9% in 2025, rank 120 of 156.
Use this data programmatically
Fetch the same 156-country ranking as JSON or CSV: fresh on every request, drop-in for dashboards, scripts, and notebooks. 1,000 free requests/day, no signup needed; sign up for usage tracking and 50,000/day on Pro.
curl 'https://statisticsoftheworld.com/api/v1/rankings/MS.MIL.XPND.GD.ZS?format=csv' \ -o military-spending.csv
Understanding Military Spending (% of GDP) by Country
Military expenditure as a percentage of GDP measures the share of economic output devoted to defense, including armed forces, weapons procurement, military research and related infrastructure. The data comes from the Stockholm International Peace Research Institute (SIPRI) via the World Bank.
World military spending reached about $2.7 trillion in 2024, according to SIPRI, with the United States accounting for close to 40% of the total and spending more than the next several countries combined. NATO members long had a target of spending at least 2% of GDP on defense, which most European members missed for years; after Russia's full-scale invasion of Ukraine their spending rose quickly, and in 2025 the allies agreed a higher target for 2035. Russia's own military spending has risen sharply, though exact figures are uncertain because of off-budget spending and secrecy.
Military spending reflects geopolitical tensions. Saudi Arabia and Israel consistently spend a much larger share of GDP than the global average because of regional security threats. Japan kept defense spending around 1% of GDP for decades under its post-war pacifist constitution, and in 2022 set a goal of 2% by 2027. For developing countries, heavy military spending can crowd out investment in health, education and infrastructure that drives long-term growth, the trade-off economists call "guns versus butter".
Frequently Asked Questions
Which country has the highest military spending as a share of GDP?
Ukraine has the highest military spending as a share of GDP: 39.6% in 2025. The figures come from World Bank data.
Which country has the lowest military spending as a share of GDP?
3 countries share the lowest military spending as a share of GDP, 0.0% (Panama, Iceland and Costa Rica).
How many countries are ranked by military spending as a share of GDP?
156 countries have a figure in this ranking. Most figures are for 2025. Years range from 2021 to 2025; each row in the table shows its own year. The data comes from the World Bank World Development Indicators.
What is the median military spending as a share of GDP across countries?
The median is 1.7%: half of the 156 countries are above it and half below. It counts each country once, so it is not a world average.