Military Spending by Country

Military spending by country since 1949: total, per person, as a share of GDP and of government budgets. The world spent about $2.8 trillion in 2025 (2024 prices), over double the 1998 low.

Report an issue
Downloads
7
Last updated
Data files
4
Total size
3.32 MB
Format
csv

Data Views

3 views

Military expenditure by country, year and measure (long format)

Countries: region and SIPRI's notes on coverage

Military expenditure by region and the world, 1988 onwards

Countries SIPRI leaves out of each regional total

The world spent about $2.8 trillion (in constant 2024 dollars) on its militaries in 2025, more than double the 1998 low, according to the Stockholm International Peace Research Institute (SIPRI). This dataset holds SIPRI's figures for the countries it covers, back to 1949 where data exist, five ways: in constant and current US dollars, per person, as a share of GDP and as a share of government spending.

What stands out

  • Spending has risen every year since 2014 (each year from 2015 to 2025). The world total went from $1.8 trillion in 1988 (2024 prices) to a low of $1.2 trillion in 1998, then to about $2.8 trillion in 2025, up 3% on 2024. At 2025 prices and exchange rates, the 2025 total is $2.9 trillion.
  • Three countries make over half. The United States ($930 billion), China ($335 billion) and Russia ($158 billion) account for 52% of the $2.7 trillion SIPRI can attribute to individual countries in 2025. Germany ($107 billion), India ($93 billion) and the UK ($88 billion) follow.
  • Europe is rearming fast. European spending, Russia included, went from $452 billion in 2021 to $791 billion in 2025, up three-quarters. Germany's $107 billion is 78% higher than in 2021; Russia's $158 billion is 2.3 times its 2021 level.
  • Poland spends the largest share of GDP in NATO. It put 4.5% of its GDP into the military in 2025, ahead of Latvia (3.6%), Estonia (3.4%) and the US (3.1%). NATO allies pledged in 2025 to spend at least 3.5% of GDP on core defence, within a total of 5% with related spending, by 2035; on SIPRI's measure, 2 of the 32 allies are above that today, and 22 are above 2%, up from 3 in 2014.
  • Ukraine spends 40% of its GDP on its military, and 63% of government spending, by far the highest. Russia spends 7.5% of GDP and 20% of its government's budget.
  • Per person, Israel leads at about $5,100 a year, ahead of Norway ($3,000), Singapore ($3,000) and the US ($2,800).

Data

One row per country, year and measure, from SIPRI's Excel workbook (v1.2, revised 27 April 2026), retrieved 2026-12-04. Four tables in data/:

  • spending-by-country.csv: the main table, 45,226 rows. Columns: country, iso3, year, measure, value, unit, flag. 174 countries (including the USSR, Yugoslavia, Czechoslovakia, East Germany and North Yemen for the years they existed, and the European Union as an entity), 1949 to 2025.
    • constant_usd: million US$ at constant 2024 prices and exchange rates, 1949-2025. Use this to compare years.
    • current_usd: million US$ at current prices and exchange rates, 1949-2025.
    • share_of_gdp: % of GDP, 1949-2025 (SIPRI stores fractions; multiplied by 100 here).
    • per_capita: US$ per person at current prices, 1988-2025.
    • share_of_govt_spending: % of general government expenditure, 1988-2025 (general government expenditure is from the IMF World Economic Outlook; SIPRI's database page says these figures are by financial year, while the workbook says calendar years except where otherwise stated).
    • flag: blank for a reported figure; estimate (SIPRI's own estimate, 7,061 rows); uncertain (highly uncertain, 443 rows); unavailable (SIPRI has no figure, value is blank, 8,906 rows). Years in which the country did not exist or was not independent (SIPRI's "xxx") have no row.
  • countries.csv: 174 rows. Region and subregion, and SIPRI's notes on each country: whether figures include military pensions, paramilitary forces and capital spending, whether they are budgets rather than outturns, and SIPRI's numbered footnotes in full (breaks in the series, what is left out).
  • regional-totals.csv: SIPRI's world, regional and subregional totals in billion US$, 1988-2025 (constant 2024 prices; plus the 2025 total at 2025 prices). SIPRI gives no world total before 1988 for lack of Soviet data.
  • regions.csv: the countries SIPRI leaves out of each regional total.

Example: the 2025 US figure is the row United States of America,USA,2025,constant_usd,929162.9,...; filter on measure first, since the rows mix units.

Caveats

  • Military spending is estimated from open sources only. Countries differ in what they report (pensions, paramilitary forces, capital spending): see countries.csv. The figures are SIPRI's, not NATO's own, which differ for the allies.
  • The latest figures are provisional. SIPRI revises earlier years in every release, so figures may differ from older SIPRI publications.
  • Series have breaks. Redenominated currencies, changed definitions and (for the US) financial instead of calendar years (SIPRI's US footnote) are in the footnotes. Check the footnote before comparing a country across a break.
  • Some countries do not report. Many series are SIPRI estimates or have gaps, and some countries (Cuba, which has no constant-dollar figures and nothing after 2018, for example) have no figures. Read flag, and the unavailable rows, before drawing conclusions from absence.
  • Shares of government spending rest on IMF spending data, and SIPRI's page and workbook differ on whether they are by financial or calendar year (see Data); per-person figures use current US dollars, so exchange-rate moves show up in them.
  • Three runs of empty cells in the workbook (Taiwan constant dollars 1954-1975, Yemen current dollars 2015-2025, Qatar share of government spending 2023-2025) are treated like SIPRI's "…", as unavailable.
  • Region rows are not countries. regional-totals.csv includes estimates for countries with missing data and excludes those in regions.csv; do not add the countries up and expect the regional total.

Source and licence

Stockholm International Peace Research Institute (SIPRI), Military Expenditure Database, 1949-2025 (Excel workbook, v1.2). DOI: 10.55163/CQGC9685. DataHub's tidy reshaping of the workbook; not an official SIPRI product. Credit line: "Information from the Stockholm International Peace Research Institute (SIPRI) Military Expenditure Database, https://doi.org/10.55163/CQGC9685".

SIPRI's terms apply to this data; it is not openly licensed. Excerpts (list items and punctuation normalised, omissions marked) from SIPRI's Terms and conditions, retrieved 2026-12-04 (archived in archive/):

Fair use of SIPRI content is defined as: the excerption of SIPRI copyrighted material for such purposes as criticism, comment, news reporting, teaching, scholarship or research in which the use is for non-commercial purposes; and the reproduction of less than 10 per cent of a published data set. NB: Both the above conditions must apply to count as fair use. Use of SIPRI copyrighted material for commercial purposes must be authorized and will normally require the payment of a reasonable royalty. Unlicensed commercial use of SIPRI material, including SIPRI data, will be deemed to be in breach of these terms and conditions and to infringe SIPRI's intellectual property rights.

SIPRI data may be freely downloaded, cited and used for statistical or other analytical purposes provided that such use is in line with SIPRI's fair-use policy. Any reproduction—in any medium, electronic or printed—of the data requires authorization, except where this is covered by SIPRI's fair-use policy.

You do NOT need permission to use or cite SIPRI data for the following purposes, so long as SIPRI is clearly identified as the source of the data: In a university/school/college paper, essay or dissertation; In an academic journal article, monograph or book chapter; In a newspaper or magazine article; In a blog post. This includes producing graphs and charts based on the data. For such purposes, permission is only needed if you want to directly reproduce more than 10% of the data set.

Commercial purposes include, but are not limited to, any activities undertaken for financial gain, monetary compensation, business advantage, or the promotion or marketing of goods, services or commercial interests, whether direct or indirect.

In practice: use it for research, journalism, teaching and analysis with the credit line above; do not use it commercially, and do not republish more than a tenth of it, without a licence from SIPRI (SIPRI Publications, Library and Editorial Department, see the terms page). Publishing the whole database goes beyond SIPRI's stated fair-use allowance, and DataHub has not obtained SIPRI's authorization to reproduce the complete database; DataHub publishes this compilation under SIPRI's terms and takes no position on rights beyond them.

Upkeep

This dataset is updated annually, when SIPRI publishes a new release (usually in April), and may revise any earlier year at the same time. A GitHub Actions job (update.yml) checks SIPRI's page on the 9th of each month. When there is a new workbook it rebuilds the tables and pushes the rebuilt data to a review branch and opens an issue, rather than changing the main branch, because the figures quoted above and in the chart descriptions need updating and checking first. The job fails, and publishes nothing, if the download fails or the workbook's layout changes. The chart titles and descriptions in datapackage.json are hand-written, so update them on each refresh.

API access

Access dataset files directly from scripts, code, or AI agents.

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

  1. Fetch datapackage.json to inspect schema and resources
  2. Download data resources listed in datapackage.json
  3. Read README.md for full context
/core/military-expenditure/7 files
  • README.mddocumentationhttps://datahub.io/core/military-expenditure/_r/-/README.md
  • config.jsonhttps://datahub.io/core/military-expenditure/_r/-/config.json
  • data/countries.csvhttps://datahub.io/core/military-expenditure/_r/-/data/countries.csv
  • data/regional-totals.csvhttps://datahub.io/core/military-expenditure/_r/-/data/regional-totals.csv
  • data/regions.csvhttps://datahub.io/core/military-expenditure/_r/-/data/regions.csv
  • data/spending-by-country.csvhttps://datahub.io/core/military-expenditure/_r/-/data/spending-by-country.csv
  • datapackage.jsonmetadata & schemahttps://datahub.io/core/military-expenditure/_r/-/datapackage.json