{
  "name": "military-expenditure",
  "title": "Military Spending by Country",
  "description": "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.",
  "status": "monitored",
  "keywords": [
    "military spending",
    "military expenditure",
    "defence spending",
    "defense budget",
    "NATO defence spending",
    "military spending by country",
    "military spending per capita",
    "military spending share of GDP",
    "arms spending",
    "SIPRI"
  ],
  "licenses": [
    {
      "name": "SIPRI Terms and conditions",
      "title": "Fair use only: non-commercial use and less than 10 per cent of a published data set; commercial use must be authorized and licensed. Credit line required.",
      "path": "https://www.sipri.org/databases/terms"
    }
  ],
  "sources": [
    {
      "title": "Stockholm International Peace Research Institute (SIPRI), Military Expenditure Database 1949-2025 (v1.2, revised 27 April 2026)",
      "path": "https://www.sipri.org/databases/milex"
    },
    {
      "title": "SIPRI Military Expenditure Database, Excel workbook",
      "path": "https://www.sipri.org/sites/default/files/SIPRI-Milex-data-1949-2025_v1.2.xlsx"
    },
    {
      "title": "SIPRI Military Expenditure Database, DOI",
      "path": "https://doi.org/10.55163/CQGC9685"
    }
  ],
  "upkeep": {
    "mode": "living",
    "refresh": "annual",
    "workflow": ".github/workflows/update.yml"
  },
  "resources": [
    {
      "path": "data/spending-by-country.csv",
      "name": "spending-by-country",
      "title": "Military expenditure by country, year and measure (long format)",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "country",
            "type": "string",
            "description": "Country name as SIPRI writes it (e.g. 'United States of America', 'Korea, North'). Includes the USSR, Yugoslavia, Czechoslovakia, the German Democratic Republic and North Yemen for the years they existed, and the European Union as an entity."
          },
          {
            "name": "iso3",
            "type": "string",
            "description": "ISO 3166-1 alpha-3 code. Historical states carry their retired ISO 3166-1 alpha-3 codes (SUN, YUG, CSK, DDR); Kosovo is XKX; blank for the European Union and North Yemen."
          },
          {
            "name": "year",
            "type": "integer",
            "description": "Calendar year, 1949 to 2025 (per capita and share of government spending start in 1988). SIPRI converts financial years to calendar years, except that US figures use financial years (SIPRI's US footnote). For share_of_govt_spending, SIPRI's database page says financial years while the workbook says calendar years except where otherwise stated.",
            "constraints": {
              "minimum": 1949
            }
          },
          {
            "name": "measure",
            "type": "string",
            "description": "Which series the row belongs to.",
            "constraints": {
              "enum": [
                "constant_usd",
                "current_usd",
                "share_of_gdp",
                "per_capita",
                "share_of_govt_spending"
              ]
            }
          },
          {
            "name": "value",
            "type": "number",
            "description": "The figure in the unit given in 'unit'. Blank when SIPRI has no figure (flag 'unavailable'). Shares are in percent (SIPRI stores fractions; multiplied by 100 here).",
            "constraints": {
              "minimum": 0
            }
          },
          {
            "name": "unit",
            "type": "string",
            "description": "Unit of value: 'million US$ (constant 2024)', 'million US$ (current)', '% of GDP', 'US$ per person (current)' or '% of government spending'."
          },
          {
            "name": "flag",
            "type": "string",
            "description": "Blank for a reported figure. 'estimate': SIPRI estimate (shown blue in the workbook). 'uncertain': highly uncertain (red). 'unavailable': SIPRI has no figure (\"...\" in the workbook, or an empty cell), value is blank. Rows where the country did not exist or was not independent (\"xxx\") are left out."
          }
        ],
        "primaryKey": [
          "country",
          "year",
          "measure"
        ]
      }
    },
    {
      "path": "data/countries.csv",
      "name": "countries",
      "title": "Countries: region and SIPRI's notes on coverage",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "country",
            "type": "string",
            "description": "Country name as in spending-by-country.csv."
          },
          {
            "name": "iso3",
            "type": "string",
            "description": "ISO 3166-1 alpha-3 code (see spending-by-country.csv)."
          },
          {
            "name": "region",
            "type": "string",
            "description": "SIPRI region."
          },
          {
            "name": "subregion",
            "type": "string",
            "description": "SIPRI subregion; blank where the region has none (the Middle East)."
          },
          {
            "name": "coverage_notes",
            "type": "string",
            "description": "SIPRI's special notes for the country, spelled out: the symbols against its name in the workbook (pensions, current spending only, adopted budget, paramilitary forces, currency change). Blank if none."
          },
          {
            "name": "footnote_ref",
            "type": "string",
            "description": "Number of SIPRI's numbered footnote for the country; blank if none."
          },
          {
            "name": "footnote",
            "type": "string",
            "description": "SIPRI's footnote text for the country: what its figures include or leave out, and breaks in the series."
          }
        ],
        "primaryKey": [
          "country"
        ]
      }
    },
    {
      "path": "data/regional-totals.csv",
      "name": "regional-totals",
      "title": "Military expenditure by region and the world, 1988 onwards",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "region",
            "type": "string",
            "description": "World, a region or a subregion, as SIPRI names them in its Regional totals sheet (e.g. 'Central and Western Europe')."
          },
          {
            "name": "year",
            "type": "integer",
            "description": "Year; SIPRI gives no world total before 1988 because of the lack of data for the Soviet Union.",
            "constraints": {
              "minimum": 1988
            }
          },
          {
            "name": "measure",
            "type": "string",
            "description": "'constant_usd_bn' (constant 2024 US$, every year) or 'current_usd_bn' (2025 only: US$ at 2025 prices and exchange rates).",
            "constraints": {
              "enum": [
                "constant_usd_bn",
                "current_usd_bn"
              ]
            }
          },
          {
            "name": "value",
            "type": "number",
            "description": "Billions of US$. Blank where SIPRI considers the estimate too uncertain (the world total for 1991).",
            "constraints": {
              "minimum": 0
            }
          },
          {
            "name": "unit",
            "type": "string",
            "description": "Unit of value."
          },
          {
            "name": "flag",
            "type": "string",
            "description": "'over_10pct_estimated': more than 10% of the total consists of estimates for countries with missing data (red in the workbook). 'unavailable': no figure. Blank otherwise. Totals include estimates and exclude the countries in regions.csv."
          }
        ],
        "primaryKey": [
          "region",
          "year",
          "measure"
        ]
      }
    },
    {
      "path": "data/regions.csv",
      "name": "regions",
      "title": "Countries SIPRI leaves out of each regional total",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "region",
            "type": "string",
            "description": "Region or subregion, as in regional-totals.csv."
          },
          {
            "name": "omitted_countries",
            "type": "string",
            "description": "Countries omitted from the totals because data are missing for too many years or there is no economic data to convert to constant dollars. Blank if none."
          }
        ],
        "primaryKey": [
          "region"
        ]
      }
    }
  ],
  "views": [
    {
      "name": "world-total",
      "title": "World military spending since 1988",
      "description": "Total military spending in constant 2024 dollars. It fell from $1.8 trillion in 1988 to $1.2 trillion in 1998, then climbed to about $2.8 trillion in 2025, the highest in the series and up every year since 2014.",
      "resourceName": "regional-totals",
      "specType": "plot",
      "spec": {
        "height": 400,
        "marginLeft": 56,
        "x": {
          "tickFormat": "d",
          "label": "Year"
        },
        "y": {
          "tickFormat": ",d",
          "grid": true,
          "domain": [
            0,
            3000
          ],
          "label": "US$ billion, constant 2024"
        },
        "marks": [
          {
            "type": "areaY",
            "x": "year",
            "y": "value",
            "fill": "#111827",
            "fillOpacity": 0.06,
            "tip": false,
            "filter": [
              {
                "field": "region",
                "eq": "World"
              },
              {
                "field": "measure",
                "eq": "constant_usd_bn"
              },
              {
                "field": "value",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "value",
            "stroke": "#111827",
            "sort": "year",
            "filter": [
              {
                "field": "region",
                "eq": "World"
              },
              {
                "field": "measure",
                "eq": "constant_usd_bn"
              },
              {
                "field": "value",
                "notNull": true
              }
            ]
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 1988,
                "value": 1760,
                "label": "1988: $1.8 trillion"
              }
            ],
            "x": "year",
            "y": "value",
            "text": "label",
            "dy": -10,
            "dx": 6,
            "textAnchor": "start"
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 1998,
                "value": 1208,
                "label": "1998: $1.2 trillion"
              }
            ],
            "x": "year",
            "y": "value",
            "text": "label",
            "dy": 18,
            "dx": 0,
            "textAnchor": "middle"
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 2025,
                "value": 2771,
                "label": "2025: $2.8 trillion"
              }
            ],
            "x": "year",
            "y": "value",
            "text": "label",
            "dy": -12,
            "dx": 0,
            "textAnchor": "end"
          }
        ]
      }
    },
    {
      "name": "big-three",
      "title": "Military spending: United States, China and Russia",
      "description": "Constant 2024 dollars. The United States spent about $930 billion in 2025, nearly twice China and Russia combined. China's $335 billion is eight times its 2000 level; Russia's $158 billion is more than double its 2021 level.",
      "resourceName": "spending-by-country",
      "specType": "plot",
      "spec": {
        "height": 400,
        "marginLeft": 56,
        "x": {
          "tickFormat": "d",
          "label": "Year"
        },
        "y": {
          "tickFormat": ",d",
          "grid": true,
          "label": "US$ million, constant 2024",
          "domain": [
            0,
            1100000
          ]
        },
        "marks": [
          {
            "type": "line",
            "x": "year",
            "y": "value",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "measure",
                "eq": "constant_usd"
              },
              {
                "field": "country",
                "eq": "China"
              },
              {
                "field": "value",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "value",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "measure",
                "eq": "constant_usd"
              },
              {
                "field": "country",
                "eq": "Russia"
              },
              {
                "field": "value",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "value",
            "stroke": "#111827",
            "sort": "year",
            "filter": [
              {
                "field": "measure",
                "eq": "constant_usd"
              },
              {
                "field": "country",
                "eq": "United States of America"
              },
              {
                "field": "value",
                "notNull": true
              }
            ]
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 2025,
                "value": 929163,
                "label": "United States $930 billion"
              }
            ],
            "x": "year",
            "y": "value",
            "text": "label",
            "dy": -10,
            "dx": 0,
            "textAnchor": "end"
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 2025,
                "value": 335018,
                "label": "China $335 billion"
              }
            ],
            "x": "year",
            "y": "value",
            "text": "label",
            "dy": -10,
            "dx": 0,
            "textAnchor": "end"
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 2025,
                "value": 158236,
                "label": "Russia $158 billion"
              }
            ],
            "x": "year",
            "y": "value",
            "text": "label",
            "dy": 14,
            "dx": 0,
            "textAnchor": "end"
          }
        ]
      }
    },
    {
      "name": "share-of-gdp",
      "title": "Military spending as a share of GDP",
      "description": "Poland spent 4.5% of its GDP on the military in 2025, the most in NATO (Latvia 3.6%, the US 3.1%); Germany and the UK spent 2.3%. NATO allies pledged in 2025 to reach 3.5% of GDP on core defence by 2035.",
      "resourceName": "spending-by-country",
      "specType": "plot",
      "spec": {
        "height": 400,
        "marginLeft": 56,
        "x": {
          "tickFormat": "d",
          "label": "Year",
          "domain": [
            1988,
            2025
          ]
        },
        "y": {
          "tickFormat": ".1f",
          "grid": true,
          "label": "% of GDP",
          "domain": [
            0,
            6
          ]
        },
        "marks": [
          {
            "type": "ruleY",
            "staticData": [
              {
                "v": 3.5
              }
            ],
            "y": "v",
            "stroke": "#8b929d",
            "strokeDasharray": "4,4",
            "tip": false
          },
          {
            "type": "line",
            "x": "year",
            "y": "value",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "measure",
                "eq": "share_of_gdp"
              },
              {
                "field": "country",
                "eq": "Germany"
              },
              {
                "field": "value",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "value",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "measure",
                "eq": "share_of_gdp"
              },
              {
                "field": "country",
                "eq": "United Kingdom"
              },
              {
                "field": "value",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "value",
            "stroke": "#8b929d",
            "sort": "year",
            "filter": [
              {
                "field": "measure",
                "eq": "share_of_gdp"
              },
              {
                "field": "country",
                "eq": "United States of America"
              },
              {
                "field": "value",
                "notNull": true
              }
            ]
          },
          {
            "type": "line",
            "x": "year",
            "y": "value",
            "stroke": "#111827",
            "sort": "year",
            "filter": [
              {
                "field": "measure",
                "eq": "share_of_gdp"
              },
              {
                "field": "country",
                "eq": "Poland"
              },
              {
                "field": "value",
                "notNull": true
              }
            ]
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 1988,
                "value": 3.5,
                "label": "3.5% NATO core pledge for 2035"
              }
            ],
            "x": "year",
            "y": "value",
            "text": "label",
            "dy": -6,
            "dx": 4,
            "textAnchor": "start"
          },
          {
            "type": "text",
            "staticData": [
              {
                "year": 2025,
                "value": 4.5,
                "label": "Poland 4.5%"
              }
            ],
            "x": "year",
            "y": "value",
            "text": "label",
            "dy": -10,
            "dx": 0,
            "textAnchor": "end"
          }
        ]
      }
    }
  ]
}
