Armed forces personnel, total
Real data: World Bank, World Development Indicators, indicator MS.MIL.TOTL.P1, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Armed forces personnel are active duty military personnel, including paramilitary forces if the training, organization, equipment, and control suggest they may be used to support or replace regular military forces.
Limits and exceptions (World Bank note)
Data excludes personnel not on active duty, therefore it underestimates the share of the labor force working for the defense establishment. The cooperation of governments of all countries listed in “The Military Balance” has been sought by IISS and, in many cases, received. However, some data in “The Military Balance” is estimated.
The numbers in 2020
In 2020, 170 countries have a value. The highest is India (3.07 million); at the bottom, 5 countries tie at 0 (e.g. Antigua and Barbuda, Iceland, Libya). The median country value is 33,000. The World Bank's World aggregate for 2020 is 27.41 million.
Top 10 countries, 2020
value
Highest, 2020
| # | Country | Value |
|---|---|---|
| 1 | India | 3.07 million |
| 2 | China | 2.54 million |
| 3 | Korea, Dem. People's Rep. | 1.47 million |
| 4 | Russian Federation | 1.45 million |
| 5 | United States | 1.40 million |
| 6 | Pakistan | 943,000 |
| 7 | Egypt, Arab Rep. | 836,000 |
| 8 | Brazil | 762,000 |
| 9 | Indonesia | 676,000 |
| 10 | Iran, Islamic Rep. | 650,000 |
Lowest, 2020
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | West Bank and Gaza | 0 |
| 2 | Seychelles | 0 |
| 3 | Libya | 0 |
| 4 | Iceland | 0 |
| 5 | Antigua and Barbuda | 0 |
| 6 | Luxembourg | 1,000 |
| 7 | Haiti | 1,000 |
| 8 | Equatorial Guinea | 1,000 |
| 9 | Cabo Verde | 1,000 |
| 10 | Barbados | 1,000 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1980s | 141 |
| 1990s | 170 |
| 2000s | 168 |
| 2010s | 169 |
| 2020s | 170 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2020 | 27.41 million |
| 2019 | 27.67 million |
| 2018 | 27.65 million |
| 2017 | 27.41 million |
| 2016 | 27.54 million |
| 2015 | 27.44 million |
| 2014 | 27.31 million |
| 2013 | 27.21 million |
| 2012 | 28.15 million |
| 2011 | 28.02 million |
| 2010 | 28.13 million |
| 2009 | 27.92 million |
By region, 2020
| World Bank region | Value |
|---|---|
| East Asia & Pacific | 7.91 million |
| Europe & Central Asia | 5.00 million |
| Middle East, North Africa, Afghanistan & Pakistan | 4.83 million |
| South Asia | 3.72 million |
| Latin America & Caribbean | 2.74 million |
| Sub-Saharan Africa | 1.73 million |
| North America | 1.47 million |
First rows
armed-forces-personnel-total.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1985 | 47000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1989 | 55000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1990 | 58000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1991 | 45000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1992 | 45000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1993 | 45000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1994 | 45000 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1995 | 383000 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Armed forces personnel, total, exactly as the World Bank API returns it (not rounded) |
Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.
Practice questions
answers computed from the file
Which country has the highest value in 2020?
India, with 3.07 million.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2020)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2020)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2020
AND value = (SELECT MAX(value) FROM wb WHERE year = 2020);pandas (df = pd.read_csv("armed-forces-personnel-total.csv"))
y = df[df.year == 2020]
y[y.value == y.value.max()][["country", "value"]]File: armed-forces-personnel-total.csv
How many countries report a value for 2020?
170 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2020)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2020;pandas (df = pd.read_csv("armed-forces-personnel-total.csv"))
(df.year == 2020).sum()File: armed-forces-personnel-total.csv
What is the median across countries in 2020?
33,000 (median of the 170 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2020))SQL (table wb = the CSV)
-- SQLite has no MEDIAN(); this picks the middle value(s)
SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2020 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2020) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2020));pandas (df = pd.read_csv("armed-forces-personnel-total.csv"))
df[df.year == 2020]["value"].median()File: armed-forces-personnel-total.csv
Which country rose the most between 2010 and 2020?
India: from 2.63 million to 3.07 million, a rise of 442,414 (out of 168 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (armed-forces-personnel-total-wide.csv): add a column = [2020] - [2010], then sort it largest to smallest.SQL (table wb = the CSV)
SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
WHERE a.year = 2010 AND b.year = 2020 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("armed-forces-personnel-total.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2020] - w[2010]).dropna().nlargest(1)File: armed-forces-personnel-total.csv
Which year has the most countries reporting?
2020, with 170 countries.
Excel (on the long CSV: E = year, F = value)
Make a pivot table: year in Rows, Count of value in Values, then sort by the count.SQL (table wb = the CSV)
SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;pandas (df = pd.read_csv("armed-forces-personnel-total.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: armed-forces-personnel-total.csv