DataBrighten

    Armed forces personnel (% of total labor force)

    5,025 × 6rows × columns: 172 countries, 1990 to 2020

    Real data: World Bank, World Development Indicators, indicator MS.MIL.TOTL.TF.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows5,025country-year values
    Countries172with at least one value
    Years1990 – 202031 years with data
    LicenceCC BY 4.0credit the World Bank

    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. Labor force comprises all people who meet the International Labour Organization's definition of the economically active population.

    Limits and exceptions (World Bank note)

    Data exclude personnel not on active duty, therefore they underestimate the share of the labor force working for the defense establishment. Governments rarely report the size of their armed forces, so such data typically come from intelligence sources. Unless otherwise indicated, reserves includes all reservists committed to rejoining the armed forces in an emergency, except when national reserve service obligations following conscription last almost a lifetime.

    The numbers in 2020

    In 2020, 168 countries have a value. The highest is Eritrea (13.29); at the bottom, 3 countries tie at 0 (e.g. Iceland, Libya, West Bank and Gaza). The median country value is 0.825. The World Bank's World aggregate for 2020 is 0.791.

    Top 10 countries, 2020

    % of total labor force

    Source: World Bank, MS.MIL.TOTL.TF.ZS, retrieved 19 November 2026. Computed from armed-forces-personnel-percent-of-total-labor-force.csv.

    Highest, 2020

    #CountryValue
    1Eritrea13.29
    2Korea, Dem. People's Rep.8.62
    3Syrian Arab Republic5.44
    4Djibouti5.4
    5Montenegro4.66
    6Iraq4.4
    7Israel4.23
    8Lebanon4.1
    9Lao PDR4.08
    10Jordan3.98

    Lowest, 2020

    Ties are listed A to Z.

    #CountryValue
    1West Bank and Gaza0
    2Libya0
    3Iceland0
    4Haiti0.0202
    5Mozambique0.0834
    6Liberia0.0871
    7Tanzania0.0979
    8Niger0.109
    9Kenya0.113
    10Burkina Faso0.122
    How many countries report, by decade
    DecadeMost countries in one year
    1990s168
    2000s166
    2010s167
    2020s168

    World aggregate by year

    As published by the World Bank (in the regions file, not the country file).

    YearWorld
    20200.791
    20190.791
    20180.799
    20170.801
    20160.813
    20150.818
    20140.823
    20130.831
    20120.869
    20110.875
    20100.889
    20090.89

    By region, 2020

    World Bank regionValue
    Middle East, North Africa, Afghanistan & Pakistan2.07
    Europe & Central Asia1.15
    Latin America & Caribbean 0.944
    North America0.784
    East Asia & Pacific0.637
    South Asia0.601
    Sub-Saharan Africa 0.377

    First rows

    armed-forces-personnel-percent-of-total-labor-force.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19901.95011668758559
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19911.4953887196515
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19921.38506158753297
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19931.23741684558798
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19941.14487765201367
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19959.34047469121561
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income199610.119817220532
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income19979.81047937569677

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberArmed forces personnel (% of total labor force), 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?

    Eritrea, with 13.29.

    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-percent-of-total-labor-force.csv"))

    y = df[df.year == 2020]
    y[y.value == y.value.max()][["country", "value"]]

    File: armed-forces-personnel-percent-of-total-labor-force.csv

    How many countries report a value for 2020?

    168 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-percent-of-total-labor-force.csv"))

    (df.year == 2020).sum()

    File: armed-forces-personnel-percent-of-total-labor-force.csv

    What is the median across countries in 2020?

    0.825 (median of the 168 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-percent-of-total-labor-force.csv"))

    df[df.year == 2020]["value"].median()

    File: armed-forces-personnel-percent-of-total-labor-force.csv

    Which country rose the most between 2010 and 2020?

    Venezuela, RB: from 0.892 to 3.47, a rise of 2.58 (out of 166 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (armed-forces-personnel-percent-of-total-labor-force-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-percent-of-total-labor-force.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2020] - w[2010]).dropna().nlargest(1)

    File: armed-forces-personnel-percent-of-total-labor-force.csv

    Which year has the most countries reporting?

    2020, with 168 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-percent-of-total-labor-force.csv"))

    df.groupby("year").size().sort_values(ascending=False).head(1)

    File: armed-forces-personnel-percent-of-total-labor-force.csv