Military Spending (% of GDP) by Country — 2024 World Rankings
Military expenditure as a percentage of GDP.
Updated May 2026 · Source: World BankIn 2024, Ukraine leads the world in military spending (% of gdp) with 34.5%, followed by Israel (8.8%), Algeria (8.0%), Saudi Arabia (7.3%), Russian Federation (7.1%). At the other end, Haiti ranks last at 0.1%. The global median is 1.6% (Somalia, Fed. Rep.). This ranking covers 153 countries and is sourced from the World Bank World Development Indicators, one of the most authoritative sources for international economic statistics.
The top 10 countries are: 1. Ukraine, 2. Israel, 3. Algeria, 4. Saudi Arabia, 5. Russian Federation, 6. Myanmar, 7. Qatar, 8. Oman, 9. Armenia, 10. Libya. All data is sourced from the World Bank World Development Indicators and updated regularly. Free API access is available for developers and researchers.
| # | Country | Military Spending (% of GDP) | Year |
|---|---|---|---|
| 1 | 34.5% | 2024 | |
| 2 | 8.8% | 2024 | |
| 3 | 8.0% | 2024 | |
| 4 | 7.3% | 2024 | |
| 5 | 7.1% | 2024 | |
| 6 | 6.8% | 2024 | |
| 7 | 6.5% | 2022 | |
| 8 | 5.6% | 2024 | |
| 9 | 5.5% | 2024 | |
| 10 | 5.3% | 2023 | |
| 11 | 5.0% | 2024 | |
| 12 | 4.8% | 2024 | |
| 13 | 4.8% | 2024 | |
| 14 | 4.7% | 2024 | |
| 15 | 4.2% | 2024 | |
| 16 | 4.2% | 2024 | |
| 17 | 3.8% | 2024 | |
| 18 | 3.6% | 2024 | |
| 19 | 3.5% | 2024 | |
| 20 | 3.4% | 2024 | |
| 21 | 3.4% | 2024 | |
| 22 | 3.4% | 2024 | |
| 23 | 3.3% | 2024 | |
| 24 | 3.1% | 2024 | |
| 25 | 3.1% | 2024 | |
| 26 | 3.0% | 2024 | |
| 27 | 3.0% | 2024 | |
| 28 | 2.9% | 2024 | |
| 29 | 2.8% | 2024 | |
| 30 | 2.8% | 2024 | |
| 31 | 2.7% | 2024 | |
| 32 | 2.7% | 2024 | |
| 33 | 2.7% | 2024 | |
| 34 | 2.6% | 2024 | |
| 35 | 2.6% | 2024 | |
| 36 | 2.6% | 2024 | |
| 37 | 2.5% | 2024 | |
| 38 | 2.5% | 2024 | |
| 39 | 2.4% | 2024 | |
| 40 | 2.4% | 2024 | |
| 41 | 2.3% | 2024 | |
| 42 | 2.3% | 2024 | |
| 43 | 2.3% | 2024 | |
| 44 | 2.3% | 2024 | |
| 45 | 2.3% | 2024 | |
| 46 | 2.2% | 2024 | |
| 47 | 2.2% | 2024 | |
| 48 | 2.2% | 2024 | |
| 49 | 2.2% | 2024 | |
| 50 | 2.1% | 2024 | |
| 51 | 2.1% | 2024 | |
| 52 | 2.1% | 2024 | |
| 53 | 2.1% | 2024 | |
| 54 | 2.1% | 2024 | |
| 55 | 2.1% | 2024 | |
| 56 | 2.0% | 2024 | |
| 57 | 2.0% | 2024 | |
| 58 | 2.0% | 2024 | |
| 59 | 2.0% | 2024 | |
| 60 | 2.0% | 2024 | |
| 61 | 2.0% | 2024 | |
| 62 | 2.0% | 2024 | |
| 63 | 1.9% | 2024 | |
| 64 | 1.9% | 2024 | |
| 65 | 1.9% | 2024 | |
| 66 | 1.9% | 2024 | |
| 67 | 1.9% | 2024 | |
| 68 | 1.9% | 2024 | |
| 69 | 1.9% | 2024 | |
| 70 | 1.8% | 2024 | |
| 71 | 1.8% | 2024 | |
| 72 | 1.8% | 2021 | |
| 73 | 1.8% | 2024 | |
| 74 | 1.7% | 2024 | |
| 75 | 1.6% | 2024 | |
| 76 | 1.6% | 2024 | |
| 77 | 1.6% | 2024 | |
| 78 | 1.6% | 2024 | |
| 79 | 1.6% | 2024 | |
| 80 | 1.6% | 2024 | |
| 81 | 1.6% | 2024 | |
| 82 | 1.5% | 2024 | |
| 83 | 1.5% | 2024 | |
| 84 | 1.5% | 2024 | |
| 85 | 1.5% | 2024 | |
| 86 | 1.4% | 2024 | |
| 87 | 1.4% | 2024 | |
| 88 | 1.4% | 2024 | |
| 89 | 1.4% | 2024 | |
| 90 | 1.4% | 2024 | |
| 91 | 1.3% | 2024 | |
| 92 | 1.3% | 2024 | |
| 93 | 1.3% | 2024 | |
| 94 | 1.3% | 2024 | |
| 95 | 1.3% | 2024 | |
| 96 | 1.3% | 2024 | |
| 97 | 1.3% | 2024 | |
| 98 | 1.2% | 2024 | |
| 99 | 1.2% | 2023 | |
| 100 | 1.2% | 2024 | |
| 101 | 1.2% | 2024 | |
| 102 | 1.2% | 2024 | |
| 103 | 1.2% | 2024 | |
| 104 | 1.2% | 2024 | |
| 105 | 1.2% | 2024 | |
| 106 | 1.1% | 2024 | |
| 107 | 1.0% | 2024 | |
| 108 | 1.0% | 2024 | |
| 109 | 1.0% | 2024 | |
| 110 | 1.0% | 2024 | |
| 111 | 1.0% | 2024 | |
| 112 | 1.0% | 2024 | |
| 113 | 1.0% | 2024 | |
| 114 | 1.0% | 2024 | |
| 115 | 1.0% | 2024 | |
| 116 | 1.0% | 2024 | |
| 117 | 0.9% | 2024 | |
| 118 | 0.9% | 2024 | |
| 119 | 0.9% | 2021 | |
| 120 | 0.9% | 2024 | |
| 121 | 0.9% | 2024 | |
| 122 | 0.9% | 2024 | |
| 123 | 0.9% | 2024 | |
| 124 | 0.9% | 2024 | |
| 125 | 0.8% | 2024 | |
| 126 | 0.8% | 2024 | |
| 127 | 0.8% | 2024 | |
| 128 | 0.7% | 2024 | |
| 129 | 0.7% | 2024 | |
| 130 | 0.7% | 2024 | |
| 131 | 0.7% | 2024 | |
| 132 | 0.7% | 2024 | |
| 133 | 0.7% | 2024 | |
| 134 | 0.7% | 2024 | |
| 135 | 0.7% | 2024 | |
| 136 | 0.7% | 2024 | |
| 137 | 0.6% | 2024 | |
| 138 | 0.6% | 2024 | |
| 139 | 0.6% | 2024 | |
| 140 | 0.6% | 2024 | |
| 141 | 0.6% | 2024 | |
| 142 | 0.5% | 2024 | |
| 143 | 0.5% | 2023 | |
| 144 | 0.5% | 2024 | |
| 145 | 0.5% | 2024 | |
| 146 | 0.4% | 2024 | |
| 147 | 0.4% | 2024 | |
| 148 | 0.4% | 2024 | |
| 149 | 0.4% | 2024 | |
| 150 | 0.3% | 2024 | |
| 151 | 0.2% | 2024 | |
| 152 | 0.1% | 2024 | |
| 153 | 0.1% | 2024 |
Use this data programmatically
Fetch the same 153-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. This includes spending on armed forces, weapons procurement, military research, and related infrastructure. The data primarily comes from the Stockholm International Peace Research Institute (SIPRI) via the World Bank, supplemented by national defense budget disclosures.
Global military spending exceeded $2.4 trillion in 2024, with the United States accounting for roughly 40% of the total. The US spends approximately 3.5% of GDP on defense — more than the next 10 countries combined in absolute terms. NATO members have committed to spending at least 2% of GDP on defense, a target that most European members failed to meet for decades but are now rapidly approaching following Russia's invasion of Ukraine. Russia itself spends an estimated 6–8% of GDP on military, though exact figures are unreliable due to off-budget spending and state secrecy.
Military spending trends reflect geopolitical tensions: Middle Eastern countries like Saudi Arabia, Israel, and the UAE consistently spend 4–6% of GDP on defense due to regional security threats. In contrast, Japan maintained spending below 1% of GDP for decades under its post-WWII pacifist constitution, though it has recently increased toward 2%. For developing countries, excessive military spending can crowd out investments in health, education, and infrastructure that drive long-term economic growth — a phenomenon economists call the "guns versus butter" trade-off.
Frequently Asked Questions
Which country has the highest military spending (% of gdp) in 2024?
Ukraine has the highest military spending (% of gdp) at 34.5% as of 2024, according to World Bank data.
Which country has the lowest military spending (% of gdp) in 2024?
Haiti has the lowest military spending (% of gdp) at 0.1% as of 2024.
How many countries are ranked by military spending (% of gdp)?
153 countries have reported data for military spending (% of gdp). The data is sourced from the World Bank World Development Indicators.
What is the median military spending (% of gdp) across all countries?
The median military spending (% of gdp) is 1.6% (Somalia, Fed. Rep., ranked #77 out of 153 countries).